: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;}

/* Small centred notice popup (used for the "online payment coming soon" message) */
.notice-overlay{
  display:none;position:fixed;inset:0;background:rgba(0,0,0,0.55);
  z-index:200;align-items:center;justify-content:center;padding:20px;
}
.notice-overlay.open{display:flex;}
.notice-box{
  background:#fff;border-radius:16px;max-width:420px;width:100%;
  padding:28px 26px;position:relative;text-align:center;
  display:flex;flex-direction:column;gap:12px;
  box-shadow:0 20px 50px rgba(0,0,0,0.25);
}
.notice-box .notice-icon{font-size:40px;line-height:1;}
.notice-box h3{font-size:19px;font-weight:800;color:var(--text);}
.notice-box p{font-size:13.5px;color:var(--muted);line-height:1.55;}
.notice-box .order-btn,.notice-box .cart-btn{width:100%;margin-top:2px;}
.notice-close{
  position:absolute;top:12px;right:12px;
  background:#f1f1f4;color:#555;border:none;border-radius:50%;
  width:28px;height:28px;font-size:13px;cursor:pointer;line-height:1;
}
.notice-close:hover{background:#e4e4e9;}
.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;}
/* Per-category note (e.g. "printed in one colour, painted by you") */
.cat-note{
  margin-top:10px;background:#fff4e5;border:1px solid #ffd8a8;color:#8a5a00;
  border-radius:10px;padding:10px 14px;font-size:13px;line-height:1.5;max-width:720px;
}
.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;
}
/* Hidden products (admin view only) — just a light fade so they read as
   "not live yet" while the real colours stay recognisable. On hover the
   image returns to full strength so you can judge the design properly. */
.card .thumb.is-hidden-thumb{
  opacity:0.55;transition:opacity .15s ease;
}
.card:hover .thumb.is-hidden-thumb{opacity:1;}
.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);}


/* Quantity row in the product popup */
.modal-qty-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.modal-qty-label{font-size:13.5px;font-weight:700;color:#374151;}
.modal-qty{
  display:inline-flex;align-items:center;gap:4px;
  border:1.5px solid var(--secondary);border-radius:20px;padding:3px;
}
.modal-qty-btn{
  background:var(--secondary);color:#fff;border:none;border-radius:50%;
  width:30px;height:30px;font-size:18px;line-height:1;font-weight:700;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.modal-qty-btn:hover{background:var(--secondary-dark);}
.modal-qty-btn:active{transform:scale(0.9);}
.modal-qty input{
  width:52px;border:none;outline:none;text-align:center;
  font-size:15px;font-weight:800;font-family:inherit;color:var(--text);
  -moz-appearance:textfield;
}
.modal-qty input::-webkit-outer-spin-button,
.modal-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.modal-qty-total{font-size:13.5px;font-weight:700;color:var(--accent);}
.modal-qty-total:empty{display:none;}

/* 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;}

/* The two cross-cutting shelves lead the chip row. Tinted so they read as a
   different kind of thing from the category chips beside them. */
.chip-shelf{
  background:linear-gradient(135deg,#f5f0ff,#faf7ff);
  border-color:var(--secondary);color:var(--accent-dark);
}
.chip-shelf:hover{background:#efe7ff;}
.chip-shelf.active{
  background:linear-gradient(135deg,var(--accent),var(--secondary));
  border-color:var(--accent);color:#fff;
}

/* "Our Design" badge — sits in the same stack as the hot/sale badges. Cool
   purple against the hot badge's orange so the two never read as one blob. */
.own-badge{
  background:linear-gradient(135deg,#7c3aed,#a855f7);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;
}
.modal-own-badge{background:linear-gradient(135deg,#7c3aed,#a855f7);}

/* ---- Homepage featured shelves ------------------------------------------
   Horizontal scroll rather than a wrapping grid: on a phone a swipeable strip
   shows there is more without pushing the categories off the screen. */
.featured-section{padding-bottom:6px;}
.featured-head{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:14px;flex-wrap:wrap;margin-bottom:12px;
}
.featured-sub{margin:4px 0 0;font-size:.86rem;color:var(--muted);}
.featured-all{
  font-size:.86rem;font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap;
}
.featured-all:hover{text-decoration:underline;}
.featured-row{
  display:flex;gap:14px;overflow-x:auto;padding:2px 2px 12px;
  scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
}
.featured-row::-webkit-scrollbar{height:6px;}
.featured-row::-webkit-scrollbar-thumb{background:#d8d3e6;border-radius:3px;}
.featured-card{
  flex:0 0 160px;scroll-snap-align:start;text-decoration:none;color:inherit;
  background:var(--card-bg);border:1px solid var(--border);border-radius:14px;
  padding:10px;transition:transform .15s ease,box-shadow .15s ease;
}
.featured-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px rgba(0,0,0,.10);}
.featured-img{
  width:100%;aspect-ratio:1/1;border-radius:10px;overflow:hidden;
  background:#f3f2f7;margin-bottom:9px;
}
.featured-img img{width:100%;height:100%;object-fit:cover;display:block;}
.featured-name{
  font-size:.82rem;font-weight:600;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.featured-price{margin-top:5px;font-size:.9rem;font-weight:800;color:var(--accent);}
.featured-price s{color:var(--muted);font-weight:500;margin-right:4px;}
@media (max-width:640px){
  .featured-card{flex-basis:140px;}
}

/* Admin toggle for it, matching the star toggle's shape. */
.admin-own-toggle{
  background:#fff;border:1.5px solid var(--secondary);color:var(--secondary);
  border-radius:8px;cursor:pointer;
}
.admin-own-toggle:hover{background:#f2eefb;}
.admin-own-toggle.is-own{
  background:linear-gradient(135deg,#7c3aed,#a855f7);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. */
/* Image column: the main photo, plus a thumbnail strip when a product has
   more than one image. */
.modal-media{
  display:flex;flex-direction:column;
  width:100%;max-width:620px;flex:1 1 520px;align-self:stretch;
  background:#f5f5f7;border-radius:16px 0 0 16px;padding:10px;gap:8px;
  position:relative;                 /* anchors the admin Edit button */
}

/* ---- Admin image editor (product popup) --------------------------------
   Only ever rendered for an admin session; customers never see any of this. */
.modal-img-edit{
  position:absolute;top:18px;right:18px;z-index:3;
  border:none;border-radius:999px;cursor:pointer;
  padding:9px 16px;font:600 13px/1 inherit;font-family:inherit;
  color:#fff;background:rgba(24,16,48,.82);backdrop-filter:blur(4px);
  box-shadow:0 3px 12px rgba(0,0,0,.24);transition:background .15s ease;
}
.modal-img-edit:hover{background:rgba(109,40,217,.95);}

.modal-img-editor{
  position:absolute;left:10px;right:10px;top:62px;z-index:4;
  background:#fff;border-radius:14px;padding:14px 16px 16px;
  box-shadow:0 14px 40px rgba(0,0,0,.24);
  max-height:calc(100% - 74px);overflow:auto;
}
.mie-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:11px;}
.mie-head strong{font-size:.95rem;}
.mie-count{font-size:.76rem;color:var(--muted);}
.mie-grid{display:flex;gap:10px;flex-wrap:wrap;}
.mie-item{
  position:relative;width:118px;height:118px;border-radius:10px;overflow:hidden;
  border:2px solid var(--border);background:#fafafa;
}
.mie-item.is-cover{border-color:var(--accent);}
.mie-item img{width:100%;height:100%;object-fit:contain;}
.mie-tag{
  position:absolute;left:0;bottom:0;background:var(--accent);color:#fff;
  font-size:.63rem;font-weight:700;padding:3px 7px;border-radius:0 8px 0 0;
}
.mie-cover{
  position:absolute;left:0;right:0;bottom:0;border:none;cursor:pointer;
  background:rgba(0,0,0,.62);color:#fff;font:600 .66rem/1 inherit;
  font-family:inherit;padding:5px 0;
}
.mie-cover:hover{background:var(--accent);}
.mie-x{
  position:absolute;top:4px;right:4px;width:24px;height:24px;border:none;
  border-radius:50%;cursor:pointer;background:rgba(220,38,38,.92);color:#fff;
  font-size:12px;line-height:24px;padding:0;
}
.mie-x:hover{background:#b91c1c;}
.mie-crop{
  position:absolute;top:4px;left:4px;width:24px;height:24px;border:none;
  border-radius:50%;cursor:pointer;background:rgba(24,16,48,.82);color:#fff;
  font-size:12px;line-height:24px;padding:0;
}
.mie-crop:hover{background:var(--accent);}

/* ---- Cropper ------------------------------------------------------------ */
.pp-crop-ov{
  position:fixed;inset:0;z-index:9999;background:rgba(10,8,20,.82);
  display:flex;align-items:center;justify-content:center;padding:16px;
}
.pp-crop-box{
  background:#fff;border-radius:16px;overflow:hidden;
  width:min(720px,100%);max-height:92vh;display:flex;flex-direction:column;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
}
.pp-crop-head{
  padding:14px 18px;border-bottom:1px solid var(--border);
  display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
}
.pp-crop-head strong{font-size:.98rem;}
.pp-crop-hint{font-size:.74rem;color:var(--muted);}
.pp-crop-stage{
  position:relative;flex:1 1 auto;min-height:300px;height:56vh;
  background:#1b1526;overflow:hidden;touch-action:none;user-select:none;
}
.pp-crop-img{position:absolute;display:block;pointer-events:none;}
.pp-crop-shade{position:absolute;inset:0;background:rgba(10,8,20,.62);pointer-events:none;}
.pp-crop-rect{
  position:absolute;border:2px solid #fff;cursor:move;
  box-shadow:0 0 0 1px rgba(0,0,0,.4);
}
/* Rule-of-thirds guides, drawn with a gradient so there are no extra nodes. */
.pp-crop-rect::after{
  content:'';position:absolute;inset:0;pointer-events:none;opacity:.5;
  background:
    linear-gradient(to right,transparent 33.33%,#fff 33.33%,#fff calc(33.33% + 1px),transparent calc(33.33% + 1px),
                    transparent 66.66%,#fff 66.66%,#fff calc(66.66% + 1px),transparent calc(66.66% + 1px)),
    linear-gradient(to bottom,transparent 33.33%,#fff 33.33%,#fff calc(33.33% + 1px),transparent calc(33.33% + 1px),
                    transparent 66.66%,#fff 66.66%,#fff calc(66.66% + 1px),transparent calc(66.66% + 1px));
}
.pp-crop-h{
  position:absolute;width:22px;height:22px;background:#fff;border-radius:4px;
  box-shadow:0 1px 4px rgba(0,0,0,.4);
}
.pp-crop-h.nw{left:-11px;top:-11px;cursor:nwse-resize;}
.pp-crop-h.ne{right:-11px;top:-11px;cursor:nesw-resize;}
.pp-crop-h.sw{left:-11px;bottom:-11px;cursor:nesw-resize;}
.pp-crop-h.se{right:-11px;bottom:-11px;cursor:nwse-resize;}
.pp-crop-bar{
  padding:12px 16px;border-top:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
}
.pp-crop-ratios{display:flex;gap:6px;}
.pp-crop-ratios button{
  border:1px solid var(--border);background:#fff;color:var(--muted);
  border-radius:999px;padding:7px 14px;cursor:pointer;
  font:600 .78rem/1 inherit;font-family:inherit;
}
.pp-crop-ratios button.on{background:var(--accent);border-color:var(--accent);color:#fff;}
.pp-crop-acts{display:flex;gap:8px;margin-left:auto;}
.pp-crop-cancel{
  border:1px solid var(--border);background:#fff;color:var(--muted);
  border-radius:999px;padding:9px 18px;cursor:pointer;
  font:600 .82rem/1 inherit;font-family:inherit;
}
.pp-crop-ok{
  border:none;background:var(--accent);color:#fff;border-radius:999px;
  padding:10px 22px;cursor:pointer;font:700 .82rem/1 inherit;font-family:inherit;
}
.pp-crop-ok:hover{background:var(--accent-dark);}
@media (max-width:640px){
  .pp-crop-stage{height:48vh;}
  .pp-crop-bar{gap:8px;}
  .pp-crop-acts{width:100%;}
  .pp-crop-ok,.pp-crop-cancel{flex:1;}
}
.mie-add{
  width:118px;height:118px;border-radius:10px;cursor:pointer;
  border:2px dashed var(--border);background:#fafafa;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  color:var(--muted);transition:border-color .15s ease,color .15s ease;
}
.mie-add:hover{border-color:var(--accent);color:var(--accent);}
.mie-plus{font-size:1.5rem;line-height:1;font-weight:300;}
.mie-addtxt{font-size:.72rem;font-weight:600;}
.mie-note{margin:10px 0 0;font-size:.76rem;color:var(--muted);}
.mie-actions{display:flex;align-items:center;gap:9px;margin-top:13px;flex-wrap:wrap;}
.mie-save{
  border:none;border-radius:999px;cursor:pointer;padding:9px 20px;
  background:var(--accent);color:#fff;font:700 .82rem/1 inherit;font-family:inherit;
}
.mie-save:hover:not(:disabled){background:var(--accent-dark);}
.mie-save:disabled{opacity:.6;cursor:default;}
.mie-cancel{
  border:1px solid var(--border);border-radius:999px;cursor:pointer;
  padding:8px 16px;background:#fff;color:var(--muted);
  font:600 .82rem/1 inherit;font-family:inherit;
}
.mie-msg{font-size:.75rem;color:var(--muted);flex:1 1 100%;}
.mie-msg.is-error{color:#b91c1c;font-weight:600;}

@media (max-width:640px){
  .modal-img-edit{top:12px;right:12px;padding:7px 13px;font-size:12px;}
  .modal-img-editor{top:52px;padding:12px;}
  .mie-item,.mie-add{width:100px;height:100px;}
}
.modal-img{
  width:100%;flex:1 1 auto;min-height:min(560px,68vh);
  object-fit:contain;object-position:center;
}
.modal-thumbs{
  display:flex;gap:8px;flex-wrap:wrap;justify-content:center;flex:0 0 auto;
}
.modal-thumb{
  width:62px;height:62px;padding:0;border:2px solid transparent;border-radius:10px;
  background:#fff;cursor:pointer;overflow:hidden;flex-shrink:0;
  transition:border-color .15s ease;
}
.modal-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.modal-thumb:hover{border-color:var(--secondary);}
.modal-thumb.active{border-color:var(--accent);}
.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;}
/* Printed size — read-only, shown to every visitor under the description. */
.modal-size{
  font-size:13.5px;color:#374151;background:#f8f7fb;
  border:1px solid var(--border);border-radius:8px;padding:8px 12px;
}
.modal-size-axes{color:var(--muted);font-size:12px;}
/* "Request a custom size" — collapsed link that opens a single free-text box.
   Deliberately free text: people describe sizes in their own words, and every
   such line gets re-quoted by hand anyway. */
.custom-size{margin:-4px 0 2px;}
.custom-size-link{
  background:none;border:none;padding:0;cursor:pointer;font-family:inherit;
  font-size:13px;font-weight:700;color:var(--accent);text-align:left;
}
.custom-size-link:hover{text-decoration:underline;}
.custom-size-link.is-set{color:#2e7d32;}
.custom-size-field{display:none;margin-top:8px;}
.custom-size-field.open{display:block;}
.custom-size-field input{
  width:100%;box-sizing:border-box;border:1.5px solid var(--secondary);border-radius:8px;
  padding:9px 11px;font-size:13.5px;font-family:inherit;outline:none;
}
.custom-size-note{
  margin-top:6px;background:#fff4e5;border:1px solid #ffd8a8;color:#8a5a00;
  border-radius:8px;padding:8px 11px;font-size:12px;line-height:1.5;
}
.custom-size-note a{color:#8a5a00;font-weight:700;text-decoration:underline;}
/* Name + WhatsApp number on a quick order. Hidden until someone actually taps
   an order button, so the popup stays uncluttered for browsing, and skipped
   entirely for repeat customers whose details this device already remembers. */
.buyer-field{
  display:none;
  background:#faf9fd;border:1px solid #e4defb;border-radius:12px;
  padding:14px 16px;margin-bottom:12px;
}
.buyer-field.open{display:block;animation:pp-buyer-in .18s ease-out;}
@keyframes pp-buyer-in{from{opacity:0;transform:translateY(-4px);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion: reduce){ .buyer-field.open{animation:none;} }
.buyer-title{
  font-size:13.5px;font-weight:800;color:var(--text);
  margin-bottom:2px;letter-spacing:-0.2px;
}
.buyer-hint{display:block;font-weight:500;font-size:12px;color:var(--muted);margin:2px 0 10px;}
.buyer-row{display:flex;gap:10px;flex-wrap:wrap;}
.buyer-row input{
  flex:1 1 160px;min-width:0;box-sizing:border-box;
  border:1px solid var(--border);border-radius:10px;
  padding:11px 13px;font-size:14px;font-family:inherit;
  background:#fff;color:var(--text);outline:none;
  transition:border-color .12s ease, box-shadow .12s ease;
}
.buyer-row input::placeholder{color:#9ca3af;}
.buyer-row input:focus{
  border-color:var(--secondary);
  box-shadow:0 0 0 3px rgba(168,85,247,0.15);
}
.buyer-row input.is-bad{border-color:#e11d48;}
.buyer-msg{font-size:12.5px;margin-top:8px;min-height:15px;color:var(--muted);}
.buyer-msg.is-bad{color:#c0392b;font-weight:600;}
/* Admin-only size editor */
.modal-size-edit{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:14px;}
.modal-size-edit-label{font-size:12.5px;font-weight:700;color:#374151;}
.modal-size-edit input{
  width:74px;border:1.5px solid var(--secondary);border-radius:8px;
  padding:6px 8px;font-size:13px;font-family:inherit;outline:none;
}
.modal-size-edit .category-edit-msg{font-size:12px;color:var(--muted);}
.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-media{
    max-width:100%;flex:none;border-radius:16px 16px 0 0;padding:12px;
  }
  .modal-img{min-height:0;height:40vh;}
  .modal-thumb{width:52px;height:52px;}
}


/* "Continue with Google" — Google's brand guidelines want their own mark on a
   white or dark button with clear space; this is the light variant. */
.google-btn{
  width:100%;display:flex;align-items:center;justify-content:center;gap:10px;
  background:#fff;color:#3c4043;border:1px solid #dadce0;border-radius:10px;
  padding:12px 16px;font-size:14.5px;font-weight:600;font-family:inherit;
  cursor:pointer;transition:background .12s ease,box-shadow .12s ease;
}
.google-btn:hover{background:#f7f8f8;box-shadow:0 1px 3px rgba(60,64,67,0.2);}
.google-btn:active{background:#eef0f1;}
.google-btn svg{flex:0 0 auto;}
.auth-divider{
  display:flex;align-items:center;gap:12px;margin:16px 0;
  color:var(--muted);font-size:12.5px;
}
.auth-divider::before,.auth-divider::after{
  content:'';flex:1;height:1px;background:var(--border);
}
