/* Author display rules must not override the application hidden state. */
[hidden]{display:none!important}
/* ============================================================================
   Shugis - order site. Brand: blue #0cbbf4, pink dot #ec4899, ink #282828,
   fonts Assistant / Heebo. Mobile & tablet first, RTL.
   ========================================================================== */
:root{
  --blue:#0cbbf4; --blue-d:#079ecf; --pink:#ec4899; --ink:#282828;
  --paper:#ffffff; --bg:#f4fbff; --line:#e7eef3; --muted:#7b8894;
  --ok:#16a34a; --warn:#f59e0b; --err:#e11d48;
  --r:16px; --r-lg:22px; --shadow:0 6px 24px rgba(20,40,60,.08);
  --shadow-lg:0 14px 40px rgba(20,40,60,.14);
  --maxw:960px; --topbar-h:58px;
  font-synthesis:none;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Assistant","Heebo",system-ui,sans-serif;
  color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; line-height:1.45;
  min-height:100dvh; display:flex; flex-direction:column;
}
a{color:inherit}
img{max-width:100%; display:block}
button{font-family:inherit}

/* ---------- branch note ---------- */
.branch-note{
  background:linear-gradient(90deg,var(--blue),var(--blue-d));
  color:#fff; text-align:center; font-size:.82rem; font-weight:600;
  padding:7px 14px; line-height:1.35;
}
.branch-note a{color:#fff; text-decoration:underline; text-underline-offset:2px; white-space:nowrap}
.branch-note strong{font-weight:800}

/* ---------- topbar ---------- */
.topbar{
  position:sticky; top:0; z-index:30;
  height:var(--topbar-h); display:flex; align-items:center; gap:8px;
  padding:0 14px; background:rgba(255,255,255,.92);
  backdrop-filter:saturate(1.4) blur(8px); border-bottom:1px solid var(--line);
}
.topbar__back{
  border:0; background:transparent; font-size:1.9rem; line-height:1;
  color:var(--ink); width:38px; height:38px; border-radius:12px; cursor:pointer;
}
.topbar__back:active{background:var(--line)}
.topbar__spacer{flex:1}
.brand{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  display:flex; align-items:center; justify-content:center; gap:8px;
  text-decoration:none; max-width:min(54vw, 270px);
}
.brand__logo{display:block; height:42px; width:auto; max-width:100%; object-fit:contain}
.brand__word{font-family:"Heebo",sans-serif; font-weight:800; font-size:1.35rem; letter-spacing:-.5px; color:var(--ink)}
.brand__dot{color:var(--pink)}
.topbar-cart{border:1px solid var(--line); background:#fff; color:var(--ink); border-radius:999px;
  padding:7px 9px 7px 12px; display:inline-flex; align-items:center; gap:6px; font:inherit;
  font-weight:800; cursor:pointer; box-shadow:0 2px 10px rgba(20,40,60,.06)}
.topbar-cart[hidden]{display:none}
.topbar-cart__ico{font-size:1rem; line-height:1}
.topbar-cart__text{font-size:.9rem}
.topbar-cart__n{min-width:22px; height:22px; border-radius:999px; background:var(--pink); color:#fff;
  display:inline-flex; align-items:center; justify-content:center; font-size:.78rem; font-weight:800;
  font-variant-numeric:tabular-nums}

/* ---------- app shell ---------- */
.app{flex:1; width:100%; max-width:var(--maxw); margin:0 auto; padding:16px 14px 40px}
.app--home-leave{pointer-events:none; animation:homeLeave .28s ease both}
.app--home-enter{animation:homeEnter .38s cubic-bezier(.2,.8,.2,1) both}
.app--cart-bg{pointer-events:none; animation:cartBgSink .24s ease both}
.app--cart-enter{animation:cartSheetIn .46s cubic-bezier(.18,.92,.2,1) both; transform-origin:bottom center}
@keyframes homeLeave{to{opacity:.12; transform:translateY(10px) scale(.985); filter:blur(2px)}}
@keyframes homeEnter{from{opacity:0; transform:translateY(14px) scale(.99)}to{opacity:1; transform:none}}
@keyframes cartBgSink{to{opacity:.35; transform:translateY(-10px) scale(.985); filter:blur(1.5px)}}
@keyframes cartSheetIn{0%{opacity:0; transform:translateY(70px) scale(.965)}70%{opacity:1; transform:translateY(-4px) scale(1.006)}100%{opacity:1; transform:none}}
.view-title{font-family:"Heebo"; font-weight:800; font-size:1.6rem; margin:6px 2px 4px}
.view-hook{font-size:2.1rem; line-height:1.1}
.view-hook,.view-hook + .view-sub,.view-hook + .view-sub + .view-scope{text-align:center}
.view-sub{color:var(--muted); margin:0 2px 18px; font-weight:500}
.view-sub:has(+ .view-scope){margin-bottom:8px}
.view-scope{margin:0 2px 18px; font-size:.92rem; color:var(--muted); line-height:1.55}
.view-scope a{color:inherit; text-decoration:underline}

/* ---------- loading ---------- */
.loading{display:flex; flex-direction:column; align-items:center; gap:14px; padding:60px 0; color:var(--muted)}
.loading--checkout{min-height:46dvh; justify-content:center}
.loading--checkout p{margin:0; font-weight:800; color:var(--ink)}
.loading__sub{color:var(--muted); font-weight:600}
.spinner{width:40px; height:40px; border:4px solid var(--line); border-top-color:var(--blue); border-radius:50%; animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- category grid ---------- */
.cat-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:12px}
.cat-card{
  position:relative; border:0; padding:0; text-align:start; cursor:pointer;
  background:var(--paper); border-radius:var(--r-lg); overflow:hidden;
  box-shadow:var(--shadow); aspect-ratio:1/1; display:flex; flex-direction:column;
  animation:tileIn .32s cubic-bezier(.2,.8,.2,1) both;
  transition:transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover{transform:translateY(-2px); box-shadow:var(--shadow-lg)}
.cat-card:active{transform:scale(.985)}
.cat-card__img{width:100%; height:100%; object-fit:cover; flex:1; background:var(--bg)}
.cat-card__ph{flex:1; background:linear-gradient(135deg,#eaf7fe,#fde7f1)}
.cat-card__cap{position:absolute; inset-inline:0; bottom:0; padding:14px 14px 12px;
  background:linear-gradient(0deg,rgba(0,0,0,.62),transparent); color:#fff}
.cat-card__title{display:block; font-family:"Heebo"; font-weight:800; font-size:1.05rem}
.cat-card__from{
  display:inline-flex; align-items:center; justify-content:center;
  margin-top:6px; padding:4px 9px; border-radius:999px;
  background:rgba(28,33,38,.82); color:#fff;
  font-size:.78rem; font-weight:800; line-height:1.15;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
  backdrop-filter:blur(8px);
}

/* ---------- product grid ---------- */
.prod-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:12px}
.prod-card{
  border:0; padding:0; cursor:pointer; text-align:start;
  background:var(--paper); border-radius:var(--r); overflow:hidden;
  box-shadow:var(--shadow); display:flex; flex-direction:column;
  animation:tileIn .3s cubic-bezier(.2,.8,.2,1) both;
  transition:transform .18s ease, box-shadow .18s ease;
}
.prod-card:hover{transform:translateY(-2px); box-shadow:var(--shadow-lg)}
.prod-card:active{transform:scale(.985)}
.cat-card:nth-child(2),.prod-card:nth-child(2){animation-delay:.03s}
.cat-card:nth-child(3),.prod-card:nth-child(3){animation-delay:.06s}
.cat-card:nth-child(4),.prod-card:nth-child(4){animation-delay:.09s}
.cat-card:nth-child(5),.prod-card:nth-child(5){animation-delay:.12s}
.cat-card:nth-child(6),.prod-card:nth-child(6){animation-delay:.15s}
@keyframes tileIn{from{opacity:0; transform:translateY(14px) scale(.985)}to{opacity:1; transform:none}}
.prod-card__img{aspect-ratio:1/1; width:100%; object-fit:cover; background:var(--bg)}
.prod-card__ph{aspect-ratio:1/1; background:linear-gradient(135deg,#eaf7fe,#fde7f1)}
.prod-card__body{padding:10px 12px 12px}
.prod-card__title{font-weight:700; font-size:.98rem; line-height:1.25; display:block; min-height:2.5em}
/* price token - identical to the main-page category pill (.cat-card__from) so
   the two browsing screens share one visual language */
.prod-card__price{
  display:inline-flex; align-items:center; justify-content:center;
  margin-top:6px; padding:4px 9px; border-radius:999px;
  background:rgba(28,33,38,.82); color:#fff;
  font-size:.78rem; font-weight:800; line-height:1.15;
  box-shadow:0 4px 14px rgba(0,0,0,.12);
}

/* ---------- PDP ---------- */
.pdp{display:grid; gap:18px; animation:softIn .32s ease both}
.pdp__gallery{background:var(--paper); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--shadow)}
.pdp__main{width:100%; aspect-ratio:1/1; object-fit:cover; background:var(--bg)}
.pdp__main--ph{background:linear-gradient(135deg,#eaf7fe,#fde7f1)}
.pdp__thumbs{display:flex; gap:8px; padding:10px; overflow-x:auto}
.pdp__thumb{width:56px; height:56px; border-radius:10px; object-fit:cover; cursor:pointer; border:2px solid transparent; flex:0 0 auto}
.pdp__thumb.is-active{border-color:var(--blue)}
.pdp__title{font-family:"Heebo"; font-weight:800; font-size:1.5rem; margin:0 0 4px}
.pdp__price{color:var(--blue-d); font-weight:800; font-size:1.35rem}
.pdp__desc{color:var(--muted); margin:8px 0 0}

/* option groups */
.opt-group{margin-top:18px}
.opt-group__name{font-weight:700; margin-bottom:8px}
.pills{display:flex; flex-wrap:wrap; gap:8px}
.pill{border:1.5px solid var(--line); background:var(--paper); color:var(--ink);
  padding:9px 16px; border-radius:999px; font-weight:600; cursor:pointer}
.pill.is-active{border-color:var(--blue); background:#eaf7fe; color:var(--blue-d); animation:selectPop .18s ease both}
.swatch-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:10px}
.swatch-card{border:2px solid var(--line); border-radius:14px; padding:6px; cursor:pointer; text-align:center; background:var(--paper)}
.swatch-card.is-active{border-color:var(--blue); animation:selectPop .18s ease both}
.swatch-card__img{width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:9px}
.swatch-card__ph{width:100%; aspect-ratio:1/1; border-radius:9px; background:linear-gradient(135deg,#eaf7fe,#fde7f1)}
.swatch-card__label{display:block; font-size:.8rem; margin-top:5px; font-weight:600}

/* ---------- photos on the product page ---------- */
.photos{background:var(--paper); border-radius:var(--r-lg); box-shadow:var(--shadow); padding:16px; margin-top:20px; animation:softIn .36s ease .04s both}
.photos__title{font-family:"Heebo"; font-weight:800; font-size:1.15rem; margin:0}
.photos__sub{color:var(--muted); font-size:.86rem; margin:4px 0 14px}
.photos__grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px}
.photo-slot{border-radius:14px}
.photo-slot--empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  aspect-ratio:1/1; border:2px dashed #b9d9e8; background:#f2fbff; color:var(--blue-d);
  cursor:pointer; text-align:center; padding:8px;
}
.photo-slot--empty:hover{border-color:var(--blue); background:#e8f7ff}
.photo-slot--empty.is-loading{opacity:.6}
.photo-slot__plus{font-size:1.9rem; font-weight:800; line-height:1}
.photo-slot__hint{font-weight:700; font-size:.9rem}
.photo-slot__tag{font-size:.72rem; font-weight:700; color:var(--muted); background:var(--bg); border-radius:999px; padding:2px 8px}
.photo-slot--empty .photo-slot__tag{margin-top:2px}
.photo-frame{position:relative; aspect-ratio:1/1; overflow:hidden; border-radius:12px; background:#e9eef2}
.photo-img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain}
.photo-actions{display:flex; align-items:center; justify-content:space-between; gap:8px}
.photo-remove{border:0; background:transparent; color:var(--err); font-weight:700; font-size:.8rem; cursor:pointer; padding:2px 4px}
/* thin "add photo" row - a slim link-style strip, not a heavy button */
.photos__add{margin-top:12px; width:100%; padding:8px 12px; font-size:.88rem; font-weight:700;
  color:var(--blue-d); background:transparent; border:1px dashed #c3dfec; border-radius:10px;
  cursor:pointer; text-align:center; line-height:1.3}
.photos__add:hover{background:#f2fbff; border-color:var(--blue)}
.mini-thumbs{display:flex; gap:8px; flex-wrap:wrap; margin:6px 0 14px}
.mini-thumb{width:72px; height:72px; object-fit:cover; border-radius:10px; box-shadow:var(--shadow)}

/* ---------- order flow: fulfillment + details + summary ---------- */
.order-sec{margin-top:14px}
.order-sec__title{font-family:"Heebo"; font-weight:800; font-size:1.1rem; margin:0 0 12px}
.order-item{display:flex; align-items:center; gap:12px}
.order-item__thumbs{display:flex; gap:4px}
.order-item__thumbs .mini-thumb{width:52px; height:52px; margin:0}
.order-item__info{flex:1; min-width:0}
.order-item__title{font-weight:700}
.order-item__var{color:var(--muted); font-size:.85rem}
.order-item__edit{color:var(--blue-d); font-weight:700; font-size:.9rem; text-decoration:none; white-space:nowrap}

.choice{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.choice__opt{display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center;
  border:2px solid var(--line); background:var(--paper); border-radius:16px; padding:14px 10px; cursor:pointer}
.choice__opt.is-active{border-color:var(--blue); background:#eef9ff; animation:selectPop .18s ease both}
.choice__ico{font-size:1.6rem; line-height:1}
.choice__name{font-weight:800}
.choice__sub{font-size:.76rem; color:var(--muted)}

.addr{margin-top:14px}
.addr__note{background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; border-radius:10px; padding:9px 12px; font-size:.85rem; margin:2px 0 10px}
.field{display:block; margin-bottom:12px}
.field>span{display:block; font-weight:600; font-size:.88rem; margin-bottom:5px}
.field input,.field select{width:100%; border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; font-family:inherit; font-size:1rem; background:var(--paper); color:var(--ink)}
.field input:focus,.field select:focus{outline:none; border-color:var(--blue)}
.field-row{display:flex; gap:10px}
.field-row .field{flex:1}
.field--sm{flex:0 0 90px !important}
.field__hint{color:var(--muted); font-size:.82rem; margin:-4px 0 0}

.sum-row{display:flex; justify-content:space-between; gap:12px; padding:7px 0; color:#374151}
.sum-row--discount{color:#16834a; font-weight:800}
.sum-row--total{border-top:1px solid var(--line); margin-top:6px; padding-top:12px; font-weight:800; font-size:1.15rem; color:var(--ink)}
.coupon-box{border-top:1px solid var(--line); margin-top:8px; padding-top:12px}
.coupon-box__field{display:block}
.coupon-box__field>span:first-child{display:block; font-weight:700; font-size:.88rem; margin-bottom:6px}
.coupon-box__row{display:flex; gap:8px}
.coupon-box__row input{flex:1; min-width:0; border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; font:inherit; background:var(--paper); color:var(--ink); text-transform:uppercase}
.coupon-box__row input:focus{outline:none; border-color:var(--blue)}
.coupon-box__btn{flex:0 0 auto; padding-inline:18px}
.coupon-box__msg{margin:7px 2px 0; font-size:.84rem; font-weight:700}
.coupon-box__msg.is-ok{color:#16834a}
.coupon-box__msg.is-err{color:var(--err)}

/* ---------- sticky CTA bar ---------- */
.cta-bar{
  position:sticky; bottom:0; z-index:20; margin:20px -14px -40px; padding:12px 14px calc(12px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.94); backdrop-filter:blur(8px); border-top:1px solid var(--line);
  display:flex; align-items:center; gap:12px; animation:barRise .28s cubic-bezier(.2,.8,.2,1) both;
}
.cta-bar__price{font-weight:800; font-size:1.15rem; white-space:nowrap}
.cta-bar__price small{display:block; font-size:.72rem; color:var(--muted); font-weight:600}

/* ---------- buttons ---------- */
.btn{display:inline-block; text-align:center; border:0; border-radius:14px; padding:13px 20px; font-weight:800; font-size:1rem; line-height:1.25; text-decoration:none; cursor:pointer; transition:transform .06s ease, filter .15s ease}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--blue); color:#fff; box-shadow:0 6px 16px rgba(12,187,244,.35)}
.btn--primary:hover{filter:brightness(1.03)}
.btn--primary:disabled{background:#bcd7e2; box-shadow:none; cursor:not-allowed}
.btn--pink{background:var(--pink); color:#fff}
.btn--ghost{background:transparent; color:var(--ink); border:1.5px solid var(--line)}
.btn--block{display:block; width:100%}
.btn--grow{flex:1}

/* ---------- generic card / notice ---------- */
.card{background:var(--paper); border-radius:var(--r); box-shadow:var(--shadow); padding:18px}
.notice{background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; border-radius:12px; padding:12px 14px; font-size:.9rem}
.prose{max-width:680px; margin:0 auto}
.prose h1{font-family:"Heebo"; font-size:1.6rem}
.prose h2{font-family:"Heebo"; font-size:1.15rem; margin-top:22px}
.prose p,.prose li{color:#374151}
.badge-draft{display:inline-block; background:#fef3c7; color:#92400e; border-radius:999px; padding:3px 10px; font-size:.75rem; font-weight:700; margin-bottom:10px}
.legal h2{font-size:1.05rem; margin-top:20px}
.legal ul{padding-inline-start:20px}
.legal li{margin-bottom:6px}
.legal-meta{background:var(--bg); border:1px solid var(--line); border-radius:12px; padding:12px 14px; font-size:.9rem; color:#374151}
.legal-scope{font-size:.9rem; color:var(--muted)}
.legal a{color:var(--blue-d)}

/* ---------- payment (PayPlus embedded inline) ---------- */
.pay{animation:payIn .28s ease both}
@keyframes payIn{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:none}}
.pay__head{margin:2px 2px 14px}
.pay__title{font-family:"Heebo",sans-serif; font-weight:800; font-size:1.5rem; margin:0}
.pay__order{color:var(--muted); font-weight:600; margin-top:4px}
.pay__order strong{color:var(--blue-d)}
.pay__frame-wrap{position:relative; background:var(--paper); border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg); overflow:hidden; min-height:520px}
.pay__frame{display:block; width:100%; height:520px; border:0; background:var(--paper); transition:height .22s ease}
.pay__loading{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:14px; color:var(--muted); background:var(--paper); z-index:2}
/* MUST override the display:flex above, or the `hidden` attribute can't hide it
   and the loaded iframe stays covered (same reason .cookie-bar[hidden] exists). */
.pay__loading[hidden]{display:none}
.pay__summary{margin-bottom:14px}
.pay__secure{display:flex; align-items:center; justify-content:center; gap:6px;
  color:var(--muted); font-size:.85rem; font-weight:600; margin:12px 2px}
.pay #pay-back{margin-top:2px}

/* ---------- thank-you ---------- */
.thanks{text-align:center; margin-top:24px}
.thanks__badge{width:64px; height:64px; margin:0 auto 10px; border-radius:50%; background:var(--ok); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:800}
.thanks__num{color:var(--blue-d); font-size:1.25rem}

/* ---------- footer ---------- */
.site-footer{border-top:1px solid var(--line); padding:22px 14px calc(22px + env(safe-area-inset-bottom)); text-align:center; color:var(--muted)}
.site-footer__links{display:flex; gap:18px; justify-content:center; flex-wrap:wrap; margin-bottom:8px}
.site-footer__links a{font-weight:600; text-decoration:none}
.site-footer__copy{font-size:.8rem; margin:0}

/* ---------- cookie bar ---------- */
.cookie-bar{position:fixed; inset-inline:12px; bottom:12px; z-index:50; max-width:560px; margin:0 auto;
  background:var(--ink); color:#fff; border-radius:16px; box-shadow:var(--shadow-lg);
  padding:14px 16px; display:flex; flex-wrap:wrap; align-items:center; gap:10px}
.cookie-bar__text{margin:0; flex:1 1 240px; font-size:.86rem}
.cookie-bar__text a{color:var(--blue); text-decoration:underline}
.cookie-bar__actions{display:flex; gap:8px}
.cookie-bar .btn{padding:9px 16px; font-size:.9rem}
/* `display:flex` above would otherwise override the `hidden` attribute - restore it */
.cookie-bar[hidden]{display:none}

/* ---------- tablet / desktop ---------- */
@media (min-width:640px){
  .cat-grid{grid-template-columns:repeat(3,1fr)}
  .prod-grid{grid-template-columns:repeat(3,1fr)}
  .pdp{grid-template-columns:1fr 1fr; align-items:start}
  .pdp__gallery{position:sticky; top:calc(var(--topbar-h) + 12px)}
}
@media (min-width:900px){
  .cat-grid{grid-template-columns:repeat(4,1fr)}
  .prod-grid{grid-template-columns:repeat(4,1fr)}
}

/* ---------- cart ---------- */
.cart-hero{display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:2px 2px 4px}
.cart-hero .view-title{margin-top:0}
.cart-add--compact{width:auto; margin-top:4px; white-space:nowrap; padding-inline:14px}
.cart-list{display:flex; flex-direction:column}
.cart-sep{height:1px; background:var(--line); margin:14px 0}
.cart-item{display:flex; gap:12px; align-items:flex-start; animation:softIn .28s ease both}
.cart-item__info{flex:1; min-width:0}
.cart-item__row{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px}
.cart-item__price{font-weight:800; white-space:nowrap; color:var(--ink)}
.qty-step{display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:999px; overflow:hidden; background:#fff}
.qty-btn{border:0; background:#f4fbff; color:var(--ink); width:34px; height:34px; font-size:1.15rem; font-weight:700; cursor:pointer; line-height:1}
.qty-btn:active{background:#e3f4fc}
.qty-val{min-width:30px; text-align:center; font-weight:800; font-variant-numeric:tabular-nums}
.cart-link{border:0; background:none; color:var(--blue-d); font:inherit; font-weight:700; font-size:.9rem; cursor:pointer; padding:6px 4px}
.cart-link--danger{color:var(--err)}
.cart-add{margin-top:14px; width:100%; border:1px dashed var(--blue); background:#f4fbff; color:var(--blue-d); border-radius:14px; padding:13px; font:inherit; font-weight:700; cursor:pointer}
.cart-add:active{background:#e3f4fc}

/* floating cart button - persistent way back to checkout while browsing */
.cart-fab{position:fixed; inset-inline:14px; bottom:16px; z-index:40; display:flex; align-items:center; justify-content:space-between; gap:12px;
  max-width:calc(var(--maxw) - 28px); margin-inline:auto; border:0; border-radius:16px; padding:14px 18px; cursor:pointer;
  background:linear-gradient(90deg,var(--blue),var(--blue-d)); color:#fff; font:inherit; font-weight:800; box-shadow:var(--shadow-lg);
  animation:barRise .28s cubic-bezier(.2,.8,.2,1) both; transition:transform .16s ease, box-shadow .16s ease}
.cart-fab:hover{transform:translateY(-2px); box-shadow:0 18px 44px rgba(20,40,60,.18)}
.cart-fab:active{transform:scale(.985)}
.cart-fab.is-bumping,.topbar-cart.is-bumping{animation:cartBump .38s cubic-bezier(.2,.9,.2,1) both}
.cart-fab--opening{animation:cartOpen .28s cubic-bezier(.18,.92,.2,1) both}
.cart-fab__l{display:inline-flex; align-items:center; gap:8px}
.cart-fab__ico{font-size:1.15rem}
.cart-fab__total{font-variant-numeric:tabular-nums}
@media (min-width:640px){ .cart-fab{inset-inline:auto; inset-inline-end:20px; min-width:280px} }

/* added-to-cart nudge: confirms success without stopping the shopping flow */
.cart-added{position:fixed; inset-inline:12px; bottom:86px; z-index:80; pointer-events:none;
  display:flex; justify-content:center; animation:nudgeIn .22s ease both}
.cart-added.is-leaving{animation:nudgeOut .18s ease both}
.cart-added__panel{width:100%; max-width:430px; background:#fff; border:1px solid var(--line); border-radius:18px;
  padding:12px; box-shadow:0 16px 38px rgba(20,40,60,.18); display:grid;
  grid-template-columns:38px 1fr auto; gap:10px; align-items:center; pointer-events:auto}
.cart-added__mark{width:38px; height:38px; border-radius:50%; background:var(--ok); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:1.25rem; font-weight:800}
.cart-added__eyebrow{color:var(--ok); font-weight:800; font-size:.8rem; margin-bottom:4px}
.cart-added__item{display:flex; gap:10px; align-items:center}
.cart-added__thumb{width:48px; height:48px; object-fit:cover; border-radius:11px; background:var(--bg);
  border:1px solid var(--line); flex:0 0 auto}
.cart-added__title{font-weight:800; line-height:1.2; max-width:190px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cart-added__meta{color:var(--muted); font-size:.84rem; margin-top:1px}
.cart-added__actions{display:flex; align-items:center; gap:6px}
.cart-added__link{border:0; background:#eaf7fe; color:var(--blue-d); border-radius:999px; padding:9px 12px;
  font:inherit; font-size:.86rem; font-weight:800; cursor:pointer; white-space:nowrap}
.cart-added__x{border:0; background:transparent; color:var(--muted); width:30px; height:30px;
  border-radius:999px; font:inherit; font-size:1.2rem; line-height:1; cursor:pointer}
.cart-added__x:active{background:var(--line)}
@keyframes nudgeIn{from{opacity:0; transform:translateY(12px) scale(.98)}to{opacity:1; transform:none}}
@keyframes nudgeOut{from{opacity:1; transform:none}to{opacity:0; transform:translateY(8px) scale(.98)}}
@keyframes softIn{from{opacity:0; transform:translateY(10px)}to{opacity:1; transform:none}}
@keyframes barRise{from{opacity:0; transform:translateY(18px)}to{opacity:1; transform:none}}
@keyframes selectPop{50%{transform:scale(1.035)}}
@keyframes cartBump{0%{transform:scale(1)}45%{transform:scale(1.055)}100%{transform:scale(1)}}
/* Keep the lift without recalculating layout on every frame. */
@keyframes cartOpen{to{transform:translateY(2px) scale(1.018); opacity:.98}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; scroll-behavior:auto!important}
}

@media(max-width:520px){
  .topbar-cart__text{display:none}
  .cart-hero{display:block}
  .cart-add--compact{width:100%; margin-top:8px}
  .cart-added{bottom:82px}
  .cart-added__panel{grid-template-columns:34px 1fr auto; padding:10px}
  .cart-added__mark{width:34px; height:34px}
  .cart-added__thumb{display:none}
  .cart-added__title{max-width:150px}
}

/* ───────── entry promo popup (admin-configurable) ───────── */
.promo-pop{position:fixed; inset:0; z-index:80; display:flex; align-items:center; justify-content:center;
  padding:20px; background:rgba(20,40,55,.55); backdrop-filter:blur(2px); animation:promoFade .18s ease-out}
@keyframes promoFade{from{opacity:0}to{opacity:1}}
.promo-pop__card{position:relative; width:100%; max-width:400px; background:var(--paper); color:var(--ink);
  border-radius:22px; padding:30px 24px 24px; box-shadow:0 24px 60px rgba(20,40,55,.35); text-align:center;
  animation:promoRise .22s cubic-bezier(.2,.8,.2,1)}
@keyframes promoRise{from{transform:translateY(14px) scale(.98); opacity:.4}to{transform:none; opacity:1}}
.promo-pop__x{position:absolute; top:10px; inset-inline-start:12px; width:34px; height:34px; border:none;
  background:transparent; color:var(--muted); font-size:1.6rem; line-height:1; cursor:pointer; border-radius:10px}
.promo-pop__x:hover{background:var(--bg); color:var(--ink)}
.promo-pop__img{display:block; width:100%; max-height:190px; object-fit:cover; border-radius:14px; margin:4px 0 14px}
.promo-pop__title{margin:2px 0 8px; font-size:1.4rem; font-weight:800; line-height:1.2}
.promo-pop__body{margin:0 0 20px; color:var(--muted); font-weight:600; line-height:1.5}
.promo-pop__opts{display:flex; flex-direction:column; gap:12px}
.promo-pop__opt{border:none; border-radius:14px; padding:16px 18px; font:inherit; font-weight:800; font-size:1.05rem;
  color:#fff; background:var(--blue); box-shadow:0 8px 20px rgba(12,187,244,.32); cursor:pointer; transition:transform .12s ease}
.promo-pop__opt:nth-child(2){background:var(--pink); box-shadow:0 8px 20px rgba(236,72,153,.32)}
.promo-pop__opt--club,.promo-pop__opt--club:nth-child(1){background:#e0a80f; box-shadow:0 8px 20px rgba(224,168,15,.34)}
.promo-pop__opt:hover{transform:translateY(-1px)}
.promo-pop__step[hidden]{display:none}
.promo-pop__opt:active{transform:translateY(0)}
.promo-pop__foot{margin:16px 0 0; font-size:.78rem; color:var(--muted); line-height:1.5}

/* ephemeral confirmation toast */
.promo-toast{position:fixed; left:50%; bottom:24px; transform:translate(-50%,20px); z-index:90;
  background:var(--ink); color:#fff; padding:12px 20px; border-radius:999px; font-weight:700; font-size:.95rem;
  box-shadow:0 10px 30px rgba(20,40,55,.3); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; max-width:90vw}
.promo-toast.is-on{opacity:1; transform:translate(-50%,0)}

/* Mobile catalog: clear captions, direct search, and the next step in reach. */
.catalog-search{margin:20px 0}
.catalog-search label{display:block;font-weight:800;margin-bottom:7px}
.catalog-search input{width:100%;min-height:48px;border:1.5px solid var(--line);border-radius:12px;padding:11px 14px;background:var(--paper);color:var(--ink);font:inherit;font-size:16px}
.catalog-search input:focus{outline:2px solid var(--blue);outline-offset:2px}
#search-status:empty{display:none}
#search-status{color:var(--muted);margin:10px 0}
.all-products{display:flex;margin-top:16px;text-decoration:none;justify-content:center}
.cat-card{aspect-ratio:auto}
.cat-card__img,.cat-card__ph{aspect-ratio:4/3;height:auto;flex:none;object-fit:contain}
.cat-card__cap{position:static;padding:10px;background:var(--paper);color:var(--ink)}
.cat-card__title,.prod-card__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.3;min-height:2.6em;font-size:.95rem}
.cat-card__from,.prod-card__price{background:#edf9fe;color:#12617d;box-shadow:none;backdrop-filter:none}
.prod-card__img{aspect-ratio:4/3;object-fit:contain}
/* Blend white studio backgrounds into the media surface, keeping uploaded photos intact. */
.cat-card,.prod-card,.pdp__gallery,.swatch-card{background:var(--bg);isolation:isolate}
.prod-card__body{background:var(--paper);width:100%;flex:1}
.cat-card__img,.prod-card__img,.pdp__main,.pdp__thumb,.swatch-card__img{
  background:transparent;mix-blend-mode:multiply;
}
.pdp__pickup{margin:5px 0 0;color:var(--muted);font-weight:700;font-size:.9rem}
.swatch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.swatch-card{color:var(--ink);font:inherit}
.swatch-card__price{display:block;color:var(--blue-d);font-weight:800;margin-top:4px}
.photos{scroll-margin-top:calc(var(--topbar-h) + 16px)}
.photos__guidance{margin:6px 0;font-weight:700}
.catalog-skeleton{aspect-ratio:4/5;border-radius:var(--r);background:linear-gradient(110deg,#edf1f3 30%,#f9fbfc 45%,#edf1f3 60%);background-size:200% 100%;animation:catalogPulse 1.5s linear infinite}
.catalog-retry{display:block;margin:20px auto}
@keyframes catalogPulse{to{background-position:-200% 0}}
@media(max-width:639px){
  .view-hook{font-size:1.65rem;line-height:1.3}
  .view-scope{font-size:.78rem}
  .pdp__main{height:clamp(190px,60vw,250px);aspect-ratio:auto;object-fit:contain}
  .pdp__title{font-size:1.35rem}
  .pdp{gap:12px}
  .pdp__desc{font-size:.9rem}
  .branch-note{font-size:.78rem;padding:5px 10px}
}
@media(min-width:640px){
  .pdp__gallery{grid-column:1;grid-row:1 / span 2}
  .pdp__heading,.pdp__info{grid-column:2}
}
@media(prefers-reduced-motion:reduce){.catalog-skeleton{animation:none}}
