/* =====================================================================
   glass.css — "Crystal" visual layer (owner request, v1.2)
   Loaded AFTER reference.css/extensions.css/shop.css/admin.css on the store,
   the admin and the sign-in pages. reference.css stays byte-identical (Design Lock);
   this file only restyles SURFACES (glass, depth, corners, buttons, motion).
   Layout, spacing, typography and content are not changed. Colours follow the active
   theme through --gold / --green / --btn-bg / --ink. Motion is disabled for
   prefers-reduced-motion; tilt is driven by js/fx.js and only on hover-capable devices.
   ===================================================================== */
:root{
  --cr-hi:rgba(255,255,255,.92);          /* top rim light */
  --cr-mid:rgba(255,255,255,.5);
  --cr-lo:rgba(255,255,255,.18);
  --cr-edge:rgba(255,255,255,.78);
  --cr-tint:color-mix(in srgb,var(--gold) 16%,transparent);
  --cr-tint2:color-mix(in srgb,var(--green) 14%,transparent);
  --cr-depth:0 1px 1px rgba(36,28,18,.06),0 6px 14px rgba(36,28,18,.07),0 22px 44px rgba(36,28,18,.10),0 50px 90px rgba(36,28,18,.08);
  --cr-radius:26px;
  --cr-ease:cubic-bezier(.22,.8,.24,1);
}

/* ---------- living background (aurora) ---------- */
body:after{content:"";position:fixed;inset:-20%;z-index:-2;pointer-events:none;
  background:
   radial-gradient(38% 34% at 12% 18%,color-mix(in srgb,var(--gold) 34%,transparent),transparent 70%),
   radial-gradient(34% 30% at 88% 14%,color-mix(in srgb,var(--green) 26%,transparent),transparent 70%),
   radial-gradient(40% 36% at 78% 86%,color-mix(in srgb,var(--gold) 22%,transparent),transparent 70%),
   radial-gradient(30% 28% at 18% 84%,rgba(140,190,235,.22),transparent 70%);
  filter:blur(30px);animation:cr-aurora 26s ease-in-out infinite alternate}
@keyframes cr-aurora{0%{transform:translate3d(0,0,0) scale(1)}50%{transform:translate3d(2.5%,-2%,0) scale(1.06)}100%{transform:translate3d(-2.5%,2.5%,0) scale(1.03)}}

/* ---------- crystal glass surface ---------- */
.glass{
  background:
    linear-gradient(135deg,var(--cr-hi) 0%,var(--cr-mid) 22%,var(--cr-lo) 56%,var(--cr-tint) 100%),
    var(--glass);
  border:1px solid var(--cr-edge);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(255,255,255,.35),inset 1px 0 0 rgba(255,255,255,.5),inset -1px 0 0 rgba(255,255,255,.25),var(--cr-depth);
  backdrop-filter:blur(26px) saturate(1.7) brightness(1.03);-webkit-backdrop-filter:blur(26px) saturate(1.7) brightness(1.03);
}
header.glass{border-radius:26px}

/* ---------- rounded 3D cards ---------- */
.product,.category,.card,.stat,.story-card,.newsletter,.hero-photo,.media-card,.theme-card,
.shop-card,.stat-card,.cart-summary,.cart-line,.confirmation,.chart-card,.order-list a,.choice{
  border-radius:var(--cr-radius);
  transform-style:preserve-3d;
  transition:transform .55s var(--cr-ease),box-shadow .55s var(--cr-ease),border-color .4s ease,background .4s ease;
}
.product,.category,.card,.stat,.story-card,.newsletter,.media-card,.theme-card,.shop-card,.stat-card,.cart-summary,.confirmation,.chart-card{
  background:
    radial-gradient(120% 90% at var(--mx,30%) var(--my,0%),rgba(255,255,255,.75),transparent 55%),
    linear-gradient(145deg,rgba(255,255,255,.66),rgba(255,255,255,.26) 55%,var(--cr-tint)),
    var(--glass);
  border:1px solid var(--cr-edge);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95),inset 0 -1px 0 rgba(255,255,255,.3),var(--cr-depth);
  backdrop-filter:blur(22px) saturate(1.6);-webkit-backdrop-filter:blur(22px) saturate(1.6);
}
/* tilt (set by js/fx.js through --rx/--ry); falls back to a gentle lift without JS */
.fx-tilt{transform:perspective(1000px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateZ(0)}
.fx-tilt.is-hot{transition:transform .08s linear,box-shadow .4s ease;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95),0 2px 2px rgba(36,28,18,.06),0 18px 32px rgba(36,28,18,.14),0 46px 80px rgba(36,28,18,.16)}
/* cursor spotlight on the glass */
.fx-tilt:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:3;opacity:0;transition:opacity .35s ease;
  background:radial-gradient(circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.55),rgba(255,255,255,0) 46%)}
.fx-tilt.is-hot:after{opacity:1}
/* inner elements float above the card plane */
.fx-tilt.is-hot .product-info,.fx-tilt.is-hot .category h3,.fx-tilt.is-hot .stat b,.fx-tilt.is-hot .card>h2:first-child{transform:translateZ(26px)}
.product-info,.category h3,.stat b,.card>h2:first-child{transition:transform .5s var(--cr-ease)}
.category .emoji,.product-img{transition:transform .6s var(--cr-ease),filter .6s ease}
.category:hover .emoji{transform:translateZ(46px) translateY(-6px) rotate(-6deg) scale(1.12);filter:drop-shadow(0 18px 14px rgba(0,0,0,.18))}
.product:hover{box-shadow:inset 0 1.5px 0 rgba(255,255,255,.95),0 30px 70px rgba(36,28,18,.18)}
.product-img{box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),inset 0 -30px 50px rgba(0,0,0,.05)}
.product{overflow:hidden}

/* ---------- crystal 3D buttons ---------- */
.btn,.add,button.btn,a.btn,.filter.active,.tabs a.on,.pager a.on,.tr-tab.on,.admin-langs a.on,.admin-nav a.on{
  --b:var(--btn-bg,#1d211f);
}
.btn,.add{
  position:relative;overflow:hidden;isolation:isolate;border:1px solid color-mix(in srgb,var(--b) 55%,#fff 45%);border-radius:18px;color:#fff;
  background:
    linear-gradient(180deg,rgba(255,255,255,.26) 0%,rgba(255,255,255,.05) 55%,rgba(0,0,0,.16) 100%),
    linear-gradient(180deg,color-mix(in srgb,var(--b) 70%,#fff) 0%,var(--b) 55%,color-mix(in srgb,var(--b) 80%,#000) 100%);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.65),inset 0 -3px 6px rgba(0,0,0,.35),inset 0 0 0 1px rgba(255,255,255,.08),
    0 2px 0 color-mix(in srgb,var(--b) 70%,#000),0 12px 22px color-mix(in srgb,var(--b) 38%,transparent),0 3px 6px rgba(0,0,0,.14);
  text-shadow:0 1px 1px rgba(0,0,0,.35);
  transition:transform .3s var(--cr-ease),box-shadow .3s var(--cr-ease),filter .3s ease;
}
.btn:before,.add:before{content:"";position:absolute;inset:1px 1px 52% 1px;border-radius:17px 17px 40% 40%/17px 17px 14px 14px;pointer-events:none;z-index:-1;
  background:linear-gradient(180deg,rgba(255,255,255,.30),rgba(255,255,255,0))}
.btn:after,.add:after{content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;pointer-events:none;z-index:-1;transform:skewX(-20deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transition:left .8s var(--cr-ease)}
.btn:hover,.add:hover{transform:translateY(-4px);filter:saturate(1.1) brightness(1.06);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.75),inset 0 -3px 6px rgba(0,0,0,.35),0 3px 0 color-mix(in srgb,var(--b) 70%,#000),0 20px 32px color-mix(in srgb,var(--b) 42%,transparent),0 6px 10px rgba(0,0,0,.16)}
.btn:hover:after,.add:hover:after{left:130%}
.btn:active,.add:active{transform:translateY(1px) scale(.98);transition-duration:.08s;
  box-shadow:inset 0 3px 8px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.2),0 0 0 color-mix(in srgb,var(--b) 70%,#000),0 4px 8px color-mix(in srgb,var(--b) 30%,transparent)}
.add{border-radius:14px}
/* clear-crystal secondary button */
.btn.light,.image-btn{
  color:var(--ink);text-shadow:0 1px 0 rgba(255,255,255,.7);
  border:1px solid var(--cr-edge);
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.46) 52%,rgba(255,255,255,.28)),var(--glass);
  backdrop-filter:blur(14px) saturate(1.5);-webkit-backdrop-filter:blur(14px) saturate(1.5);
  box-shadow:inset 0 1.5px 0 #fff,inset 0 -2px 5px rgba(120,100,70,.14),0 2px 0 rgba(255,255,255,.55),0 12px 22px rgba(36,28,18,.10),0 2px 4px rgba(36,28,18,.08);
}
.btn.light:before{background:linear-gradient(180deg,rgba(255,255,255,.7),rgba(255,255,255,0))}
.btn.light:hover{filter:none;box-shadow:inset 0 1.5px 0 #fff,inset 0 -2px 5px rgba(120,100,70,.14),0 3px 0 rgba(255,255,255,.6),0 20px 30px color-mix(in srgb,var(--gold) 26%,transparent),0 4px 8px rgba(36,28,18,.10)}
.btn:disabled,.btn[aria-disabled=true]{filter:grayscale(.6) opacity(.6);transform:none;cursor:not-allowed}
.whatsapp-btn{border-radius:14px;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 -3px 6px rgba(0,0,0,.25),0 12px 22px rgba(37,211,102,.28)}
.wa-float{border-radius:100px;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 -4px 8px rgba(0,0,0,.25),0 14px 30px rgba(0,0,0,.28)}

/* ---------- button menu: header nav, icon buttons, language, filters, tabs, pager ---------- */
nav{gap:8px}
nav a{padding:9px 16px;border-radius:16px;border:1px solid transparent;transition:transform .3s var(--cr-ease),box-shadow .3s var(--cr-ease),background .3s ease,color .3s ease}
nav a:hover{transform:translateY(-3px);color:var(--ink);border-color:var(--cr-edge);
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.5));
  box-shadow:inset 0 1.5px 0 #fff,inset 0 -2px 4px rgba(120,100,70,.12),0 12px 20px rgba(36,28,18,.10)}
nav a:active{transform:translateY(0);box-shadow:inset 0 2px 5px rgba(120,100,70,.2)}
.icon-btn,.lang{
  border:1px solid var(--cr-edge);border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.42)),var(--glass);
  box-shadow:inset 0 1.5px 0 #fff,inset 0 -2px 4px rgba(120,100,70,.14),0 8px 16px rgba(36,28,18,.10),0 1px 2px rgba(36,28,18,.08);
  transition:transform .3s var(--cr-ease),box-shadow .3s var(--cr-ease);
}
.icon-btn:hover,.lang:hover{transform:translateY(-4px);background:linear-gradient(180deg,#fff,rgba(255,255,255,.65));box-shadow:inset 0 1.5px 0 #fff,0 16px 26px color-mix(in srgb,var(--gold) 28%,transparent),0 2px 4px rgba(36,28,18,.08)}
.icon-btn:active,.lang:active{transform:translateY(1px);box-shadow:inset 0 2px 6px rgba(120,100,70,.25)}
.lang-menu,.mobile-nav{border-radius:22px}
.lang-menu a,.mobile-nav a{border-radius:14px;transition:transform .25s var(--cr-ease),background .25s ease,box-shadow .25s ease}
.lang-menu a:hover,.mobile-nav a:hover{transform:translateX(3px);background:linear-gradient(180deg,#fff,rgba(255,255,255,.55));box-shadow:inset 0 1px 0 #fff,0 8px 14px rgba(36,28,18,.08)}
[dir=rtl] .lang-menu a:hover,[dir=rtl] .mobile-nav a:hover{transform:translateX(-3px)}
.filter-bar{border-radius:24px}
.filter,.tabs a,.pager a,.pager span,.tr-tab,.admin-langs a,.shop-pager a,.shop-pager span{
  border-radius:14px;border:1px solid var(--cr-edge);
  background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.4));
  box-shadow:inset 0 1.5px 0 #fff,inset 0 -2px 4px rgba(120,100,70,.12),0 6px 12px rgba(36,28,18,.07);
  transition:transform .28s var(--cr-ease),box-shadow .28s var(--cr-ease),background .28s ease,color .28s ease;
}
.filter:hover,.tabs a:hover,.pager a:hover,.tr-tab:hover,.admin-langs a:hover,.shop-pager a:hover{transform:translateY(-3px);box-shadow:inset 0 1.5px 0 #fff,0 14px 22px color-mix(in srgb,var(--gold) 24%,transparent)}
.filter.active,.filter:hover.active,.tabs a.on,.pager a.on,.tr-tab.on,.admin-langs a.on,.shop-pager .on{
  color:#fff;border-color:color-mix(in srgb,var(--b) 55%,#fff 45%);text-shadow:0 1px 1px rgba(0,0,0,.35);
  background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.04) 55%,rgba(0,0,0,.16)),linear-gradient(180deg,color-mix(in srgb,var(--b) 70%,#fff),var(--b) 55%,color-mix(in srgb,var(--b) 80%,#000));
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.6),inset 0 -3px 6px rgba(0,0,0,.35),0 10px 18px color-mix(in srgb,var(--b) 36%,transparent)}
.filter:hover:not(.active){background:linear-gradient(180deg,#fff,rgba(255,255,255,.6));color:var(--ink)}

/* admin sidebar = a stack of crystal buttons */
.admin-side{border-radius:30px}
.admin-nav{gap:8px}
.admin-nav a{position:relative;border:1px solid transparent;border-radius:18px;padding:12px 16px;
  transition:transform .3s var(--cr-ease),box-shadow .3s var(--cr-ease),background .3s ease}
.admin-nav a:hover{transform:translateX(4px) translateY(-1px);border-color:var(--cr-edge);
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.5));
  box-shadow:inset 0 1.5px 0 #fff,inset 0 -2px 4px rgba(120,100,70,.12),0 12px 20px rgba(36,28,18,.10)}
[dir=rtl] .admin-nav a:hover{transform:translateX(-4px) translateY(-1px)}
.admin-nav a.on{color:#fff;border-color:color-mix(in srgb,var(--b) 55%,#fff 45%);text-shadow:0 1px 1px rgba(0,0,0,.35);
  background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.04) 55%,rgba(0,0,0,.16)),linear-gradient(180deg,color-mix(in srgb,var(--b) 70%,#fff),var(--b) 55%,color-mix(in srgb,var(--b) 80%,#000));
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.6),inset 0 -3px 6px rgba(0,0,0,.35),0 12px 22px color-mix(in srgb,var(--b) 36%,transparent)}
.admin-nav a.on:after{content:"";position:absolute;inset-inline-end:12px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 3px rgba(255,255,255,.25),0 0 14px var(--gold)}

/* ---------- forms: crystal fields ---------- */
.field input,.field select,.field textarea,.searchbar input,.searchbar select,.shop-form input,.shop-form select,.shop-form textarea,.newsletter input,.coupon-form input,.cart-qty input{
  border-radius:16px;border:1px solid var(--cr-edge);
  background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.85));
  box-shadow:inset 0 2px 5px rgba(90,70,40,.10),inset 0 0 0 1px rgba(255,255,255,.4),0 1px 0 rgba(255,255,255,.8);
  transition:box-shadow .3s ease,border-color .3s ease,transform .3s var(--cr-ease)}
.field input:focus,.field select:focus,.field textarea:focus,.searchbar input:focus,.shop-form input:focus,.shop-form select:focus,.shop-form textarea:focus,.newsletter input:focus{
  border-color:var(--gold);transform:translateY(-1px);
  box-shadow:inset 0 2px 4px rgba(90,70,40,.06),0 0 0 4px color-mix(in srgb,var(--gold) 24%,transparent),0 10px 20px rgba(36,28,18,.08)}
.choice{border:1px solid var(--cr-edge);background:linear-gradient(145deg,rgba(255,255,255,.7),rgba(255,255,255,.3));box-shadow:inset 0 1.5px 0 #fff,0 8px 18px rgba(36,28,18,.08)}
.choice:hover{transform:translateY(-3px);box-shadow:inset 0 1.5px 0 #fff,0 16px 28px color-mix(in srgb,var(--gold) 22%,transparent)}
.choice:has(input:checked){border-color:var(--gold);box-shadow:inset 0 1.5px 0 #fff,0 0 0 3px color-mix(in srgb,var(--gold) 28%,transparent),0 16px 28px color-mix(in srgb,var(--gold) 22%,transparent)}

/* ---------- admin: tables, stats, flashes, badges ---------- */
.table-wrap{border-radius:var(--cr-radius)}
.table tbody tr{transition:background .25s ease,transform .25s var(--cr-ease)}
.table tbody tr:hover{background:linear-gradient(90deg,rgba(255,255,255,.55),rgba(255,255,255,.2))}
.stat{position:relative;overflow:hidden}
.stat:before{content:"";position:absolute;inset-inline-end:-30px;top:-30px;width:84px;height:84px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.85),color-mix(in srgb,var(--gold) 30%,transparent) 55%,transparent 72%);filter:blur(1px);opacity:.55;animation:cr-orb 7s ease-in-out infinite}
@keyframes cr-orb{50%{transform:translate(-8px,10px) scale(1.08)}}
.stat b{background:linear-gradient(180deg,var(--ink),color-mix(in srgb,var(--ink) 60%,var(--gold)));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.flash{border-radius:20px;border:1px solid var(--cr-edge);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.8),0 12px 24px rgba(36,28,18,.08);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);animation:cr-in .6s var(--cr-ease) both}
.badge-s,.pill,.tag,.badge{box-shadow:inset 0 1px 0 rgba(255,255,255,.9),inset 0 -1px 2px rgba(0,0,0,.08),0 3px 8px rgba(36,28,18,.08)}
.toast{border-radius:20px;box-shadow:inset 0 1.5px 0 rgba(255,255,255,.9),0 24px 50px rgba(36,28,18,.22)}

/* ---------- entrance motion ---------- */
@keyframes cr-in{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.reveal{transition:opacity .9s var(--cr-ease),transform .9s var(--cr-ease)}
.reveal:not(.visible){transform:translateY(34px) scale(.97)}
.categories>.reveal:nth-child(2),.products>.reveal:nth-child(2){transition-delay:.07s}
.categories>.reveal:nth-child(3),.products>.reveal:nth-child(3){transition-delay:.14s}
.categories>.reveal:nth-child(4),.products>.reveal:nth-child(4){transition-delay:.21s}
.admin-main>*{animation:cr-in .7s var(--cr-ease) both}
.admin-main>*:nth-child(2){animation-delay:.06s}.admin-main>*:nth-child(3){animation-delay:.12s}.admin-main>*:nth-child(4){animation-delay:.18s}
.admin-side{animation:cr-in .7s var(--cr-ease) both}
.stat-grid>.stat{animation:cr-in .7s var(--cr-ease) both}
.stat-grid>.stat:nth-child(2){animation-delay:.07s}.stat-grid>.stat:nth-child(3){animation-delay:.14s}.stat-grid>.stat:nth-child(4){animation-delay:.21s}.stat-grid>.stat:nth-child(5){animation-delay:.28s}
.hero-photo{box-shadow:0 40px 100px rgba(58,43,28,.28),inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 0 0 1px rgba(255,255,255,.4)}
.floating-glass,.story-badge,.badge{border-radius:20px;backdrop-filter:blur(18px) saturate(1.5);-webkit-backdrop-filter:blur(18px) saturate(1.5)}
.floating-glass{animation:cr-float 6s ease-in-out infinite}
@keyframes cr-float{50%{transform:translateY(-8px)}}
.hero-card,.story-card,.newsletter{border-radius:36px}
.chart-card,.chart{border-radius:var(--cr-radius)}
.chart .line{filter:drop-shadow(0 6px 8px color-mix(in srgb,var(--gold) 40%,transparent))}
.chart .bar{transition:filter .3s ease,transform .4s var(--cr-ease)}.chart .bar:hover{filter:brightness(1.1) saturate(1.2)}

/* sign-in / registration cards */
.auth-card{border-radius:32px}

/* ---------- touch + reduced motion: no tilt, no looping animation ---------- */
@media(hover:none){.fx-tilt{transform:none!important}.fx-tilt:after{display:none}}
@media(prefers-reduced-motion:reduce){
  body:after,.stat:before,.floating-glass,.admin-main>*,.admin-side,.stat-grid>.stat,.flash{animation:none!important}
  .fx-tilt{transform:none!important}.reveal:not(.visible){transform:none}
}
@media(max-width:560px){:root{--cr-radius:22px}.btn,.add{border-radius:16px}}

/* small round counters keep the theme button colour */
.count-pill{--b:var(--btn-bg,#1d211f);color:#fff;border:1px solid color-mix(in srgb,var(--b) 55%,#fff 45%);text-shadow:0 1px 1px rgba(0,0,0,.35);
  background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,.04) 55%,rgba(0,0,0,.16)),linear-gradient(180deg,color-mix(in srgb,var(--b) 70%,#fff),var(--b) 60%,color-mix(in srgb,var(--b) 80%,#000));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6),inset 0 -2px 4px rgba(0,0,0,.3),0 4px 10px color-mix(in srgb,var(--b) 35%,transparent)}

/* single-column pages (login, register, reset, notices): the glass pane gets its own padding and corners */
.shop-narrow.glass{padding:36px 36px 32px;border-radius:34px}
.shop-narrow.glass .shop-form{padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:0}
.shop-narrow.glass .shop-links{margin-top:18px}
@media(max-width:560px){.shop-narrow.glass{padding:26px 22px}}
.shop-narrow.glass h1{margin-bottom:18px}

/* =====================================================================
   Banner (hero): compact by default, optional background image with adjustable opacity
   (Admin > Settings > Home: hero_size, hero_bg_media_id, hero_bg_opacity)
   ===================================================================== */
.hero-bg{position:absolute;z-index:-1;inset:50px -8% 14px -8%;border-radius:60px;overflow:hidden;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,#000 60%,transparent);mask-image:linear-gradient(180deg,#000 60%,transparent)}
.hero-bg img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.04)}
.hero-compact{padding-top:104px;padding-bottom:12px;gap:22px}
.hero-compact h1{font-size:clamp(34px,4.6vw,58px);line-height:.98}
.hero-compact .hero-copy{padding-top:0}
.hero-compact .eyebrow{margin-bottom:12px}
.hero-compact p{margin:16px 0;font-size:15px;line-height:1.6}
.hero-compact .hero-meta{margin-top:16px}
.hero-compact .hero-photo,.hero-compact .hero-card{height:360px;border-radius:34px}
.hero-compact .orb{width:260px;height:260px}.hero-compact .vase{transform:scale(.8)}
.hero-compact:before{inset:48px -8% 4px -8%;border-radius:50px}
.hero-medium{padding-top:116px}
.hero-medium h1{font-size:clamp(40px,5.6vw,72px)}
.hero-medium .hero-photo,.hero-medium .hero-card{height:470px}
@media(max-width:900px){.hero-compact .hero-photo,.hero-compact .hero-card{height:280px}.hero-medium .hero-photo,.hero-medium .hero-card{height:360px}.hero-compact{padding-top:96px}}
@media(max-width:560px){.hero-compact .hero-photo,.hero-compact .hero-card{height:230px}.hero-medium .hero-photo,.hero-medium .hero-card{height:300px}.hero-compact h1{font-size:clamp(30px,9vw,40px)}.hero-bg{inset:44px -4% 6px -4%;border-radius:36px}}

/* "Install the store as an app" button at the top of the page (visible only when the browser can install the PWA) */
.install-btn{--b:var(--btn-bg,#1d211f);display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 15px;border-radius:16px;cursor:pointer;font-size:12px;font-weight:800;white-space:nowrap;color:#fff;
  border:1px solid color-mix(in srgb,var(--b) 55%,#fff 45%);text-shadow:0 1px 1px rgba(0,0,0,.35);
  background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.04) 55%,rgba(0,0,0,.16)),linear-gradient(180deg,color-mix(in srgb,var(--b) 70%,#fff),var(--b) 55%,color-mix(in srgb,var(--b) 80%,#000));
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.6),inset 0 -3px 6px rgba(0,0,0,.32),0 8px 16px color-mix(in srgb,var(--b) 32%,transparent);
  transition:transform .3s var(--cr-ease),box-shadow .3s var(--cr-ease)}
.install-btn span:first-child{font-size:16px;line-height:1}
.install-btn:hover{transform:translateY(-3px);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.7),inset 0 -3px 6px rgba(0,0,0,.32),0 14px 24px color-mix(in srgb,var(--b) 40%,transparent)}
.install-btn:active{transform:translateY(1px)}
.install-btn[hidden]{display:none!important}
@media(max-width:900px){.install-btn{padding:0;width:40px;justify-content:center}.install-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}

/* uploaded logo image (Admin > Settings > General) */
.logo:has(.logo-img){display:inline-flex;align-items:center;letter-spacing:0}
.logo-img{display:block;height:40px;width:auto;max-width:200px;object-fit:contain}
.admin-brand .logo-img{height:44px;max-width:100%}
.auth-logo .logo-img{height:56px}
@media(max-width:560px){.logo-img{height:32px;max-width:150px}}

/* smaller product cards (more products per row, shorter pictures) */
.products{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px}
.product{border-radius:22px}
.product-img{height:200px}
.product-info{padding:14px 15px 15px}
.product-info small{font-size:11px}
.product-info h3{font-size:17px;margin:4px 0 8px;line-height:1.2}
.price{font-size:14px}
.product-actions{margin-top:10px;gap:6px}
.product-actions .whatsapp-btn,.product-actions .image-btn{padding:7px 9px;font-size:11px;border-radius:12px}
.tag{top:10px;left:10px;padding:5px 8px;font-size:9px}
@media(max-width:900px){.products{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}}
@media(max-width:560px){.products{grid-template-columns:1fr 1fr;gap:10px}.product-img{height:150px}.product-info{padding:11px}.product-info h3{font-size:15px}}

.demo-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}.demo-actions .btn{margin-top:0}

/* ---- v1.6 compact layout: smaller category cards, tighter vertical rhythm ---- */
section{padding:46px 0}
.section-head{margin-bottom:18px}
.section-head h2{font-size:clamp(26px,3.4vw,36px)}
.section-head p{font-size:14px;line-height:1.55}
.categories{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.category{min-height:84px;padding:14px 16px;border-radius:20px;justify-content:center}
.category .emoji{font-size:28px;top:12px;right:14px}
.category h3{font-size:15px;padding-right:38px}
.category span{font-size:11.5px;margin-top:3px}
.category:hover{transform:translateY(-4px)}
.filter-bar{margin-bottom:16px}
.artisan,.newsletter{margin-top:0}
.newsletter{padding:30px 34px}
footer,.footer{margin-top:0}
@media(max-width:900px){section{padding:34px 0}.categories{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}
@media(max-width:560px){section{padding:26px 0}.categories{grid-template-columns:1fr 1fr;gap:10px}.category{min-height:74px;padding:12px}.category .emoji{font-size:24px;top:10px;right:10px}.category h3{font-size:14px}.section-head{margin-bottom:14px}}

/* ---- v1.7 performance layer: same look, far less GPU work ----
   Cost drivers removed: a full-screen animated blur(30px) layer, backdrop-filter on every card/button
   (each one forces a separate blur pass while scrolling), and will-change on every card. */
body:after{filter:none;animation:none;inset:0}
.product,.category,.card,.stat,.story-card,.newsletter,.media-card,.theme-card,.shop-card,.stat-card,.cart-summary,.confirmation,.chart-card,
.glass:not(header):not(.hero-card):not(.hero-photo),.btn.light,.image-btn,.badge,.story-badge,.flash{
  backdrop-filter:none;-webkit-backdrop-filter:none}
.product,.category,.card,.stat,.story-card,.media-card,.theme-card,.shop-card,.stat-card,.cart-summary,.confirmation,.chart-card{
  background:
    radial-gradient(120% 90% at var(--mx,30%) var(--my,0%),rgba(255,255,255,.8),transparent 55%),
    linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.55) 55%,var(--cr-tint)),
    var(--glass)}
header.glass{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.hero-card,.hero-photo{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.fx-tilt.is-hot{will-change:transform}
.product,.category{transform-style:flat}
.product img,.hero-photo img{content-visibility:auto}
@media(max-width:900px){.glass,header.glass,.hero-card{backdrop-filter:none;-webkit-backdrop-filter:none}}

/* ---- order tools (v1.8) ---- */
.bar-actions{display:flex;gap:8px;flex-wrap:wrap}
.row-actions{white-space:nowrap}.row-actions .btn{margin:2px 2px 2px 0}
.wa-tpls{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}
.wa-tpls .btn.on{outline:2px solid color-mix(in srgb,var(--gold) 70%,transparent)}
.wa-compose textarea{width:100%;margin-bottom:10px}

/* ---- reports hub (v1.9) ---- */
.report-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 14px}
.report-tabs .btn.on{background:var(--btn-bg);color:#fff;text-shadow:none}
.rep-summary{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin-bottom:16px}
.rep-kpi{padding:12px 14px;border-radius:16px;border:1px solid var(--line);background:rgba(255,255,255,.55)}
.rep-kpi span{display:block;font-size:12px;color:var(--muted)}.rep-kpi b{font-size:18px}
.rep-table .t-money,.rep-table .t-int{text-align:end;white-space:nowrap}
.rep-table .is-cancelled{opacity:.55;text-decoration:line-through}
.rep-table tfoot td{border-top:2px solid var(--ink)}
@media print{
  .admin-side,.admin-bar .bar-actions,.report-tabs,.filter-bar,.flash,.pager,body:after,.wa-float,.install-btn{display:none!important}
  body,.admin-main{background:#fff!important}.admin .card,.glass{box-shadow:none!important;background:#fff!important;backdrop-filter:none!important;border-color:#bbb!important}
  .admin-shell{display:block!important}.admin-main{padding:0!important;margin:0!important}
  .admin-main>*{animation:none!important}
}

/* ---- v2.0 compact storefront: small category chips, no dead space ---- */
section{padding:26px 0}
.hero{padding-bottom:12px}
#collections{padding-top:14px;padding-bottom:6px}
.section-head{margin-bottom:12px;gap:12px}
.section-head h2{font-size:clamp(22px,2.6vw,30px)}
.section-head p{margin-top:0;font-size:13px}
.categories{grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px}
.category{min-height:0;height:58px;padding:8px 12px;border-radius:16px;justify-content:center}
.category .emoji{font-size:22px;top:50%;right:10px;transform:translateY(-50%)}
.category h3{font-size:13.5px;line-height:1.2;padding-right:30px}
.category span{font-size:11px;margin-top:1px}
.category:hover{transform:translateY(-3px)}
.filter-bar{margin-bottom:12px}
.products{gap:12px}
.load-more{margin-top:14px}
.artisan{gap:22px}.story-card{min-height:300px}
.newsletter{padding:22px 28px}
footer{padding:20px 0 16px}
.hero.hero-compact{min-height:0}
@media(max-width:900px){section{padding:20px 0}.categories{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}}
@media(max-width:560px){section{padding:16px 0}.categories{grid-template-columns:1fr 1fr;gap:8px}.category{height:54px;padding:6px 10px}.category h3{font-size:13px}}

/* checkout: guest note + client-side field errors */
.guest-required{margin:4px 0 10px;font-size:13px;font-weight:600;color:var(--ink)}
.shop-form .field.has-error input,.shop-form .field.has-error select,.shop-form .field.has-error textarea{border-color:#c0452f;box-shadow:0 0 0 3px rgba(192,69,47,.15)}

/* home strips: new arrivals + best sellers (v2.2) */
.home-strip{padding-top:14px;padding-bottom:10px}
.home-strip .products{grid-template-columns:repeat(auto-fill,minmax(205px,1fr))}

/* ---- product card: link, quantity stepper, wide add button; product page (v2.2) ---- */
.card-link{display:block;width:100%;height:100%;color:inherit}
.product-img.photo .card-link{position:absolute;inset:0}
.product-info h3 a{color:inherit;text-decoration:none}.product-info h3 a:hover{text-decoration:underline}
.product-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.qty-box{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.7);overflow:hidden}
.qty-box button{width:30px;height:34px;border:0;background:transparent;font:700 17px/1 system-ui,sans-serif;color:var(--ink);cursor:pointer}
.qty-box button:hover{background:rgba(0,0,0,.06)}
.qty-box input{width:38px;height:34px;border:0;background:transparent;text-align:center;font:700 14px system-ui,sans-serif;color:var(--ink);-moz-appearance:textfield;padding:0}
.qty-box input::-webkit-outer-spin-button,.qty-box input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.add.add-wide{width:auto;height:36px;padding:0 12px;border-radius:14px;font-size:12.5px;font-weight:700;white-space:nowrap}
.qty-lg button{width:40px;height:44px;font-size:20px}.qty-lg input{width:48px;height:44px;font-size:16px}
.product-page{padding-top:110px}
.crumbs{font-size:13px;margin-bottom:12px;color:var(--muted)}.crumbs a{color:var(--ink)}
.pd-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px;align-items:start}
.pd-gallery,.pd-info,.pd-desc{border-radius:var(--cr-radius,28px);padding:18px}
.pd-main{border-radius:20px;overflow:hidden;background:rgba(0,0,0,.04);aspect-ratio:1/1;display:grid;place-items:center}
.pd-main img{width:100%;height:100%;object-fit:cover;display:block}
.pd-noimg{min-height:280px}
.pd-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.pd-thumb{width:64px;height:64px;padding:0;border:2px solid transparent;border-radius:12px;overflow:hidden;cursor:pointer;background:none}
.pd-thumb.on{border-color:var(--gold)}.pd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pd-info h1{font:500 clamp(26px,3.2vw,38px)/1.1 Georgia,serif;margin:6px 0 8px}
.pd-price{margin:0 0 10px;font-size:22px;font-weight:800}.pd-price .price-old{font-size:15px;font-weight:500;opacity:.6}
.pd-short{color:var(--muted);line-height:1.6;margin:0 0 10px}
.pd-stock{font-size:13px;font-weight:700;margin:0 0 12px}.pd-stock.in{color:#2f6b3a}.pd-stock.out{color:#a3321f}
.pd-buy{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:6px 0 16px}
.pd-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:0}
.pd-facts div{border-top:1px solid var(--line);padding-top:6px}.pd-facts dt{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.pd-facts dd{margin:2px 0 0;font-weight:600}
.pd-desc{margin-top:16px}.pd-desc h2{font:500 20px Georgia,serif;margin:0 0 6px}.pd-text{line-height:1.7;margin-bottom:12px}
@media(max-width:900px){.pd-grid{grid-template-columns:1fr}.product-page{padding-top:96px}.product-actions{justify-content:flex-start}}
.pd-tag,.pd-price .tag{position:static!important;display:inline-block;margin:0 0 6px}
.product-actions .add-wide{flex:1 1 auto;min-width:96px}

/* ---- hero showcase: random shop products (v2.3) ---- */
.hero-showcase{position:relative;overflow:hidden}
.hs-slide{position:absolute;inset:0;display:block;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s;color:#fff}
.hs-slide.on{opacity:1;visibility:visible}
.hs-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hs-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(20,14,8,.72))}
.hs-info{position:absolute;left:22px;right:22px;bottom:34px;display:grid;gap:3px;text-shadow:0 2px 12px rgba(0,0,0,.45)}
.hs-info small{font-size:12px;letter-spacing:.1em;text-transform:uppercase;opacity:.85}
.hs-info strong{font:500 clamp(20px,2.4vw,28px)/1.15 Georgia,serif}
.hs-price{font-weight:800;font-size:17px}.hs-price s{font-weight:500;opacity:.65;font-size:14px}
.hs-dots{position:absolute;left:0;right:0;bottom:12px;display:flex;gap:7px;justify-content:center;z-index:2}
.hs-dot{width:9px;height:9px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.85);background:rgba(255,255,255,.25);cursor:pointer}
.hs-dot.on{background:#fff}
@media(prefers-reduced-motion:reduce){.hs-slide{transition:none}}

/* Floating install-app button: shown only when the browser can install the PWA (or iOS hint); stays on every page, above the WhatsApp button */
.install-float{position:fixed;bottom:88px;z-index:89;display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px;border:0;border-radius:100px;cursor:pointer;font:inherit;font-size:13px;font-weight:800;color:#fff;background:var(--btn-bg,#1d211f);box-shadow:inset 0 1.5px 0 rgba(255,255,255,.55),inset 0 -3px 6px rgba(0,0,0,.3),0 12px 26px rgba(0,0,0,.28);transition:transform .25s ease,box-shadow .25s ease}
.install-float span:first-child{font-size:18px;line-height:1}
.install-float:hover{transform:translateY(-3px)}
.install-float:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.install-float[hidden]{display:none!important}
.if-right{right:22px}.if-left{left:22px}
body:not(.has-wa) .install-float{bottom:22px}
@media(max-width:900px){.install-float{height:48px;width:48px;padding:0;justify-content:center;bottom:78px}.if-right{right:14px}.if-left{left:14px}body:not(.has-wa) .install-float{bottom:16px}.install-float .install-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media print{.install-float{display:none!important}}
