/* Tiệm May Chút Xíu — phone-first, soft pastel-cream "aesthetic" style.
   On a phone the site fills the screen; on bigger screens it is shown inside a phone frame. */
:root {
  /* Logo colours, softened to pastel */
  --navy: #2c4a6e;
  --ink: #3a4a5c;
  --muted: #7f8b99;
  --blue: #c3e2f4;
  --blue-soft: #edf6fb;
  --yellow: #f8cf62;
  --yellow-soft: #fff5da;
  --pink: #f3c6c0;
  --pink-soft: #fcefec;
  --paper: #fffdf9;
  --cream: #faf5ec;
  --line: rgba(44, 74, 110, .14);
  --stitch: rgba(44, 74, 110, .2);
  --danger: #b3463e;
  --shadow-sm: 0 4px 14px rgba(44, 74, 110, .07);
  --shadow: 0 14px 34px rgba(44, 74, 110, .12);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Dancing Script', cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --sb: 0px;          /* status bar height (desktop frame only) */
  --header: 60px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow: hidden; overflow: clip; overscroll-behavior: none;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- App shell ---------- */
.stage { height: 100%; height: 100dvh; }
.phone {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: var(--cream);
  overflow: hidden; overflow: clip; /* clip = can't be scrolled by links/focus, so the frame never shifts */
}
.statusbar { display: none; }
.screen {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; position: relative;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

/* ---------- Phone frame on tablets / desktops ----------
   The phone always keeps a real phone size (414 × 868) so the layout never changes;
   app.js sets --phone-scale to shrink the whole frame so it fits the screen height (laptops). */
@media (min-width: 600px) and (min-height: 500px) {
  :root { --sb: 46px; }
  body {
    background:
      radial-gradient(circle at 15% 20%, rgba(243, 198, 192, .45) 0, transparent 38%),
      radial-gradient(circle at 85% 80%, rgba(195, 226, 244, .6) 0, transparent 42%),
      radial-gradient(circle at 80% 15%, rgba(248, 207, 98, .25) 0, transparent 30%),
      var(--cream);
  }
  .stage { position: fixed; inset: 0; overflow: hidden; overflow: clip; }
  .phone {
    position: absolute; left: 50%; top: 50%; width: 414px; height: 868px;
    translate: -50% -50%; scale: var(--phone-scale, 1);
    border: 11px solid #2b3442; border-radius: 56px;
    box-shadow: 0 0 0 2px #4a5566, 0 40px 80px rgba(44, 74, 110, .28), 0 8px 20px rgba(44, 74, 110, .12);
    animation: phoneIn .9s var(--ease) both;
  }
  .phone::before { /* camera island */
    content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
    width: 104px; height: 30px; border-radius: 20px; background: #0d1117; z-index: 100;
  }
  .phone::after { /* home indicator */
    content: ''; position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .7; z-index: 100;
  }
  .statusbar {
    display: flex; flex: none; height: var(--sb); align-items: center; justify-content: space-between;
    padding: 4px 26px 0 34px; background: var(--paper); font-weight: 800; font-size: .9rem; color: var(--navy);
  }
  .sb-icons { display: flex; gap: 6px; align-items: center; }
  .sb-icons svg { fill: currentColor; }
  .tabbar { padding-bottom: 20px !important; }
  .sheet-foot, .drawer-foot { padding-bottom: 26px; }
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: rgba(255, 253, 249, .88); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1.5px dashed var(--line);
}
.brand img { height: 44px; width: auto; transition: transform .3s var(--spring); }
.brand:active img { transform: scale(.96); }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--yellow-soft); display: grid; place-items: center; padding: 0;
  box-shadow: var(--shadow-sm); transition: transform .2s var(--spring);
}
.cart-btn:hover { transform: scale(1.06); }
.cart-btn:active { transform: scale(.94); }
.cart-btn .badge { position: absolute; top: -5px; right: -6px; }
.badge {
  min-width: 21px; height: 21px; border-radius: 999px; background: var(--navy); color: #fff;
  border: 2px solid var(--paper); display: inline-grid; place-items: center;
  font-size: .7rem; font-weight: 800; padding: 0 5px;
}
.badge.is-empty { display: none; }
.badge.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 22px; font-weight: 800;
  text-decoration: none; background: var(--paper); color: var(--navy);
  transition: transform .2s var(--spring), box-shadow .2s, background .2s;
}
.btn:hover { background: var(--blue-soft); }
.btn:active { transform: scale(.96); }
.btn-primary {
  background: linear-gradient(180deg, #fbd977, var(--yellow)); border-color: transparent; color: var(--navy);
  box-shadow: 0 8px 18px rgba(248, 207, 98, .45), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn-primary:hover { background: linear-gradient(180deg, #fcdd83, #f6c94f); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-block { width: 100%; }
.icon-btn {
  border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center; font-size: 1.15rem; flex: none; padding: 0; color: var(--navy);
  transition: background .2s, transform .2s var(--spring);
}
.icon-btn:hover { background: var(--blue-soft); }
.icon-btn:active { transform: scale(.9); }
.link { background: none; border: 0; padding: 0; font-weight: 800; text-align: left; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 34px 20px 40px;
  background:
    radial-gradient(circle at 92% 8%, var(--pink-soft) 0, transparent 46%),
    radial-gradient(circle at 0% 100%, var(--blue-soft) 0, transparent 55%),
    linear-gradient(180deg, var(--paper), var(--cream));
}
.hero::after { /* stitched seam at the bottom */
  content: ''; position: absolute; left: 20px; right: 20px; bottom: 14px; border-top: 1.5px dashed var(--stitch);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .16em;
  font-weight: 800; font-size: .68rem; color: var(--muted); margin: 0 0 12px;
}
.hero .eyebrow::before, .hero .eyebrow::after { content: '✦'; color: var(--yellow); font-size: .8rem; letter-spacing: 0; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; font-size: 2.05rem; line-height: 1.18;
  letter-spacing: -.01em; margin: 0 0 14px; color: var(--navy);
}
.script {
  font-family: var(--script); font-weight: 700; font-size: 1.12em; white-space: nowrap; padding: 0 .08em;
  background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 86% / 100% 30%;
  border-radius: 4px;
}
.lead { color: var(--muted); margin: 0 0 22px; font-size: 1rem; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 0; font-weight: 700; font-size: .85rem; }
.perks li {
  background: rgba(255, 253, 249, .8); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; box-shadow: var(--shadow-sm);
}

/* Hero entrance + floating sparkles */
.hero > :not(.sparkle) { animation: fadeUp .8s var(--ease) both; }
.hero > :nth-child(1) { animation-delay: .05s; }
.hero > :nth-child(2) { animation-delay: .15s; }
.hero > :nth-child(3) { animation-delay: .25s; }
.hero > :nth-child(4) { animation-delay: .35s; }
.hero > :nth-child(5) { animation-delay: .45s; }
.hero .script { animation: sweep .9s .75s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes sweep { from { background-size: 0% 30%; } }

.sparkle {
  position: absolute; pointer-events: none; line-height: 1; color: var(--yellow);
  animation: twinkle 3.2s ease-in-out infinite, float 6s ease-in-out infinite;
}
.sparkle.s1 { top: 22px; right: 26px; font-size: 1.35rem; }
.sparkle.s2 { top: 92px; right: 64px; font-size: .8rem; color: var(--pink); animation-delay: .8s, 1s; }
.sparkle.s3 { bottom: 64px; right: 30px; font-size: 1rem; color: #9ccbe6; animation-delay: 1.6s, .4s; }
.sparkle.s4 { top: 14px; left: 46%; font-size: .65rem; color: var(--pink); animation-delay: 2.2s, 2s; }
@keyframes twinkle { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1.15; } }
@keyframes float { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -8px; rotate: 18deg; } }

/* ---------- Sections ---------- */
.section { padding: 30px 16px; }
.section-title {
  font-family: var(--serif); font-weight: 700; font-size: 1.6rem; letter-spacing: -.01em;
  margin: 0 0 14px; color: var(--navy); display: flex; align-items: center; gap: 8px;
}
.section-title::after { content: '✦'; font-family: var(--font); font-size: .9rem; color: var(--yellow); }

.filters {
  position: sticky; top: var(--header); z-index: 10; display: flex; gap: 8px;
  margin: 0 -16px 16px; padding: 10px 16px; background: rgba(250, 245, 236, .92); backdrop-filter: blur(10px);
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
@media (pointer: fine) { .filters { cursor: grab; } }
.filters.is-dragging { cursor: grabbing; user-select: none; }
.filters.is-dragging .chip { pointer-events: none; }
.chip {
  flex: none; white-space: nowrap; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 7px 15px; font-weight: 700; font-size: .86rem;
  transition: background .25s, color .25s, border-color .25s, transform .2s var(--spring), box-shadow .25s;
}
.chip:hover { border-color: var(--stitch); }
.chip:active { transform: scale(.94); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 14px rgba(44, 74, 110, .25); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; background: var(--paper); border-radius: 22px; padding: 7px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card::after { /* soft stitched seam inside the card */
  content: ''; position: absolute; inset: 4px; border: 1.2px dashed var(--line); border-radius: 18px; pointer-events: none;
}
.card:active { transform: scale(.98); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .card:hover .media img { transform: scale(1.06); }
}
.media {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%;
  background: var(--bg, var(--blue-soft)); border: 0; padding: 0; overflow: hidden; border-radius: 16px;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.emoji { font-size: 3.6rem; line-height: 1; filter: drop-shadow(0 6px 8px rgba(44, 74, 110, .14)); }
.is-out .media > :first-child { opacity: .45; filter: grayscale(.6); }
.tag {
  position: absolute; top: 8px; left: 8px; background: rgba(255, 253, 249, .92); color: var(--navy);
  border-radius: 999px; padding: 2px 9px; font-size: .68rem; font-weight: 800; box-shadow: var(--shadow-sm);
}
.tag-out { left: auto; right: 8px; }
.card-body { padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; font-size: .93rem; line-height: 1.32; flex: 1; color: var(--navy); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.card-foot .price { font-size: .9rem; line-height: 1.25; }
.add-btn {
  flex: none; width: 40px; height: 40px; border-radius: 50%; padding: 0; border: 0;
  display: grid; place-items: center; background: var(--yellow-soft); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--spring), background .2s;
}
.add-btn:hover { background: #ffefc2; transform: scale(1.08) rotate(-6deg); }
.add-btn:active { transform: scale(.88); }
.add-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.price { font-weight: 800; color: var(--navy); }
.price.big { font-family: var(--serif); font-size: 1.55rem; margin: 0; }

.load-error { grid-column: 1 / -1; text-align: center; color: var(--danger); font-weight: 700; padding: 24px 0; }
.about {
  background: linear-gradient(180deg, var(--paper), var(--pink-soft));
  border-block: 1.5px dashed var(--line);
}
.about p { color: var(--muted); margin: 0 0 10px; }
.features { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.features li {
  display: grid; grid-template-columns: 46px 1fr; column-gap: 12px; align-items: center;
  background: var(--paper); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-sm);
}
.features span { grid-row: span 2; font-size: 1.3rem; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow-soft); display: grid; place-items: center; }
.features b { color: var(--navy); }
.features small { color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-item {
  display: flex; gap: 12px; align-items: center; background: var(--paper);
  border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
@media (hover: hover) { .contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.contact-item .ci-icon { font-size: 1.3rem; flex: none; width: 32px; height: 32px; display: grid; place-items: center; }
.contact-item .ci-icon svg { width: 30px; height: 30px; display: block; }
.contact-item .ci-icon svg.fb { width: 28px; height: 28px; }
.contact-item small { display: block; color: var(--muted); font-weight: 700; }
.contact-item a, .contact-item b { font-weight: 800; text-decoration: none; overflow-wrap: anywhere; color: var(--navy); }
.site-footer { padding: 22px 16px 30px; text-align: center; color: var(--muted); font-size: .82rem; }

/* Scroll-in animation (classes added by app.js) */
.reveal { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Bottom tab bar ---------- */
.tabbar {
  flex: none; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 253, 249, .94); backdrop-filter: blur(12px); border-top: 1.5px dashed var(--line);
  padding: 7px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .7rem; font-weight: 700; color: var(--muted); text-decoration: none;
  background: none; border: 0; padding: 2px 0; transition: color .25s;
}
.tab .ti {
  display: grid; place-items: center; padding: 3px 14px; border-radius: 999px;
  border: 1.5px dashed transparent; transition: background .3s var(--ease), border-color .3s;
}
.tab .ti svg { width: 26px; height: 26px; transition: transform .35s var(--spring), opacity .25s, filter .25s; }
.tab:not(.is-active) .ti svg { opacity: .65; filter: saturate(.5); }
.tab:active .ti svg { transform: scale(.88); }
.tab.is-active { color: var(--navy); }
.tab.is-active .ti { background: var(--blue-soft); border-color: var(--stitch); } /* "stitched" pill like the logo frame */
.tab.is-active .ti svg { transform: translateY(-2px) scale(1.08); }

/* Icon parts (shared by tab bar, header cart, add buttons, contact) */
.ti svg * { stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ti .i-b { fill: var(--blue); }
.ti .i-y { fill: var(--yellow); }
.ti .i-h { fill: var(--yellow); stroke-width: 1.3; }
.ti .i-hp { fill: #f4a3b0; stroke-width: 1.3; } /* pink heart, used on the yellow bag */
.ti .i-l { fill: none; }
.ti .i-s { fill: none; stroke-dasharray: 1.6 1.9; stroke-width: 1.3; }
.ti .i-d { fill: var(--navy); stroke: none; }
.cart-btn .ti svg, .add-btn .ti svg { width: 26px; height: 26px; display: block; }
.ti .i-plus-bg { fill: var(--navy); stroke: var(--paper); stroke-width: 1.2; }
.ti .i-plus { fill: none; stroke: #fff; stroke-width: 1.7; }
.tab .badge { position: absolute; top: -4px; left: calc(50% + 8px); }
.wiggle { animation: wiggle .7s var(--ease); }
@keyframes wiggle { 15% { rotate: -14deg; scale: 1.12; } 35% { rotate: 11deg; } 55% { rotate: -6deg; } 75% { rotate: 3deg; } }

/* ---------- Layers inside the phone ---------- */
.overlay {
  position: absolute; inset: var(--sb) 0 0 0; background: rgba(44, 74, 110, .32); backdrop-filter: blur(2px);
  z-index: 40; opacity: 0; transition: opacity .35s var(--ease);
}
.overlay.show { opacity: 1; }

/* Cart: full-screen panel sliding from the right */
.drawer {
  position: absolute; top: var(--sb); bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: var(--header); padding: 0 8px; border-bottom: 1.5px dashed var(--line); background: var(--paper); flex: none;
}
.drawer-head h2 { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px; scrollbar-width: none; }
.drawer-foot { padding: 14px 16px 18px; border-top: 1.5px dashed var(--line); background: var(--paper); flex: none; }
.drawer-foot:empty { display: none; }

/* Product: bottom sheet */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 55;
  max-height: calc(100% - var(--sb) - 36px); display: flex; flex-direction: column;
  background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -14px 40px rgba(44, 74, 110, .18);
  transform: translateY(105%); transition: transform .5s var(--ease); overflow: hidden;
}
.sheet.open { transform: none; }
.sheet.open .sheet-info > * { animation: fadeUp .6s var(--ease) both; }
.sheet.open .sheet-info > :nth-child(2) { animation-delay: .05s; }
.sheet.open .sheet-info > :nth-child(3) { animation-delay: .1s; }
.sheet.open .sheet-info > :nth-child(4) { animation-delay: .15s; }
.sheet.open .sheet-info > :nth-child(5) { animation-delay: .2s; }
.sheet-grab { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px rgba(0,0,0,.06); z-index: 2; }
.sheet-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 253, 249, .92); box-shadow: var(--shadow-sm); }
.sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.sheet .media { aspect-ratio: 4 / 3; border-radius: 0; }
.sheet .emoji { font-size: 6rem; }
.sheet-info { padding: 18px 18px 8px; display: flex; flex-direction: column; gap: 10px; }
.sheet-info h2 { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; color: var(--navy); }
.sheet-info p { margin: 0; }
.sheet-info .eyebrow { margin: 0; }
.pd-desc { color: var(--muted); font-size: .95rem; }
.sheet-foot { padding: 12px 16px 16px; border-top: 1.5px dashed var(--line); flex: none; display: flex; gap: 12px; align-items: center; }
.sheet-foot .btn-block { flex: 1; }

.opts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.opts legend { font-weight: 800; font-size: .88rem; margin-bottom: 8px; padding: 0; color: var(--navy); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 13px;
  font-weight: 700; font-size: .88rem; cursor: pointer; background: var(--paper);
  transition: background .25s, border-color .25s, transform .2s var(--spring);
}
.opt span:active { transform: scale(.94); }
.opt input:checked + span { border-color: var(--navy); background: var(--yellow-soft); color: var(--navy); }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Cart lines */
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.line {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start;
  background: var(--paper); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-sm);
}
.line .media { border-radius: 12px; }
.line .emoji { font-size: 2.2rem; }
.line-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.line-info b { color: var(--navy); }
.line-info small { color: var(--muted); font-weight: 600; }
.qty {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; width: max-content; background: var(--paper); flex: none;
}
.line .qty { margin-top: 6px; }
.qty button { border: 0; background: transparent; width: 34px; height: 34px; font-weight: 800; font-size: 1.1rem; color: var(--navy); transition: background .2s; }
.qty button:hover:not(:disabled) { background: var(--blue-soft); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 26px; text-align: center; font-weight: 800; color: var(--navy); }
.summary { display: grid; gap: 4px; margin: 0 0 12px; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; }
.summary .total { font-size: 1.1rem; border-top: 1.5px dashed var(--line); padding-top: 6px; margin-top: 2px; }
.summary .total dt, .summary .total dd { color: var(--navy); font-weight: 800; }
.summary .total.plain { border-top: 0; padding-top: 0; margin-top: 0; }
.hint { font-size: .84rem; background: var(--yellow-soft); border-radius: 12px; padding: 9px 12px; margin: 0 0 10px; }
.empty { text-align: center; padding: 56px 12px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty .big { font-size: 3.5rem; animation: float 4s ease-in-out infinite; }

/* Checkout form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .legend { font-weight: 800; font-size: .88rem; color: var(--navy); }
.field label small { font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 16px; /* 16px stops iPhone from zooming in */
  border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px;
  background: var(--paper); color: inherit; width: 100%; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--blue-soft); }
.req { color: var(--danger); }
.pay { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.pay .legend { margin-bottom: 6px; padding: 0; }
.pay label {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 16px; background: var(--paper); cursor: pointer; font-weight: 700; color: var(--navy);
  transition: border-color .25s, background .25s, transform .2s var(--spring);
}
.pay label:active { transform: scale(.98); }
.pay label:has(input:checked) { border-color: var(--navy); background: var(--yellow-soft); }
.pay input { accent-color: var(--navy); width: 18px; height: 18px; flex: none; }
.pay small { display: block; font-weight: 600; color: var(--muted); }
.form-error { color: var(--danger); background: #fdecea; border-radius: 12px; padding: 8px 12px; margin: 0; font-weight: 700; }

/* Order done */
.done { text-align: center; display: grid; gap: 12px; }
.done > * { animation: fadeUp .6s var(--ease) both; }
.done > :nth-child(2) { animation-delay: .1s; }
.done > :nth-child(3) { animation-delay: .15s; }
.done > :nth-child(4) { animation-delay: .2s; }
.done > :nth-child(n+5) { animation-delay: .3s; }
.done h3 { margin: 0; font-family: var(--serif); font-size: 1.45rem; color: var(--navy); }
.done p { margin: 0; color: var(--muted); }
.done .big { font-size: 3.5rem; animation: pop .8s var(--spring) both; }
@keyframes pop { 0% { transform: scale(0) rotate(-30deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.order-code { font-size: 1.35rem; font-weight: 800; letter-spacing: .1em; background: var(--yellow-soft); border: 1.5px dashed var(--navy); border-radius: 14px; padding: 8px; color: var(--navy); }
.bank { background: var(--paper); border-radius: 18px; padding: 14px 16px; text-align: left; display: grid; gap: 4px; box-shadow: var(--shadow-sm); }
.bank img { width: 220px; height: auto; margin: 8px auto 0; }
.done-actions { display: grid; gap: 10px; }

/* Toast */
.toast {
  position: absolute; left: 16px; right: 16px; bottom: 96px; z-index: 60;
  background: rgba(44, 74, 110, .95); color: #fff; padding: 10px 10px 10px 16px; border-radius: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; backdrop-filter: blur(8px);
  font-weight: 700; font-size: .88rem; box-shadow: var(--shadow);
  transform: translateY(24px) scale(.96); opacity: 0; visibility: hidden;
  transition: transform .45s var(--spring), opacity .3s, visibility .3s;
}
.toast.show { transform: none; opacity: 1; visibility: visible; }
.toast button { background: var(--yellow); border: 0; border-radius: 999px; padding: 6px 13px; font-weight: 800; color: var(--navy); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
