:root {
  --accent-color: #1B4D3E;
  --bg-color: #FDFBF7;
  --primary-color: #1B4D3E;
  --text-color: #333333;
  --border-color: #E2E0D8;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-body) !important;
  color: var(--text-color);
  line-height: 1.6;
  background-color: transparent !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
  font-family: var(--font-heading) !important;
  color: var(--primary-color);
}

/* Typography & Layout */
.section-padding {
  padding: 80px 0;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: 1px solid var(--primary-color);
  border-radius: 0;
  padding: 12px 30px;
  font-weight: 500;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary-custom:hover {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-custom {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 0;
  padding: 10px 24px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* Navbar - Centered Structure */
.navbar-custom {
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.navbar-brand-centered {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0;
}

.silvroot-logo {
  color: var(--primary-color) !important;
  font-family: var(--font-heading) !important;
  letter-spacing: 1.5px !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- New Logo Styles --- */
.silvroot-logo-img {
  max-height: 75px;
  height: auto;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.silvroot-leaf-icon {
  position: absolute;
  top: 0px;
  right: -20px;
  width: 24px !important;
  height: 24px !important;
}

.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: var(--transition);
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

@media (min-width: 992px) {
  .navbar-nav {
    position: relative;
  }

  .navbar-nav .nav-link {
    position: relative;
  }

  .navbar-nav .nav-link.active,
  .navbar-nav .current-menu-item>.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
  }

  .magic-line {
    position: absolute;
    bottom: 0px;
    height: 2px;
    background-color: #D4AF37;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
    pointer-events: none;
    left: 0;
  }

}

.nav-icons-container {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 991px) {
  .nav-icons-container {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 15px;
    justify-content: center;
  }

  .silvroot-logo-img {
    max-height: 60px;
    height: auto;
    margin-left: -15px;
  }
}

/* Hero Section & Carousel */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 600px;
  width: 100%;
}

.hero-section-carousel {
  position: relative;
  height: 460px;
  width: 100%;
}

.hero-section-carousel .carousel-inner,
.hero-section-carousel .carousel-item {
  height: 460px;
}

.hero-section-carousel .carousel-item {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-section {
  display: flex;
  align-items: center;
  background-image: url('../images/hero_model.png');
  background-size: cover;
  background-position: center 20%;
}

/* Animations for carousel text content */
.animate-fadeInRight {
  opacity: 0;
  animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-item.active h1.animate-fadeInRight {
  animation-delay: 0.1s;
}

.carousel-item.active p.animate-fadeInRight {
  animation-delay: 0.3s;
}

.carousel-item.active a.animate-fadeInRight {
  animation-delay: 0.5s;
}

/* Custom styling for Carousel controls and indicators */
.hero-section-carousel .carousel-control-prev,
.hero-section-carousel .carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero-section-carousel .carousel-control-prev:hover,
.hero-section-carousel .carousel-control-next:hover {
  opacity: 1;
}

.hero-section-carousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin: 0 6px;
  border: 1px solid var(--bg-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(253, 251, 247, 0.95) 0%, rgba(253, 251, 247, 0.4) 60%, rgba(253, 251, 247, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* Brand Benefits */
.benefit-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Cards (Products & Categories) */
.card-custom {
  background-color: transparent;
  border-radius: 0;
  transition: var(--transition);
}

.card-img-top {
  border-radius: 0;
  object-fit: cover;
  /*height: 350px;*/
}

.card-category .card-img-top {
  height: 400px;
}

.card-category .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(253, 251, 247, 0.9);
  padding: 20px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-price {
  font-weight: 600;
  color: var(--text-color);
}

/* Secondary Promo Banner */
.promo-banner {
  background-image: url('../images/glow_banner.png');
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--bg-color);
  padding: 100px 0;
}

.promo-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(27, 77, 62, 0.7);
}

.promo-banner-content {
  position: relative;
  z-index: 2;
}

.promo-banner h2 {
  color: var(--bg-color);
}

/* Carousel */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 20px;
}

/* Testimonials */
.testimonial-card {
  padding: 30px;
  background-color: #fff;
  border: 1px solid var(--border-color);
  height: 100%;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-right: 15px;
}

/* About Snippet */
.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* Product Detail */
.product-image {
  border: 1px solid var(--border-color);
  width: 100%;
  object-fit: cover;
}

.accordion-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 !important;
}

.accordion-button {
  background-color: transparent !important;
  color: var(--text-color) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color) !important;
}

.accordion-body {
  padding-left: 0;
  padding-right: 0;
  color: var(--text-color);
}

/* Cart Table */
.table-cart th,
.table-cart td {
  vertical-align: middle;
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

.table-cart thead th {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Forms & Sidebar */
.form-control,
.form-select {
  background-color: transparent !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 0;
  color: var(--text-color) !important;
}

.form-control:focus,
.form-select:focus {
  background-color: transparent;
  border-color: var(--primary-color);
  box-shadow: none;
}

.sidebar-filter h5 {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.sidebar-filter .heading {
  margin-bottom: unset;
  border-bottom: unset;
  font-size: 24px;
}

.sidebar-filter .form-check-label {
  font-size: 0.9rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  margin-top: auto;
}

.trust-badges i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Nav Tabs */
.nav-tabs {
  border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-color) !important;
  border-radius: 0;
}

.nav-tabs .nav-link.active {
  background-color: transparent;
  border-bottom: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
}

/* Badges */
.badge-custom {
  background-color: var(--primary-color);
  color: var(--bg-color);
  font-weight: 500;
  border-radius: 0;
}

/* Review Stars */
.stars {
  color: var(--primary-color);
}

/* Utilities for animation */
@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.animate-pop {
  animation: pop 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-overlay {
    background: rgba(253, 251, 247, 0.85);
    /* More opaque on mobile for readability */
  }

  .hero-content {
    padding: 0 20px;
    text-align: center;
  }
}

/* Animations & Transitions */
.card-category {
  transition: box-shadow 0.3s ease !important;
  overflow: hidden;
}

.card-category:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-category .card-img-top {
  transition: transform 0.3s ease;
}

.card-category:hover .card-img-top {
  transform: scale(1.05);
}

.link-animated-underline {
  position: relative;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

.link-animated-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.link-animated-underline:hover::after {
  width: 100%;
}

.carousel-item {
  transition: transform 0.8s ease-in-out !important;
}

/* Bootstrap Overrides */
.form-control:focus,
.btn:focus,
.accordion-button:focus,
.page-link:focus,
.form-check-input:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* Phase 3 CSS */
.accordion-collapse {
  transition: all 0.3s ease-in-out;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--bg-color);
}

.accordion-button {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  background-color: transparent;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.custom-select-wrapper::after {
  content: '\f107';
  /* FontAwesome down arrow */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--primary-color);
}

/* --- Dropdown Custom Styles (Override Blue) --- */
.dropdown-menu .dropdown-item {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  background-color: #FAF9F6 !important;
  color: #1B4D3E !important;
  font-weight: 500;
}

/* --- Global Focus States (A11y) --- */
:focus-visible {
  outline: 2px solid #1B4D3E !important;
  outline-offset: 2px !important;
}

/* --- Strict Animated Hamburger Menu --- */
.custom-toggler {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.custom-toggler .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #1B4D3E;
  transition: all 0.3s ease-in-out;
}

.custom-toggler.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.custom-toggler.active .bar:nth-child(2) {
  opacity: 0;
}

.custom-toggler.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Menu Offcanvas Styling --- */
.bg-beige-custom {
  background-color: #FDFBF7 !important;
}

.mobile-offcanvas-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #333333;
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-offcanvas-link:hover,
.mobile-offcanvas-link:focus {
  color: #1B4D3E;
}

.offcanvas-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-nav-list li {
  border-bottom: 1px solid #E2E0D8;
}

.offcanvas-nav-list li:last-child {
  border-bottom: none;
}

/* --- Skip to Main Content (A11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  /* Changed from -40px to ensure it's completely hidden */
  left: 0;
  background: #1B4D3E;
  color: #FDFBF7;
  padding: 10px 20px;
  z-index: 9999;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease-in-out;
}

.skip-link:focus {
  top: 0;
}

/* Button transitions */
.btn {
  transition: all 0.3s ease-in-out;
}

.animate-pop {
  animation: pop 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-overlay {
    background: rgba(253, 251, 247, 0.85);
    /* More opaque on mobile for readability */
  }

  .hero-content {
    padding: 0 20px;
    text-align: center;
  }
}

/* Animations & Transitions */
.card-category {
  transition: box-shadow 0.3s ease !important;
  overflow: hidden;
}

.card-category:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-category .card-img-top {
  transition: transform 0.3s ease;
}

.card-category:hover .card-img-top {
  transform: scale(1.05);
}

.link-animated-underline {
  position: relative;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}

.link-animated-underline::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.link-animated-underline:hover::after {
  width: 100%;
}

.carousel-item {
  transition: transform 0.8s ease-in-out !important;
}

/* Bootstrap Overrides */
.form-control:focus,
.btn:focus,
.accordion-button:focus,
.page-link:focus,
.form-check-input:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

/* Phase 3 CSS */
.accordion-collapse {
  transition: all 0.3s ease-in-out;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: var(--bg-color);
}

.accordion-button {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  background-color: transparent;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.custom-select-wrapper::after {
  content: '\f107';
  /* FontAwesome down arrow */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--primary-color);
}

/* --- Dropdown Custom Styles (Override Blue) --- */
.dropdown-menu .dropdown-item {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  background-color: #FAF9F6 !important;
  color: #1B4D3E !important;
  font-weight: 500;
}

/* --- Global Focus States (A11y) --- */
:focus-visible {
  outline: 2px solid #1B4D3E !important;
  outline-offset: 2px !important;
}

/* --- Strict Animated Hamburger Menu --- */
.custom-toggler {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.custom-toggler .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #1B4D3E;
  transition: all 0.3s ease-in-out;
}

.custom-toggler.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.custom-toggler.active .bar:nth-child(2) {
  opacity: 0;
}

.custom-toggler.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Menu Offcanvas Styling --- */
.bg-beige-custom {
  background-color: #FDFBF7 !important;
}

.mobile-offcanvas-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #333333;
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-offcanvas-link:hover,
.mobile-offcanvas-link:focus {
  color: #1B4D3E;
}

.offcanvas-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-nav-list li {
  border-bottom: 1px solid #E2E0D8;
}

.offcanvas-nav-list li:last-child {
  border-bottom: none;
}

/* --- Skip to Main Content (A11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  /* Changed from -40px to ensure it's completely hidden */
  left: 0;
  background: #1B4D3E;
  color: #FDFBF7;
  padding: 10px 20px;
  z-index: 9999;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease-in-out;
}

.skip-link:focus {
  top: 0;
}

/* Button transitions */
.btn {
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  transform: translateY(-2px);
}

/* --- Custom Scrollbar (Desktop Only) --- */
@media (min-width: 992px) {
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    /* #1B4D3E */
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #143A2E;
  }

  html,
  body {
    scrollbar-color: var(--primary-color) var(--bg-color);
  }
}

/* --- Account Page Redesign --- */
.account-sidebar {
  border-right: 1px solid var(--border-color);
}

.account-tab-link {
  background: transparent;
  border: none;
  text-align: left;
  padding: 15px 20px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-color);
  transition: var(--transition);
  border-left: 3px solid transparent;
  white-space: nowrap;
  text-transform: none;
  display: block;
  width: 100%;
}

.account-tab-link:hover,
.account-tab-link:focus {
  color: var(--primary-color);
  background-color: rgba(27, 77, 62, 0.03);
  outline: none;
}

.account-tab-link.active {
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
  background-color: rgba(27, 77, 62, 0.05);
}

.account-tab-link.text-danger {
  color: #d9534f !important;
}

.account-tab-link.text-danger:hover {
  background-color: rgba(217, 83, 79, 0.05);
  border-left-color: #d9534f;
}

.border-custom {
  border: 1px solid var(--border-color) !important;
}

@media (max-width: 767px) {
  .account-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
  }

  .account-tab-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 12px 15px;
    text-align: center;
    width: auto;
  }

  .account-tab-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary-color);
  }

  .account-tab-link.text-danger:hover {
    border-left-color: transparent;
    border-bottom-color: #d9534f;
  }
}

/* Hide spin buttons for quantity inputs */
/* right: 1rem;
top: 50%;
transform: translateY(-50%);
pointer-events: none;
color: var(--primary-color);
} */

/* --- Dropdown Custom Styles (Override Blue) --- */
.dropdown-menu .dropdown-item {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
  background-color: #FAF9F6 !important;
  color: #1B4D3E !important;
  font-weight: 500;
}

/* --- Global Focus States (A11y) --- */
:focus-visible {
  outline: 2px solid #1B4D3E !important;
  outline-offset: 2px !important;
}

/* --- Strict Animated Hamburger Menu --- */
.custom-toggler {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.custom-toggler .bar {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #1B4D3E;
  transition: all 0.3s ease-in-out;
}

.custom-toggler.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.custom-toggler.active .bar:nth-child(2) {
  opacity: 0;
}

.custom-toggler.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Mobile Menu Offcanvas Styling --- */
.bg-beige-custom {
  background-color: #FDFBF7 !important;
}

.mobile-offcanvas-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #333333;
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-offcanvas-link:hover,
.mobile-offcanvas-link:focus {
  color: #1B4D3E;
}

.offcanvas-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.offcanvas-nav-list li {
  border-bottom: 1px solid #E2E0D8;
}

.offcanvas-nav-list li:last-child {
  border-bottom: none;
}

/* --- Skip to Main Content (A11y) --- */
.skip-link {
  position: absolute;
  top: -100px;
  /* Changed from -40px to ensure it's completely hidden */
  left: 0;
  background: #1B4D3E;
  color: #FDFBF7;
  padding: 10px 20px;
  z-index: 9999;
  text-decoration: none;
  font-weight: bold;
  transition: top 0.3s ease-in-out;
}

.skip-link:focus {
  top: 0;
}

/* Button transitions */
.btn {
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  transform: translateY(-2px);
}

/* --- Custom Scrollbar (Desktop Only) --- */
@media (min-width: 992px) {
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    /* #1B4D3E */
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #143A2E;
  }

  html,
  body {
    scrollbar-color: var(--primary-color) var(--bg-color);
  }
}

/* --- Account Page Redesign --- */
.account-sidebar {
  border-right: 1px solid var(--border-color);
}

.account-tab-link {
  background: transparent;
  border: none;
  text-align: left;
  padding: 15px 20px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-color);
  transition: var(--transition);
  border-left: 3px solid transparent;
  white-space: nowrap;
  text-transform: none;
  display: block;
  width: 100%;
}

.account-tab-link:hover,
.account-tab-link:focus {
  color: var(--primary-color);
  background-color: rgba(27, 77, 62, 0.03);
  outline: none;
}

.account-tab-link.active {
  color: var(--primary-color);
  font-weight: 600;
  border-left-color: var(--primary-color);
  background-color: rgba(27, 77, 62, 0.05);
}

.account-tab-link.text-danger {
  color: #d9534f !important;
}

.account-tab-link.text-danger:hover {
  background-color: rgba(217, 83, 79, 0.05);
  border-left-color: #d9534f;
}

.border-custom {
  border: 1px solid var(--border-color) !important;
}

@media (max-width: 767px) {
  .account-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
  }

  .account-tab-link {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 12px 15px;
    text-align: center;
    width: auto;
  }

  .account-tab-link.active {
    border-left-color: transparent;
    border-bottom-color: var(--primary-color);
  }

  .account-tab-link.text-danger:hover {
    border-left-color: transparent;
    border-bottom-color: #d9534f;
  }
}

/* Hide spin buttons for quantity inputs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* Disable hover effects for specific cards (like Order Summary) */
.card-custom.no-hover:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* Accent Utility Classes */
.text-accent {
  color: var(--accent-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

.border-accent {
  border-color: var(--accent-color) !important;
}





/* --- Hide Carousel Controls on Mobile --- */
@media (max-width: 767.98px) {

  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* --- CRO Layout Updates --- */
.hero-section {
  height: 60vh !important;
  max-height: 500px !important;
  min-height: 0 !important;
  background-size: cover !important;
  background-position: center !important;
}

.hero-title {
  margin-bottom: 0.5rem !important;
}

.hero-content .lead {
  margin-bottom: 1rem !important;
}

/* Pull-Up Overlap Trick */
.hero-section+section {
  margin-top: -60px !important;
  position: relative !important;
  z-index: 10 !important;
}

@media (max-width: 768px) {

  .hero-section,
  .hero-section-carousel,
  .hero-section-carousel .carousel-inner,
  .hero-section-carousel .carousel-item {
    height: 45vh !important;
    max-height: 350px !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-section+section {
    margin-top: -40px !important;
  }
}

/* --- CRITICAL BUG FIX: Mobile Hero Height --- */
@media (max-width: 991px) {

  .hero-section,
  .hero-section-carousel,
  .hero-section-carousel .carousel-inner,
  .hero-section-carousel .carousel-item {
    height: 45vh !important;
    min-height: 350px !important;
    max-height: 400px !important;
  }

  .hero-section {
    padding: 2rem 0 !important;
    display: flex !important;
    align-items: center !important;
  }
}


.carousel button {
  background-color: transparent !important;
}

/* --- Featured Product Card Zoom & Add to Cart styling --- */
.card-custom:not(.card-category) {
  overflow: hidden;
}

.card-custom:not(.card-category)>a {
  display: block;
  overflow: hidden;
  position: relative;
}

.card-custom:not(.card-category)>a .card-img-top {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-custom:not(.card-category)>a:hover .card-img-top {
  transform: scale(1.08) !important;
}

/* Add to Cart button customization */
.bg-btn {
  background-color: var(--accent-color) !important;
  color: var(--bg-color) !important;
  border-color: var(--accent-color) !important;
}

.bg-btn:hover {
  color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  transition: var(--transition);
  background-color: transparent !important;
}

.add-to-cart-btn {
  color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  transition: var(--transition);
  background-color: transparent !important;
}

.add-to-cart-btn:hover {
  background-color: var(--accent-color) !important;
  color: var(--bg-color) !important;
  border-color: var(--accent-color) !important;
}

/* --- Dynamic Header width & styling fix --- */
.site-header {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background-color: var(--bg-color) !important;
  margin: 0 !important;
}

.site-header>header {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Dynamic current menu item style matching Bootstrap active */
.navbar-nav .current-menu-item>.nav-link,
.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 500;
}

body.page-template-page-contact {
  background-color: transparent !important;
}

.custom-logo-link img {
  max-width: 250px !important;
}

.card {
  border: none !important;
}

.card>a {
  border: 1px solid var(--accent-color);
  padding: 15px;
  border-radius: 15px;
}

.card>a img {
  border-radius: 15px;
}

.form-check .form-check-input:checked[type=checkbox] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 5px;
}

.form-check .form-check-input::after {
  border: 3px solid white !important;
  border-top: 0 !important;
  border-left: 0 !important;
  left: 6.5px;
  top: 2px;
  scale: 0.9;
}

.form-check-input {
  width: 1.05em !important;
  height: 1.05em !important;
  border: 1px solid rgba(33, 37, 41, 0.75) !important;
}

.sidebar-filter .form-check-label {
  margin: 0 !important;
}

.form-check .form-check-input:checked[type=radio] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
  border: 1px solid rgba(33, 37, 41, 0.75) !important;

}

.form-check .form-check-input:checked[type=radio]::after {
  content: unset !important;
}


.woocommerce-breadcrumb {
  margin: 0 !important;
}

.woocommerce-breadcrumb a {
  text-decoration: none !important;
}

.star-rating {
  margin-bottom: 5px;
}

.card-price del {
  color: gray;
}

.price-wrap del {
  color: gray;
  font-size: 1.7rem;
}

.card-price ins {
  text-decoration: none !important;
}

.price-wrap ins {
  font-size: 1.7rem;
  text-decoration: none !important;
}

.badge {
  background-color: #C15C3D !important;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.carousel-control-next span,
.carousel-control-prev span {
  background-size: 70%;
  background-position-x: 5px;
}

.carousel-control-next span {
  background-position-x: 8px;
}

.shop-page {
  margin-bottom: 3rem;
}

.added_to_cart {
  display: none;
}

.footer .custom-logo-link {
  margin-left: -3px;
  margin-bottom: 15px;
  display: block;
}

/* Fix WooCommerce Account Page layout width in Twenty Twenty-One child theme */
.woocommerce-account .entry-content {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.woocommerce-account .woocommerce {
  width: 100% !important;
}

.woocommerce-account .woocommerce {
  margin: 0 !important;
  max-width: 100% !important;
}

.account-sidebar button {
  background: none !important;
  color: #333333 !important;
  /* padding: 10px 15px; */
}

.account-sidebar button.active {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  border-left-color: var(--primary-color) !important;
  background-color: rgba(27, 77, 62, 0.05) !important;
}