:root{
  --accent:#6D28D9;
  --accent-dark:#5b21b6;
  --secondary:#A855F7;
  --secondary-dark:#9333EA;
  --bg:#f5f6f7;
  --card-bg:#ffffff;
  --text:#1a1a1a;
  --muted:#6b7280;
  --border:#e5e7eb;
}
*{box-sizing:border-box;margin:0;padding:0;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{text-decoration:none;color:inherit;}

/* Header */
header.site-header{
  position:sticky;top:0;z-index:50;
  background:#ffffff;
  border-bottom:1px solid var(--border);
}
.header-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:center;gap:28px;
  padding:14px 24px;
}
.logo{
  display:flex;align-items:center;gap:8px;
  font-weight:800;font-size:20px;letter-spacing:-0.5px;
}
.logo .dot{width:10px;height:10px;border-radius:50%;background:var(--accent);display:inline-block;}
.logo-img{height:32px;width:32px;object-fit:cover;display:block;border-radius:50%;}
nav.main-nav{display:flex;gap:22px;flex:1;}
nav.main-nav a{
  font-size:14.5px;font-weight:600;color:#374151;
  padding:8px 2px;border-bottom:2px solid transparent;
}
nav.main-nav a.active,nav.main-nav a:hover{color:var(--accent);border-bottom-color:var(--accent);}
.search-box{
  flex:0 0 320px;
  display:flex;align-items:center;
  background:var(--bg);border:1px solid var(--border);
  border-radius:20px;padding:8px 16px;gap:8px;
}
.search-box input{
  border:none;background:transparent;outline:none;
  font-size:14px;width:100%;color:var(--text);
}
.login-btn{
  background:var(--accent);color:#fff;font-weight:700;
  padding:9px 20px;border-radius:20px;font-size:14px;
  white-space:nowrap;
}
.login-btn:hover{background:var(--accent-dark);}

/* Hero */
.hero{
  position:relative;overflow:hidden;
  height:360px;display:flex;align-items:center;
  background-image:url('assets/hero-banner.png');
  background-size:cover;background-position:center;background-repeat:no-repeat;
  color:#fff;padding:0 24px;
}
.hero-inner{max-width:1280px;margin:0 auto;position:relative;z-index:1;width:100%;}
.hero-flex{display:flex;align-items:center;justify-content:flex-start;gap:32px;}
.hero-text{
  flex:0 1 auto;min-width:0;max-width:560px;
  background:rgba(10,4,26,0.55);
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  border-radius:16px;padding:22px 26px;
}
.hero h1{font-size:44px;font-weight:900;letter-spacing:-1px;margin-bottom:14px;}
.hero p{font-size:17px;color:#c9d6cf;max-width:600px;margin-bottom:0;}
.hero .pill{
  display:inline-block;background:rgba(216,180,254,0.18);color:#e9d5ff;
  border:1px solid rgba(216,180,254,0.4);border-radius:20px;
  padding:6px 16px;font-size:13px;font-weight:700;margin-bottom:18px;
}
@media (max-width:820px){
  .hero{height:auto;padding:32px 20px;}
  .hero-text{max-width:none;}
}

/* Category grid on homepage */
.section{max-width:1280px;margin:0 auto;padding:48px 24px;}
.section-title{font-size:24px;font-weight:800;margin-bottom:22px;}
.cat-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:20px;
}
.cat-card{
  background:var(--card-bg);border:1px solid var(--border);
  border-radius:14px;padding:26px;
  transition:transform .15s ease,box-shadow .15s ease;
  display:flex;flex-direction:column;gap:10px;
}
.cat-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,0.08);}
.cat-card .icon{
  width:46px;height:46px;border-radius:10px;
  background:var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:22px;
}
.cat-card.disabled{opacity:0.45;cursor:not-allowed;}
/* Loading placeholders — shown until the live category counts arrive, so a
   visitor never sees stale numbers from the bundled static catalogue. */
.cat-card.is-loading{pointer-events:none;}
.cat-card.is-loading .icon{background:#ece9f5;}
.sk{display:block;border-radius:6px;background:linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%);
    background-size:400% 100%;animation:pp-sk 1.2s ease-in-out infinite;}
.sk-title{width:70%;height:15px;}
.sk-count{width:45%;height:11px;}
@keyframes pp-sk{0%{background-position:100% 50%;}100%{background-position:0 50%;}}
@media (prefers-reduced-motion: reduce){ .sk{animation:none;} }
.grid-loading{grid-column:1/-1;padding:40px 0;text-align:center;color:var(--muted);font-size:14px;}
.cat-card h3{font-size:17px;font-weight:800;}
.cat-card p{font-size:13.5px;color:var(--muted);}
.cat-card .count{font-size:12.5px;font-weight:700;color:var(--accent);}

/* Category page header */
.category-hero{
  background:#fff;border-bottom:1px solid var(--border);
  padding:34px 24px;
}
.category-hero-inner{max-width:1280px;margin:0 auto;}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:10px;}
.breadcrumb a{color:var(--accent);font-weight:600;}
.category-hero h1{font-size:30px;font-weight:900;margin-bottom:6px;}
.category-hero .sub{color:var(--muted);font-size:14.5px;}
.toolbar{
  max-width:1280px;margin:0 auto;padding:18px 24px 0;
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
}
.sort-tabs{display:flex;gap:6px;}
.sort-tabs button{
  border:1px solid var(--border);background:#fff;
  padding:7px 16px;border-radius:18px;font-size:13.5px;font-weight:600;
  color:#374151;cursor:pointer;
}
.sort-tabs button.active{background:var(--accent);border-color:var(--accent);color:#fff;}
.result-count{font-size:13.5px;color:var(--muted);}

/* Card grid */
.grid{
  max-width:1280px;margin:0 auto;padding:24px;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:20px;
}
.card{
  background:var(--card-bg);border:1px solid var(--border);
  border-radius:14px;overflow:hidden;position:relative;
  display:flex;flex-direction:column;
  transition:transform .15s ease,box-shadow .15s ease;
}
/* Card badge stack — top-right corner, badges list vertically so Hidden /
   Trending / On Sale can all show at once without overlapping. */
.badge-stack{
  position:absolute;top:10px;right:10px;z-index:3;
  display:flex;flex-direction:column;align-items:flex-end;gap:6px;
}
.hot-badge{
  background:linear-gradient(135deg,#ff6b35,#e8380d);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:0.3px;
  padding:5px 10px;border-radius:20px;box-shadow:0 3px 8px rgba(0,0,0,0.25);
  display:flex;align-items:center;gap:3px;text-transform:uppercase;
}
.sale-badge{
  background:linear-gradient(135deg,#e11d48,#9f1239);color:#fff;
  font-size:11px;font-weight:800;letter-spacing:0.3px;
  padding:5px 10px;border-radius:20px;box-shadow:0 3px 8px rgba(0,0,0,0.25);
  display:flex;align-items:center;gap:3px;text-transform:uppercase;
}

/* Same badge set, larger, stacked near the top of the modal image. */
.modal-badge-stack{
  position:absolute;top:58px;right:14px;z-index:2;
  display:flex;flex-direction:column;align-items:flex-end;gap:8px;
}
.modal-hot-badge{
  background:linear-gradient(135deg,#ff6b35,#e8380d);color:#fff;
  font-size:12px;font-weight:800;letter-spacing:0.3px;
  padding:6px 12px;border-radius:20px;box-shadow:0 3px 8px rgba(0,0,0,0.25);
  display:flex;align-items:center;gap:4px;text-transform:uppercase;
}
.modal-sale-badge{background:linear-gradient(135deg,#e11d48,#9f1239);}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,0.1);}
.card .thumb{
  width:100%;aspect-ratio:1/1;object-fit:cover;background:#eee;display:block;
}
.card .body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1;}
.card .title{
  font-size:14.5px;font-weight:700;line-height:1.3;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  min-height:38px;
}
.card .designer{font-size:12.5px;color:var(--muted);}
.card .stats{
  display:flex;gap:14px;margin-top:auto;padding-top:8px;
  font-size:12.5px;color:var(--muted);
}
.card .stats span{display:flex;align-items:center;gap:4px;}

/* Price row on card, with quick add-to-cart button */
.card .price-row{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:auto;padding-top:8px;gap:8px;
}
.card .price{font-size:16px;font-weight:800;color:var(--text);}
.quick-cart-btn{
  background:var(--secondary);color:#fff;border:none;border-radius:16px;
  width:32px;height:32px;font-size:17px;line-height:1;font-weight:700;
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  flex-shrink:0;transition:background .15s ease,transform .1s ease;
}
.quick-cart-btn:hover{background:var(--secondary-dark);}
.quick-cart-btn.added{background:var(--accent);}
.quick-cart-btn:active{transform:scale(0.9);}

/* Admin-only inline price editing (shop cards + product modal) */
.admin-price-edit{display:flex;align-items:center;gap:6px;}
.price-edit-input{
  width:78px;border:1.5px solid var(--secondary);border-radius:8px;
  padding:5px 8px;font-size:14px;font-weight:700;font-family:inherit;outline:none;
  transition:border-color .3s ease;
}
.price-edit-save{
  background:var(--secondary);color:#fff;border:none;border-radius:8px;
  width:28px;height:28px;font-size:14px;font-weight:700;cursor:pointer;flex-shrink:0;
}
.price-edit-save:hover{background:var(--secondary-dark);}
.price-edit-save:disabled{opacity:0.6;cursor:default;}
.modal-price-edit .price-edit-input{width:110px;font-size:18px;padding:8px 10px;}
/* Live margin against the cost of making, next to the Save price button. */
.modal-margin-badge{
  font-size:12.5px;font-weight:800;padding:5px 10px;border-radius:12px;
  background:#e8f5e9;color:#2e7d32;white-space:nowrap;
}
.modal-margin-badge:empty{display:none;}
.modal-margin-badge.is-low{background:#fff4e5;color:#b26a00;}
.modal-margin-badge.is-negative{background:#fdecea;color:#c0392b;}
.modal-price-edit .price-edit-save{width:auto;padding:0 14px;height:36px;font-size:13px;}

/* Admin variant-price editing (shop card expandable list + product modal rows) */
.admin-variant-toggle{
  background:#fff;border:1.5px solid var(--secondary);color:var(--secondary);
  border-radius:8px;width:28px;height:28px;font-size:14px;cursor:pointer;flex-shrink:0;
}
.admin-variant-toggle:hover{background:#f2eefb;}
.admin-variant-edit-list{
  flex-direction:column;gap:6px;margin-top:8px;padding-top:8px;
  border-top:1px dashed var(--border);
}
.admin-variant-edit-row{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.admin-variant-edit-name{font-size:12.5px;color:var(--muted);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.modal-variant-price-edit .price-edit-input{width:70px;font-size:13px;padding:4px 6px;}
.modal-variant-price-edit .price-edit-save{width:26px;height:26px;font-size:12px;}

/* Admin-only ★ Trending toggle — shop card + product modal. Bordered
   outline style, purple by default, gold once trending. */
.admin-star-toggle{
  background:#fff;border:1.5px solid var(--secondary);color:var(--secondary);
  border-radius:8px;width:28px;height:28px;font-size:14px;cursor:pointer;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
}
.admin-star-toggle:hover{background:#f2eefb;}
.admin-star-toggle.is-trending{background:#fff7e0;border-color:#d97706;color:#d97706;}
.admin-star-toggle:disabled{opacity:0.6;cursor:default;}

/* Admin-only Hide/Restore toggle — same bordered-outline treatment as the
   star toggle above (not a solid grey button), just in a red/rose accent so
   the two are easy to tell apart at a glance. Once a product IS hidden, the
   button flips to a solid rose fill (its "Restore" state) the same way the
   star fills gold once trending. Full delete stays admin.html-only. */
.admin-hide-toggle{
  background:#fff;border:1.5px solid #e11d48;color:#e11d48;
  border-radius:8px;width:28px;height:28px;font-size:14px;cursor:pointer;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
}
.admin-hide-toggle:hover{background:#fff1f2;}
.admin-hide-toggle.is-hidden-state{background:#e11d48;border-color:#e11d48;color:#fff;}
.admin-hide-toggle.is-hidden-state:hover{background:#be123c;border-color:#be123c;}
.admin-hide-toggle:disabled{opacity:0.6;cursor:default;}

/* Same two actions, larger with a label, inside the product modal */
.modal-admin-icon-row{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap;}
.modal-icon-btn{
  width:auto;height:auto;display:inline-flex;align-items:center;gap:6px;
  border-radius:8px;padding:7px 14px;font-size:13px;font-weight:700;cursor:pointer;
}
.modal-icon-btn .icon{font-size:15px;}
.modal-icon-btn:disabled{opacity:0.6;cursor:default;}
/* Colors come from .admin-star-toggle/.is-trending and .admin-hide-toggle/
   .is-hidden-state, which modal-icon-btn also carries. */

/* Admin-only category re-assign row, right below the Trending/Hide buttons
   in the product modal — same select+save shape as the price-edit row. */
.modal-category-edit{display:flex;align-items:center;gap:6px;margin-bottom:14px;}
.modal-category-edit select,
.modal-category-edit input[type=text]{
  border:1.5px solid var(--secondary);border-radius:8px;
  padding:6px 10px;font-size:13.5px;font-family:inherit;outline:none;flex:1;max-width:220px;
}
.category-edit-save{
  background:var(--secondary);color:#fff;border:none;border-radius:8px;
  padding:0 14px;height:32px;font-size:13px;font-weight:700;cursor:pointer;flex-shrink:0;
}
.category-edit-save:hover{background:var(--secondary-dark);}
.category-edit-save:disabled{opacity:0.6;cursor:default;}
.modal-category-edit .category-edit-msg{font-size:12px;color:var(--muted);}
/* Admin-only editable description, below the category row. */
.modal-desc-edit{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;}
.modal-desc-edit textarea{
  border:1.5px solid var(--secondary);border-radius:8px;padding:8px 10px;
  font-size:13px;font-family:inherit;outline:none;resize:vertical;min-height:60px;width:100%;
}
.modal-desc-edit-row{display:flex;align-items:center;gap:8px;}
.modal-desc-edit .category-edit-msg{font-size:12px;color:var(--muted);}

.modal-hidden-note{
  background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;
  border-radius:10px;padding:10px 14px;font-size:12.5px;margin-bottom:14px;
}

/* Admin-only, view-only cost breakdown in the product modal */
.modal-cost-box{
  background:#f8f7ff;border:1px solid #e4defb;border-radius:10px;
  padding:12px 14px;margin-bottom:14px;
}
.modal-cost-title{font-size:12.5px;font-weight:800;color:var(--secondary);margin-bottom:5px;text-transform:uppercase;letter-spacing:0.3px;}
.modal-cost-line{font-size:13px;color:#374151;line-height:1.5;}
.modal-cost-line + .modal-cost-line{margin-top:3px;}
/* Admin-only scratchpad calculator inside the cost box — UI only, no DB write. */
.modal-cost-calc{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:6px 0;}
.modal-cost-calc input{
  width:82px;border:1.5px solid var(--secondary);border-radius:8px;
  padding:5px 8px;font-size:13px;font-family:inherit;outline:none;
}
.modal-cost-calc .cost-save-btn{
  background:#fff;color:var(--secondary);border:1.5px solid var(--secondary);
  padding:0 10px;height:29px;font-size:14px;line-height:1;
}
.modal-cost-calc .cost-save-btn:hover{background:#f2eefb;}
.modal-cost-calc .cost-save-btn:disabled{opacity:0.6;cursor:default;}
.modal-cost-calc button{
  background:var(--secondary);color:#fff;border:none;border-radius:8px;
  padding:0 12px;height:29px;font-size:12.5px;font-weight:700;cursor:pointer;flex-shrink:0;
}
.modal-cost-calc button:hover{background:var(--secondary-dark);}
.modal-cost-calc span{font-size:13px;color:#374151;}
.modal-cost-calc .calc-detail{font-size:11.5px;color:var(--muted);display:block;width:100%;}

/* Admin-only inline offer-price editor, right under the Save price row in
   the product modal. */
.modal-offer-edit{margin-top:10px;}
.modal-offer-label{display:block;font-size:11.5px;color:var(--muted);margin-bottom:5px;}
.offer-clear-btn{
  background:#fff;border:1.5px solid #e11d48;color:#e11d48;
  border-radius:8px;width:28px;height:28px;font-size:13px;cursor:pointer;flex-shrink:0;
}
.offer-clear-btn:hover{background:#fff1f2;}
.offer-clear-btn:disabled{opacity:0.6;cursor:default;}

/* Discounted price display — shop card + product modal, visible to everyone */
.price-offer-wrap{display:inline-flex;align-items:baseline;gap:7px;flex-wrap:wrap;}
.price-original{font-size:13px;color:var(--muted);text-decoration:line-through;font-weight:600;}
.price-final{font-size:16px;font-weight:800;color:#e11d48;}
.discount-badge{
  background:#e11d48;color:#fff;font-size:10.5px;font-weight:800;
  padding:2px 7px;border-radius:10px;letter-spacing:0.2px;white-space:nowrap;
}
.modal-price .price-final{font-size:20px;}

/* Small note under an admin's editable price input on the shop card, when a
   product also has a live offer price (edit the offer itself in the popup). */
.mini-offer-note{font-size:11px;color:#e11d48;margin-top:-2px;}

/* Card + badge treatment for a hidden product — admins only ever see these
   (customers never receive them from ppLoadCatalog in the first place). */
.card.is-hidden{border:1.5px dashed #e11d48;opacity:0.82;}
.hidden-badge{
  position:absolute;top:10px;right:10px;z-index:3;
  background:linear-gradient(135deg,#e11d48,#9f1239);color:#fff;
  font-size:10.5px;font-weight:800;letter-spacing:0.2px;
  padding:5px 10px;border-radius:20px;box-shadow:0 3px 8px rgba(0,0,0,0.25);
  display:flex;align-items:center;gap:3px;text-transform:uppercase;
}

footer.site-footer{
  border-top:1px solid var(--border);margin-top:40px;
  padding:28px 24px;text-align:center;color:var(--muted);font-size:13px;
}
footer.site-footer .footer-disclaimer{
  margin-top:10px;font-size:11.5px;color:#9aa1ab;max-width:760px;
  margin-left:auto;margin-right:auto;line-height:1.5;
}

.hero-order-note{
  margin-top:18px;display:inline-block;
  background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);
  border-radius:10px;padding:10px 16px;font-size:13.5px;color:#e8f5ec;
}

/* Category grid links (homepage) */
.cat-card{cursor:pointer;}
.cat-card .count{margin-top:auto;}

/* Chip row (shop page) */
.chip-row{display:flex;flex-wrap:wrap;gap:8px;}
.chip{
  border:1px solid var(--border);background:#fff;
  padding:7px 14px;border-radius:18px;font-size:13px;font-weight:600;
  color:#374151;cursor:pointer;white-space:nowrap;
}
.chip.active{background:var(--accent);border-color:var(--accent);color:#fff;}

/* Cards clickable, no meta row now */
.card{cursor:pointer;}

/* Modal */
.modal-overlay{
  display:none;position:fixed;inset:0;background:rgba(10,10,10,0.55);
  z-index:100;align-items:center;justify-content:center;padding:20px;
}
.modal-overlay.open{display:flex;}
.modal{
  background:#fff;border-radius:16px;max-width:1140px;width:100%;
  max-height:90vh;overflow-y:auto;position:relative;
  display:flex;flex-wrap:wrap;align-items:stretch;
}
.modal-close{
  position:absolute;top:14px;right:14px;z-index:2;
  background:rgba(0,0,0,0.55);color:#fff;border:none;border-radius:50%;
  width:32px;height:32px;font-size:16px;cursor:pointer;
}
/* Product image panel. `object-fit:contain` shows the WHOLE image at its own
   aspect ratio (no crop, no stretch), while `align-self:stretch` lets the
   panel fill the modal's height so the image is centred in a generous area
   rather than pinned small at the top. */
.modal-img{
  width:100%;max-width:620px;flex:1 1 520px;
  align-self:stretch;min-height:min(640px,76vh);
  object-fit:contain;object-position:center;
  padding:10px;
  border-radius:16px 0 0 16px;background:#f5f5f7;
}
.modal-body{padding:26px 28px;flex:1;min-width:280px;display:flex;flex-direction:column;gap:10px;}
.modal-cat{color:var(--accent);font-weight:700;font-size:12.5px;text-transform:uppercase;letter-spacing:0.5px;}
.modal-body h2{font-size:22px;font-weight:800;line-height:1.3;}
.modal-colors{font-size:13.5px;color:#374151;}
.modal-desc{font-size:13.5px;color:var(--muted);line-height:1.5;}
.order-note{
  background:#fff4e5;border:1px solid #ffd8a8;color:#8a5a00;
  border-radius:10px;padding:10px 14px;font-size:12.5px;
}
.order-btn{
  background:var(--accent);color:#fff;font-weight:700;font-size:14.5px;
  border:none;border-radius:24px;padding:14px 20px;cursor:pointer;margin-top:4px;
}
.order-btn:hover{background:var(--accent-dark);}
.order-btn.instagram{background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);}
.order-btn.instagram:hover{filter:brightness(0.92);}
.order-toast{font-size:12.5px;color:var(--accent-dark);font-weight:600;min-height:18px;}
.source-link{font-size:12.5px;color:var(--muted);text-decoration:underline;margin-top:auto;}

/* Cart icon + badge */
.cart-link{
  position:relative;font-size:20px;padding:6px 8px;
  display:flex;align-items:center;
}
.cart-badge{
  position:absolute;top:-2px;right:-2px;
  background:var(--accent);color:#fff;font-size:11px;font-weight:800;
  min-width:17px;height:17px;border-radius:9px;
  display:flex;align-items:center;justify-content:center;padding:0 3px;
}

/* Modal price */
.modal-price{font-size:26px;font-weight:900;color:var(--text);margin-top:2px;}

/* Modal button row */
.modal-btn-row{display:flex;gap:10px;flex-wrap:wrap;}
.cart-btn{
  background:#fff;color:var(--secondary);font-weight:700;font-size:14.5px;
  border:1.5px solid var(--secondary);border-radius:24px;padding:14px 20px;cursor:pointer;margin-top:4px;
}
.cart-btn:hover{background:#f2eefb;}
.note-btn{
  background:#fff;color:var(--secondary);font-weight:700;font-size:14.5px;
  border:1.5px solid var(--secondary);border-radius:24px;padding:14px 20px;cursor:pointer;margin-top:4px;
}
.note-btn:hover{background:#f2eefb;}
.note-btn.has-note{background:var(--secondary);color:#fff;}
.note-field{display:none;flex-direction:column;gap:6px;margin-top:2px;}
.note-field.open{display:flex;}
.note-field textarea{
  border:1px solid var(--border);border-radius:10px;padding:10px 12px;
  font-size:13.5px;font-family:inherit;outline:none;resize:vertical;min-height:64px;
}
.note-field textarea:focus{border-color:var(--secondary);}
.note-field .hint{font-size:12px;color:var(--muted);}
.shipping-note{font-size:12.5px;color:#374151;background:#f1f5f3;border-radius:8px;padding:8px 12px;}

/* Checkout: delivery details + totals */
.checkout-block{
  background:var(--card-bg);border:1px solid var(--border);border-radius:14px;
  padding:20px 22px;margin-bottom:18px;
}
.checkout-block h3{font-size:15px;font-weight:800;margin-bottom:12px;}
.checkout-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;
}
.checkout-grid .form-field input{width:100%;box-sizing:border-box;}
.checkout-totals{
  background:var(--card-bg);border:1px solid var(--border);border-radius:14px;
  padding:16px 22px;margin-bottom:14px;
}
.checkout-totals .row{
  display:flex;justify-content:space-between;padding:6px 0;font-size:14px;color:#374151;
}
.checkout-totals .row.grand{
  border-top:1px solid var(--border);margin-top:6px;padding-top:12px;
  font-size:17px;font-weight:800;color:var(--text);
}
@media (max-width:600px){
  .checkout-grid{grid-template-columns:1fr;}
}

/* Variant checkboxes */
.variant-field{display:flex;flex-direction:column;gap:6px;margin-top:2px;}
.variant-title{font-size:13.5px;font-weight:700;color:var(--text);}
.variant-list{display:flex;flex-direction:column;gap:6px;}
.variant-row{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border:1px solid var(--border);border-radius:10px;padding:9px 12px;
  cursor:pointer;transition:border-color .15s ease,background .15s ease;
}
.variant-row:hover{border-color:var(--secondary);}
.variant-row.checked{border-color:var(--secondary);background:#faf5ff;}
.variant-row .variant-label{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--text);}
.variant-row input[type="checkbox"]{width:17px;height:17px;accent-color:var(--secondary);cursor:pointer;flex-shrink:0;}
.variant-row .variant-price{font-weight:800;font-size:13.5px;color:var(--secondary);white-space:nowrap;}
.variant-summary{font-size:12.5px;color:var(--muted);}
.variant-summary strong{color:var(--text);}

/* Contact / forms */
.form-page{max-width:480px;margin:40px auto;padding:0 24px;}
.form-card{
  background:var(--card-bg);border:1px solid var(--border);border-radius:16px;
  padding:32px 28px;display:flex;flex-direction:column;gap:16px;
}
.form-card h1{font-size:24px;font-weight:800;}
.form-card .sub{color:var(--muted);font-size:13.5px;margin-top:-10px;}
.working-on-it{
  background:#fff7e6;border:1px solid #ffd88a;color:#8a5a00;
  border-radius:10px;padding:12px 14px;font-size:13px;font-weight:600;line-height:1.5;
}
.form-field{display:flex;flex-direction:column;gap:6px;}
.form-field label{font-size:13px;font-weight:700;color:#374151;}
.form-field input,.form-field textarea{
  border:1px solid var(--border);border-radius:10px;padding:11px 14px;
  font-size:14px;font-family:inherit;outline:none;
}
.form-field input:focus,.form-field textarea:focus{border-color:var(--accent);}
.form-submit{
  background:var(--accent);color:#fff;font-weight:700;font-size:14.5px;
  border:none;border-radius:24px;padding:13px 20px;cursor:pointer;
  margin-top:16px;
}
.form-submit:hover{background:var(--accent-dark);}
.form-alt{font-size:13px;color:var(--muted);text-align:center;}
.form-alt a{color:var(--accent);font-weight:700;}
.form-msg{font-size:13px;font-weight:600;color:var(--accent-dark);min-height:16px;}

/* Contact page blocks */
.contact-grid{
  max-width:1000px;margin:0 auto;padding:40px 24px;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;
}
.contact-card{
  background:var(--card-bg);border:1px solid var(--border);border-radius:16px;
  padding:26px;display:flex;flex-direction:column;gap:10px;
}
.contact-card .icon{font-size:28px;}
.contact-card h3{font-size:17px;font-weight:800;}
.contact-card p{font-size:13.5px;color:var(--muted);line-height:1.5;}
.contact-btn{
  display:inline-block;margin-top:6px;text-align:center;
  background:var(--accent);color:#fff;font-weight:700;font-size:13.5px;
  border-radius:20px;padding:10px 18px;
}
.contact-btn.secondary{background:#fff;color:var(--accent-dark);border:1.5px solid var(--accent);}

/* Cart page */
.cart-page{max-width:900px;margin:0 auto;padding:32px 24px;}
.cart-item{
  display:flex;gap:16px;align-items:center;
  background:var(--card-bg);border:1px solid var(--border);border-radius:14px;
  padding:14px;margin-bottom:12px;
}
.cart-item img{width:72px;height:72px;object-fit:cover;border-radius:10px;background:#eee;}
.cart-item-info{flex:1;}
.cart-item-info .title{font-weight:700;font-size:14px;margin-bottom:3px;}
.cart-item-info .cat{font-size:12px;color:var(--muted);}
.cart-qty{display:flex;align-items:center;gap:8px;}
.cart-qty button{
  width:26px;height:26px;border-radius:50%;border:1px solid var(--border);
  background:#fff;cursor:pointer;font-weight:700;
}
.cart-remove{color:#c0392b;font-size:12.5px;font-weight:700;cursor:pointer;background:none;border:none;}
.cart-empty{text-align:center;color:var(--muted);padding:60px 20px;}
.cart-summary{
  background:var(--card-bg);border:1px solid var(--border);border-radius:14px;
  padding:20px;margin-top:16px;
}

@media (max-width:860px){
  nav.main-nav,.search-box{display:none;}
  .hero h1{font-size:32px;}
  .modal-img{
    max-width:100%;flex:none;border-radius:16px 16px 0 0;
    min-height:0;height:45vh;object-fit:contain;padding:12px;
  }
}
