/* ===== Premium typography ===== */
h1, h2, .display-serif { font-family: "Playfair Display", serif; }

/* ===== Scrollbar (desktop only) ===== */
@media (pointer:fine) {
  * { scrollbar-width: thin; scrollbar-color: #444 #111; }
  *::-webkit-scrollbar { height: 8px; width: 8px; }
  *::-webkit-scrollbar-thumb { background: #444; border-radius: 999px; }
  *::-webkit-scrollbar-track { background: #111; }
}

/* ===== Aspect-ratio helpers ===== */
.ar { position: relative; width: 100%; overflow: hidden; display: block; }
.ar > .media, .ratio > .ratio-media { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.ar-4-5  { aspect-ratio: 4 / 5; }
.ar-4-3  { aspect-ratio: 4 / 3; }
.ar-16-9 { aspect-ratio: 16 / 9; }
@supports not (aspect-ratio: 1 / 1) {
  .ar-4-5{padding-top:125%}.ar-4-3{padding-top:75%}.ar-16-9{padding-top:56.25%}
}
/* legacy ratio */
.ratio{position:relative;width:100%;display:block;overflow:hidden}
.ratio-4-5{padding-top:125%}.ratio-4-3{padding-top:75%}.ratio-16-9{padding-top:56.25%}
.ratio>.ratio-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* ===== Sticky bar padding on mobile ===== */
:root { --sticky-cta-h: 88px; }
@media (max-width:640px){ .pb-safe{ padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom)); } }

/* ===== Media safety ===== */
img, video{ max-width:100%; height:auto; display:block; }

/* ===== Tilt (safe) ===== */
.tilt3d{ transform-style:preserve-3d; transform:perspective(900px) rotateX(0) rotateY(0); transition:transform .15s ease, box-shadow .2s ease; will-change:transform; }
.tilt3d .tilt-media{ transform:translateZ(40px) scale(1.02); transition:transform .2s ease; }
@media (hover:none) and (pointer:coarse){ .tilt3d, .tilt3d .tilt-media{ transform:none!important; } }
@media (prefers-reduced-motion:reduce){ .tilt3d, .tilt3d .tilt-media{ transition:none; }

/* ======================= CATEGORY GRID ======================= */
}
.cat-section{max-width:1200px;margin-inline:auto;padding:24px 16px;}
.cat-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px;}
.cat-title{font-size:clamp(20px,2.4vw,32px);color:var(--text,#f6f7fb);margin:0;}
.cat-search{
  width:220px; max-width:45%;
  background:var(--surface-2,#191c21);
  border:1px solid #222; color:var(--text,#f6f7fb);
  padding:10px 12px; border-radius:12px; outline:none;
}
.cat-search:focus{ box-shadow:0 0 0 3px rgba(233,200,90,.35); border-color:#3b3b3b; }

.cat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px, 1fr));
  gap:14px;
}

.cat-card{
  position:relative; display:block; overflow:hidden; border-radius:18px;
  background:linear-gradient(180deg, #0c0f13, #0a0c10);
  box-shadow:0 1px 0 rgba(255,255,255,.04), 0 10px 30px rgba(0,0,0,.45);
  text-decoration:none; color:inherit; isolation:isolate;
}
.cat-figure{aspect-ratio:16/10; margin:0; overflow:hidden;}
.cat-figure img{
  width:100%; height:100%; object-fit:cover;
  transform:scale(1.02); transition:transform .35s ease, filter .35s ease;
  filter:saturate(1.05) contrast(1.02);
}
.cat-info{
  position:absolute; inset:auto 0 0 0; padding:14px 14px 16px;
  background:linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 38%, rgba(0,0,0,.65) 100%);
  display:flex; flex-direction:column; gap:4px;
}
.cat-name{font-weight:700; letter-spacing:.2px; font-size:15px; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.5);}
.cat-sub{font-size:12px; color:var(--muted,#9aa4af); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.cat-card:hover .cat-figure img{ transform:scale(1.06); filter:saturate(1.12) contrast(1.06); }
.cat-card:active{ transform:translateY(1px); }

@media (max-width:640px){
  .cat-grid{ grid-template-columns:repeat(2, 1fr); }
  .cat-search{ max-width:60%; width:100%; }
}
@media (max-width:380px){
  .cat-grid{ grid-template-columns:1fr 1fr; }
  .cat-figure{ aspect-ratio:4/3; }
}

/* ======================= PRODUCT CARDS ======================= */
.products-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
@media (min-width:768px){
  .products-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); gap:18px; }
}

.p-card{
  position:relative; display:flex; flex-direction:column;
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border-radius:18px; overflow:hidden;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset, 0 8px 24px rgba(0,0,0,.28);
  transition:transform .18s ease, box-shadow .18s ease;
}
.p-card:hover{ transform:translateY(-2px); box-shadow:0 1px 0 rgba(255,255,255,.06) inset, 0 14px 32px rgba(0,0,0,.35); }
.p-card.luxe{ outline:1px solid rgba(255,255,255,.08); }
.p-card.luxe:hover{ outline-color: rgba(201,162,39,.45); }

.p-media{ position:relative; aspect-ratio:4/5; overflow:hidden; border-radius:16px; margin:8px; }
.p-media img{ width:100%; height:100%; object-fit:cover; transform:scale(1.01); transition:transform .3s ease; }
.p-card:hover .p-media img{ transform:scale(1.045); }
.p-media-gradient{ position:absolute; inset:0; background:linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.25)); pointer-events:none; }

.p-badges{ position:absolute; top:10px; left:12px; right:12px; display:flex; gap:6px; flex-wrap:wrap; z-index:2; }
.badge{ font-size:10px; font-weight:700; padding:6px 8px; border-radius:999px; }
.badge-glass{ backdrop-filter:saturate(1.4) blur(6px); box-shadow:0 6px 14px rgba(0,0,0,.25); }

.p-body{ padding:10px 12px 12px; }
.p-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.p-title{ font-weight:600; font-size:14px; line-height:1.2; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.p-spec{ color:var(--muted,#9aa4af); font-size:11px; white-space:nowrap; }
.p-sub{ color:var(--muted,#9aa4af); font-size:12px; margin-top:2px; }

/* ======================= ACTION PILLS ======================= */
.p-actions{ display:flex; gap:10px; margin-top:12px; }

.btn{
  --bg: rgba(255,255,255,.06);
  --bd: rgba(255,255,255,.16);
  --tx: var(--text,#f6f7fb);
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:40px; padding:0 12px; border-radius:12px;
  background:var(--bg); border:1px solid var(--bd); color:var(--tx);
  font-weight:600; font-size:13px; letter-spacing:.2px; text-decoration:none;
  transition:background .15s ease, border-color .15s ease, transform .12s ease, filter .12s ease;
}
.btn:hover{ background:rgba(255,255,255,.10); border-color:rgba(255,255,255,.22); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:2px solid rgba(255,255,255,.35); outline-offset:2px; }

.btn svg{ width:18px; height:18px; flex:0 0 18px; }
.btn svg path, .btn svg circle{ stroke:currentColor; stroke-width:2; fill:none; }
.btn .lbl{ display:none; }
@media (min-width:640px){ .btn .lbl{ display:inline; } }

.btn--add{
  --bg: rgba(201,162,39,.14);
  --bd: rgba(201,162,39,.32);
  --tx: #f7f0d4;
}
.btn--add:hover{ --bg: rgba(201,162,39,.20); --bd: rgba(201,162,39,.42); }

/* ======================= WHATSAPP SVG FIX ======================= */
/* Use your 48x48 WhatsApp SVG with class="wa" inside the .btn--wa. 
   These rules make the glyph crisp white and ignore the generic stroke. */
.btn--wa {
  background: linear-gradient(180deg, #2ed573 0%, #13af62 100%);
  border-color: #119652;
  color: #fff;
}
.btn--wa:hover { filter: brightness(1.05); }

.btn--wa .wa {           /* <svg class="wa" viewBox="0 0 48 48"> */
  width: 20px;
  height: 20px;
  display: inline-block;
}

/* Force white fill and remove outline on all shapes inside the WA icon */
.btn--wa .wa *, 
.btn--wa .wa path,
.btn--wa .wa circle {
  fill: #fff !important;
  stroke: none !important;
}

/* Mobile layout: WA stretches to use space if needed */
@media (max-width:639.9px){
  .btn{ height:36px; padding:0 10px; }
  .btn--add{ min-width:78px; }
  .btn--wa{ flex:1; }
}
.btn--wa .wa-img{ width:20px; height:20px; object-fit:contain; display:inline-block; vertical-align:middle; }
.btn--wa .wa-img + .lbl{ margin-left:6px; }


.btn-chip {
    display:inline-flex; align-items:center; gap:.5rem;
    padding:.5rem .8rem; border-radius:9999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size:.9rem;
    transition:.15s ease;
  }
  .btn-chip:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }

  /* Inline audio block */
  .audio-inline details { user-select:none; }
  .audio-inline summary {
    cursor:pointer; list-style:none; outline:none;
    color: var(--muted, rgba(255,255,255,.7));
    font-size:.85rem;
  }
  .audio-inline summary::-webkit-details-marker { display:none; }
  .audio-inline summary:before {
    content:"▾"; margin-right:.45rem; opacity:.6; transition: transform .15s ease;
    display:inline-block; transform: translateY(-1px);
  }
  .audio-inline[open] summary:before { transform:rotate(180deg) translateY(1px); }

  .audio-card {
    margin-top:.75rem;
    display:flex; align-items:center; gap:.8rem; flex-wrap: wrap;
  }
  .pill-play {
    padding:.6rem .9rem; border-radius:9999px;
    border:1px solid rgba(56,189,248,.35);
    background:linear-gradient(180deg, rgba(56,189,248,.18), rgba(56,189,248,.05));
    font-weight:600; font-size:.9rem;
  }
  .pill-play[data-state="pause"] { background:linear-gradient(180deg, rgba(34,197,94,.22), rgba(34,197,94,.06)); border-color:rgba(34,197,94,.4); }

  /* “Wave” track with animated bars look */
  .wave {
    position:relative; width:min(460px, 46vw); height:42px; border-radius:999px;
    background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08);
    overflow:hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.25);
  }
  /* Back pattern (light bars) */
  .wave::before {
    content:""; position:absolute; inset:7px 10px;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.14) 0 2px,
        rgba(255,255,255,0) 2px 6px
      );
    -webkit-mask: linear-gradient(90deg, #000 96%, transparent);
            mask: linear-gradient(90deg, #000 96%, transparent);
    border-radius:999px;
    opacity:.5;
  }
  /* Progress fill with brighter bars */
  .wave-progress {
    position:absolute; inset:7px calc(100% - 10px) 7px 10px; width:0%;
    background:
      repeating-linear-gradient(
        90deg,
        rgba(56,189,248,.95) 0 2px,
        rgba(56,189,248,.25) 2px 6px
      );
    border-radius:999px;
    box-shadow: inset 0 0 0 1px rgba(56,189,248,.6),
                0 0 20px rgba(56,189,248,.25);
    transition: width .12s linear;
  }

  .time-small { font-variant-numeric: tabular-nums; font-size:.85rem; opacity:.8; }