/* ─── Forever Living Products — Custom CSS ─────────────────────────────────
   Companion to TailwindCSS. Handles animations, glass-morphism header,
   product card hovers, and any utility that Tailwind CDN cannot cover.
   ─────────────────────────────────────────────────────────────────────────── */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  /* Brand Primary */
  --gold:         #FFC600;      /* Aloe Gold — PRIMARY */
  --gold-light:   #FFD740;      /* Lighter gold for hover/accent */
  --gold-dark:    #E6B200;      /* Darker gold for hover states */

  /* Brand Secondary */
  --green:        #74AA50;      /* Aloe Green */
  --brown:        #5D4B3C;      /* Earth Brown */
  --sky:          #4C95C8;      /* Sky Blue */

  /* UI Support */
  --pale:         #EEF6E8;      /* Light aloe green tint — card/image backgrounds */
  --cream:        #FAFAF5;      /* Warm cream — page background */
  --cream-dark:   #F0EDE4;      /* Slightly darker cream */
  --dark:         #1A1A1A;      /* Near-black text */
  --gray-med:     #6B7280;      /* Medium gray */
  --gray-light:   #F3F4F6;      /* Light gray */

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(93, 75, 60, 0.10);
  --shadow-hover: 0 12px 40px rgba(93, 75, 60, 0.20);
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.15;
}

/* ─── Floating Header ────────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
}

/* At top of page — transparent over hero */
#site-header.header-transparent {
  background: transparent;
  box-shadow: none;
}

/* Scrolled — solid white with blur */
#site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 24px rgba(93, 75, 60, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Nav link colors shift based on header state */
#site-header.header-transparent .nav-link { color: rgba(255,255,255,0.92); }
#site-header.header-transparent .nav-link:hover { color: #ffffff; }
#site-header.header-transparent .site-logo { color: #ffffff; }
#site-header.header-transparent .logo-tagline { color: rgba(255,255,255,0.75); }
#site-header.header-transparent .menu-btn { color: rgba(255,255,255,0.9); }

#site-header.header-scrolled .nav-link { color: var(--brown); }
#site-header.header-scrolled .nav-link:hover { color: var(--gold-dark); }
#site-header.header-scrolled .site-logo { color: var(--brown); }
#site-header.header-scrolled .logo-tagline { color: var(--gray-med); }
#site-header.header-scrolled .menu-btn { color: var(--brown); }

.nav-link {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-link.active { color: var(--gold-dark) !important; }

/* Mobile menu overlay */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--brown);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

#mobile-menu.open { display: flex; }

#mobile-menu .mob-link {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

#mobile-menu .mob-link:hover { color: var(--gold-light); }

/* ─── Hero Section ───────────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--brown);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  /* IMAGE PLACEHOLDER: replace this gradient with your hero image */
  background: linear-gradient(135deg, #5D4B3C 0%, #7a6354 40%, #3d2f25 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(93, 75, 60, 0.78) 0%,
    rgba(93, 75, 60, 0.55) 60%,
    rgba(40, 30, 22, 0.70) 100%);
}

/* ─── Section Headings ───────────────────────────────────────────────────── */
.section-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--brown);
  line-height: 1.15;
}

.section-title.light { color: #ffffff; }

/* ─── Product Cards ──────────────────────────────────────────────────────── */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card.out-of-stock { opacity: 0.72; }

.product-card.out-of-stock:hover { transform: none; box-shadow: var(--shadow-card); }

/* Product image area */
.product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 ratio */
  overflow: hidden;
  background: var(--pale);
  flex-shrink: 0;
}

.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrap img { transform: scale(1.04); }

/* Placeholder when no image */
.product-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pale) 0%, #d5ecca 100%);
  color: var(--green);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  padding: 1rem;
  gap: 0.5rem;
}

.product-img-placeholder svg {
  width: 40px; height: 40px;
  opacity: 0.5;
}

/* Badges */
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--gold);
  color: #1A1A1A;
  z-index: 2;
}

.badge-oos {
  background: #DC2626;
  color: white;
}

/* Card body */
.product-card-body {
  padding: 1.25rem 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.product-card-tagline {
  font-size: 0.78rem;
  color: var(--gray-med);
  font-style: italic;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.product-card-desc {
  font-size: 0.82rem;
  color: #4B5563;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.product-card-footer {
  padding: 0.85rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid #F3F4F6;
  margin-top: auto;
}

.product-price {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
}

.product-price.oos-price {
  color: #DC2626;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-view {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--brown);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-view:hover {
  background: var(--gold);
  color: #1A1A1A;
  transform: scale(1.04);
}

/* ─── Category Tabs ──────────────────────────────────────────────────────── */
.cat-tab {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  background: white;
  color: var(--gray-med);
}

.cat-tab:hover {
  border-color: var(--green);
  color: var(--green);
}

.cat-tab.active {
  background: var(--gold);
  color: #1A1A1A;
  border-color: var(--gold);
}

/* Skincare sub-tabs */
.sub-tab {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid #D1D5DB;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  background: transparent;
  color: var(--gray-med);
}

.sub-tab:hover {
  border-color: var(--green);
  color: var(--green);
}

.sub-tab.active {
  background: var(--pale);
  border-color: var(--green);
  color: var(--brown);
  font-weight: 600;
}

/* ─── Modal / Product Detail ──────────────────────────────────────────────── */
#product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#product-modal.open { display: flex; }

#modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#modal-panel {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(93, 75, 60, 0.25);
  display: flex;
  flex-direction: column;
}

#modal-panel .modal-img-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: var(--pale);
  flex-shrink: 0;
  position: relative;
}

#modal-panel .modal-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.modal-body { padding: 2rem; }

.modal-badge {
  display: inline-block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gold);
  color: #1A1A1A;
  margin-bottom: 0.75rem;
}

.modal-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 0.3rem;
}

.modal-tagline {
  font-size: 0.9rem;
  color: var(--gray-med);
  font-style: italic;
  margin-bottom: 1rem;
}

.modal-price {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.modal-price.oos { color: #DC2626; font-size: 1rem; }

.modal-desc {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-section-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.modal-benefits li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

.modal-benefits li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.modal-ingredients {
  font-size: 0.78rem;
  color: var(--gray-med);
  line-height: 1.6;
  background: var(--gray-light);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown);
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
}

.modal-close:hover { background: white; transform: scale(1.1); }

/* ─── Buttons (Global) ───────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--gold);
  color: #1A1A1A;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 198, 0, 0.40);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--brown);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-green:hover {
  background: #4a3c30;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(93, 75, 60, 0.35);
}

/* ─── Trust / Feature Badges ─────────────────────────────────────────────── */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brown);
}

.trust-badge .badge-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Category Feature Cards (Home Page) ─────────────────────────────────── */
.category-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.category-card .cat-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-card .cat-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brown);
}

.category-card .cat-desc {
  font-size: 0.82rem;
  color: var(--gray-med);
  line-height: 1.55;
}

.category-card .cat-arrow {
  margin-top: auto;
  color: var(--gold-dark);
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.category-card:hover .cat-arrow { transform: translateX(4px); }

/* ─── Search Bar ─────────────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  max-width: 420px;
  width: 100%;
}

.search-wrap input {
  width: 100%;
  padding: 12px 20px 12px 46px;
  border: 2px solid #E5E7EB;
  border-radius: 100px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s;
  background: white;
}

.search-wrap input:focus { border-color: var(--green); }

.search-wrap .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-med);
  font-size: 1rem;
  pointer-events: none;
}

/* ─── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fadeInUp { animation: fadeInUp 0.65s ease both; }
.animate-fadeIn   { animation: fadeIn 0.5s ease both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* ─── Scroll reveal (intersection observer) ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--brown);
  color: rgba(255,255,255,0.85);
}

footer h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

footer a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.45rem;
}

footer a:hover { color: var(--gold-light); }

footer .footer-divider {
  border-color: rgba(255,255,255,0.12);
}

footer .footer-bottom {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

/* ─── Product grid empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-med);
}

.empty-state svg {
  width: 64px; height: 64px;
  opacity: 0.3;
  margin: 0 auto 1rem;
}

/* ─── Responsive Utilities ───────────────────────────────────────────────── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Tab strip horizontal scroll on mobile */
.tab-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-strip::-webkit-scrollbar { height: 3px; }
.tab-strip::-webkit-scrollbar-track { background: transparent; }
.tab-strip::-webkit-scrollbar-thumb { background: var(--pale); border-radius: 10px; }

/* ─── Responsive breakpoints ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-body { padding: 1.25rem; }
  #modal-panel .modal-img-wrap { height: 200px; }
  .modal-name { font-size: 1.5rem; }
  .product-card-name { font-size: 1rem; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary, .btn-green {
    padding: 12px 22px;
    font-size: 0.75rem;
  }
  .section-title { font-size: 1.75rem; }
}

/* ─── Owner Info Bar (header) ────────────────────────────────────────────── */
.owner-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.2;
  margin-right: 0.25rem;
}

.owner-info .owner-name {
  font-size: 0.62rem;
  font-weight: 600;
  transition: color 0.3s;
}

.owner-info .owner-fbo {
  font-size: 0.56rem;
  font-weight: 500;
  opacity: 0.7;
  transition: color 0.3s;
}

#site-header.header-transparent .owner-info .owner-name { color: rgba(255,255,255,0.9); }
#site-header.header-transparent .owner-info .owner-fbo  { color: rgba(255,255,255,0.7); }
#site-header.header-scrolled   .owner-info .owner-name { color: var(--brown); }
#site-header.header-scrolled   .owner-info .owner-fbo  { color: var(--gray-med); }

/* ─── Cart Icon Button ───────────────────────────────────────────────────── */
.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  text-decoration: none;
  flex-shrink: 0;
}

.cart-icon-btn:hover {
  background: rgba(255,198,0,0.15);
}

#site-header.header-transparent .cart-icon-btn svg { color: rgba(255,255,255,0.9); }
#site-header.header-transparent .cart-icon-btn:hover svg { color: #FFC600; }
#site-header.header-scrolled   .cart-icon-btn svg { color: var(--brown); }
#site-header.header-scrolled   .cart-icon-btn:hover { background: var(--pale); }

.cart-count-badge {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  border-radius: 100px;
  background: var(--gold);
  color: #1A1A1A;
  font-size: 0.6rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

.cart-count-badge.has-items { display: flex; }

/* ─── Add-to-Cart button on cards ───────────────────────────────────────── */
.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pale);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  color: var(--brown);
  flex-shrink: 0;
}

.btn-cart:hover {
  background: var(--gold);
  color: #1A1A1A;
  transform: scale(1.1);
}

.btn-cart svg { width: 16px; height: 16px; }

/* ─── Cart Page ──────────────────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #F3F4F6;
}

.cart-item-img {
  width: 72px; height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--pale);
  flex-shrink: 0;
}

.cart-item-img-placeholder {
  width: 72px; height: 72px;
  border-radius: 12px;
  background: var(--pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.cart-item-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 0.2rem;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-med);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid #E5E7EB;
  border-radius: 100px;
  padding: 4px 10px;
  background: white;
}

.qty-btn {
  width: 24px; height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--brown);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  line-height: 1;
}

.qty-btn:hover { background: var(--pale); }

.qty-num {
  min-width: 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.remove-btn:hover { color: #DC2626; background: #FEF2F2; }

.cart-summary-box {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #374151;
}

.summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brown);
  border-top: 2px solid #F3F4F6;
  margin-top: 0.75rem;
  padding-top: 1rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 100px;
  background: #25D366;
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.empty-cart {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--gray-med);
}

.empty-cart svg {
  width: 80px; height: 80px;
  opacity: 0.25;
  margin: 0 auto 1.5rem;
  display: block;
}

/* ─── Cart page modal add toast ──────────────────────────────────────────── */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--brown);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(93,75,60,0.35);
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}

.cart-toast.show { transform: translateY(0); }
.cart-toast svg { width: 18px; height: 18px; color: var(--gold); }

/* ─── Print: hide header, modal, interactive elements ────────────────────── */
@media print {
  #site-header, #product-modal, #mobile-menu { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BRANDING POLISH
   ═══════════════════════════════════════════════════════════════════════════ */

/* Brand text-selection colour */
::selection { background: rgba(255, 198, 0, 0.28); color: inherit; }

/* Accessible focus ring — gold, replaces browser default */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Product card — crisp border on white backgrounds ─────────────────── */
.product-card {
  border: 1px solid rgba(0, 0, 0, 0.045);
}

/* ─── Skincare collection cards ─────────────────────────────────────────── */
.skincare-card {
  transition: var(--transition);
}

.skincare-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.skincare-img {
  transition: transform 0.55s ease;
}

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

/* ─── Cart summary — gold accent bar ────────────────────────────────────── */
.cart-summary-box {
  border-top: 3px solid var(--gold);
}

/* ─── Modal — two-column layout on desktop ───────────────────────────────── */
@media (min-width: 768px) {
  #modal-panel {
    flex-direction: row;
    overflow: hidden;
    max-height: 88vh;
  }

  #modal-panel .modal-img-wrap {
    width: 300px;
    min-width: 300px;
    height: auto;
    border-radius: 20px 0 0 20px;
  }

  .modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
}

/* Modal body — thin branded scrollbar */
.modal-body::-webkit-scrollbar { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 10px; }
.modal-body { scrollbar-width: thin; scrollbar-color: var(--cream-dark) transparent; }

/* ─── Category card — gold border pulse on hover ────────────────────────── */
.category-card {
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.2s ease;
}

/* ─── Button focus ring override (pill buttons look better with large radius) */
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-green:focus-visible,
.btn-view:focus-visible,
.btn-cart:focus-visible,
.btn-whatsapp:focus-visible {
  outline-offset: 4px;
  border-radius: 100px;
}

/* ─── Mobile menu — smooth open/close ───────────────────────────────────── */
#mobile-menu {
  transition: opacity 0.25s ease;
  opacity: 0;
}

#mobile-menu.open {
  opacity: 1;
}

/* ─── Qty controls on cart — focus ring ─────────────────────────────────── */
.qty-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── Page-level fade-in on load ─────────────────────────────────────────── */
body {
  animation: pageFadeIn 0.3s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
