/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
ul { list-style: none; }

/* ─── DESIGN TOKENS ─── */
:root {
  --cream:        hsl(38, 47%, 88%);
  --cream-dark:   hsl(38, 35%, 82%);
  --green:        hsl(134, 23%, 13%);
  --green-light:  hsl(134, 18%, 20%);
  --terracotta:   hsl(134, 23%, 22%);
  --terracotta-h: hsl(134, 23%, 16%);
  --amber:        hsl(38, 95%, 78%);
  --brown:        hsl(30, 25%, 14%);
  --muted:        hsl(38, 20%, 55%);
  --border:       hsl(38, 25%, 78%);
  --card:         hsl(38, 40%, 94%);
  --white:        #fff;
  --radius:       1.25rem;
  --radius-sm:    0.75rem;
  --shadow:       0 4px 24px rgba(30,20,10,.10);
  --shadow-lg:    0 8px 48px rgba(30,20,10,.16);
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;
  --transition:   0.2s cubic-bezier(0.25,0.46,0.45,0.94);
}

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--brown);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brown);
}
.eyebrow-amber { color: var(--amber); }

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  height: 5.5rem;
  display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-logo { display: flex; align-items: center; gap: 1rem; }
.navbar-logo img { height: 5rem; width: auto; }
.navbar-logo-text { font-weight: 800; font-size: 1.35rem; line-height: 1.2; color: var(--green); }
.navbar-logo-text span { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-light); }
.navbar-nav { display: flex; align-items: center; gap: 2rem; }
.navbar-nav a { font-size: .9rem; font-weight: 600; color: var(--green); transition: color var(--transition); }
.navbar-nav a:hover { color: var(--green-light); }
.navbar-actions { display: flex; align-items: center; gap: .75rem; }
.btn-wholesale-login {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem 1rem;
  border: 1.5px solid var(--green);
  border-radius: 2rem;
  font-size: .8rem; font-weight: 700;
  color: var(--green);
  transition: all var(--transition);
}
.btn-wholesale-login:hover { background: var(--green); color: var(--cream); }
.btn-cart {
  position: relative;
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--brown);
  transition: background var(--transition);
}
.btn-cart { color: var(--green); }
.btn-cart:hover { background: var(--cream-dark); }
.cart-count {
  position: absolute; top: -.1rem; right: -.1rem;
  background: var(--terracotta); color: #fff;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-count.visible { display: flex; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 2rem; height: 2rem; justify-content: center; cursor: pointer;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--green); border-radius: 1px;
  transition: all .3s;
}
.mobile-menu {
  display: none; position: fixed; inset: 4rem 0 0;
  background: var(--cream); z-index: 99;
  flex-direction: column; padding: 2rem 1.5rem; gap: 1.5rem;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; font-weight: 700; color: var(--green); padding: .5rem 0; border-bottom: 1px solid var(--border); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.75rem; border-radius: .75rem;
  font-size: .9rem; font-weight: 700;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(197,97,52,.35); }
.btn-outline-white { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline-white:hover { background: rgba(255,255,255,.18); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--cream); }
.btn-sm { padding: .55rem 1.25rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(16,27,18,.72) 0%,
    rgba(16,27,18,.55) 30%,
    rgba(16,27,18,.75) 60%,
    rgba(16,27,18,.94) 85%,
    rgba(16,27,18,.98) 100%
  );
}
.hero-content {
  position: relative; width: 100%;
  padding: 0 0 5rem;
}
.hero-content .container { max-width: 800px; margin-left: auto; margin-right: auto; padding: 0 2rem; }
.hero-eyebrow { color: var(--amber); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.6rem, 6vw, 5rem); color: #fff; margin-bottom: 1.25rem; }
.hero-title em { font-style: normal; color: var(--amber); }
.hero-subtitle { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 520px; margin-bottom: 2.25rem; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6rem;
  background: linear-gradient(to bottom, transparent, var(--cream));
  pointer-events: none;
}

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--card); border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-item { display: flex; align-items: center; gap: .75rem; }
.trust-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(22,42,30,.1); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.trust-label { font-size: .85rem; font-weight: 700; }

/* ─── FEATURED PRODUCTS ─── */
.products-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2.5rem; }
.view-all { font-size: .85rem; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: .3rem; }
.view-all:hover { text-decoration: underline; }

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 13rem; overflow: hidden;
  background: var(--cream-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--transition); }
.product-card:hover .product-card-img img { transform: scale(1.07); }
.product-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  display: inline-block; padding: .25rem .7rem; border-radius: 2rem;
  font-size: .7rem; font-weight: 700; margin-bottom: .6rem;
  background: rgba(22,42,30,.1); color: var(--green);
}
.product-card h3 { font-size: .95rem; margin-bottom: .35rem; }
.product-card p { font-size: .8rem; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: .9rem; font-weight: 800; }
.product-link { font-size: .8rem; font-weight: 700; color: var(--terracotta); }

/* Skeleton loading */
.skeleton { background: linear-gradient(90deg, var(--border) 25%, var(--cream-dark) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: .4rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── LIFESTYLE SPLIT ─── */
.lifestyle-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 32rem; }
.lifestyle-photo { position: relative; overflow: hidden; min-height: 22rem; }
.lifestyle-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.lifestyle-photo-vignette { position: absolute; inset-y: 0; right: 0; width: 8rem; background: linear-gradient(to right, transparent, hsl(134,23%,13%)); }
.lifestyle-text {
  background: var(--green); padding: 4rem 3.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.lifestyle-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; margin-bottom: 1.25rem; }
.lifestyle-text h2 em { font-style: normal; color: var(--amber); }
.lifestyle-text p { color: rgba(255,255,255,.88); line-height: 1.7; margin-bottom: 2rem; font-size: 1rem; }
.lifestyle-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; }
.stat-label { font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.72); margin-top: .1rem; }

/* ─── OUR STORY ─── */
.story-section { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.story-photo-wrap { position: relative; }
.story-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 1.5rem; box-shadow: var(--shadow-lg); }
.story-caption {
  position: absolute; bottom: -1.5rem; left: -1.25rem;
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 1rem; padding: .85rem 1.2rem;
  box-shadow: var(--shadow);
}
.story-caption p { font-size: .8rem; font-weight: 700; }
.story-caption span { font-size: .75rem; color: var(--muted); }

/* ─── VALUES ─── */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.value-emoji { font-size: 2rem; margin-bottom: 1rem; }
.value-card h3 { font-size: .95rem; margin-bottom: .5rem; }
.value-card p { font-size: .82rem; color: var(--text); line-height: 1.6; }

/* ─── WHOLESALE CTA ─── */
.wholesale-cta {
  position: relative; overflow: hidden;
  background: var(--green); border-radius: 2rem;
  padding: 4rem;
}
.wholesale-cta-deco1 { position: absolute; top: -4rem; right: -4rem; width: 16rem; height: 16rem; border-radius: 50%; background: rgba(255,213,122,.1); pointer-events: none; }
.wholesale-cta-deco2 { position: absolute; bottom: -2.5rem; right: 12rem; width: 12rem; height: 12rem; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.wholesale-cta-inner { position: relative; max-width: 560px; }
.wholesale-cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; margin-bottom: 1rem; }
.wholesale-cta p { color: rgba(255,255,255,.88); margin-bottom: 2rem; line-height: 1.7; }
.wholesale-cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ─── FOOTER ─── */
.footer { background: var(--card); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand-name { font-size: 1.1rem; font-weight: 800; }
.footer-brand-sub { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.footer-brand-p { font-size: .85rem; color: var(--muted); line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { font-size: .88rem; color: var(--brown); transition: color var(--transition); }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .8rem; color: var(--muted); }

/* ─── SHOP PAGE ─── */
.shop-hero { background: var(--green); padding: 5rem 0 4rem; }
.shop-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: .75rem; }
.shop-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; }
.shop-filters { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; padding-top: 1.5rem; }
.filter-btn {
  padding: .45rem 1rem; border-radius: 2rem;
  font-size: .82rem; font-weight: 700;
  border: 1.5px solid var(--border); background: transparent; color: var(--brown);
  transition: all var(--transition); cursor: pointer;
}
.filter-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
#products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ─── PRODUCT MODAL ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(16,27,18,.6); z-index: 200;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream); border-radius: 1.5rem;
  max-width: 800px; width: 100%; max-height: 88vh;
  overflow-y: auto; padding: 2.5rem; position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--cream-dark); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.modal-img-wrap { aspect-ratio: 1; overflow: hidden; border-radius: 1rem; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.modal-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-info h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.modal-price { font-size: 1.2rem; font-weight: 800; color: var(--terracotta); margin-bottom: 1rem; }
.modal-desc { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.modal-variants { margin-bottom: 1.5rem; }
.modal-variants label { font-size: .8rem; font-weight: 700; margin-bottom: .5rem; display: block; }
.modal-variants select { width: 100%; padding: .6rem .9rem; border-radius: .6rem; border: 1.5px solid var(--border); background: var(--cream); font-size: .88rem; }
.add-to-cart-btn { width: 100%; padding: .9rem; background: var(--terracotta); color: #fff; border-radius: .75rem; font-size: .95rem; font-weight: 700; transition: all var(--transition); }
.add-to-cart-btn:hover { background: var(--terracotta-h); }

/* ─── CART DRAWER ─── */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(16,27,18,.5); z-index: 300; }
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: -420px; bottom: 0; width: 420px; max-width: 100%;
  background: var(--cream); z-index: 301;
  box-shadow: var(--shadow-lg); transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.cart-drawer-header h2 { font-size: 1.1rem; }
.cart-close { width: 2rem; height: 2rem; border-radius: 50%; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 0; font-size: .9rem; }
.cart-item { display: grid; grid-template-columns: 3.5rem 1fr auto; gap: .75rem; align-items: center; background: var(--card); padding: .85rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cart-item-img { width: 3.5rem; height: 3.5rem; border-radius: .5rem; object-fit: cover; background: var(--cream-dark); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-title { font-size: .85rem; font-weight: 700; margin-bottom: .2rem; }
.cart-item-variant { font-size: .75rem; color: var(--muted); margin-bottom: .3rem; }
.cart-item-qty { display: flex; align-items: center; gap: .4rem; }
.qty-btn { width: 1.5rem; height: 1.5rem; border-radius: .3rem; background: var(--cream-dark); font-size: .9rem; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: background var(--transition); }
.qty-btn:hover { background: var(--border); }
.qty-num { font-size: .85rem; font-weight: 700; min-width: 1.25rem; text-align: center; }
.cart-item-price { font-size: .9rem; font-weight: 800; }
.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: .95rem; font-weight: 700; }
.checkout-btn { width: 100%; padding: .9rem; background: var(--terracotta); color: #fff; border-radius: .75rem; font-size: .95rem; font-weight: 700; transition: all var(--transition); }
.checkout-btn:hover { background: var(--terracotta-h); }

/* ─── WHOLESALE PAGE ─── */
.wholesale-hero {
  background: linear-gradient(135deg, hsl(38,30%,12%) 0%, hsl(35,25%,10%) 50%, hsl(30,20%,8%) 100%);
  padding: 6rem 0 5rem; position: relative; overflow: hidden;
}
.wholesale-hero-blob1 { position: absolute; top: 3rem; right: 20%; width: 22rem; height: 22rem; border-radius: 50%; background: rgba(255,213,122,.08); filter: blur(60px); pointer-events: none; }
.wholesale-hero-blob2 { position: absolute; bottom: 2rem; left: 25%; width: 16rem; height: 16rem; border-radius: 50%; background: rgba(22,42,30,.4); filter: blur(40px); pointer-events: none; }
.wholesale-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; }
.wholesale-hero h1 em { font-style: normal; color: var(--amber); }
.wholesale-hero p { color: rgba(255,255,255,.7); font-size: 1.1rem; max-width: 520px; margin: 1.25rem 0 2rem; line-height: 1.7; }
.wholesale-hero-wave { position: absolute; bottom: 0; left: 0; right: 0; }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.benefit-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow var(--transition); }
.benefit-card:hover { box-shadow: var(--shadow); }
.benefit-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(22,42,30,.1); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.1rem; }
.benefit-card h3 { font-size: .95rem; margin-bottom: .5rem; }
.benefit-card p { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* ─── WHOLESALE LOGIN / PORTAL ─── */
.auth-section { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.auth-tab {
  padding: .85rem 1.5rem; font-size: .9rem; font-weight: 700;
  color: var(--muted); border-bottom: 2.5px solid transparent;
  cursor: pointer; transition: all var(--transition);
}
.auth-tab.active { color: var(--green); border-bottom-color: var(--green); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; max-width: 500px; box-shadow: var(--shadow); }
.pre-login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 768px) {
  .pre-login-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .4rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: .7rem 1rem;
  border: 1.5px solid var(--border); border-radius: .65rem;
  background: var(--cream); font-size: .9rem;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--green); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.form-error { font-size: .75rem; color: var(--terracotta); margin-top: .3rem; display: none; }
.form-error.visible { display: block; }
.form-submit { width: 100%; padding: .85rem; background: var(--terracotta); color: #fff; border-radius: .75rem; font-size: .95rem; font-weight: 700; transition: all var(--transition); }
.form-submit:hover { background: var(--terracotta-h); }

/* Wholesale Portal (logged in) */
.portal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.portal-welcome { font-size: .9rem; color: var(--muted); }
.portal-welcome strong { color: var(--brown); }
.portal-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.ws-product { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.25rem; }
.ws-product-name { font-size: .9rem; font-weight: 700; margin-bottom: .35rem; overflow-wrap: break-word; word-break: break-word; }
.ws-product-prices { display: flex; flex-direction: column; gap: .2rem; margin-bottom: .75rem; }
.ws-price-row { display: flex; justify-content: space-between; font-size: .8rem; }
.ws-price-row span:first-child { color: var(--muted); }
.ws-price-row span:last-child { font-weight: 700; }
.ws-price-highlight { color: var(--terracotta); }
.notice-box { background: rgba(22,42,30,.07); border: 1px solid rgba(22,42,30,.15); border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-size: .85rem; color: var(--green); display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1.5rem; }

/* ─── TOAST ─── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--green); color: #fff; padding: .85rem 1.25rem;
  border-radius: .75rem; font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow-lg); min-width: 260px;
  animation: slideIn .25s ease;
}
.toast.error { background: var(--terracotta); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .values-grid, #products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1/-1; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar-nav, .btn-wholesale-login { display: none; }
  .hamburger { display: flex; }
  .navbar-logo img { height: 3.5rem; }
  .navbar-logo-text { font-size: 1.1rem; }
  .hero { min-height: 85vh; }
  .hero-title { font-size: 2.4rem; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .lifestyle-split { grid-template-columns: 1fr; }
  .lifestyle-photo { min-height: 18rem; }
  .lifestyle-photo-vignette { display: none; }
  .lifestyle-text { padding: 2.5rem 1.75rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .story-caption { position: static; margin-top: 1rem; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .wholesale-cta { padding: 2.5rem 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .modal-grid { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; max-width: 100%; }
  .benefits-grid { grid-template-columns: 1fr; }
  .form-grid2 { grid-template-columns: 1fr; }
  .portal-products { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
@media (max-width: 480px) {
  .grid-4, .values-grid, #products-grid { grid-template-columns: 1fr; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; }
  .wholesale-cta-btns { flex-direction: column; }
  .auth-card { padding: 1.25rem; }
}

/* ─── SHOP CATEGORY SECTIONS (grouped "All Treats" view) ─── */
.category-section {
  margin-bottom: 3.5rem;
}
.category-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: -.02em;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ─── SHOP FILTER SCROLLABLE ON MOBILE ─── */
@media (max-width: 768px) {
  .shop-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }
  .shop-filters::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
}

/* ── Variant button group (product modal) ─────────────────────────────────── */
.variant-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .4rem;
}
.variant-btn {
  padding: .4rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  background: var(--cream);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: inherit;
}
.variant-btn:hover {
  border-color: var(--green);
  background: hsl(134 23% 96%);
}
.variant-btn.selected {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ── Modal image gallery ──────────────────────────────────────────────────── */
.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.modal-gallery-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--cream-dark);
}
.modal-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .12s ease;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: background .15s;
  z-index: 2;
}
.gallery-arrow:hover { background: #fff; }
.gallery-prev { left: .6rem; }
.gallery-next { right: .6rem; }
.modal-thumbs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.modal-thumb {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .5rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: none;
  transition: border-color .15s;
  flex-shrink: 0;
}
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-thumb.active {
  border-color: var(--green);
}
.modal-thumb:hover {
  border-color: var(--green-light, hsl(134 23% 40%));
}

/* ── Product card hover image cycling ─────────────────────────────────────── */
.card-img-main {
  transition: opacity .15s ease;
}
.product-card-img {
  position: relative;
}
.card-img-pips {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .3rem;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.product-card:hover .card-img-pips {
  opacity: 1;
}
.card-img-pip {
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .15s;
}
.card-img-pip.active {
  background: #fff;
}

/* ── Quantity input (retail cart + wholesale cart) ────────────────────────── */
.qty-input {
  width: 3rem;
  height: 1.6rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: .3rem;
  background: var(--cream);
  color: var(--text);
  padding: 0 .2rem;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input:focus {
  outline: none;
  border-color: var(--green);
}

/* ── Navbar social icons ──────────────────────────────────────────────────── */
.navbar-social {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  opacity: .8;
  transition: opacity .15s, transform .15s;
  flex-shrink: 0;
}
.navbar-social:hover {
  opacity: 1;
  transform: scale(1.12);
}
@media (max-width: 480px) {
  .navbar-social { display: none; }
}

/* ── Wholesale Recommended carousel dots ──────────────────────────────────── */
.rec-dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: rgba(22,42,30,.2);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s;
}
.rec-dot.active { background: var(--green); }

/* ── Wholesale Recommended 3-card grid ───────────────────────────────────── */
.ws-rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}
@media (max-width: 900px) {
  .ws-rec-grid { grid-template-columns: 1fr; }
}
.ws-rec-card {
  min-width: 0;
  background: var(--cream-dark);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}
.ws-rec-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}
.ws-rec-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .13s ease;
}
.ws-rec-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none; border-radius: 50%;
  width: 1.8rem; height: 1.8rem;
  font-size: 1.2rem; line-height: 1;
  cursor: pointer; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  z-index: 2;
}
.ws-rec-prev { left: .4rem; }
.ws-rec-next { right: .4rem; }
.ws-rec-dots {
  position: absolute; bottom: .4rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .25rem;
}
.ws-rec-dot {
  width: .4rem; height: .4rem;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  transition: background .15s;
}
.ws-rec-dot.active { background: #fff; }
.ws-rec-body {
  padding: 1rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.ws-rec-label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--green); opacity: .75;
}
.ws-rec-name {
  font-size: .95rem; font-weight: 800; color: var(--text);
}
.ws-rec-cs {
  font-size: .8rem; color: var(--text);
}
.ws-rec-price {
  font-size: 1.1rem; font-weight: 800; color: var(--green);
  margin-top: .2rem;
}
