/* ==================================================================
   مكتبة هاشم — Storefront v2 (Claude Design port)
   Neo-brutalist kid-premium: hard borders, offset shadows, cube chips.
   Brand: #FF8000 / #F43536 / #E653A6 / #845AB2 on lilac-white.
   ================================================================== */
:root {
  --ink: #2A1F3D;
  --ink-soft: #5b5069;
  --muted: #8f8599;
  --paper: #FBF8FD;
  --card: #ffffff;
  --line: #ECE5F3;
  --orange: #FF8000;
  --red: #F43536;
  --pink: #E653A6;
  --purple: #845AB2;
  --green: #1F8A5B;
  --t-orange: #FFF1E3;
  --t-red: #FDE9E9;
  --t-pink: #FBE7F2;
  --t-purple: #F0EAF7;
  /* v1 compat aliases (chat.js inline styles) */
  --amber: #FF8000;
  --amber-dark: #e56f00;
  --font: "Tajawal", -apple-system, "Segoe UI", tahoma, sans-serif;
  --font-display: "Baloo Bhaijaan 2", "Tajawal", sans-serif;
}

@font-face {
  font-family: "DG Agnadeen";
  /* Bold subset rescued from the brand PDF: outlines + cmap rebuilt from its ToUnicode map */
  src: url("assets/fonts/DGAgnadeen-Bold.woff2") format("woff2"),
       url("assets/fonts/DGAgnadeen-Bold.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
.font-brand { font-family: "DG Agnadeen", var(--font-display) !important; letter-spacing: 0 !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.sec { padding-block: clamp(30px, 4vw, 56px) 8px; }

/* cube color utilities */
.c-orange { background: var(--orange); } .c-red { background: var(--red); }
.c-pink { background: var(--pink); }    .c-purple { background: var(--purple); }
.hs-scroll { scrollbar-width: thin; }
.hs-scroll::-webkit-scrollbar { height: 8px; }
.hs-scroll::-webkit-scrollbar-thumb { background: var(--line); }

/* ---------- keyframes ---------- */
@keyframes pageIn { from { opacity: 0; } }
body { animation: pageIn .4s ease-out; }
@keyframes hs-marquee { to { transform: translateX(-50%); } }
@keyframes hs-float  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes hs-float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes hs-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hs-pop  { 0% { transform: scale(.5); opacity: 0; } 70% { transform: scale(1.06); } 100% { transform: scale(1); opacity: 1; } }
@keyframes hs-dot  { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes confFall { 70% { opacity: 1; } to { transform: translateY(112vh) rotate(560deg); opacity: .35; } }
@keyframes hs-confetti { 0% { transform: translateY(-30px) rotate(0); opacity: 1; } 100% { transform: translateY(420px) rotate(600deg); opacity: 0; } }
@keyframes countPop { 40% { transform: scale(1.45); } }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.05); } 60% { transform: rotate(6deg); } }
@keyframes fabNudge { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-9deg) scale(1.05); } 95% { transform: rotate(7deg); } }
.rise { animation: hs-rise .55s both; }
.rise.d1 { animation-delay: .06s; } .rise.d2 { animation-delay: .13s; } .rise.d3 { animation-delay: .2s; }
.pop { animation: hs-pop .7s .1s both; }
.float1 { animation: hs-float 5s ease-in-out infinite; }
.float2 { animation: hs-float2 5.6s ease-in-out infinite; }

/* ---------- intro splash ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background:
    url("assets/pattern-orange.png"),
    radial-gradient(620px 420px at 72% 18%, rgba(255,128,0,.07), transparent),
    radial-gradient(520px 400px at 22% 82%, rgba(132,90,178,.09), transparent),
    var(--paper);
  background-size: 560px auto, auto, auto, auto;
  display: grid; place-items: center;
  transition: opacity .5s, visibility .5s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-inner { text-align: center; }
.intro-cubes { display: grid; grid-template-columns: repeat(2, 58px); gap: 9px; justify-content: center; }
.ic { width: 58px; height: 58px; opacity: 0; }
.ic1 { background: var(--orange); --fx: -150px; --fy: -130px; --fr: -80deg; animation: icIn .6s .05s cubic-bezier(.2,1.35,.3,1) forwards; }
.ic2 { background: var(--red);    --fx: 150px; --fy: -130px; --fr: 80deg;  animation: icIn .6s .17s cubic-bezier(.2,1.35,.3,1) forwards; }
.ic3 { background: var(--pink);   --fx: -150px; --fy: 130px; --fr: 80deg;  animation: icIn .6s .29s cubic-bezier(.2,1.35,.3,1) forwards; }
.ic4 { background: var(--purple); --fx: 150px; --fy: 130px; --fr: -80deg;  animation: icIn .6s .41s cubic-bezier(.2,1.35,.3,1) forwards; }
@keyframes icIn { from { opacity: 0; transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.4); } to { opacity: 1; transform: none; } }
.intro-name { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; color: var(--ink); margin-top: 18px; opacity: 0; animation: nameIn .5s .85s ease-out forwards; }
.intro-name small { display: block; font-family: var(--font); font-weight: 500; font-size: .66rem; letter-spacing: 4px; color: var(--ink-soft); margin-top: 3px; }
@keyframes nameIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; } }

/* ---------- demo ribbon ---------- */
.demo-ribbon { background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 500; text-align: center; padding: 8px 16px; letter-spacing: .2px; }
.dr-dot { width: 8px; height: 8px; background: var(--orange); display: inline-block; margin-inline-end: 8px; animation: hs-dot 1.6s ease-in-out infinite; }

/* ---------- header ---------- */
header.site { position: sticky; top: 0; z-index: 60; background: rgba(251,248,253,.92); backdrop-filter: blur(12px); border-bottom: 2px solid var(--line); transition: box-shadow .25s; }
header.site.scrolled { box-shadow: 0 6px 24px rgba(42,31,61,.12); }
.header-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-img { width: 46px; height: 46px; }
.logo:hover .logo-img { animation: wiggle .55s; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-size: 24px; color: var(--ink); }
.logo-sub { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: var(--purple); margin-top: 3px; font-weight: 600; }
.search-wrap { flex: 1 1 340px; min-width: 220px; display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); padding: 0 16px; height: 48px; }
.search-wrap:focus-within { border-color: var(--orange); }
.search-ico { font-size: 18px; opacity: .6; }
.search-wrap input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 15px; color: var(--ink); min-width: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-inline-start: auto; }
.wa-btn { height: 48px; padding: 0 15px; background: var(--green); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; flex: none; }
.wa-btn:hover { color: #fff; filter: brightness(1.08); }
.cart-btn { height: 48px; padding: 0 18px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px; transition: transform .15s; }
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn.bounce { animation: hs-pop .45s; }
.cart-count { min-width: 24px; height: 24px; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; padding: 0 6px; }
.cart-count.pop { animation: countPop .35s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-pattern { position: absolute; inset: 0; background-image: url("assets/pattern-ink-full.png"); background-size: 440px; opacity: .035; pointer-events: none; }
.hero-blob { position: absolute; pointer-events: none; }
.hb1 { top: -80px; inset-inline-start: -80px; width: 320px; height: 320px; background: var(--purple); opacity: .06; }
.hb2 { bottom: -60px; inset-inline-end: 8%; width: 120px; height: 120px; background: var(--orange); opacity: .08; }
.hero-grid { display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; align-items: center; position: relative; padding-block: clamp(28px, 5vw, 64px); }
.hero-copy { flex: 1 1 440px; min-width: 300px; }
.hero-chip { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 2px solid var(--line); padding: 8px 16px; font-weight: 700; font-size: 14px; margin-bottom: 22px; }
.chip-cube { width: 9px; height: 9px; background: var(--red); }
.hero h1 { margin: 0 0 20px; font-size: clamp(34px, 5.4vw, 68px); line-height: 1.18; color: var(--ink); font-weight: 400; }
.h1-line { display: block; }
.h1-line2 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.h1-hl { background: var(--orange); color: #fff; padding: 4px 18px 10px; display: inline-block; box-shadow: 6px 6px 0 var(--ink); }
.h1-emoji { font-size: .8em; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.85; color: var(--ink-soft); max-width: 520px; margin: 0 0 28px; }
.hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 15px 30px; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s; border: 0; cursor: pointer; }
.btn-hero:hover { transform: translate(-2px, -2px); color: #fff; }
.btn-hero:active { transform: translate(0, 0); }
.btn-hero-ghost { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border: 2px solid var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 18px; padding: 15px 28px; transition: transform .15s; }
.btn-hero-ghost:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line); }
.btn-block { width: 100%; }
.hero-mini { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-mini span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.hero-art { flex: 1 1 420px; min-width: 300px; position: relative; }
.ha-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ha-main { grid-column: 1 / 3; position: relative; border: 3px solid var(--ink); background: #fff; box-shadow: 10px 10px 0 rgba(132,90,178,.28); overflow: hidden; }
.ha-tag { position: absolute; top: 0; right: 0; background: var(--pink); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 14px; font-family: var(--font-display); z-index: 2; }
.ha-main img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.ha-cell { position: relative; border: 3px solid var(--ink); overflow: hidden; box-shadow: 6px 6px 0 rgba(42,31,61,.25); }
.hc-orange { background: var(--orange); } .hc-purple { background: var(--purple); }
.ha-cell img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.ha-badge { position: absolute; bottom: -22px; right: -8px; background: #fff; border: 2px solid var(--ink); padding: 10px 16px; box-shadow: 4px 4px 0 var(--orange); display: flex; align-items: center; gap: 10px; }
.ha-badge span { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.2; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; position: relative; background-image: url("assets/pattern-orange-full.png"); background-size: 340px; background-blend-mode: normal; }
.marquee::before { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: .92; }
.marquee-track { display: flex; width: max-content; animation: hs-marquee 34s linear infinite; position: relative; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mq-seq { display: flex; align-items: center; flex: none; }
.mq-item { display: inline-flex; align-items: center; padding: 15px 28px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.mq-cube { width: 8px; height: 8px; display: inline-block; margin-inline-start: 14px; }

/* ---------- section heads ---------- */
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.cube4 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 38px; height: 38px; flex: none; }
.cube4 i { border-radius: 2px; }
.sec-title { font-family: var(--font-display); margin: 0; font-size: clamp(24px, 3vw, 36px); color: var(--ink); font-weight: 800; }
.sec-title.font-brand { font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; }
.sec-sub { font-size: 14px; color: var(--purple); font-weight: 700; display: block; }
.count-chip { font-size: 14px; color: var(--purple); font-weight: 700; background: #fff; border: 2px solid var(--line); padding: 4px 12px; }

/* ---------- bundle flagship ---------- */
.bundle-card { background: #fff; border: 3px solid var(--ink); box-shadow: 12px 12px 0 rgba(132,90,178,.22); display: flex; flex-wrap: wrap; overflow: hidden; }
.bundle-visual { flex: 1 1 340px; min-width: 280px; position: relative; background: var(--t-purple); padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: center; background-image: url("assets/pattern-ink-full.png"); background-size: 220px; background-blend-mode: soft-light; }
.bundle-tag { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 13px; padding: 6px 12px; z-index: 2; }
.bv-cell { background: #fff; border: 2px solid var(--ink); position: relative; }
.sh-orange { box-shadow: 4px 4px 0 rgba(255,128,0,.25); } .sh-purple { box-shadow: 4px 4px 0 rgba(132,90,178,.25); }
.sh-pink { box-shadow: 4px 4px 0 rgba(230,83,166,.25); }  .sh-red { box-shadow: 4px 4px 0 rgba(244,53,54,.22); }
.corner { position: absolute; top: 0; inset-inline-start: 0; width: 12px; height: 12px; z-index: 2; }
.bv-cell img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 8px; }
.bundle-info { flex: 1 1 340px; min-width: 280px; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.bundle-ready { align-self: flex-start; background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 6px 14px; }
.bundle-info h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); margin: 0; color: var(--ink); line-height: 1.35; }
.bundle-info ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.bundle-info li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.ck { width: 20px; height: 20px; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.bundle-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bp-now { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--ink); }
.bp-old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.bp-save { background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 13px; padding: 5px 12px; }
.bundle-info .btn-hero { align-self: flex-start; font-size: 17px; }

/* ---------- product cards (rail + grid) ---------- */
.rail { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x proximity; }
.rail .p-card { flex: 0 0 236px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding-bottom: 30px; }
.p-card { background: #fff; border: 2px solid var(--line); display: flex; flex-direction: column; position: relative; transition: transform .18s, box-shadow .18s; }
.p-card:hover { transform: translateY(-6px); box-shadow: 0 14px 0 -4px rgba(132,90,178,.18); }
.p-corner { position: absolute; top: 0; inset-inline-start: 0; width: 14px; height: 14px; z-index: 2; }
.p-badge { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 3; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; padding: 4px 10px; white-space: nowrap; }
.p-out { position: absolute; top: 10px; inset-inline-start: 22px; z-index: 3; background: var(--ink); color: #fff; font-weight: 700; font-size: 11px; padding: 4px 9px; }
.p-img { position: relative; height: 210px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
.rail .p-img { height: 200px; }
.p-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .45s; }
.p-card:hover .p-img img { transform: scale(1.05); }
.p-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--line); flex: 1; }
.p-name { font-weight: 700; font-size: 14.5px; line-height: 1.5; margin: 0; color: var(--ink); min-height: 44px; cursor: pointer; }
.p-price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.p-price { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.p-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.p-save { background: var(--t-red); color: var(--red); font-family: var(--font-display); font-weight: 700; font-size: 11.5px; padding: 2px 9px; }
.p-scarcity { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 12px; }
.p-scarcity i { width: 7px; height: 7px; background: var(--red); }
.add-btn { border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 11px; cursor: pointer; transition: background .15s, transform .1s; width: 100%; }
.add-btn:hover { transform: scale(1.02); }
.add-btn:active { transform: scale(.97); }
.add-btn:disabled { background: #cdc5dc; cursor: not-allowed; transform: none; }
.add-btn.added { background: var(--green); }
.qty-stepper { display: flex; align-items: center; justify-content: space-between; background: var(--paper); border: 2px solid var(--orange); overflow: hidden; }
.qty-stepper button { width: 38px; height: 40px; font-size: 1.15rem; font-weight: 800; color: var(--ink); transition: background .15s; }
.qty-stepper button:hover { background: var(--orange); color: #fff; }
.qty-stepper .q { font-weight: 800; font-size: .9rem; }
.empty-state { text-align: center; padding: 50px 0; color: var(--ink-soft); grid-column: 1 / -1; }
.empty-state .big { font-size: 2.4rem; }
.chat-chip-btn { background: #fff; border: 2px solid var(--orange); color: var(--ink); font-size: .82rem; font-weight: 700; padding: 7px 14px; cursor: pointer; }
.chat-chip-btn:hover { background: var(--orange); color: #fff; }

/* ---------- category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-tile { position: relative; border: 2px solid var(--ink); padding: 0; cursor: pointer; text-align: start; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .18s, box-shadow .18s; }
.cat-tile:hover { transform: translateY(-5px); box-shadow: 6px 6px 0 var(--ink); }
.cat-tile .corner { width: 18px; height: 18px; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.ct-bar { position: relative; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-name { display: flex; align-items: center; gap: 10px; }
.ct-name b { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.ct-emoji { font-size: 22px; }
.ct-count { background: rgba(255,255,255,.28); font-weight: 700; font-size: 13px; padding: 3px 10px; white-space: nowrap; }

/* ---------- shop your way ---------- */
.ways-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(20px, 3vw, 36px); }
.way-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 0 0 16px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.way-title .dot { width: 10px; height: 10px; }
.grade-grid, .gift-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grade-tile { border: 2px solid var(--line); background: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; position: relative; transition: transform .16s, box-shadow .16s; text-align: start; }
.grade-tile .corner { width: 14px; height: 14px; }
.g-purple:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--purple); }
.g-orange:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--orange); }
.g-pink:hover   { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--pink); }
.gt-emoji { font-size: 32px; }
.gt-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.gt-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.gift-tile { border: 2px solid var(--ink); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; transition: transform .16s, box-shadow .16s; }
.gift-tile span { font-size: 26px; }
.gift-tile b { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--ink); }
.gt-o { background: var(--t-orange); } .gt-o:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--orange); }
.gt-p { background: var(--t-pink); }   .gt-p:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--pink); }
.gt-v { background: var(--t-purple); } .gt-v:hover { transform: translateY(-4px); box-shadow: 5px 5px 0 var(--purple); }

/* ---------- filters ---------- */
.filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 26px; }
.f-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; padding: 9px 16px; cursor: pointer; white-space: nowrap; transition: transform .12s; }
.f-chip:hover { transform: translateY(-2px); }
.f-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.f-chip.price-clear { border-color: var(--red); color: var(--red); }

/* ---------- finder ---------- */
.finder-card { border: 3px solid var(--ink); background: #fff; box-shadow: 10px 10px 0 rgba(230,83,166,.2); overflow: hidden; display: flex; flex-wrap: wrap; }
.finder-side { flex: 1 1 280px; min-width: 250px; background: var(--purple); color: #fff; padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden; }
.fs-pattern { position: absolute; inset: 0; background-image: url("assets/pattern-white-full.png"); background-size: 220px; opacity: .08; }
.fs-inner { position: relative; }
.fs-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18); font-weight: 700; font-size: 13px; padding: 6px 13px; margin-bottom: 16px; }
.finder-side h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.8vw, 34px); margin: 0 0 12px; line-height: 1.35; }
.finder-side p { font-size: 15px; line-height: 1.85; color: #efe7f6; margin: 0; }
.finder-main { flex: 1.3 1 320px; min-width: 280px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.finder-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.finder-progress { display: flex; gap: 8px; }
.finder-progress span { width: 26px; height: 12px; background: var(--line); }
.finder-progress .done { background: var(--green); }
.finder-progress .cur { background: var(--orange); }
.finder-step-lbl { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--purple); }
.finder-q { font-family: var(--font-display); font-weight: 800; font-size: clamp(19px, 2vw, 24px); margin: 0; color: var(--ink); }
.finder-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.f-opt { border: 2px solid var(--line); background: #fff; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 9px; cursor: pointer; position: relative; transition: transform .14s, border-color .14s, box-shadow .14s; }
.f-opt .corner { width: 12px; height: 12px; }
.f-opt:hover { transform: translateY(-4px); }
.f-opt.o-orange:hover { border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); }
.f-opt.o-pink:hover   { border-color: var(--pink); box-shadow: 4px 4px 0 var(--pink); }
.f-opt.o-purple:hover { border-color: var(--purple); box-shadow: 4px 4px 0 var(--purple); }
.f-opt.o-red:hover    { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.f-opt .fo-emoji { font-size: 34px; line-height: 1; }
.f-opt .fo-label { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.finder-answer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--t-purple); padding: 14px 16px; margin-bottom: 4px; font-weight: 700; font-size: 14.5px; color: var(--ink); animation: hs-rise .4s both; }
.finder-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; animation: hs-rise .4s both; }
.fr-card { border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; position: relative; }
.fr-card img { width: 100%; height: 110px; object-fit: contain; padding: 8px; }
.fr-card .fr-name { font-size: 12.5px; font-weight: 700; padding: 0 10px; line-height: 1.45; min-height: 36px; }
.fr-card .fr-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 4px 10px 8px; }
.fr-card .add-btn { font-size: 12.5px; padding: 8px; }
.finder-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-finder-ghost { border: 2px solid var(--ink); background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 16px; padding: 12px 24px; cursor: pointer; }

/* ---------- school section ---------- */
.school { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.school-pattern { position: absolute; inset: 0; background-image: url("assets/pattern-orange-full.png"); background-size: 360px; opacity: .09; }
.school-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.school-confetti span { position: absolute; top: 0; animation: hs-confetti ease-in forwards; }
.school-grid { display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; align-items: center; position: relative; z-index: 2; padding-block: clamp(40px, 5vw, 72px); }
.school-copy { flex: 1 1 400px; min-width: 290px; }
.school-star { display: inline-flex; align-items: center; gap: 9px; background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 7px 15px; margin-bottom: 20px; }
.school h2 { margin: 0 0 18px; font-size: clamp(28px, 3.8vw, 50px); line-height: 1.3; font-weight: 400; }
.school-copy p { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.9; color: #d8cfe4; max-width: 520px; margin: 0 0 26px; }
.school-steps { display: flex; flex-direction: column; gap: 14px; }
.school-steps > div { display: flex; align-items: center; gap: 14px; }
.school-steps .st { width: 40px; height: 40px; flex: none; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.school-steps span:last-child { font-weight: 600; font-size: 15px; }
.school-ticket { flex: 1 1 400px; min-width: 290px; background: var(--paper); color: var(--ink); border: 3px solid #000; box-shadow: 12px 12px 0 rgba(255,128,0,.35); }
.ticket-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 2px solid var(--line); background: #fff; }
.td { width: 12px; height: 12px; }
.ticket-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin-inline-start: 6px; }
.ticket-body { padding: 18px; }
#slInput { width: 100%; background: #fff; border: 2px dashed #C9BEDA; padding: 14px 16px; font-size: 14px; line-height: 2; color: var(--ink-soft); resize: vertical; min-height: 130px; outline: none; }
#slInput:focus { border-color: var(--orange); color: var(--ink); }
.ticket-body .btn-hero { margin-top: 14px; font-size: 16px; }
.sl-results { margin-top: 18px; border-top: 2px solid var(--line); padding-top: 16px; }
.sl-found { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--purple); margin-bottom: 12px; animation: hs-rise .4s both; }
.sl-found i { width: 8px; height: 8px; background: var(--purple); }
.sl-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #F1ECF6; animation: hs-rise .4s both; }
.sl-thumb { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--t-purple); }
.sl-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sl-name { flex: 1; font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.sl-name b { color: var(--purple); font-weight: 800; }
.sl-line { font-family: var(--font-display); font-weight: 700; font-size: 14px; white-space: nowrap; }
.sl-miss { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.8; }
.sl-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 14px; background: var(--ink); color: #fff; }
.sl-total b { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--orange); }
.sl-add { width: 100%; margin-top: 12px; border: 0; background: var(--purple); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 13px; cursor: pointer; }
.sl-add:disabled { background: var(--green); cursor: default; }

/* ---------- trust row ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.trust-card { border: 2px solid var(--line); background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.trust-card .corner { width: 16px; height: 16px; }
.tc-ico { font-size: 34px; }
.trust-card b { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.trust-card span:last-child { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; margin-top: 30px; }
.footer-pattern { position: absolute; inset: 0; background-image: url("assets/pattern-white-full.png"); background-size: 300px; opacity: .05; }
.newsletter { position: relative; border: 2px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); padding: clamp(20px, 3vw, 30px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px; justify-content: space-between; margin-top: clamp(32px, 4vw, 48px); }
.nl-copy { flex: 1 1 300px; }
.nl-copy h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 8px; color: #fff; }
.nl-copy p { font-size: 14px; line-height: 1.7; color: #c8bed6; margin: 0; }
.nl-form { flex: 1 1 300px; display: flex; gap: 10px; max-width: 430px; }
.nl-form input { flex: 1; height: 50px; background: #fff; color: var(--ink); border: 0; outline: 0; padding: 0 16px; font-size: 14px; min-width: 0; }
.nl-form button { border: 0; background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 0 24px; cursor: pointer; height: 50px; flex: none; }
.footer-grid { position: relative; padding-block: clamp(32px, 4vw, 48px) 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px; }
.f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.f-logo > span { display: flex; flex-direction: column; line-height: 1; }
.f-name { font-size: 24px; color: #fff; }
.f-sub { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: var(--orange); margin-top: 4px; }
.f-about { font-size: 14px; line-height: 1.9; color: #c8bed6; margin: 0 0 14px; max-width: 300px; }
.f-ig { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); padding: 7px 13px; font-size: 13px; font-weight: 600; }
.f-wa { margin-top: 12px; height: auto; padding: 9px 15px; font-size: 13.5px; display: inline-flex; }
.site-footer h4 { font-family: var(--font-display); font-size: 16px; margin: 0 0 16px; color: #fff; }
.f-branches, .f-links { list-style: none; display: flex; flex-direction: column; gap: 13px; font-size: 13.5px; line-height: 1.7; color: #c8bed6; }
.f-branches li { display: flex; gap: 10px; }
.f-branches .dot { width: 10px; height: 10px; flex: none; margin-top: 6px; }
.f-links a { color: #c8bed6; }
.f-links a:hover { color: var(--orange); }
.f-hours { font-size: 13.5px; line-height: 1.9; color: #c8bed6; margin: 0; }
.footer-note { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding: 18px clamp(16px, 4vw, 32px); text-align: center; font-size: 12.5px; color: #9a8fab; }

/* ---------- drawer (cart) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20,16,32,.5); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 80; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(440px, 94vw); background: var(--paper); z-index: 90; transform: translateX(-105%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.25,1), visibility 0s .3s; display: flex; flex-direction: column; border-inline-start: 3px solid var(--ink); box-shadow: -12px 0 40px rgba(42,31,61,.25); }
.drawer.open { transform: translateX(0); visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.25,1), visibility 0s 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 2px solid var(--line); background: #fff; }
.drawer-head h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; font-size: 1.1rem; color: var(--ink); background: var(--paper); border: 2px solid var(--line); transition: background .2s; }
.icon-btn:hover { background: var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 2px solid var(--line); }
.cart-item .nm { font-size: .88rem; font-weight: 700; line-height: 1.4; }
.cart-item .pr { font-size: .8rem; color: var(--ink-soft); }
.cart-item .mini-stepper { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cart-item .mini-stepper button { width: 26px; height: 26px; background: #fff; border: 2px solid var(--line); font-weight: 800; font-size: .95rem; }
.cart-item .mini-stepper button:hover { border-color: var(--orange); }
.cart-item .rm { color: var(--red); font-size: .78rem; font-weight: 700; }
.free-ship { background: #fff; border: 2px dashed var(--orange); padding: 10px 14px; margin-bottom: 12px; font-size: .84rem; font-weight: 600; }
.drawer-foot { padding: 16px 20px; border-top: 2px solid var(--line); background: #fff; }
.total-row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; color: var(--ink-soft); }
.total-row.grand { font-size: 1.1rem; font-weight: 800; color: var(--ink); margin: 8px 0 12px; }
.total-row.grand span:last-child { font-family: var(--font-display); }

/* ---------- checkout form ---------- */
.form-grid { display: grid; gap: 12px; }
.form-grid label { font-size: .85rem; font-weight: 700; display: block; margin-bottom: 4px; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 11px 14px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; border-color: var(--orange); }
.form-grid .err { border-color: var(--red) !important; }
.err-msg { color: var(--red); font-size: .76rem; margin-top: 3px; display: none; }
.pay-options { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); padding: 11px 14px; background: #fff; cursor: pointer; font-size: .9rem; font-weight: 700; }
.pay-opt:has(input:checked) { border-color: var(--orange); background: var(--t-orange); }

/* ---------- modals ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; opacity: 0; pointer-events: none; transition: opacity .22s; }
.modal-wrap.show { opacity: 1; pointer-events: auto; }
.modal { background: var(--paper); border: 3px solid var(--ink); box-shadow: 12px 12px 0 rgba(42,31,61,.3); width: min(560px, 100%); max-height: 88vh; overflow-y: auto; transform: translateY(14px); transition: transform .22s; position: relative; z-index: 101; }
.modal-wrap.show .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-grid img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.qv-body { padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.qv-body h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.4; font-family: var(--font-display); }
.qv-badge { display: inline-block; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px; padding: 4px 10px; align-self: flex-start; }
.confirm-body { padding: 34px 28px; text-align: center; }
.confirm-body .check { width: 74px; height: 74px; margin: 0 auto 14px; background: var(--t-orange); border: 2px solid var(--orange); display: grid; place-items: center; font-size: 2.1rem; }
.confirm-body h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; font-family: var(--font-display); }
.order-no { display: inline-block; background: var(--ink); color: var(--orange); padding: 7px 20px; font-weight: 800; letter-spacing: 1px; margin: 8px 0 14px; font-family: var(--font-display); }
.confirm-note { font-size: .87rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 18px; }
.confirm-note a { color: var(--orange); font-weight: 700; }
.wa-preview { text-align: start; background: #e7f6e9; border: 2px solid #bfe3c5; padding: 14px 16px; font-size: .8rem; white-space: pre-wrap; line-height: 1.8; margin-bottom: 16px; max-height: 200px; overflow-y: auto; }

/* ---------- chat widget ---------- */
.chat-fab { position: fixed; bottom: 22px; inset-inline-start: 20px; z-index: 91; width: 62px; height: 62px; border: 0; background: var(--orange); color: #fff; cursor: pointer; box-shadow: 0 10px 26px rgba(255,128,0,.5); font-size: 27px; display: flex; align-items: center; justify-content: center; border-radius: 50%; animation: fabNudge 9s 5s infinite; }
.chat-fab .pulse-dot { position: absolute; top: 2px; inset-inline-end: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 2.5px solid #fff; }
.chat-panel { position: fixed; bottom: 96px; inset-inline-start: 20px; z-index: 95; width: min(392px, calc(100vw - 40px)); height: min(600px, calc(100dvh - 130px)); background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 20px 50px rgba(42,31,61,.3); display: flex; flex-direction: column; overflow: hidden; transform: translateY(18px) scale(.97); opacity: 0; pointer-events: none; transition: all .25s cubic-bezier(.2,.8,.25,1); }
.chat-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 11px; }
.chat-avatar { width: 34px; height: 34px; background: #fff; padding: 2px; }
.chat-id { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.chat-id b { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.chat-id small { font-size: 11.5px; color: #9fe6b4; display: flex; align-items: center; gap: 6px; }
.chat-id .on { width: 7px; height: 7px; background: #48d178; border-radius: 50%; }
.chat-x { background: transparent; border: 0; color: #fff; }
.chat-x:hover { background: rgba(255,255,255,.12); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 11px 14px; font-size: .88rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: break-word; }
.msg.bot { background: #fff; border: 1.5px solid var(--line); align-self: flex-start; }
.msg.user { background: var(--ink); color: #fff; align-self: flex-end; }
.msg.typing { display: flex; gap: 5px; align-items: center; padding: 14px 18px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .18s; }
.msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 40% { opacity: .25; } }
.chat-prod { align-self: flex-start; width: 84%; background: #fff; border: 2px solid var(--line); overflow: hidden; display: grid; grid-template-columns: 84px 1fr; }
.chat-prod img { width: 84px; height: 100%; object-fit: contain; background: #fff; border-inline-end: 2px solid var(--line); }
.chat-prod .cp-body { padding: 10px 12px; }
.chat-prod .cp-body b { font-size: .82rem; line-height: 1.4; display: block; }
.chat-prod .cp-price { font-size: .85rem; font-weight: 800; color: var(--orange); margin: 3px 0 6px; font-family: var(--font-display); }
.chat-prod .cp-add { font-size: .75rem; font-weight: 800; color: #fff; background: var(--ink); padding: 5px 13px; }
.chat-prod .cp-add:disabled { background: #cdc5dc; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; align-self: flex-start; max-width: 95%; }
.chat-chip { background: #fff; border: 1.5px solid var(--purple); color: var(--purple); font-size: .78rem; font-weight: 700; padding: 7px 13px; cursor: pointer; transition: all .15s; }
.chat-chip:nth-child(3n+2) { border-color: var(--orange); color: var(--orange); }
.chat-chip:nth-child(3n) { border-color: var(--pink); color: var(--pink); }
.chat-chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.chat-foot { padding: 10px 12px; background: #fff; border-top: 2px solid var(--line); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row textarea { flex: 1; resize: none; border: 2px solid var(--line); padding: 10px 14px; max-height: 110px; background: var(--paper); font-size: .9rem; outline: none; }
.chat-input-row textarea:focus { border-color: var(--orange); }
.chat-send { width: 44px; height: 44px; align-self: flex-end; background: var(--orange); color: #fff; font-size: 1.15rem; font-weight: 800; display: grid; place-items: center; }
.chat-demo-note { font-size: .66rem; color: var(--ink-soft); text-align: center; margin-top: 6px; opacity: .8; }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; bottom: 100px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
[dir="rtl"] .toast-wrap { transform: translateX(50%); }
.toast { background: var(--ink); color: #fff; padding: 11px 22px; border: 2px solid #000; box-shadow: 4px 4px 0 rgba(255,128,0,.5); font-size: .86rem; font-weight: 700; animation: toastin .3s; display: flex; gap: 8px; align-items: center; }
@keyframes toastin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- back to top + confetti host ---------- */
.to-top { position: fixed; bottom: 24px; inset-inline-end: 22px; z-index: 70; width: 46px; height: 46px; background: var(--purple); color: #fff; font-size: 1.15rem; font-weight: 800; display: grid; place-items: center; box-shadow: 4px 4px 0 var(--ink); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
#confWrap { position: fixed; inset: 0; pointer-events: none; z-index: 140; overflow: hidden; }
#confWrap i { position: absolute; top: -5vh; display: block; animation: confFall linear forwards; }

/* ---------- scroll reveal ---------- */
.pre { opacity: 0; transform: translateY(16px); }
.pre.seen { opacity: 1; transform: none; transition: opacity .5s ease, transform .55s cubic-bezier(.2,.8,.25,1); }

/* ---------- admin (merchant panel compat) ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.admin-hero { background: var(--ink); color: #fff; padding: 26px 0; }
.admin-hero h1 { font-size: 1.45rem; font-family: var(--font-display); }
.admin-hero p { opacity: .75; font-size: .86rem; }
.back-link { display: inline-flex; gap: 6px; align-items: center; color: var(--orange); font-weight: 700; font-size: .88rem; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 16px; }
.section-title h2 { font-size: 1.45rem; font-weight: 800; font-family: var(--font-display); }
.section-title .count { color: var(--ink-soft); font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: -22px 0 26px; }
.stat { background: #fff; padding: 18px; border: 2px solid var(--line); box-shadow: 4px 4px 0 rgba(42,31,61,.08); }
.stat .num { font-size: 1.55rem; font-weight: 800; font-family: var(--font-display); }
.stat .lbl { font-size: .8rem; color: var(--ink-soft); }
.orders-table { background: #fff; border: 2px solid var(--line); overflow: hidden; margin-bottom: 40px; }
.orders-table .o-head, .order-row .o-main { display: grid; grid-template-columns: 110px 1.2fr 1fr .7fr .9fr 130px 40px; gap: 10px; align-items: center; padding: 13px 18px; }
.orders-table .o-head { background: var(--paper); font-size: .78rem; font-weight: 800; color: var(--ink-soft); border-bottom: 2px solid var(--line); }
.order-row { border-bottom: 1px solid var(--line); font-size: .87rem; }
.order-row:last-child { border-bottom: none; }
.order-row .o-main { cursor: pointer; transition: background .15s; }
.order-row .o-main:hover { background: var(--t-orange); }
.order-row .oid { font-weight: 800; color: var(--orange); font-family: var(--font-display); }
.status-pill { padding: 4px 12px; font-size: .74rem; font-weight: 800; text-align: center; border: 2px solid transparent; cursor: pointer; }
.status-pill.new { background: var(--t-orange); color: #b35a00; }
.status-pill.prep { background: #e2f3e8; color: var(--green); }
.status-pill.done { background: var(--t-purple); color: var(--ink); }
.status-pill.cancel { background: var(--t-red); color: var(--red); }
.o-detail { display: none; padding: 4px 18px 16px; background: var(--paper); font-size: .83rem; }
.o-detail.show { display: block; }
.o-detail table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.o-detail td { padding: 6px 8px; border-bottom: 1px dashed var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { padding-block: 24px 40px; }
  .grade-grid, .gift-grid { grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
  .grade-tile, .gift-tile { padding: 14px 10px; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-grid img { max-height: 260px; }
  .orders-table .o-head { display: none; }
  .order-row .o-main { grid-template-columns: 1fr 1fr; gap: 6px; }
  .rail .p-card { flex-basis: 200px; }
  .ha-badge { bottom: -16px; right: 0; }
}
@media (max-width: 560px) {
  .header-row { gap: 10px; }
  .search-wrap { order: 3; flex-basis: 100%; }
  .wa-lbl, .cart-lbl { display: none; }
  .wa-btn, .cart-btn { padding: 0 13px; }
  .logo-name { font-size: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .p-img { height: 150px; }
  .rail .p-img { height: 150px; }
  .p-name { font-size: .82rem; min-height: 38px; }
  .p-price { font-size: 16px; }
  .mq-item { font-size: 13px; padding: 12px 18px; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .finder-opts { grid-template-columns: 1fr 1fr; }
  .intro-cubes { grid-template-columns: repeat(2, 46px); }
  .ic { width: 46px; height: 46px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .cat-tile { min-height: 120px; }
  .ct-name b { font-size: 14px; }
  .ct-count { font-size: 11px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, .rise, .pop, .float1, .float2 { animation: none !important; }
  .pre { opacity: 1 !important; transform: none !important; }
}
