:root{
  --maroon:#7a1f3d;
  --maroon-dark:#5c1730;
  --gold:#c19a49;
  --gold-light:#e0c47f;
  --cream:#fbf6ee;
  --cream-2:#f2e8d8;
  --ink:#241611;
  --ink-soft:#3a2a22;
  --text-muted:#6b5d52;
  --white:#ffffff;
  --line:rgba(36,22,17,0.12);
  --line-dark:rgba(255,255,255,0.14);
  --success:#2e7d4f;
  --success-bg:#e6f4ec;
  --preorder:#a8631a;
  --preorder-bg:#faf0e0;
  --soldout:#8a8378;
  --soldout-bg:#eeece7;
  --dusty-rose:#d3a0ac;
  --serif:'Fraunces', Georgia, serif;
  --sans:'Inter', -apple-system, sans-serif;
  --maxw:1180px;
  --radius:3px;
}
*{box-sizing:border-box;}
button, a{ touch-action:manipulation; }
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important; transition-duration:0.01ms !important;}
}

.announcement-banner{
  display:none; background:var(--maroon); color:#fff; overflow:hidden; white-space:nowrap;
  padding:9px 0;
}
.announcement-banner-text{
  display:inline-block; padding-left:100%; font-size:13px; font-weight:600; letter-spacing:0.02em;
  animation:announcementScroll 18s linear infinite;
}
@keyframes announcementScroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-100%); }
}
body{
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:var(--sans);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
h1,h2,h3{font-family:var(--serif); font-weight:600; font-style:italic; color:var(--ink); margin:0;}
.wrap{width:100%; max-width:var(--maxw); margin:0 auto; padding-left:24px; padding-right:24px;}
@media (max-width:640px){ .wrap{padding-left:16px; padding-right:16px;} }

/* Wider variant for the product-grid sections — 5% margin either side,
   images fill the rest, instead of the standard --maxw contained width. */
.wrap-wide{width:90%; max-width:none; margin:0 auto; padding-left:0; padding-right:0;}

.eyebrow{
  font-size:12px; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--maroon);
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--sans); font-weight:600; font-size:13px; letter-spacing:0.03em;
  text-transform:uppercase; text-decoration:none; padding:14px 26px;
  border-radius:var(--radius); cursor:pointer; border:1px solid transparent;
  transition:transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:disabled{ opacity:0.5; cursor:not-allowed; transform:none; }
.btn-primary{ background:var(--maroon); color:var(--white); }
.btn-primary:hover{ background:var(--maroon-dark); }
.btn-gold{ background:var(--gold); color:var(--ink); }
.btn-gold:hover{ background:var(--gold-light); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-small{ padding:9px 16px; font-size:11.5px; }
.btn-block{ width:100%; }

/* ---------- NAV ---------- */
#nav{
  position:sticky; top:0; z-index:100;
  background:var(--white); border-bottom:1px solid var(--line);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 24px; }
@media (max-width:640px){ .nav-inner{ padding:14px 16px; } }
.nav-logo{ display:flex; align-items:center; }
.nav-logo img{ height:80px; width:auto; display:block; }
@media (max-width:480px){ .nav-logo img{ height:64px; } }
.nav-menu-wrap{ display:flex; align-items:center; gap:20px; flex-shrink:0; }
.nav-links{ display:flex; gap:22px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-size:13px; font-weight:600; color:var(--text-muted); letter-spacing:0.02em;
  padding-bottom:3px; border-bottom:2px solid transparent; transition:color 0.2s ease, border-color 0.2s ease;
  white-space:nowrap;
}
.nav-links a:hover, .nav-links a.active{ color:var(--maroon); border-color:var(--gold); }
.nav-cart, .nav-wishlist{ position:relative; display:flex; align-items:center; padding:6px; }
.nav-cart svg, .nav-wishlist svg{ width:22px; height:22px; }
.nav-wishlist svg{ fill:none; stroke:currentColor; stroke-width:2; }
.nav-wishlist:hover svg{ stroke:#e0263f; }
.cart-badge{
  position:absolute; top:-4px; right:-6px; background:var(--maroon); color:var(--white);
  font-size:10px; font-weight:700; min-width:16px; height:16px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.cart-badge.hidden{ display:none; }
#nav-toggle{ display:none; background:none; border:none; color:var(--ink); font-size:22px; cursor:pointer; }
#nav-backdrop{ display:none; position:fixed; inset:0; z-index:90; background:rgba(0,0,0,0.4); opacity:0; transition:opacity 0.3s ease; }
#nav-backdrop.open{ display:block; opacity:1; }
.nav-whatsapp-link{ display:none; }
@media (max-width:800px){
  .nav-links-panel{
    position:absolute; top:100%; right:0; width:30%; min-width:190px; z-index:100;
    max-height:0; overflow:hidden;
    background:var(--white); box-shadow:0 12px 24px rgba(36,22,17,0.12);
    transition:max-height 0.3s ease;
    display:block;
  }
  .nav-links{ flex-direction:column; gap:0; padding:8px 16px 6px; }
  .nav-links li{ list-style:none; }
  .nav-links a{ display:block; padding:13px 2px; border-bottom:1px solid var(--line); font-size:12.5px; }
  .nav-links-panel.open{ max-height:70vh; overflow-y:auto; }
  #nav-toggle{ display:block; position:relative; z-index:101; }
  .nav-whatsapp-link{
    display:flex; align-items:center; gap:6px; margin:6px 16px 14px; padding:10px 12px;
    border-radius:var(--radius); background:#e9f9ee; color:#1f7a44; font-size:11.5px; font-weight:700;
  }
  .nav-whatsapp-link svg{ width:16px; height:16px; flex-shrink:0; }
}

/* ---------- HERO ---------- */
.hero{ text-align:center; }
.hero-slideshow{ position:relative; width:100%; aspect-ratio:16/7; max-height:380px; overflow:hidden; background:var(--cream-2); }
.hero-slideshow img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity 1s ease;
}
.hero-slideshow img.active{ opacity:1; }
@media (max-width:640px){ .hero-slideshow{ aspect-ratio:4/3; max-height:260px; } }

/* ---------- CATEGORY TILES ---------- */
.cat-section{ padding-bottom:20px; }
.cat-section .section-head{ margin-bottom:10px; }
.cat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; padding:8px 0 12px; }
.cat-tile{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  text-align:center; transition:transform 0.18s ease;
}
.cat-tile:hover{ transform:translateY(-3px); }
.cat-tile .cat-icon{
  width:68px; height:68px; border-radius:50%; background:var(--white); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; font-size:28px;
  box-shadow:0 2px 8px rgba(0,0,0,0.05); transition:box-shadow 0.18s ease;
}
.cat-tile:hover .cat-icon{ box-shadow:0 8px 22px rgba(122,31,61,0.14); }
.cat-icon-photo{ overflow:hidden; padding:0; }
.cat-icon-photo img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.cat-tile h3{ font-size:13px; color:var(--ink); font-weight:600; line-height:1.3; }
@media (max-width:480px){
  .cat-grid{ gap:10px; padding:6px 0 10px; }
  .cat-tile{ gap:6px; }
  .cat-tile .cat-icon{ width:52px; height:52px; font-size:22px; }
  .cat-tile h3{ font-size:10.5px; }
}

/* ---------- SECTION ---------- */
section{ padding:16px 0 56px; }
.section-head{ margin-bottom:24px; }
.section-head h2{ font-size:clamp(22px,3vw,30px); margin-top:6px; }

.grid-toggle-head{ display:flex; justify-content:flex-end; margin-bottom:14px; }
.grid-view-toggle{ display:flex; gap:6px; }
.grid-view-btn{
  width:32px; height:32px; display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--white);
  color:var(--text-muted); cursor:pointer; transition:border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.grid-view-btn svg{ width:15px; height:15px; }
.grid-view-btn:hover{ border-color:var(--maroon); color:var(--maroon); }
.grid-view-btn.active{ border-color:var(--maroon); background:var(--maroon); color:var(--white); }

/* ---------- PRODUCT GRID / CARD ---------- */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
@media (max-width:980px){ .product-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:720px){ .product-grid{ grid-template-columns:repeat(2,1fr); gap:14px; } }
@media (max-width:420px){ .product-grid{ grid-template-columns:1fr 1fr; gap:10px; } }

/* Homepage "Latest Arrivals" is now a full wrapping grid, same as the
   category pages — the grid-view toggle just switches its column count
   between the default (4/3/2 responsive, same as .product-grid) and a
   fixed 2 columns at every width. #featured-grid's ID gives this enough
   specificity to win over the responsive .product-grid breakpoint rules
   without affecting category.html's #product-grid. */
#featured-grid.grid-2up{ grid-template-columns:repeat(2,1fr); }

/* "Top Selling" — horizontal scroll instead of a wrapping grid, same
   4-plus-a-peek pattern as the Trending Now videos: no auto-slide, just
   the prev/next buttons (mouse/trackpad) or a swipe (touch). */
.hscroll-products{
  display:flex; flex-wrap:nowrap; overflow-x:auto; gap:22px;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; padding-bottom:4px;
}
.hscroll-products::-webkit-scrollbar{ display:none; }
.hscroll-products .product-card{
  flex:0 0 calc((100% - 3 * 22px) / 4.1);
  scroll-snap-align:start;
}
@media (max-width:720px){
  .hscroll-products{ gap:14px; }
  .hscroll-products .product-card{ flex:0 0 calc((100% - 14px) / 2.1); }
}
@media (max-width:420px){
  .hscroll-products{ gap:10px; }
  .hscroll-products .product-card{ flex:0 0 80%; }
}

.product-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; }
.product-card-photo{ aspect-ratio:3/4.6; overflow:hidden; background:var(--cream-2); position:relative; }
.product-card-photo img{ width:100%; height:100%; object-fit:cover; }
.stock-badge{
  position:absolute; top:10px; left:10px; font-size:10.5px; font-weight:700; letter-spacing:0.04em;
  text-transform:uppercase; padding:4px 9px; border-radius:20px;
}
.stock-badge.in_stock{ background:var(--success-bg); color:var(--success); }
.stock-badge.pre_order{ background:var(--preorder-bg); color:var(--preorder); }
.stock-badge.sold_out{ background:var(--soldout-bg); color:var(--soldout); }
.product-card.sold_out .product-card-photo img{ opacity:0.55; }
.product-card-body{ padding:10px 4px; display:flex; flex-direction:column; gap:4px; text-align:center; }
.product-card-name{
  font-family:var(--sans); font-size:13px; font-weight:400; font-style:normal; line-height:1.35;
  letter-spacing:0.01em; color:var(--ink);
}
.product-card-design{ font-family:var(--sans); font-size:11px; font-weight:400; font-style:normal; color:var(--ink-soft); letter-spacing:0.01em; }
.product-card-divider{ width:22px; height:1px; background:var(--gold); margin:2px auto; }
.product-card-price{ font-family:var(--sans); font-size:13px; font-weight:400; font-style:normal; letter-spacing:0.02em; color:var(--ink); }
.product-card-mini-actions{ display:flex; align-items:center; justify-content:center; gap:16px; margin-top:2px; }
.mini-action{
  background:none; border:none; padding:2px 0; cursor:pointer; touch-action:manipulation;
  font-family:var(--serif); font-size:11.5px; font-weight:700; font-style:italic;
  letter-spacing:0.02em; color:var(--ink); text-decoration:underline; text-underline-offset:2px;
}
.mini-action:hover{ color:var(--maroon-dark); }
.mini-action-buy{ color:var(--maroon); }
.mini-action-buy:hover{ color:var(--maroon-dark); }
/* Bigger tap target for the primary product-page/Quick View actions —
   product cards on home/category keep the small size, this is only used
   on the single-product view where Add to Cart/Buy Now are the main CTA. */
.mini-action-lg{ font-size:18px; padding:6px 0; }
.wishlist-btn{
  position:absolute; top:8px; right:8px; z-index:2; width:26px; height:26px; padding:0;
  border:none; background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
/* Default (not wishlisted): outline heart. Wishlisted: heart hides, and
   whichever little animal face this card was randomly assigned (see
   data-pet on the button, set in catalog.js) pops in instead. */
.wishlist-btn svg{ width:19px; height:19px; }
.wishlist-btn .icon-heart{ fill:none; stroke:#fff; stroke-width:2; transition:fill 0.15s ease, stroke 0.15s ease; }
.wishlist-btn:hover .icon-heart{ stroke:#e0263f; }
.wishlist-btn .icon-cat, .wishlist-btn .icon-dog{ display:none; }
.wishlist-btn.active .icon-heart{ display:none; }
.wishlist-btn.active[data-pet="cat"] .icon-cat{ display:block; animation:wishlistPetPop 0.35s ease; }
.wishlist-btn.active[data-pet="dog"] .icon-dog{ display:block; animation:wishlistPetPop 0.35s ease; }
@keyframes wishlistPetPop{
  0%{ transform:scale(0.2) rotate(-10deg); opacity:0; }
  60%{ transform:scale(1.25) rotate(4deg); opacity:1; }
  100%{ transform:scale(1) rotate(0); }
}
.product-card-quickview{
  position:absolute; left:50%; bottom:10px; transform:translateX(-50%);
  background:rgba(36,22,17,0.82); color:#fff; border:none; padding:8px 18px; border-radius:999px;
  font-size:11px; font-weight:600; letter-spacing:0.03em; white-space:nowrap; cursor:pointer;
  opacity:0; pointer-events:none; transition:opacity 0.2s ease;
}
/* Desktop/mouse: reveal Quick View only while actually hovering the photo. */
@media (hover:hover){
  .product-card-photo:hover .product-card-quickview{ opacity:1; pointer-events:auto; }
}
/* Touch devices have no hover — instead reveal it whenever the card is
   actually visible on screen (see IntersectionObserver in catalog.js), and
   hide it again once scrolled away. */
@media (hover:none){
  .product-card-photo.card-in-view .product-card-quickview{ opacity:1; pointer-events:auto; }
}
@media (max-width:420px){
  .product-card-body{ padding:10px 4px; gap:6px; }
  .product-card-name{ font-size:12px; }
  .product-card-price{ font-size:12px; }
  .btn-small{ padding:7px 6px; font-size:10px; }
}

.empty-state{ text-align:center; padding:60px 20px; color:var(--text-muted); }

/* ---------- PRODUCT DETAIL ---------- */
.product-detail{ display:grid; grid-template-columns:1fr 1fr; gap:48px; }
@media (max-width:800px){ .product-detail{ grid-template-columns:1fr; gap:28px; } }
.pd-gallery-main{ aspect-ratio:3/4; background:var(--cream-2); border:1px solid var(--line); overflow:hidden; margin-bottom:10px; }
.pd-gallery-main img{ width:100%; height:100%; object-fit:cover; }
.pd-gallery-main video{ width:100%; height:100%; object-fit:contain; background:var(--ink); }
.pd-thumbs{ display:flex; gap:8px; flex-wrap:wrap; }
.pd-thumbs img{ width:64px; height:80px; object-fit:cover; border:1px solid var(--line); cursor:pointer; border-radius:2px; }
.pd-thumbs img.active{ border-color:var(--maroon); border-width:2px; }
.pd-thumb-video{
  width:64px; height:80px; border:1px solid var(--line); border-radius:2px; cursor:pointer;
  background:var(--ink); display:flex; align-items:center; justify-content:center;
}
.pd-thumb-video .insta-play-icon{ width:24px; height:24px; font-size:9px; }
.pd-thumb-video.active{ border-color:var(--maroon); border-width:2px; }
.pd-highlights{ margin-bottom:20px; }
.pd-highlights-label{ font-size:12.5px; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:8px; }
.pd-highlights-list{ margin:0; padding-left:0; list-style:none; display:flex; flex-direction:column; gap:6px; }
.pd-highlights-list li{
  font-family:var(--sans); font-size:14.5px; font-weight:700; color:var(--ink-soft); line-height:1.5; padding-left:20px; position:relative;
}
.pd-highlights-list li::before{
  content:"✓"; position:absolute; left:0; top:0; color:var(--maroon); font-weight:700; font-size:12px;
}
.pd-cat{ font-size:12px; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:6px; }
.pd-name{ font-size:clamp(22px,3.4vw,30px); margin-bottom:10px; }
.pd-price{ font-family:var(--serif); font-size:20px; font-weight:600; font-style:italic; letter-spacing:0.02em; color:var(--maroon); margin-bottom:14px; }
.pd-badge{ display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; padding:5px 12px; border-radius:20px; margin-bottom:16px; }
.pd-badge.in_stock{ background:var(--success-bg); color:var(--success); }
.pd-badge.pre_order{ background:var(--preorder-bg); color:var(--preorder); }
.pd-badge.sold_out{ background:var(--soldout-bg); color:var(--soldout); }
.pd-note{ font-size:13px; color:var(--text-muted); margin:-8px 0 16px; }
.pd-desc{ font-size:14.5px; color:var(--ink-soft); margin-bottom:20px; line-height:1.7; }
.attr-table{ width:100%; border-collapse:collapse; margin-bottom:22px; }
.attr-table tr{ border-bottom:1px solid var(--line); }
.attr-table td{ padding:9px 0; font-size:13.5px; }
.attr-table td:first-child{ color:var(--text-muted); width:40%; font-weight:600; }
.size-selector{ margin-bottom:18px; }
.size-selector-label{ font-size:12.5px; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.04em; margin-bottom:8px; }
.size-chip-row{ display:flex; flex-wrap:wrap; gap:8px; }
.size-chip{
  min-width:46px; height:40px; padding:0 12px; border:1.5px solid var(--line); border-radius:var(--radius);
  background:var(--white); font-size:13px; font-weight:600; color:var(--ink); cursor:pointer;
  touch-action:manipulation; transition:border-color 0.15s ease, color 0.15s ease;
}
.size-chip:hover{ border-color:var(--maroon); }
.size-chip.selected{ border-color:var(--maroon); background:var(--maroon); color:var(--white); }
.size-chip.out-of-stock{ background:var(--cream-2); color:var(--soldout); border-color:var(--line); text-decoration:line-through; cursor:not-allowed; }
.size-chip.out-of-stock:hover{ border-color:var(--line); }
.size-chip.pre-order{ border-color:var(--preorder); color:var(--preorder); height:auto; padding:6px 12px; display:inline-flex; flex-direction:column; align-items:center; gap:2px; }
.size-chip.pre-order.selected{ background:var(--preorder); border-color:var(--preorder); color:var(--white); }
.size-chip-tag{ font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:0.03em; }
.size-selector-note{ font-size:12px; color:var(--maroon); margin-top:6px; min-height:14px; }
.pd-qty-row{ display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.pd-actions{ display:flex; align-items:center; gap:16px; }
.mini-action-soldout{ font-family:var(--serif); font-size:11.5px; font-weight:700; font-style:italic; letter-spacing:0.02em; color:var(--soldout); }

/* ---------- QUICK VIEW MODAL ---------- */
.quickview-modal{ display:none; position:fixed; inset:0; z-index:300; }
.quickview-modal.open{ display:block; }
.quickview-backdrop{ position:absolute; inset:0; background:rgba(36,22,17,0.55); }
.quickview-panel{
  position:relative; z-index:1; background:var(--white); border-radius:var(--radius);
  max-width:760px; width:min(92vw,760px); max-height:88vh; overflow-y:auto;
  margin:6vh auto; padding:28px;
}
.quickview-close{
  position:absolute; top:12px; right:14px; background:none; border:none;
  font-size:26px; line-height:1; color:var(--text-muted); cursor:pointer;
}
.quickview-close:hover{ color:var(--ink); }
#quickview-body{ display:grid; grid-template-columns:1fr 1fr; gap:32px; width:100%; }
.quickview-photo{ aspect-ratio:3/4; background:var(--cream-2); border-radius:2px; overflow:hidden; }
.quickview-photo img{ width:100%; height:100%; object-fit:cover; }
.quickview-name{ font-family:var(--serif); font-size:20px; margin:2px 0 8px; }
.quickview-full-link{ display:block; text-align:center; margin-top:12px; font-size:12.5px; font-weight:600; color:var(--text-muted); text-decoration:underline; }
.quickview-full-link:hover{ color:var(--maroon); }
body.quickview-lock{ overflow:hidden; }
@media (max-width:640px){
  .quickview-panel{ padding:20px; margin:4vh auto; max-height:92vh; }
  #quickview-body{ grid-template-columns:1fr; gap:16px; }
}
.qty-control{ display:flex; align-items:center; border:1px solid var(--line); border-radius:var(--radius); }
.qty-control button{ background:none; border:none; width:44px; height:44px; font-size:18px; cursor:pointer; color:var(--ink); touch-action:manipulation; }
.qty-control input{ width:44px; text-align:center; border:none; font-size:14px; font-family:var(--sans); -moz-appearance:textfield; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }

/* ---------- CART PAGE ---------- */
.cart-row{ display:grid; grid-template-columns:80px 1fr auto auto; gap:16px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }
@media (max-width:560px){
  .cart-row{ grid-template-columns:60px 1fr; grid-template-rows:auto auto auto; row-gap:10px; align-items:start; }
  .cart-row-photo{ grid-column:1; grid-row:1; }
  .cart-row-info{ grid-column:2; grid-row:1; }
}
.cart-row-photo{ width:80px; height:100px; object-fit:cover; border-radius:2px; background:var(--cream-2); }
@media (max-width:560px){ .cart-row-photo{ width:60px; height:76px; } }
.cart-row-name{ font-family:var(--serif); font-weight:600; font-size:15px; margin-bottom:4px; }
.cart-row-attrs{ font-size:12px; color:var(--text-muted); margin-bottom:4px; }
.cart-row-stock{ font-size:11px; font-weight:700; text-transform:uppercase; }
.cart-row-stock.pre_order{ color:var(--preorder); }
.cart-row-stock.in_stock{ color:var(--success); }
.cart-row-stock.sold_out{ color:var(--soldout); }
.cart-row-remove{ background:none; border:none; color:var(--text-muted); font-size:12px; text-decoration:underline; cursor:pointer; padding:6px 0; margin-top:2px; touch-action:manipulation; }
.cart-row-price{ font-family:var(--serif); font-weight:600; white-space:nowrap; }
@media (max-width:560px){
  .cart-row-price{ grid-column:2; grid-row:3; }
  .cart-row .qty-control{ grid-column:2; grid-row:2; }
}
.cart-summary{ display:flex; justify-content:space-between; align-items:center; padding:20px 0; font-family:var(--serif); font-size:18px; font-weight:600; }
.cart-empty{ text-align:center; padding:60px 20px; }

/* ---------- WISHLIST PAGE ---------- */
.wishlist-row{ grid-template-columns:80px 1fr auto; }
@media (max-width:560px){ .wishlist-row{ grid-template-columns:60px 1fr; } }
.wishlist-row .cart-row-price{ margin-top:4px; color:var(--maroon); }
.wishlist-row-actions{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
@media (max-width:560px){
  .wishlist-row-actions{ grid-column:2; grid-row:2; flex-direction:row; align-items:center; }
}

/* ---------- CHECKOUT ---------- */
.checkout-grid{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
@media (max-width:820px){ .checkout-grid{ grid-template-columns:1fr; gap:28px; } }
.order-summary{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.order-summary-item{ display:flex; justify-content:space-between; gap:10px; font-size:13.5px; padding:8px 0; border-bottom:1px solid var(--line); }
.order-summary-item:last-of-type{ border-bottom:none; }
.order-summary-total{ display:flex; justify-content:space-between; font-family:var(--serif); font-weight:600; font-size:17px; padding-top:14px; margin-top:6px; border-top:2px solid var(--ink); }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12px; font-weight:600; letter-spacing:0.03em; text-transform:uppercase; color:var(--text-muted); margin-bottom:6px; }
.field .required{ color:var(--maroon); }
.field input, .field textarea, .field select{
  width:100%; padding:12px 14px; font-family:var(--sans); font-size:14px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--white); color:var(--ink);
}
.field input:focus, .field textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; }
.field input:disabled{ background:var(--cream-2); color:var(--text-muted); cursor:not-allowed; }
.field-error{ color:var(--maroon); font-size:12px; margin-top:5px; display:none; }
.field.invalid input, .field.invalid textarea{ border-color:var(--maroon); }
.field.invalid .field-error{ display:block; }
.checkout-note{ background:var(--preorder-bg); border:1px solid rgba(168,99,26,0.25); border-radius:var(--radius); padding:14px 16px; font-size:13px; color:var(--preorder); margin-bottom:20px; }
.checkout-note a{ text-decoration:underline; font-weight:600; }
.checkout-pay-error{ color:var(--maroon); font-size:13px; text-align:center; margin:0 0 12px; }
.test-mode-banner{
  background:var(--ink); color:#fff; border-radius:var(--radius); padding:10px 16px;
  font-size:12.5px; font-weight:700; letter-spacing:0.02em; text-align:center; margin-bottom:18px;
}
.test-order-badge{
  display:inline-block; background:var(--soldout-bg); color:var(--soldout); font-size:10px; font-weight:700;
  letter-spacing:0.04em; text-transform:uppercase; padding:2px 7px; border-radius:20px; vertical-align:middle;
}
.confirm-panel{ text-align:center; padding:50px 20px; }
.confirm-panel h2{ margin-bottom:14px; }
.confirm-panel p{ color:var(--text-muted); max-width:440px; margin:0 auto 22px; }

.insta-section{ padding-top:0; }
/* Horizontal scroll, always sized for exactly 4 full tiles + a 10% peek
   of the 5th (the peek is the "there's more, swipe/scroll" affordance) —
   same formula at every screen width on purpose, not stepped per
   breakpoint, so phones and desktops both show the same 4-plus-a-sliver.
   Any number of videos can be in the row — real <video> elements, so
   (unlike the old Instagram embeds) they need no special-case sizing. */
.insta-video-grid{
  display:flex; flex-wrap:nowrap; overflow-x:auto; gap:12px;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch;
  scrollbar-width:none; padding-bottom:4px;
}
.insta-video-grid::-webkit-scrollbar{ display:none; }
.insta-video-slot{
  flex:0 0 calc((100% - 4 * 12px) / 4.1); scroll-snap-align:start;
  aspect-ratio:9/16; border-radius:var(--radius); overflow:hidden; background:var(--cream-2);
}
.insta-video-slot video{ width:100%; height:100%; object-fit:cover; background:var(--ink); }

/* ---------- HORIZONTAL SCROLL BUTTONS ---------- */
.hscroll-carousel{ position:relative; }
.hscroll-btn{
  display:none; position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:40px; height:40px; border-radius:50%; border:1px solid var(--line);
  background:rgba(255,255,255,0.92); color:var(--ink); font-size:14px; cursor:pointer;
  box-shadow:0 4px 14px rgba(36,22,17,0.16); align-items:center; justify-content:center;
}
.hscroll-btn:hover{ background:var(--white); border-color:var(--maroon); color:var(--maroon); }
.hscroll-btn:disabled{ opacity:0; pointer-events:none; }
.hscroll-btn-prev{ left:6px; }
.hscroll-btn-next{ right:6px; }
/* Buttons are for mouse/trackpad use only — touch devices already scroll
   the row natively with a swipe, so keep the row swipe-only there. */
@media (hover:hover) and (pointer:fine){
  .hscroll-btn{ display:flex; }
}
.insta-play-icon{
  width:32px; height:32px; border-radius:50%; background:var(--maroon); color:var(--white);
  display:flex; align-items:center; justify-content:center; font-size:12px; padding-left:2px; flex-shrink:0;
}
@media (max-width:640px){ .insta-play-icon{ width:22px; height:22px; font-size:9px; } }
@media (max-width:400px){ .insta-play-icon{ width:18px; height:18px; font-size:7px; padding-left:1px; } }

footer{
  background:var(--ink);
  color:rgba(255,255,255,0.75);
  padding:52px 0 0;
  font-size:13px;
  margin-top:auto;
}
.footer-inner{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1.3fr;
  gap:32px 24px;
  padding-bottom:32px;
  border-bottom:1px solid rgba(255,255,255,0.12);
}
.footer-brand b{
  display:block; color:#fff; font-family:var(--serif); font-weight:600; font-style:italic;
  font-size:19px; letter-spacing:0.02em; margin-bottom:10px;
}
.footer-brand p{ margin:0 0 6px; line-height:1.6; color:rgba(255,255,255,0.6); }
.footer-col h4{
  font-family:var(--sans); font-size:11.5px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--gold-light); margin:0 0 14px;
}
.footer-col a{ display:block; color:rgba(255,255,255,0.75); text-decoration:none; margin-bottom:10px; font-size:13px; }
.footer-col a:hover{ color:#fff; text-decoration:underline; }
.footer-newsletter-col p{ margin:0 0 14px; color:rgba(255,255,255,0.6); line-height:1.6; }
.footer-newsletter{ display:flex; gap:8px; flex-wrap:wrap; }
.footer-newsletter input{
  flex:1; min-width:150px;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.2); border-radius:var(--radius);
  padding:9px 12px; font-size:13px; color:#fff; font-family:var(--sans);
}
.footer-newsletter input::placeholder{ color:rgba(255,255,255,0.45); }
.footer-newsletter-msg{ margin-top:10px; font-size:12px; min-height:16px; }
.footer-bottom{ padding:16px 0; text-align:center; font-size:12px; color:rgba(255,255,255,0.45); }
@media (max-width:860px){
  .footer-inner{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .footer-inner{ grid-template-columns:1fr; gap:28px; }
}

.policy-nav{ display:flex; flex-wrap:wrap; gap:10px 18px; margin-bottom:28px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.policy-nav a{ font-size:13px; font-weight:600; color:var(--maroon); text-decoration:none; }
.policy-nav a:hover{ text-decoration:underline; }
.policy-section{ max-width:760px; margin:0 auto 44px; }
.policy-section h3{ font-size:22px; margin-bottom:14px; scroll-margin-top:24px; }
.policy-section p, .policy-section li{ font-size:14.5px; line-height:1.75; color:var(--ink-soft); }
.policy-section p{ margin:0 0 14px; }
.policy-section ul{ margin:0 0 14px; padding-left:20px; }
.policy-section li{ margin-bottom:8px; }
.policy-section .updated{ font-size:12.5px; color:var(--text-muted); margin-bottom:8px; }

.mini-cart-bar{
  display:none; position:fixed; left:50%; bottom:16px; transform:translateX(-50%) translateY(140%);
  z-index:150; width:min(94vw,420px); background:var(--ink); color:var(--white);
  border-radius:999px; padding:10px 10px 10px 18px; align-items:center; gap:12px;
  box-shadow:0 10px 30px rgba(36,22,17,0.35); border:1px solid rgba(255,255,255,0.08);
  cursor:pointer; transition:transform 0.3s ease;
  padding-bottom:calc(10px + env(safe-area-inset-bottom, 0px));
}
.mini-cart-bar.show{ display:flex; transform:translateX(-50%) translateY(0); }
.mcb-icon{ display:flex; align-items:center; color:var(--gold-light); flex-shrink:0; }
.mcb-icon svg{ width:20px; height:20px; }
.mcb-info{ display:flex; flex-direction:column; gap:1px; flex:1; min-width:0; }
.mcb-count{ font-size:11.5px; color:rgba(255,255,255,0.65); text-transform:uppercase; letter-spacing:0.03em; }
.mcb-total{ font-family:var(--serif); font-size:15px; font-weight:600; }
.mcb-cta{
  display:flex; align-items:center; gap:4px; background:var(--gold); color:var(--ink);
  font-size:12.5px; font-weight:700; padding:10px 16px; border-radius:999px; white-space:nowrap; flex-shrink:0;
}
@media (max-width:420px){
  .mini-cart-bar{ padding-left:14px; gap:8px; }
  .mcb-cta{ padding:9px 12px; font-size:11.5px; }
}

.wishlist-notify-bar{ display:none; position:fixed; left:16px; bottom:16px; z-index:145; max-width:min(88vw,300px); }
.wnb-pill{
  display:flex; align-items:center; gap:8px; background:var(--ink); color:var(--white);
  border:1px solid rgba(255,255,255,0.1); border-radius:999px; padding:10px 16px 10px 14px;
  font-family:var(--sans); font-size:12px; font-weight:600; cursor:pointer;
  box-shadow:0 6px 20px rgba(36,22,17,0.3); white-space:nowrap;
}
.wnb-pill svg{ width:16px; height:16px; color:var(--gold-light); flex-shrink:0; }
.wishlist-notify-bar.expanded .wnb-pill{ display:none; }
.wnb-form{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:0 10px 30px rgba(36,22,17,0.2); padding:16px; position:relative;
}
.wnb-close{ position:absolute; top:8px; right:10px; background:none; border:none; font-size:20px; line-height:1; color:var(--text-muted); cursor:pointer; }
.wnb-close:hover{ color:var(--ink); }
.wnb-form-label{ font-size:12.5px; color:var(--ink-soft); margin:0 20px 10px 0; line-height:1.5; }
.wnb-form input{
  width:100%; padding:9px 12px; font-family:var(--sans); font-size:13px; margin-bottom:8px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--white); color:var(--ink);
}
.wnb-form-note{ font-size:11.5px; margin:8px 0 0; text-align:center; min-height:14px; }

.whatsapp-float{
  position:fixed; right:18px; bottom:92px; z-index:140;
  width:52px; height:52px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px rgba(37,211,102,0.45); transition:transform 0.15s ease;
}
.whatsapp-float:hover{ transform:scale(1.06); }
.whatsapp-float svg{ width:28px; height:28px; }
@media (max-width:420px){
  .whatsapp-float{ width:46px; height:46px; right:14px; bottom:86px; }
  .whatsapp-float svg{ width:24px; height:24px; }
}

#toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(120%);
  background:var(--ink); color:var(--white); padding:14px 22px; font-size:14px; border-radius:var(--radius);
  border:1px solid var(--gold); z-index:200; transition:transform 0.35s ease; max-width:90vw; text-align:center;
}
#toast.show{ transform:translateX(-50%) translateY(0); }

/* ---------- ADMIN ---------- */
body.admin-body{ display:block; }
body:not(.admin-ready) .admin-content{ display:none; }
.admin-header{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:16px 24px; background:var(--white); border-bottom:1px solid var(--line);
}
.admin-header img{ height:80px; }
.admin-header-right{ display:flex; align-items:center; gap:14px; font-size:13px; color:var(--text-muted); }
.admin-tabs{ display:flex; gap:4px; padding:16px 24px 0; border-bottom:1px solid var(--line); background:var(--white); }
.admin-tab{
  padding:10px 18px; font-size:13px; font-weight:600; color:var(--text-muted); cursor:pointer;
  border-bottom:2px solid transparent; background:none; border-top:none; border-left:none; border-right:none;
}
.admin-tab.active{ color:var(--maroon); border-bottom-color:var(--maroon); }
.admin-panel{ display:none; padding:28px 24px 60px; max-width:900px; margin:0 auto; }
.admin-panel.active{ display:block; }
.admin-panel-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:10px; }
.admin-panel-head h2{ font-family:var(--serif); font-size:22px; }

.admin-table{ width:100%; border-collapse:collapse; background:var(--white); border:1px solid var(--line); }
.admin-table th, .admin-table td{ text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); font-size:13px; vertical-align:middle; }
.admin-table th{ background:var(--cream-2); font-size:11.5px; text-transform:uppercase; letter-spacing:0.03em; color:var(--text-muted); }
.admin-table img{ width:40px; height:52px; object-fit:cover; border-radius:2px; }
.admin-table .btn-small{ margin-right:6px; }
.product-id-cell{ font-family:monospace; font-size:12px; color:var(--text-muted); white-space:nowrap; }
@media (max-width:700px){
  .admin-table thead{ display:none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td{ display:block; width:100%; }
  .admin-table tr{ border:1px solid var(--line); margin-bottom:10px; padding:10px; }
  .admin-table td{ border:none; padding:4px 0; }
}

.admin-modal{ display:none; position:fixed; inset:0; z-index:300; }
.admin-modal.open{ display:block; }
.admin-modal-backdrop{ position:absolute; inset:0; background:rgba(36,22,17,0.55); }
.admin-modal-panel{
  position:relative; z-index:1; background:var(--white); border-radius:var(--radius);
  max-width:640px; width:min(92vw,640px); max-height:88vh; overflow-y:auto;
  margin:5vh auto; padding:28px;
}
.admin-modal-close{
  position:absolute; top:12px; right:14px; background:none; border:none;
  font-size:26px; line-height:1; color:var(--text-muted); cursor:pointer;
}
.admin-modal-close:hover{ color:var(--ink); }
body.admin-modal-lock{ overflow:hidden; }
.admin-modal-panel .admin-form{ border:none; padding:0; margin-bottom:0; }
@media (max-width:640px){ .admin-modal-panel{ padding:20px; margin:3vh auto; max-height:94vh; } }

.admin-form{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:24px; margin-bottom:24px; }
.admin-form h3{ font-size:16px; margin-bottom:16px; }
.admin-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .admin-form-row{ grid-template-columns:1fr; } }
.admin-radio-row{ display:flex; gap:18px; flex-wrap:wrap; margin-bottom:16px; }
.admin-radio-row label{ display:flex; align-items:center; gap:6px; font-size:13.5px; cursor:pointer; }
.repeater-row{ display:flex; gap:8px; margin-bottom:8px; align-items:center; }
.repeater-row input{ flex:1; }
.repeater-row select{
  flex:0 0 112px; height:40px; padding:0 8px; font-family:var(--sans); font-size:12.5px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--white); color:var(--ink);
}
.repeater-row .p-size-stock{ flex:0 0 80px; }
.repeater-remove{ background:none; border:1px solid var(--line); border-radius:var(--radius); width:36px; height:36px; cursor:pointer; color:var(--maroon); flex-shrink:0; }
.repeater-add{ font-size:12px; font-weight:600; color:var(--maroon); background:none; border:none; cursor:pointer; padding:4px 0; text-decoration:underline; }
.admin-form-actions{ display:flex; gap:10px; margin-top:20px; }

.admin-stats-row{ display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:12px; margin-bottom:24px; }
.admin-stat-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; }
.admin-stat-label{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--text-muted); margin-bottom:6px; }
.admin-stat-value{ font-family:var(--serif); font-size:22px; font-weight:600; font-style:italic; color:var(--ink); }

.order-lookup{ display:flex; gap:10px; max-width:420px; margin-bottom:24px; }
.order-lookup input{ flex:1; }

.orders-filter-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:14px; }
.orders-filter-row input[type="text"]{
  flex:1; min-width:200px; padding:9px 12px; font-family:var(--sans); font-size:13.5px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--white); color:var(--ink);
}
.orders-filter-row select{
  padding:9px 12px; font-family:var(--sans); font-size:13.5px;
  border:1px solid var(--line); border-radius:var(--radius); background:var(--white); color:var(--ink);
}
.orders-filter-row .btn:disabled{ opacity:0.45; cursor:not-allowed; }
#orders-table td:first-child, #orders-table th:first-child{ width:32px; text-align:center; }
.order-detail{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.order-status-row{ display:flex; gap:10px; margin-top:16px; flex-wrap:wrap; }
.order-status-btn{
  padding:9px 16px; font-size:12.5px; font-weight:600; border-radius:20px; border:1px solid var(--line);
  background:var(--white); cursor:pointer; text-transform:uppercase; letter-spacing:0.03em;
}
.order-status-btn.active{ background:var(--maroon); color:var(--white); border-color:var(--maroon); }
.dispatch-form{ margin-top:16px; padding-top:16px; border-top:1px solid var(--line); max-width:360px; }
.admin-empty-note{ color:var(--text-muted); font-size:13.5px; padding:20px 0; }

.home-order-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:14px; }
.home-order-tile{
  display:flex; flex-direction:column; gap:6px; padding:8px; border:1px solid var(--line);
  border-radius:var(--radius); background:var(--white); cursor:grab; user-select:none;
}
.home-order-tile:active{ cursor:grabbing; }
.home-order-tile img{ width:100%; aspect-ratio:3/4; object-fit:cover; border-radius:2px; background:var(--cream-2); pointer-events:none; }
.home-order-name{ font-size:12.5px; text-align:center; line-height:1.3; pointer-events:none; }
.home-order-tile.dragging{ opacity:0.4; border-color:var(--maroon); }
