/* Quality Roots CSS */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400&display=swap');

@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/Geomanist-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Simple Thread';
  src: url('../fonts/simple_thread.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
/* Utility class for Simple Thread font */
.font-simple-thread {
  font-family: 'Simple Thread', system-ui, -apple-system, sans-serif;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/outfit.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Utility class for Outfit font */
.font-outfit {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/Geomanist-Regular.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/Geomanist-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geomanist';
  src: url('../fonts/Geomanist-Ultra.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}


/* ─────────────────────────────────────────────────────────────────
   1. Variables & Root
───────────────────────────────────────────────────────────────── */
:root {
  /* Font stacks */
  --font-family-base:    'Geomanist', system-ui, -apple-system, sans-serif;
  --font-family-heading: 'Geomanist', system-ui, -apple-system, sans-serif;
  --font-family-accent:  'Roboto Mono', monospace;

  /* Font weights */
  --font-weight-book:    400;
  --font-weight-regular: 500;
  --font-weight-bold:    700;
  --font-weight-ultra:   900;

  /* Colors */
  --color-primary:      #2B6934;
  --color-secondary:    #87C65F;
  --color-accent:       #DB6926;
  --color-beige:        #ECE7D5;
  --color-dark:         #263238;
  --color-light:        #ECEFF1;
  --color-text:         #212121;
  --color-text-muted:   #757575;
  --color-border:       #E0E0E0;

  /* Quality Roots Theme Colors */
  --qr-primary:         #253529;
  --qr-secondary:       #385542;
  --qr-accent:          #A8C37E;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 6px rgba(32, 54, 40, 0.07),
               0 0.5px 2px rgba(32, 54, 40, 0.04);

  /* Nav spacer */
  --nav-stack-height: 145px;
}

/* Mobile override */
@media (max-width: 639px) {
  :root {
    --nav-stack-height: 110px;
  }
}


/* ─────────────────────────────────────────────────────────────────
   2. HTML/BODY Reset & Layout
───────────────────────────────────────────────────────────────── */
html, body {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-family-base);
  color: var(--color-text);
  background: #f6f8f7;
  margin: 0;
  padding: 0;
}

body {
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  min-height: 100dvh;
}


/* ─────────────────────────────────────────────────────────────────
   3. Full-Bleed Utility
───────────────────────────────────────────────────────────────── */
.full-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}


/* ─────────────────────────────────────────────────────────────────
   4. Font-Family Utilities
───────────────────────────────────────────────────────────────── */
.font-geomanist-book    { font-family: var(--font-family-base);       font-weight: var(--font-weight-book);    }
.font-geomanist-regular { font-family: var(--font-family-base);       font-weight: var(--font-weight-regular); }
.font-geomanist-bold    { font-family: var(--font-family-heading);    font-weight: var(--font-weight-bold);    }
.font-geomanist-ultra   { font-family: var(--font-family-heading);    font-weight: var(--font-weight-ultra);   }


/* ─────────────────────────────────────────────────────────────────
   5. Nav-Spacer Helper
───────────────────────────────────────────────────────────────── */
.main-content-spacer {
  height: var(--nav-stack-height);
  display: block;
}


/* ─────────────────────────────────────────────────────────────────
   6. Accent Utilities
───────────────────────────────────────────────────────────────── */
.bg-accent   { background-color: var(--color-accent); }
.text-accent { color: var(--color-accent);            }


/* ─────────────────────────────────────────────────────────────────
   7. Shadow Utility
───────────────────────────────────────────────────────────────── */
.shadow-3xl {
  box-shadow: 0 35px 60px -12px rgba(0,0,0,0.25),
              0 0 0 1px rgba(236,231,213,0.1);
}


/* ─────────────────────────────────────────────────────────────────
   8. Responsive Helpers
───────────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .main-content-spacer {
    height: var(--nav-stack-height);
  }
}

/* 3. Base Styles */
html, body {
  max-width: 100vw !important;
  font-size: 1rem !important;
  color: var(--color-text) !important;
  background-color: white !important;
  line-height: 1.6 !important;
}

.geomanist-regular {
  font-family: 'Geomanist', system-ui, -apple-system, sans-serif !important;
  font-weight: 500 !important;
}
.geomanist-bold {
  font-family: 'Geomanist', system-ui, -apple-system, sans-serif !important;
  font-weight: 700 !important;
}

.geomanist-book {
  font-family: 'Geomanist', system-ui, -apple-system, sans-serif !important;
  font-weight: 400 !important;
}

.geomanist-ultra {
  font-family: 'Geomanist', system-ui, -apple-system, sans-serif !important;
  font-weight: 900 !important;
}

.bg-brand {
  background-color: #2B6934 !important; /* or your primary color hex */
}

.bg-beige {
  background-color: #ECE7D5 !important; /* or your beige color hex */
}

.bg-accent {
  background-color: #DB6926 !important; /* or your accent color hex */
}

.clearance-price {
  /* If you use Tailwind's @apply, use a preprocessor. Otherwise: */
  color: #dc2626 !important; /* Tailwind's red-600 */
  font-weight: 700 !important;
}

/*─────────────────────────────────────────────
  2) Utility Resets
─────────────────────────────────────────────*/
[x-cloak] {
  display: none !important;
}

/* Links: no underlines, ever */
a, a:visited {
  text-decoration: none;
}
a:hover, a:focus, a:active {
  text-decoration: none !important;
}

/* Header Search Form */
.header-search-form {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

/* Underline styles */
.search-underline {
  position: relative;
  padding-bottom: 1px;
  background: transparent;
  min-height: 40px;
}
.search-underline-bar {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
  transition: background 0.2s;
}
.search-underline input:focus + .search-underline-bar,
.search-underline input:not(:placeholder-shown) + .search-underline-bar {
  background: var(--color-primary);
}
.search-underline input {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  width: 100%;
  font-size: 1rem;
  padding: 0;
  margin: 0;
  height: 38px;
  line-height: 1.2;
  color: var(--color-primary);
  font-family: 'Geomanist', system-ui, -apple-system, sans-serif;
  font-weight: 500;
}

/* Search result hover and highlight */
.search-result-hover:hover,
.search-result-highlighted,
.group:hover .search-result-hover {
  /* Use primary color at 12% opacity for accessible hover, and force readable text */
  background: rgba(37, 53, 41, 0.12) !important; /* fallback for --color-primary */
  background: color-mix(in srgb, var(--color-primary) 12%, transparent) !important;
  color: var(--color-primary) !important;
}
.search-result-highlighted {
  background: rgba(37, 53, 41, 0.12) !important;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent) !important;
  color: var(--color-primary) !important;
}

/* Make the arrow icon always primary color and visible on hover/highlight */
.search-result-hover:hover .bi-arrow-return-right,
.search-result-highlighted .bi-arrow-return-right {
  opacity: 1 !important;
  color: var(--color-primary) !important;
}
.search-result-hover .bi-arrow-return-right,
.search-result-highlighted .bi-arrow-return-right {
  color: var(--color-primary) !important;
}

/* Remove native search X icon */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
input[type="search"]::-webkit-search-decoration {
  display: none;
}
input[type="search"]::-ms-clear {
  display: none;
}

/*─────────────────────────────────────────────
  4) Base Typography
─────────────────────────────────────────────*/

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

/* Accent text utility */
.text-accent {
  font-family: var(--font-family-accent);
  font-weight: 400;
  color: var(--color-accent) !important;
}

/* Accent text utility */
.footer-text {
  font-family: var(--font-family-accent);
  font-weight: 400;
  color: white;
}

.subnav-link {
  font-family: var(--font-family-base), sans-serif !important;
  font-weight: var(--font-weight-bold) !important;
  letter-spacing: 0.04em;
  font-size: 1.05em;
  text-transform: uppercase;
}
/*─────────────────────────────────────────────
  5) Global Components & Utilities
─────────────────────────────────────────────*/
/* Swiper / category-slider overrides */
.category-swiper .swiper-slide h3 {
  color: #fff !important;
}

/* Force Geomanist Bold on desktop sub-nav links */
@media (min-width: 768px) {
  nav.bg-white.border-b ul.flex > li > a {
    font-family: 'Geomanist', system-ui, -apple-system, sans-serif !important;
    font-weight: normal; /* weight baked into face */
  }
}

/* Search underline styles */
.search-underline {
  position: relative;
  padding-bottom: 2px;
  background: transparent;
}
.search-underline-bar {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
  transition: background 0.2s;
}
.search-underline input:focus + .search-underline-bar,
.search-underline input:not(:placeholder-shown) + .search-underline-bar {
  background: var(--color-primary);
}
.search-underline input {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  width: 100%;
  font-size: 1rem;
  padding: 0.6rem 0 .3rem 0;
  color: var(--color-primary);
  font-family: 'Geomanist', system-ui, -apple-system, sans-serif;
  font-weight: 500;
}

/* JS-controlled active state for Add to Bag button (fixes mobile Safari sticky :active) */
.add-to-bag-btn.active {
  background-color: var(--color-primary);
  color: #ECE7D5;
  transform: scale(0.95);
}

/* Search result hover and highlight */
.search-result-hover:hover,
.search-result-highlighted,
.group:hover .search-result-hover {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
}
.search-result-highlighted {
  background: var(--color-accent) !important;
  color: var(--color-primary) !important;
}
.search-result-hover:hover .bi-arrow-return-right,
.search-result-highlighted .bi-arrow-return-right {
  opacity: 1 !important;
  color: var(--color-accent) !important;
}
.search-result-hover .bi-arrow-return-right {
  color: var(--color-accent);
}

@media (min-width: 768px) {
  .search-underline input {
    font-size: 1.1rem;
  }
}




/*─────────────────────────────────────────────────────────────────────
  Buttons — unified style (scoped to specific classes)
─────────────────────────────────────────────────────────────────────*/
.btn,
.btn-primary,
.add-to-cart-btn,
.shop-now-btn {
  display: inline-block;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-bold);
  background-color: var(--btn-bg) !important;
  border: none !important;
  padding: var(--spacing-sm) var(--spacing-md);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
  text-align: center;
  text-decoration: none;
}


/*─────────────────────────────────────────────────────────────────────
  Utility Classes
─────────────────────────────────────────────────────────────────────*/
.page-bg {
  background-color: #ECE7D5;
}
.text-brand {
  color: var(--color-primary) !important;
}


/*─────────────────────────────────────────────────────────────────────
  Card (non-product-card, generic card)
─────────────────────────────────────────────────────────────────────*/
.card {
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .3s;
  --font-family-base: Inter, Poppins, system-ui, -apple-system, sans-serif;
  --font-family-heading: Inter, Poppins, system-ui, -apple-system, sans-serif;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: auto;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background-color: var(--bg-light);
}

.stock-badge {
  background-color: var(--success);
  color: var(--text-light);
  font-size: .75rem;
  padding: .25em .5em;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
}

/*─────────────────────────────────────────────────────────────────────
  Category Swiper Alignment & Spacing
─────────────────────────────────────────────────────────────────────*/
.category-swiper {
  overflow: hidden;
  padding-right: 0;
}
.category-swiper .swiper-wrapper {
  display: flex;
  gap: 0.5rem !important;
  align-items: stretch;
}
.category-swiper .swiper-slide {
  flex: 0 0 auto !important;
  width: auto !important;
  display: flex !important;
  align-items: stretch;
}
.product-swiper .swiper-button-prev,
.product-swiper .swiper-button-next {
  display: none !important;
}
@media (min-width: 992px) {
  .category-swiper .swiper-wrapper {
    gap: 1px !important;
  }
}

/*─────────────────────────────────────────────────────────────────────
  Bootstrap Overrides
─────────────────────────────────────────────────────────────────────*/
.border-2 {
  border-width: 2px !important;
}
.border-primary {
  border-color: var(--primary) !important;
}
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--btn-color) !important;
}
.btn-primary:hover {
  background-color: var(--btn-bg-hover) !important;
}

/*─────────────────────────────────────────────────────────────────────
  Species Button Styles
─────────────────────────────────────────────────────────────────────*/
.species-btn.lifted {
  background-color: var(--lifted-color);
  color: white;
}
.species-btn.balanced {
  background-color: var(--balanced-color);
  color: white;
}
.species-btn.grounded {
  background-color: var(--grounded-color);
  color: white;
}

/*─────────────────────────────────────────────────────────────────────
  Tablet Species Tags (NO DUPLICATES)
─────────────────────────────────────────────────────────────────────*/
.tablet-species-tag {
  font-size: 0.688rem;
  padding: 4px 12px;
  line-height: 16px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tablet-species-tag.lifted {
  background-color: rgba(168, 195, 126, 0.95) !important;
  color: #ffffff !important;
}
.tablet-species-tag.grounded {
  background-color: rgba(37, 53, 41, 0.95) !important;
  color: #ffffff !important;
}
.tablet-species-tag.balanced {
  background-color: rgba(35, 76, 76, 0.95) !important;
  color: #ffffff !important;
}

/* Species-specific colors for inline style override */
.tablet-species-tag[style*="background-color: #A8C37E"] {
  background-color: #A8C37E !important;
  color: #ffffff !important;
}
.tablet-species-tag[style*="background-color: #253529"] {
  background-color: #253529 !important;
  color: #ffffff !important;
}
.tablet-species-tag[style*="background-color: #234C4C"] {
  background-color: #234C4C !important;
  color: #ffffff !important;
}

/*─────────────────────────────────────────────────────────────────────
  Constrain featured image size on product detail
─────────────────────────────────────────────────────────────────────*/
.product-image-wrapper img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ─── 1) Reserve the aspect ratio immediately ─── */
.product-image-container {
  /* modern browsers: lock to 1:1 */
  aspect-ratio: 1 / 1;

  /* fallback for older browsers */
  position: relative;
  overflow: hidden;
}
.product-image-container::before {
  content: "";
  display: block;
  padding-bottom: 100%; /* 1:1 aspect ratio fallback */
}

/* ─── 2) Make the <img> fill its reserved box cleanly ─── */
.product-image {
  display: block;          /* eliminate inline‑image whitespace */
  position: absolute;      /* fill the container */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* center‑crop without distortion */
  background: white;     /* gray placeholder while loading */
}

/* ─── 3) (Optional) Extra stability/performance ─── */
/* content‑visibility reserves the intrinsic size before download */
.product-image {
  content-visibility: auto;
  /* choose your average card size here */
  contain-intrinsic-size: 300px 300px;
}

/*─────────────────────────────────────────────────────────────────────
  Navbar customizations
─────────────────────────────────────────────────────────────────────*/
.navbar-custom {
  position: relative;
  z-index: 1100;
  background: linear-gradient(135deg, var(--primary) 0%, #24443c 100%);
  padding: 1rem 0 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.navbar-custom .navbar-brand img {
  height: 40px;
}
.navbar-custom .nav-link {
  padding: .5rem 1rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
}

/*─────────────────────────────────────────────────────────────────────
  Cart Styles
─────────────────────────────────────────────────────────────────────*/
#checkout-button {
  background-color: var(--color-primary) !important;
  color: white !important;
  transition: all 0.2s ease;
}
#checkout-button:hover:not(.disabled) {
  background-color: var(--color-primary) !important;
}
#checkout-button.disabled {
  background-color: #9ca3af !important;
  cursor: not-allowed;
  opacity: 0.5;
}

/*─────────────────────────────────────────────────────────────────────
  Toast Notification Styles
─────────────────────────────────────────────────────────────────────*/
.toast-container {
  position: fixed;
  top: 7.5rem;               /* space from the top */
  left: 50%;               /* center horizontally */
  transform: translateX(-50%);
  z-index: 999999;
  width: 100%;
  max-width: 24rem;
  pointer-events: none;    /* allows clicks through to page below */
}

.toast {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1),
              0 2px 4px -1px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s ease-out;
  border-left: 4px solid;
  pointer-events: auto;    /* allow interaction with toast itself */

}
.toast-success { border-left-color: #A8C37E; }
.toast-error   { border-left-color: #dc2626; }
.toast-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-content { flex: 1; }
.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-primary) !important;
  font-family: 'Inter', sans-serif;
}
.toast-message {
  color: #4b5563;
  font-size: 0.875rem;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/*─────────────────────────────────────────────────────────────────────
  Brand and Category Styles
─────────────────────────────────────────────────────────────────────*/
.brand-category-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
/*─────────────────────────────────────────────────────────────────────
  Product image container (for other uses, not product-card)
─────────────────────────────────────────────────────────────────────*/
.product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  max-width: 100%;
  max-height: 100%;
  will-change: transform;
}
.product-image-container img:not([src]),
.product-image-container img[src=""],
.product-image-container img[src="null"] {
  display: none;
}

/*─────────────────────────────────────────────────────────────────────
  Responsive adjustments
─────────────────────────────────────────────────────────────────────*/
.category-swiper {
  width: 100%;
  padding: 16px 0;
  overflow: hidden;
}
.category-swiper .swiper-slide {
  width: 240px;
}
.category-swiper .swiper-button-next,
.category-swiper .swiper-button-prev {
  color: var(--primary-dark);
  top: 50%;
  transform: translateY(-50%);
}
.category-swiper .swiper-button-next:after,
.category-swiper .swiper-button-prev:after {
  font-size: 20px;
}
@media (max-width: 640px) {
  .category-swiper .swiper-slide {
    width: 240px;
  }
}

.sticky nav {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/*─────────────────────────────────────────────────────────────────────
  THC Display Styles
─────────────────────────────────────────────────────────────────────*/
.thc-display {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .375rem .75rem;
  border-radius: .375rem;
}

.thc-value {
  font-size: .875rem;
  font-weight: 600;
  color: #2c3a1e;
  min-width: 2.5rem;
  text-align: right;
}

.thc-unit {
  font-size: .813rem;
  font-weight: 500;
  color: #64748b;
  margin-left: 2px;
}

/* Tablet-specific tweaks */
@media (min-width: 768px) and (max-width: 1023px) {
  .tablet-product-name {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
  }
  .tablet-product-details {
    font-size: .813rem;
    line-height: 1.25rem;
  }
  .tablet-spacing {
    padding: 1.25rem;
  }
  .tablet-price {
    font-size: 1.125rem;
    line-height: 1.5rem;
  }
  .thc-display {
    gap: .5rem;
  }
  .thc-bar-container {
    width: 52px;
    height: 5px;
  }
  .thc-value {
    font-size: .813rem;
  }
  .thc-unit {
    font-size: .75rem;
  }
}

.product-image {
  content-visibility: auto;
  contain-intrinsic-size: 300px 300px;
}

/* Mobile Product Swiper Styles */
@media (max-width: 639px) {
  .product-swiper {
    margin: 0 -1rem;
    padding: 0 1rem;
    overflow: hidden;
  }
  .product-swiper .swiper-wrapper {
    padding-left: 0;
    margin-left: -1rem;
  }
  .product-swiper .swiper-slide {
    width: 280px !important;
    margin-right: 16px;
    padding-left: 1rem;
  }
  .product-swiper .swiper-slide:last-child {
    margin-right: 0;
  }
  .product-swiper .swiper-slide .grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }
  .product-swiper .swiper-slide .grid > div {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .product-swiper .swiper-slide .grid > div:not(:first-child) {
    display: none;
  }
}

@media (max-width: 639px) {
  .product-swiper .swiper-slide > .grid {
    display: block !important;
    gap: 0 !important;
  }
  .product-swiper .swiper-slide > .grid > div:not(:first-child) {
    display: none !important;
  }
}


/*─────────────────────────────────────────────────────────────────────
  Product Card Component Styles
─────────────────────────────────────────────────────────────────────*/
.product-card {
  width: 100%;
  max-width: 100%;
  height: 100%;
  position: relative;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #203628;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(32, 54, 40, 0.07), 0 0.5px 2px rgba(32, 54, 40, 0.04);
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.product-image-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  background: #fff;
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
  transition: transform 0.3s ease;
  will-change: transform;
}

.product-image:not([src]),
.product-image[src=""],
.product-image[src="null"] {
  display: none;
}

.status-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 4px 12px;
  font-size: 0.688rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 9999px;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.status-tag.clearance {
  background-color: rgba(220, 38, 38, 0.95);
  color: white;
}

.product-card .price.clearance-price {
  color: #dc2626 !important;
}

.status-tag.new {
  background-color: rgba(34, 197, 94, 0.95);
  color: white;
}

.tablet-species-tag {
  font-size: 0.688rem;
  padding: 4px 12px;
  line-height: 16px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 20;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tablet-species-tag.lifted {
  background-color: rgba(168, 195, 126, 0.95) !important;
  color: #ffffff !important;
}
.tablet-species-tag.grounded {
  background-color: rgba(37, 53, 41, 0.95) !important;
  color: #ffffff !important;
}
.tablet-species-tag.balanced {
  background-color: rgba(35, 76, 76, 0.95) !important;
  color: #ffffff !important;
}

.category-text {
  font-family: 'Outfit', 'font-outfit', sans-serif !important;
  color: #234C4C;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  margin-bottom: 0.15rem;
  letter-spacing: 0.05em;

}

.brand-text {
  font-family: 'Outfit', 'font-outfit', sans-serif !important;
  text-decoration: none;
  color: #DB6926;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  letter-spacing: 0.05em;
}

.fi-product-image-container {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
}
.fi-product-image-container::before {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.fi-product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  content-visibility: auto;
  contain-intrinsic-size: 300px 300px;
}
.geomanist-bold {
  font-family: 'Geomanist', system-ui, -apple-system, sans-serif !important;
  font-weight: 700 !important;
}
/* Deal badge area - always reserves space for consistent card heights */
.deal-badge-area {
  min-height: 28px;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

/* -- FIXED BADGE STYLES -- */
.deal-badge {
  min-width: 64px;
  min-height: 28px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  font-size: 1rem;
  margin-left: 0;
  letter-spacing: 0.01em;
  padding: 4px 12px;
  box-sizing: border-box;
  transition: box-shadow 0.15s cubic-bezier(.4,0,.2,1),transform 0.15s cubic-bezier(.4,0,.2,1);
  background: #2B6934 !important;
  color: #2B6934 !important;
  border: 1.5px solid var(--primary-text-color, #253529) !important;
  box-shadow: none !important;
  vertical-align: middle;
}

.deal-badge:hover, .deal-badge:focus {
  box-shadow: none !important;
  transform: scale(1.03);
}
.price {
  font-size: 1.25rem;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-book);
  color: #2B6934;
  display: flex;
  align-items: center;
}
.quantity-input {
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
}
.add-to-bag-btn {
  transform: translateZ(0);
  backface-visibility: hidden;
}
@media (max-width: 640px) {
  .deal-badge-area {
    min-height: 24px;
    margin-bottom: 0.5rem;
  }
  .deal-badge {
    min-width: 52px;
    min-height: 22px;
    font-size: 0.83rem;
    padding: 3px 8px;
  }
  .price {
    font-size: 1.1rem;
  }
  .product-card .flex-1 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
@media (max-width: 420px) {
  .deal-badge {
    min-width: 38px;
    min-height: 18px;
    font-size: 0.7rem;
    padding: 2px 4px;
  }
  .price {
    font-size: 1rem;
  }
  .product-card .flex-1 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  @media (max-width: 320px) {
    .flex.justify-between.items-center.gap-3 {
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
    }
    .flex-shrink-0 {
      align-self: flex-end;
    }
  }
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #203628;
  outline-offset: 2px;
}
.clearance-price {
  color: #dc2626 !important;
}
/*─────────────────────────────────────────────────────────────────────
  Other product card styles
─────────────────────────────────────────────────────────────────────*/

.product-card .truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Price and Quantity Controls */
.product-card .price {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-bold);
  font-size: 1.125rem;
  color: #2B6934;
  white-space: nowrap;
}
.product-card .quantity-controls,
.product-card .quantity-input,
.product-card .quantity-btn {
  font-family: inherit;
}

/* Quantity input & buttons */
.product-card input[type="number"] {
  width: 2rem;
  height: 2rem;
  text-align: center;
  border: 0px solid #203628;
  outline: none;
  background: white;
  font-size: 1rem;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}
.product-card input[type="number"]:focus {
  border-color: #203628;
  outline: none;
  box-shadow: none;
}

@media (max-width: 639px) {
  .product-card {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .product-image-container {
    border-radius: 0;
  }
}

/*─────────────────────────────────────────────────────────────────────
  Add‑to‑Bag Button — Branded Outline & Stable Hover Fill
─────────────────────────────────────────────────────────────────────*/
.add-to-bag-btn {
  /* Typography */
  font-family:    var(--font-family-primary) !important;
  font-weight:    var(--font-weight-bold)  !important;

  /* Outline default */
  background-color: transparent;
  color:            var(--color-primary);
  border:           1px solid var(--color-primary);

  /* Size & shape */
  width:            100%;
  height:           3rem;
  padding:          0 1rem;
  border-radius:    9999px;

  /* Layout */
  display:          flex;
  align-items:      center;
  justify-content:  center;
  gap:              0.5rem;

  /* Smooth transition */
  transition: background-color 0.2s ease,
              color            0.2s ease,
              transform        0.1s ease;
}

/* Hover & Active: fill and keep text/icon color consistent */
/* Only use .active for pressed state, not :active, to avoid mobile Safari bugs */
.add-to-bag-btn:hover {
  background-color: var(--color-accent);
  color:            #ECE7D5;
  transform:        scale(0.95);
}
.add-to-bag-btn.active {
  background-color: var(--color-accent) !important;
  color: #ECE7D5 !important;
  transform: scale(0.95) !important;
}

/* Icon swap on hover & active */
.add-to-bag-btn:hover .bag-icon-dark,
.add-to-bag-btn.active .bag-icon-dark {
  display: none !important;
}
.add-to-bag-btn:hover .bag-icon-light,
.add-to-bag-btn.active .bag-icon-light {
  display: inline-block !important;
}

/* Remove default focus outline (if you add a custom ring, handle separately) */
.add-to-bag-btn:focus {
  outline: none;
}

/* Responsive: Slightly smaller font, padding on mobile to avoid wrapping */
@media (max-width: 640px) {
  .add-to-bag-btn {
    font-size: 0.98rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    max-width: 100%;
  }
}

/* PRODUCT DETAIL PAGE */
.product-title {
      font-family:    var(--font-family-base) !important;
      font-weight: var(--font-weight-bold);
      margin-bottom: 0.25rem;
      font-size: 1.5rem;
      line-height: 1.2;
      letter-spacing: -0.01em;
      color: var(--color-primary, #203628);
    }
    @media (min-width: 768px) {
      .product-title {
        font-size: 2.25rem;
      }
    }
    .price-display {
      font-family: var(--font-family-base);
      font-weight: var(--font-weight-bold);
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: #385542;
    }

    @media (min-width: 768px) {
      .price-display {
        font-size: 1.75rem;
      }
    }
    .product-brand {
      font-family:    var(--font-family-base) !important;
      font-weight: var(--font-weight-bold);
      color: #DB6926;
      font-size: 1rem !important;
      margin-bottom: 0.5rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }
    @media (min-width: 768px) {
      .product-brand {
        font-size: .75rem;
        margin-bottom: 0.75rem;
      }
    }
    .section-heading {
      font-size: 1.125rem;
      color: #2B6934;
      margin-bottom: 0.75rem;
      letter-spacing: 0.01em;
    }
    @media (min-width: 768px) {
      .section-heading {
        font-size: 1.25rem;
        margin-bottom: 1rem;
      }
    }
    .specs-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem;
      margin-bottom: 1.25rem;
    }
    @media (min-width: 640px) {
      .specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
      }
    }
    @media (min-width: 1024px) {
      .specs-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }
    .spec-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      background: #a3c383;
      padding: 0.75rem;
      border-radius: 0.5rem;
    }
    .spec-icon {
      font-size: 1.125rem;
      color: #a3c383;
      width: 1.5rem;
      text-align: center;
    }
    .spec-label {
      font-size: 0.75rem;
      text-transform: uppercase;
      color: var(--text-secondary);
      margin-bottom: 0.125rem;
    }
    .spec-value {
      font-size: 0.875rem;
      font-weight: var(--font-weight-medium);
      color: var(--color-primary);
    }
    @media (max-width: 768px) {
      .product-image-wrapper {
        padding-bottom: 5%;
        max-width: 100%;
      }
    }

    /*──────────────────────────────────────────────────────────────────
      Quantity Input Fixes
    ──────────────────────────────────────────────────────────────────*/
    .quantity-input {
      border-left: 1px solid #203628 !important;
      border-right: 1px solid #203628 !important;
      border-top: none !important;
      border-bottom: none !important;
      outline: none !important;
      box-shadow: none !important;
      background: white;
      height: 2rem;
      width: 3rem;
      text-align: center;
      font-size: 1rem;
      -webkit-box-shadow: 0 0 0px 1000px white inset !important;
      box-shadow: 0 0 0px 1000px transparent inset !important;
    }
    .quantity-input:focus, .quantity-input:active {
      outline: none !important;
      box-shadow: none !important;
      border-color: #203628 !important;
      background: white;
    }
    .quantity-input::-webkit-outer-spin-button,
    .quantity-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    .quantity-input[type=number] {
      -moz-appearance: textfield;
    }

    @media (max-width: 1023px) {
      .page-content {
        padding-bottom: 5.5rem;
      }
      .mobile-cta-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 40;
        transition: transform 0.3s ease;
      }
      .mobile-cta-sticky.cart-open {
        transform: translateY(100%);
      }
    }

    @media (max-width: 768px) {
      .product-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
      }
      .price-display {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
      }
      .specs-grid {
        gap: 0.5rem;
        margin-bottom: 1rem;
      }
      .spec-item {
        padding: 0.5rem;
      }
    }
    /* FEATURED PRODUCTS SECTION */
     .featured-products {
      font-family: var(--font-family-base);
      font-weight: var(--font-weight-bold);
      color: #203628;
      letter-spacing: -0.01em;
      text-transform: capitalize; /* or uppercase, or remove */
      margin-bottom: 1.25rem;
      font-size: 1.25rem;
      line-height: 1.2;
    }
    @media (min-width: 480px) {
      .featured-products {
        font-size: 1.5rem;
      }
    }
    @media (min-width: 768px) {
      .featured-products {
        font-size: 2rem;
      }
    }
    @media (min-width: 1024px) {
      .featured-products {
        font-size: 2.25rem;
      }
    }

/*─────────────────────────────────────────────────────────────────────
  Product‑Detail "Add to Bag" — Outline Default & Hover/Active Fill
─────────────────────────────────────────────────────────────────────*/
.product-page-add-to-bag-btn {
  /* Typography */
  font-family:    var(--font-family-primary) !important;
  font-weight:    var(--font-weight-bold)  !important;

  /* Outline default */
  background-color: transparent       !important;
  color:            var(--color-primary)     !important;
  border:           1px solid var(--color-primary) !important;

  /* Size & shape */
  width:            100%;
  height:           3rem;
  padding:          0 1rem;
  border-radius:    9999px;

  /* Flex layout */
  display:          flex;
  align-items:      center;
  justify-content:  center;
  gap:              0.5rem;

  /* Smooth transitions */
  transition: background-color 0.2s ease,
              color            0.2s ease,
              transform        0.1s ease;
}

/* Default icon state */
.product-page-add-to-bag-btn .bag-icon-dark {
  display: inline-block !important;
}
.product-page-add-to-bag-btn .bag-icon-light {
  display: none          !important;
}

/* Hover & Active: fill + light text/icon */
.product-page-add-to-bag-btn:hover,
.product-page-add-to-bag-btn:active {
  background-color: var(--color-primary) !important;
  color:            #ECE7D5             !important;
  transform:        scale(0.95);  /* slight shrink on click */
}

/* Icon swap on hover/active */
.product-page-add-to-bag-btn:hover .bag-icon-dark,
.product-page-add-to-bag-btn:active .bag-icon-dark {
  display: none          !important;
}
.product-page-add-to-bag-btn:hover .bag-icon-light,
.product-page-add-to-bag-btn:active .bag-icon-light {
  display: inline-block !important;
}

/* Remove focus outline */
.product-page-add-to-bag-btn:focus {
  outline: none;
}


/* Cart Action Buttons: Checkout, Continue, Empty Cart CTA */
.cart-checkout-btn,
.cart-continue-btn,
.cart-empty-cta {
  background-color: var(--color-primary) !important;
  color: #fff !important;
  border: none !important;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
}

.cart-checkout-btn:hover,
.cart-continue-btn:hover,
.cart-empty-cta:hover {
  background-color: var(--color-secondary) !important;
}

/* 1) Make sure your cart sits above the toasts */
.cart-modal,
.cart-page {
  position: fixed;   /* or absolute, depending on your layout */
  z-index: 10000;
}

/* Enhanced shadow for hero */
  .shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(236, 231, 213, 0.1);
  }
  
  /* Smooth video loading */
  video {
    will-change: transform;
    backface-visibility: hidden;
  }
  
  /* Add xs breakpoint support for extra small screens */
  @media (min-width: 475px) {
    .xs\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .xs\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .xs\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
    .xs\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .xs\:py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
    .xs\:w-5 { width: 1.25rem; }
    .xs\:h-5 { height: 1.25rem; }
    .xs\:max-w-sm { max-width: 24rem; }
  }
  
  /* Enhanced desktop text sizes */
  @media (min-width: 1280px) {
    .xl\:text-7xl { font-size: 4.5rem; line-height: 1; }
  }
  
  @media (min-width: 1536px) {
    .\32xl\:text-8xl { font-size: 6rem; line-height: 1; }
  }
  
  /* Ensure text stays on one line on desktop */
  @media (min-width: 640px) {
    .hero-content h1 span {
      white-space: nowrap;
    }
  }
  
  /* Allow wrapping on mobile to prevent overflow */
  @media (max-width: 639px) {
    .hero-content h1 span {
      white-space: normal;
      word-wrap: break-word;
    }
  }
  
  /* Responsive circle effects */
  @media (max-width: 640px) {
    .absolute.w-40 { width: 6rem; height: 6rem; }
    .absolute.w-60 { width: 8rem; height: 8rem; }
    .absolute.w-52 { width: 7rem; height: 7rem; }
    .absolute.w-32 { width: 5rem; height: 5rem; }
  }
  
  /* Extra mobile optimizations */
  @media (max-width: 475px) {
    /* Ensure text doesn't overflow on very small screens */
    .hero-content h1 {
      word-break: break-word;
      hyphens: auto;
    }
    
    /* Adjust decorative circles for mobile */
    .absolute.-top-20 { top: -2rem; }
    .absolute.-left-20 { left: -2rem; }
    .absolute.-top-10 { top: -1rem; }
    .absolute.-right-10 { right: -1rem; }
    .absolute.-bottom-16 { bottom: -2rem; }
    .absolute.-left-16 { left: -2rem; }
    .absolute.-right-24 { right: -3rem; }
  }
  
  /* Hero content animation on load */
  @keyframes heroFadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero-content {
    animation: heroFadeIn 1s ease-out;
  }
  
  /* Prevent text selection on hero elements for better UX */
  .hero-content h1,
  .hero-content p {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

/* ---- CATEGORY PAGE STYLES ---- */
.category-header {
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 639px) {
  .category-header {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  .category-header h1 { font-size: 2rem !important; }
  .category-header p  { font-size: 1rem !important; }
}
/* Toast Animations */
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

/* Clearance price utility */
.clearance-price {
  @apply text-red-600 font-bold;
}

/* Sticky CTA transitions for mobile */
.mobile-cta-sticky {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  z-index: 1000;
  transform: translateY(0);
}
.mobile-cta-sticky--hidden {
  transform: translateY(100%);
}
/* Brand badge/text, etc */
.brand-text {
  letter-spacing: 0.03em;
}
/* Deal badge if you want more custom styling, otherwise use only Tailwind classes */

/* Optional: Responsive tweaks for .deal-badge if needed */
.deal-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Geomanist-Bold, Geomanist, sans-serif;
  font-weight: 700;
  border-radius: 9999px;
}

.deal-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  border: 1px solid #A8C37E;
  background-color: #F7F6F2;
  transition: all 0.2s ease;
  overflow: hidden;
  aspect-ratio: 5/2;
  width: 100%;
}

.deal-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-0.25rem);
}

.deal-card:focus {
  outline: none;
  ring: 0;
}

/* Deal card background gradients - you can customize these */
.deal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
  z-index: 1;
}

/* Deal content overlay */
.deal-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0.75rem 1.5rem 0.75rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.deal-title {
  color: white;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-size: 0.875rem;
  line-height: 1.25;
}

.deal-subtitle {
  color: white;
  font-weight: 500;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.2;
}


.deal-button {
  position: absolute;
  bottom: 1rem;
  right: 0.75rem;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  color: #203628;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  font-size: 0.875rem;
  transition: background-color 0.2s ease;
}

.deal-button:hover {
  background-color: white;
}

/* Responsive styles */
@media (min-width: 640px) {
  .deal-card {
    aspect-ratio: 4/3;
  }
  
  .deal-content {
    padding: 1rem 1rem 2rem 1rem;
  }
  
  .deal-title {
    font-size: 1rem;
  }
  
  .deal-subtitle {
    font-size: 0.875rem;
  }
  
  .deal-button {
    bottom: 1.5rem;
    right: 1rem;
    padding: 0.625rem 1.25rem;
  }
}

@media (min-width: 768px) {
  .deal-content {
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  }
  
  .deal-title {
    font-size: 1.125rem;
  }
  
  .deal-subtitle {
    font-size: 1rem;
  }
  
  .deal-button {
    bottom: 2rem;
    right: 1.5rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .deal-title {
    font-size: 1.25rem;
  }
  
  .deal-subtitle {
    font-size: 1.125rem;
  }
}

/* Grid styles */
.deals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .deals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .deals-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .deals-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* No deals message */
.no-deals {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 3rem 0;
}

.no-deals p {
  margin-bottom: 1rem;
}

.no-deals .return-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #203628;
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.no-deals .return-button:hover {
  background-color: #295140;
}

@media (max-width: 639px) {
  #categoryListView {
    display: block !important;
  }
  
  #categoryGridViewDesktop,
  #categoryListViewDesktop {
    display: none !important;
  }
}

/* Desktop: Hide mobile list view, show desktop views based on toggle */
@media (min-width: 640px) {
  #categoryListView {
    display: none !important;
  }
  
  /* Default to grid view on desktop */
  #categoryGridViewDesktop {
    display: block !important;
  }
  
  #categoryListViewDesktop {
    display: none !important;
  }
  
  /* When list view is active */
  .category-view-list #categoryGridViewDesktop {
    display: none !important;
  }
  
  .category-view-list #categoryListViewDesktop {
    display: block !important;
  }
}

/* View toggle buttons */
.view-toggle-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.view-toggle-btn.active {
  background-color: #203628 !important;
  color: white !important;
  border-color: #203628 !important;
}

.view-toggle-btn.inactive {
  background-color: white !important;
  color: #203628 !important;
  border: 1px solid #203628 !important;
}

/* 7. Category Page Styles */
.category-page {
  background-color: white;
  min-height: 100vh;
}

.category-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Section */
.category-header {
  padding: 2rem 0 3rem 0;
  text-align: center;
}

.category-header-content {
  max-width: 64rem;
  margin: 0 auto;
}

.category-breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #374151;
}

.breadcrumb-separator {
  width: 1rem;
  height: 1rem;
  margin: 0 0.5rem;
}

.breadcrumb-current {
  font-weight: 500;
  color: #111827;
}

.category-title {
  font-size: 1.875rem;
  color: #374151;
  margin-bottom: 0.75rem;
}

.category-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #6b7280;
}

.product-count {
  font-size: 1rem;
  color: #111827;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.count-number {
  color: #6b7280;
  font-weight: 400;
}

/* Controls Section */
.category-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1.5rem 0;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background-color: white;
  border: 1px solid #385542;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #385542;
  font-size: 1rem;
  line-height: 1;
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 40px;
}

.filter-button:hover {
  background-color: #D6E5C3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-button:focus {
  background-color: #385542;
  color: white;
  outline: none;
}

.filter-button:active {
  transform: scale(0.95);
}

.filter-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.filter-button:hover .filter-icon {
  transform: scale(1.1);
}

.filter-text {
  user-select: none;
}

.view-toggle-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
}

.view-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-right: 0.5rem;
  display: none;
}

.view-toggle-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  min-width: 40px;
  min-height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #203628;
  background-color: white;
  color: #203628;
}

.view-toggle-btn.active {
  background-color: #203628;
  color: white;
}

.view-icon {
  width: 1rem;
  height: 1rem;
}

.category-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #d1d5db, transparent);
  margin-bottom: 0.5rem;
}

/* Product Views */
.category-mobile-view {
  display: block;
  padding-bottom: 2rem;
}

.category-desktop-list,
.category-desktop-grid {
  display: none;
  padding-bottom: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Pagination */
.pagination-section {
  border-top: 1px solid #f3f4f6;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #203628;
  color: #203628;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-btn:hover {
  background-color: #203628;
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination-current {
  background-color: #203628;
  color: white;
  font-weight: 500;
}

.pagination-icon {
  width: 1rem;
  height: 1rem;
}

.pagination-prev .pagination-icon {
  margin-right: 0.25rem;
}

.pagination-next .pagination-icon {
  margin-left: 0.25rem;
}

.pagination-text {
  display: none;
}

/* No Products */
.no-products-section {
  padding: 4rem 0 6rem 0;
  text-align: center;
}

.no-products-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem auto;
  color: #d1d5db;
}

.no-products-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.5rem;
}

.no-products-text {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.no-products-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid #203628;
  color: #203628;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.no-products-button:hover {
  background-color: #203628;
  color: white;
}

/* Responsive Styles */
@media (min-width: 640px) {
  .category-container {
    padding: 0 1.5rem;
  }
  
  .category-header {
    padding: 3rem 0 4rem 0;
  }
  
  .category-breadcrumb {
    margin-bottom: 1.5rem;
  }
  
  .category-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  
  .category-subtitle {
    flex-direction: row;
    gap: 1rem;
    font-size: 1.125rem;
  }
  
  .product-count {
    font-size: 1.125rem;
  }
  
  .category-controls {
    padding: 1.5rem 0;
  }
  
  .pagination-controls {
    gap: 0.5rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 1rem;
  }
  
  .pagination-text {
    display: inline;
  }
  
  /* Show desktop view controls */
  .view-label {
    display: inline;
  }
  
  .view-toggle-btn {
    display: inline-flex;
  }
  
  /* Hide mobile view, show desktop views */
  .category-mobile-view {
    display: none;
  }
  
  .category-desktop-grid {
    display: block;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .category-container {
    padding: 0 2rem;
  }
  
  .category-title {
    font-size: 3rem;
  }
  
  .category-subtitle {
    font-size: 1.25rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .category-container {
    padding: 0 2rem;
  }
  
  .category-header {
    padding: 4rem 0;
  }
  
  .category-title {
    font-size: 3.75rem;
  }
  
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .category-title {
    font-size: 4.5rem;
  }
}

/* View State Management */
.category-view-list .category-desktop-grid {
  display: none !important;
}

.category-view-list .category-desktop-list {
  display: block !important;
}

.category-view-grid .category-desktop-list {
  display: none !important;
}

.category-view-grid .category-desktop-grid {
  display: block !important;
}

/* Mobile: Always show mobile view regardless of state */
@media (max-width: 639px) {
  .category-mobile-view {
    display: block !important;
  }
  
  .category-desktop-grid,
  .category-desktop-list {
    display: none !important;
  }
}