/* Lotus Print – lì xì Tết. Một cột, mobile-first, rộng tối đa 560px trên mọi màn hình. */
:root{
  --red:#d7143a;--red-dark:#b00f2f;--deep:#8e0e13;--maroon:#7d1517;
  --gold:#c08a2d;--gold-soft:#f6e3bd;--cream:#fff8ec;
  --green-bg:#dcf6ec;--green:#06624d;--pink-bg:#ffe6ec;
  --ink:#1d1b1a;--muted:#6f6863;--line:#ece6df;--bg:#f4efe8;--surface:#fff;
  --page:560px;--gap:16px;--radius:16px;--bar-h:76px;
  --font:"Be Vietnam Pro",system-ui,"Segoe UI",Roboto,Arial,sans-serif;
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --shadow:0 1px 2px #3a1a0a0d,0 4px 14px #3a1a0a0f
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:72px}
body{margin:0;color:var(--ink);font:400 15px/1.55 var(--font);-webkit-font-smoothing:antialiased;
  background:var(--bg) radial-gradient(circle at 20% 0,#f9dfc9 0,transparent 40%) fixed}
img{display:block;max-width:100%;height:auto}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
h1,h2,h3,p,ul,ol{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:3px solid #ffb703;outline-offset:2px}
.ic{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* Header */
.topbar{position:sticky;top:0;z-index:10;background:linear-gradient(100deg,#7e0b10,#b51d18 55%,#7e0b10);color:#fff;box-shadow:0 2px 10px #0000001f}
.brand{max-width:var(--page);margin:auto;height:58px;padding:0 var(--gap);display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}
.logo-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#ffffff1a;border:1px solid #ffe29a66;font-size:22px;line-height:1;color:#ffe29a}
.brand-text{font-size:20px;font-weight:800;line-height:1;letter-spacing:-.2px}
.brand-text small{display:block;margin-top:5px;font-size:9px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;opacity:.85}

/* Page shell */
.page{max-width:var(--page);margin:auto;background:var(--surface);min-height:100vh;padding-bottom:calc(var(--bar-h) + 24px + env(safe-area-inset-bottom));box-shadow:0 0 40px #5a2a0a14}
.block{padding:24px var(--gap);border-top:8px solid var(--bg)}
.section-title{display:flex;align-items:center;gap:8px;font-size:17px;line-height:1.3;font-weight:800;color:var(--maroon);text-transform:uppercase;letter-spacing:.2px;margin-bottom:16px}
.section-title .ic{color:var(--gold)}

/* Hero */
.hero{background:linear-gradient(180deg,var(--cream),#fff)}
.carousel{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;aspect-ratio:1/1;background:#f4e2c4}
.carousel::-webkit-scrollbar{display:none}
.slide{flex:0 0 100%;scroll-snap-align:center}
.slide img{width:100%;height:100%;object-fit:cover}
.dots{display:flex;justify-content:center;gap:6px;padding:14px 0 0}
.dot{width:8px;height:8px;padding:0;border:0;border-radius:8px;background:#e3cfb2;transition:width .25s,background .25s}
.dot.active{width:24px;background:var(--deep)}
.hero-copy{padding:10px var(--gap) 24px;text-align:center;color:var(--deep)}
.hero-copy h1{font:italic 700 34px/1.15 var(--serif);letter-spacing:-.3px}
.tagline{margin-top:4px;font:italic 700 18px/1.3 var(--serif);color:var(--gold)}
.tagline{display:flex;align-items:center;justify-content:center;gap:10px}
.tagline::before,.tagline::after{content:"";flex:0 0 24px;height:1px;background:currentColor;opacity:.6}
.benefits{display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px}
.benefits li{display:flex;flex-direction:column;align-items:center;gap:6px;padding:0 6px;font-size:11px;line-height:1.3;font-weight:700;text-transform:uppercase;letter-spacing:.2px;border-right:1px solid #d4a95c55}
.benefits li:last-child{border:0}
.benefits .ic{width:26px;height:26px;color:var(--gold)}

/* Combo */
.offer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.offer-head .section-title{margin:0}
.promo{flex-shrink:0;background:linear-gradient(100deg,#ff4c39,#e8142e);color:#fff3b8;padding:7px 12px;border-radius:8px;font-size:11px;line-height:1.25;font-weight:800;font-style:italic;text-align:center;text-transform:uppercase;transform:rotate(-2deg);box-shadow:0 3px 0 #b91a22}
.combo-list{display:grid;gap:20px}
.combo{position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;display:grid;grid-template-columns:36% 1fr;gap:12px 14px;padding:14px;border:1.5px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);transition:border-color .15s,box-shadow .15s}
.combo.best{border-color:#ffb3c3;background:linear-gradient(120deg,#fff 40%,#fff1f4)}
.combo.value{border-color:#f5d389;background:linear-gradient(120deg,#fff 40%,#fff6df)}
.combo.selected{border-color:var(--red);box-shadow:0 0 0 1px var(--red),0 6px 18px #d7143a26}
.combo-img{position:relative;align-self:start;border-radius:12px;overflow:hidden;aspect-ratio:1/1;background:#f4e2c4}
.combo-img img{width:100%;height:100%;object-fit:cover}
.qty-bubble{position:absolute;left:6px;bottom:6px;width:44px;height:44px;border-radius:50%;background:#fff6e5;color:var(--deep);display:grid;place-content:center;text-align:center;font-size:18px;font-weight:800;line-height:1;box-shadow:0 2px 6px #0003}
.qty-bubble small{font-size:8px;font-weight:700;text-transform:uppercase}
.ribbon{position:absolute;z-index:2;top:-11px;left:14px;padding:3px 12px;border-radius:20px;background:linear-gradient(90deg,#ff343b,#d90d28);color:#fff;font-size:11px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;box-shadow:0 2px 6px #d90d2840}
.value .ribbon{background:linear-gradient(90deg,#f5a700,#e57c00);box-shadow:0 2px 6px #e57c0040}
.radio{position:absolute;top:14px;right:14px;width:22px;height:22px;border:2px solid #cfc8c0;border-radius:6px;background:#fff;transition:background .15s,border-color .15s}
.combo.selected .radio{border-color:var(--red);background:var(--red) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27white%27 stroke-width=%273.2%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 12.5l4.5 4.5L19 7.5%27/%3E%3C/svg%3E") center/14px no-repeat}
.combo-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.combo-info h3{font-size:16px;font-weight:800;padding-right:30px}
.price{margin-top:2px;font-size:25px;font-weight:800;line-height:1.15;color:var(--red);white-space:nowrap;letter-spacing:-.3px}
.price span{font-size:17px;margin-left:1px}
.price s{margin-left:4px;font-size:13px;font-weight:400;color:var(--muted);letter-spacing:0}
.unit{font-size:12px;color:var(--muted)}
.badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:700;white-space:nowrap}
.badge .ic{width:14px;height:14px}
.badge.ship{background:var(--green-bg);color:var(--green)}
.badge.save{background:var(--pink-bg);color:var(--red-dark)}
.qty-picker{display:inline-flex;align-items:center;height:40px;border:1px solid #e2dbd3;border-radius:20px;overflow:hidden;background:#fff}
.qty-picker button{width:40px;height:100%;border:0;background:#f7f3ef;font-size:18px;font-weight:700;transition:background .15s}
.qty-picker button:hover{background:#efe8e1}
.qty-picker output{min-width:36px;text-align:center;font-size:15px;font-weight:800}
.trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:22px;padding:14px 8px;border-radius:12px;background:var(--cream);font-size:11px;line-height:1.3;font-weight:600;color:var(--muted);text-align:center}
.trust-row li{display:flex;flex-direction:column;align-items:center;gap:6px}
.trust-row .ic{width:24px;height:24px;color:var(--gold)}

.combo-ctrl{margin-top:10px}
.add{height:40px;padding:0 20px;border:1.5px solid var(--red);border-radius:20px;background:#fff;color:var(--red);font-size:14px;font-weight:800;transition:background .15s}
.add:hover{background:#fff0f3}
.combo:not(.selected) .qty-picker,.combo.selected .add{display:none}
.combo.selected .qty-picker{border-color:var(--red)}
.combo-help{margin:-12px 0 14px;font-size:13px;color:var(--muted)}
.combo:not(.selected):hover{border-color:#e9b8c3}
.badge.muted{background:#f4efe8;color:var(--muted)}
.ship-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding:10px 12px;border-radius:12px;background:#fff4d6;color:#7a4b00;font-size:13px;font-weight:600}
.ship-hint[hidden]{display:none}
.ship-hint button{flex-shrink:0;height:34px;padding:0 12px;border:1.5px solid #e59a00;border-radius:17px;background:#fff;color:#a36400;font-size:13px;font-weight:800}

/* Form */
.fields{display:grid;gap:14px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field label{display:block;margin-bottom:6px;font-size:13px;font-weight:700}
.field input,.field textarea{width:100%;min-height:48px;padding:12px 14px;border:1px solid #ddd5cc;border-radius:12px;background:#fdfbf9;outline:none;transition:border-color .15s,box-shadow .15s,background .15s}
.field input::placeholder,.field textarea::placeholder{color:#a69d95}
.field textarea{min-height:84px;resize:vertical}
.field input:focus,.field textarea:focus{border-color:var(--red);background:#fff;box-shadow:0 0 0 3px #d7143a1f}
.field input[aria-invalid="true"]{border-color:var(--red);background:#fff6f8}
.err{margin-top:4px;font-size:12px;color:var(--red-dark)}
.err:empty{display:none}
.field textarea[aria-invalid="true"]{border-color:var(--red);background:#fff6f8}
.note-toggle summary{display:inline-block;padding:4px 0;font-size:13px;font-weight:700;color:var(--red);cursor:pointer;list-style:none}
.note-toggle summary::-webkit-details-marker{display:none}
.note-toggle[open] summary{margin-bottom:8px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Tóm tắt + đặt hàng */
.summary-empty{padding:4px 0 8px;font-size:13px;color:var(--muted)}
#sumItems .summary-row b{font-weight:700}
.summary-row.sub{margin-top:4px;padding-top:8px;border-top:1px dashed var(--gold-soft);color:var(--muted)}
.order-card{margin-top:6px;padding:12px 14px;border-radius:14px;background:var(--cream);border:1px solid var(--gold-soft)}
.assure{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;font-size:12px;color:var(--muted)}
.assure .ic{width:16px;height:16px;color:var(--green)}
.summary-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;font-size:14px}
.summary-row .free{color:var(--green);font-weight:700}
.summary-row.total{align-items:baseline;margin-top:8px;padding-top:14px;border-top:1px solid var(--line);font-size:15px;font-weight:800;text-transform:uppercase}
.summary-row.total strong{font-size:24px;color:var(--red);letter-spacing:-.3px}
.note{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--cream);font-size:12px;color:var(--muted)}
.btn-primary{border:0;border-radius:28px;background:linear-gradient(100deg,#ef1d4a,#c8102e);color:#fff;font-weight:800;box-shadow:0 6px 16px #d7143a40;transition:transform .1s,filter .15s}
.btn-primary:hover{filter:brightness(1.05)}
.btn-primary:active{transform:translateY(1px)}
.btn-primary:disabled{opacity:.6;cursor:wait}
.btn-ghost{border:1px solid #ddd5cc;border-radius:28px;background:#fff;font-weight:700}
.submit-btn{width:100%;height:56px;margin-top:4px;font-size:16px;letter-spacing:.4px;text-transform:uppercase}

/* Description */
.desc-head{margin:0}
.description-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;text-transform:inherit;letter-spacing:inherit}
.description-toggle > span:first-child{display:flex;align-items:center;gap:8px}
.description-toggle .ic{color:var(--gold)}
.arrow{transition:transform .2s;color:var(--muted)}
.description-toggle[aria-expanded="false"] .arrow{transform:rotate(180deg)}
.description-content{margin-top:16px;font-size:15px;line-height:1.65}
.description-content[hidden]{display:none}
.description-content h3{margin:16px 0 4px;font-size:15px;font-weight:800;color:var(--maroon)}
.description-content ul{list-style:disc;padding-left:22px}
.description-content li{margin:3px 0}
.description-content li::marker{color:var(--gold)}
.description-lead{font:italic 700 18px/1.4 var(--serif);color:var(--deep)}
.description-note{margin-top:16px;padding:10px 12px;border-radius:10px;background:var(--cream);font-size:12px;color:var(--muted)}
.footer{padding:24px var(--gap);border-top:8px solid var(--bg);font-size:12px;color:var(--muted);text-align:center}

/* Bottom bar */
.bottom-bar{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(var(--page),100%);display:flex;gap:10px;align-items:center;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fffffff2;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-radius:18px 18px 0 0;box-shadow:0 -6px 24px #3a1a0a1a}
.chat{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:64px;height:54px;border-radius:14px;background:#eaf3ff;color:#0068ff;font-size:11px;font-weight:700;text-decoration:none;line-height:1.2}
.chat[hidden]{display:none}
.bar-sum{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.2}
.bar-sum small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-sum strong{font-size:20px;color:var(--red);letter-spacing:-.3px}
.buy{flex:0 0 auto;height:52px;padding:0 22px;font-size:15px;text-transform:uppercase;letter-spacing:.3px}
.bottom-bar{transition:transform .25s ease}
body.at-checkout .bottom-bar{transform:translate(-50%,110%)}

/* Modal + toast */
.modal{position:fixed;inset:0;z-index:30;display:flex;align-items:flex-end;justify-content:center;background:#1d0a0a99;animation:fade .2s}
.modal[hidden]{display:none}
.modal-box{width:min(var(--page),100%);max-height:85vh;overflow:auto;padding:24px var(--gap) calc(22px + env(safe-area-inset-bottom));background:#fff;border-radius:20px 20px 0 0;animation:up .25s ease-out}
.modal-box h2{font-size:20px;color:#08785c;margin-bottom:8px}
.modal-box.error h2{color:var(--red-dark)}
.modal-box p{font-size:14px;color:#555}
.modal-box pre{margin:12px 0 0;padding:12px;border-radius:10px;background:#f8f5f2;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.55 var(--font)}
.modal-actions{display:flex;gap:8px;margin-top:18px}
.modal-actions button{flex:1;height:48px}
.modal-actions button[hidden]{display:none}
.toast{position:fixed;z-index:40;left:50%;bottom:calc(var(--bar-h) + 20px + env(safe-area-inset-bottom));transform:translate(-50%,20px);max-width:calc(100% - 32px);padding:11px 18px;border-radius:12px;background:#2a1d1a;color:#fff;font-size:14px;text-align:center;opacity:0;pointer-events:none;box-shadow:0 8px 24px #0003;transition:opacity .2s,transform .2s}
.toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes fade{from{opacity:0}}
@keyframes up{from{transform:translateY(30px);opacity:.5}}

/* Màn hình hẹp (iPhone SE, Android nhỏ) */
@media (max-width:374px){
  :root{--gap:12px}
  .brand-text{font-size:18px}.brand-text small{font-size:8px}
  .hero-copy h1{font-size:30px}.tagline{font-size:16px}
  .tagline{gap:6px}.tagline::before,.tagline::after{flex-basis:14px}
  .section-title{font-size:15px}.promo{font-size:10px;padding:6px 8px}
  .combo{grid-template-columns:34% 1fr;gap:10px 12px;padding:12px}
  .price{font-size:22px}.price s{display:block;margin:0;font-size:12px}
  .trust-row{grid-template-columns:repeat(2,1fr);row-gap:14px}
  .two{grid-template-columns:1fr}
  .summary-row.total{font-size:13px}.summary-row.total strong{font-size:21px}
  .ship-hint{flex-direction:column;align-items:stretch;text-align:center}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
