/* =====================================================================
   MỘC ANH FLOWER STUDIO — giao diện khách hàng (mobile-first)
   Dùng cho: index / design / checkout / thankyou / gift
   Độc lập hoàn toàn với styles.css (styles.css vẫn giữ nguyên cho trang admin)
   Giữ nguyên mọi class/ID mà các file JS đang dùng.
   ===================================================================== */

:root{
  --ink:#24312b;
  --moss:#3c5546;
  --sage:#7d9885;
  --mist:#e8eee8;
  --blush:#f4e3de;
  --rose:#c98a83;
  --rose-deep:#a6615b;
  --cream:#f7f2ea;
  --paper:#fdfaf5;
  --muted:#6f7b74;
  --line:#e4ddd1;
  --gold:#b8955d;
  --radius:18px;
  --shadow-sm:0 4px 14px rgba(36,49,43,.06);
  --shadow:0 18px 50px rgba(36,49,43,.10);
  --serif:'Playfair Display',Georgia,serif;
  --sans:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',sans-serif;
  --gutter:max(20px,5vw);
}

/* ---------- Nền tảng ---------- */
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.65 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;line-height:1.12;margin:0;letter-spacing:-.01em}
h1 i,h2 i,h3 i{color:var(--rose-deep);font-style:italic}
p{margin:0}
img{max-width:100%}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
::selection{background:var(--blush);color:var(--ink)}
:focus-visible{outline:2px solid var(--rose-deep);outline-offset:3px}
.ico{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.skip-link{position:fixed;left:16px;top:-80px;z-index:100;background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;text-decoration:none;font-size:13px}
.skip-link:focus{top:10px}

.eyebrow,.kicker{font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--rose-deep);font-weight:600;margin:0 0 14px}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:20;min-height:68px;padding:0 var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(253,250,245,.88);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink)}
.brand-mark{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--moss);color:var(--cream);font:600 12px var(--serif);letter-spacing:.04em;transition:transform .3s}
.brand:hover .brand-mark{transform:rotate(-10deg)}
.brand b{display:block;font-size:12px;font-weight:600;letter-spacing:.24em;line-height:1.2}
.brand small{display:block;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-top:2px}
.nav-link{font-size:13px;color:var(--moss);text-decoration:none;padding:9px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;transition:.2s;white-space:nowrap}
.nav-link:hover{border-color:var(--rose);color:var(--rose-deep)}

/* ---------- Nút ---------- */
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 26px;border:1px solid transparent;border-radius:999px;font-size:14px;font-weight:500;letter-spacing:.01em;text-decoration:none;transition:transform .2s,box-shadow .2s,background .2s,border-color .2s,color .2s}
.button-dark{background:var(--moss);color:#fff;box-shadow:0 8px 22px rgba(60,85,70,.22)}
.button-dark:hover{background:var(--ink);transform:translateY(-2px);box-shadow:0 12px 28px rgba(36,49,43,.26)}
.button-light{background:#fff;color:var(--ink);border-color:var(--line)}
.button-light:hover{border-color:var(--rose);color:var(--rose-deep);transform:translateY(-1px)}
.button:disabled{opacity:.55;cursor:not-allowed;transform:none}

/* =====================================================================
   TRANG CHỦ
   ===================================================================== */
.hero{position:relative;overflow:hidden;padding:44px var(--gutter) 70px;background:
  radial-gradient(70% 55% at 90% 8%,var(--blush),transparent 70%),
  radial-gradient(55% 45% at 0% 100%,var(--mist),transparent 70%),var(--paper)}
.hero-inner{max-width:1180px;margin:auto;display:grid;gap:44px;align-items:center}
.hero h1{font-size:clamp(42px,11vw,86px);line-height:1;letter-spacing:-.03em}
.hero-copy{max-width:440px;margin:22px 0 30px;color:var(--muted);font-size:16px;line-height:1.75}
.hero-points{display:flex;flex-wrap:wrap;gap:8px 22px;margin:30px 0 0;padding:0;list-style:none;color:var(--muted);font-size:13px}
.hero-points li{display:flex;align-items:center;gap:8px}
.hero-points li::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--rose)}
.hero-visual{position:relative;max-width:460px;width:100%;margin:0 auto}
.hero-photo{aspect-ratio:4/5;border-radius:999px 999px 28px 28px;overflow:hidden;box-shadow:var(--shadow);background:var(--blush)}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.9);transition:transform 1.2s ease}
.hero-visual:hover .hero-photo img{transform:scale(1.04)}
.hero-chip{position:absolute;left:-8px;bottom:34px;background:#fff;border-radius:16px;padding:12px 16px;box-shadow:var(--shadow);font-size:12px;line-height:1.45;display:flex;gap:10px;align-items:center;max-width:230px}
.hero-chip b{display:block;font:500 17px var(--serif);color:var(--moss)}
.hero-chip::before{content:'';width:34px;height:34px;flex:none;border-radius:50%;background:var(--blush) center/22px no-repeat}
.hero-visual::after{content:'';position:absolute;z-index:-1;right:-26px;top:40px;width:110px;height:110px;border-radius:50%;border:1px solid var(--rose);opacity:.5}

.section{padding:64px var(--gutter)}
.section-inner{max-width:1100px;margin:auto}
.section-head{max-width:560px;margin-bottom:34px}
.section-head h2{font-size:clamp(30px,6vw,46px)}
.section-head p{color:var(--muted);margin-top:14px}
.band{background:var(--cream)}

.how{display:grid;gap:12px;grid-template-columns:repeat(2,1fr);counter-reset:how}
.how li{list-style:none;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 18px 20px;counter-increment:how;transition:transform .25s,box-shadow .25s}
.how li:hover{transform:translateY(-3px);box-shadow:var(--shadow-sm)}
.how li::before{content:counter(how,decimal-leading-zero);display:block;font:italic 500 26px var(--serif);color:var(--rose-deep);margin-bottom:10px}
.how strong{display:block;font-size:14px;margin-bottom:4px}
.how span{font-size:12.5px;color:var(--muted);line-height:1.55;display:block}

.modes{display:grid;gap:14px}
.mode{position:relative;background:#fff;border-radius:22px;padding:26px 24px 28px;border:1px solid var(--line);display:flex;flex-direction:column;gap:12px}
.mode .ico{width:44px;height:44px;color:var(--moss);padding:9px;border-radius:50%;background:var(--mist);stroke-width:1.5}
.mode:nth-child(2) .ico{background:var(--blush);color:var(--rose-deep)}
.mode:nth-child(3) .ico{background:#f1e9d8;color:var(--gold)}
.mode h3{font-size:24px}
.mode p{color:var(--muted);font-size:14px}
.mode small{margin-top:auto;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--sage);font-weight:600}

.types-wrap{display:flex;flex-wrap:wrap;gap:10px}

.cta-band{position:relative;overflow:hidden;color:#fff;text-align:center;padding:84px var(--gutter);background:var(--moss)}
.cta-band>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.28}
.cta-band>div{position:relative;max-width:560px;margin:auto}
.cta-band h2{font-size:clamp(32px,7vw,54px);color:#fff}
.cta-band h2 i{color:#f0c6c0}
.cta-band p{color:#d5e0d8;margin:16px 0 28px}
.cta-band .button-dark{background:#fff;color:var(--moss);box-shadow:none}
.cta-band .button-dark:hover{background:var(--blush)}

.site-footer{padding:30px var(--gutter);text-align:center;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}

/* =====================================================================
   KHUNG CÁC BƯỚC (design / checkout / thankyou)
   ===================================================================== */
.flow{min-height:calc(100svh - 68px);background:linear-gradient(180deg,var(--cream) 0,var(--paper) 380px)}
.flow-shell{max-width:880px;margin:auto;padding:36px 20px 150px}
.flow-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.flow-head h2,.flow-shell>h2{font-size:clamp(32px,6vw,48px)}
.step-label{font-size:11px;letter-spacing:.16em;color:var(--muted);white-space:nowrap;padding-bottom:6px}
.step-label b{font:500 22px var(--serif);color:var(--rose-deep);letter-spacing:0}

.progress{height:5px;background:var(--line);border-radius:9px;overflow:hidden;margin:20px 0 16px}
.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--sage),var(--rose));border-radius:9px;transition:width .45s ease}

.stepper{display:flex;justify-content:space-between;gap:6px;list-style:none;margin:0 0 38px;padding:0}
.stepper li{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);white-space:nowrap}
.stepper li::before{content:'';width:9px;height:9px;border-radius:50%;background:var(--line);flex:none;transition:.3s}
.stepper li.is-done::before{background:var(--sage)}
.stepper li.is-active{color:var(--ink);font-weight:600}
.stepper li.is-active::before{background:var(--rose);box-shadow:0 0 0 4px var(--blush)}

.step{display:none}
.step.active{display:block;animation:fade .45s ease}
@keyframes fade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.step h3{font-size:clamp(30px,6.5vw,50px);margin:0 0 28px;line-height:1.08}

.step-actions{display:flex;gap:10px;margin-top:30px}
.step-actions .button-light{flex:1}
.step-actions .button-dark{flex:2}
.step-actions .button-dark:only-child{flex:1}

.mt-hint{color:var(--muted);line-height:1.65;font-size:13px;margin:0 0 22px}
.mt-sub{margin:30px 0 12px;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--sage);font-weight:600}
.mt-sub:first-of-type{margin-top:0}
.mt-sub small{text-transform:none;letter-spacing:0;color:var(--muted);font-weight:400;font-size:12px}

/* ----- Bước 1: loại sản phẩm ----- */
.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;counter-reset:p}
.product-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;cursor:pointer;text-align:left;transition:transform .25s,box-shadow .25s,border-color .25s,background .25s;counter-increment:p}
.product-card::before{content:'';display:block;width:56px;height:56px;margin:20px 18px 6px;background-repeat:no-repeat;background-position:center;background-size:contain;transition:transform .4s}
.product-card::after{content:counter(p,decimal-leading-zero);position:absolute;top:16px;right:18px;font:italic 500 15px var(--serif);color:var(--sage)}
.product-card div{padding:8px 18px 20px}
.product-card strong{display:block;font:500 20px/1.2 var(--serif)}
.product-card small{display:block;margin-top:6px;color:var(--muted);font-size:12px}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-sm);border-color:var(--rose)}
.product-card:hover::before{transform:scale(1.08) rotate(-3deg)}
.product-card.selected{background:var(--moss);border-color:var(--moss);color:#fff;box-shadow:0 14px 30px rgba(60,85,70,.28)}
.product-card.selected::before{filter:brightness(0) invert(1)}
.product-card.selected::after{color:#cfe0d4}
.product-card.selected small{color:#cfe0d4}
.product-card::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20fill='none'%20stroke='%233c5546'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='24'%20cy='24'%20r='4'/%3E%3Ccircle%20cx='24'%20cy='13'%20r='6'/%3E%3Ccircle%20cx='35'%20cy='24'%20r='6'/%3E%3Ccircle%20cx='24'%20cy='35'%20r='6'/%3E%3Ccircle%20cx='13'%20cy='24'%20r='6'/%3E%3C/svg%3E")}
.product-card[data-kind=vase]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20fill='none'%20stroke='%233c5546'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%2020c0%205-7%207-7%2014a11%2011%200%200%200%2022%200c0-7-7-9-7-14z'/%3E%3Cpath%20d='M24%2020V12M24%2016l-6-4M24%2016l6-4'/%3E%3Ccircle%20cx='24'%20cy='8'%20r='3.5'/%3E%3Ccircle%20cx='16'%20cy='9'%20r='3'/%3E%3Ccircle%20cx='32'%20cy='9'%20r='3'/%3E%3C/svg%3E")}
.product-card[data-kind=bouquet]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20fill='none'%20stroke='%233c5546'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%2024l13%2021%2013-21'/%3E%3Ccircle%20cx='16'%20cy='17'%20r='5'/%3E%3Ccircle%20cx='24'%20cy='11'%20r='5'/%3E%3Ccircle%20cx='32'%20cy='17'%20r='5'/%3E%3Cpath%20d='M18%2034h12'/%3E%3C/svg%3E")}
.product-card[data-kind=basket]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20fill='none'%20stroke='%233c5546'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M8%2028h32l-4%2015H12z'/%3E%3Cpath%20d='M13%2028c0-16%2022-16%2022%200'/%3E%3Ccircle%20cx='19'%20cy='24'%20r='3.5'/%3E%3Ccircle%20cx='27'%20cy='22'%20r='3.5'/%3E%3Ccircle%20cx='31'%20cy='26'%20r='2.5'/%3E%3C/svg%3E")}
.product-card[data-kind=box]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20fill='none'%20stroke='%233c5546'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='9'%20y='26'%20width='30'%20height='17'%20rx='2'/%3E%3Cpath%20d='M9%2032h30'/%3E%3Ccircle%20cx='18'%20cy='20'%20r='5'/%3E%3Ccircle%20cx='27'%20cy='17'%20r='5'/%3E%3Ccircle%20cx='33'%20cy='21'%20r='3.5'/%3E%3C/svg%3E")}
.product-card[data-kind=bag]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20fill='none'%20stroke='%233c5546'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2020h24l2%2023H10z'/%3E%3Cpath%20d='M18%2020c0-9%2012-9%2012%200'/%3E%3Ccircle%20cx='19'%20cy='15'%20r='3.5'/%3E%3Ccircle%20cx='29'%20cy='15'%20r='3.5'/%3E%3Ccircle%20cx='24'%20cy='11'%20r='3.5'/%3E%3C/svg%3E")}
.product-card[data-kind=stand]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2048%2048'%20fill='none'%20stroke='%233c5546'%20stroke-width='1.6'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M11%2045V5M37%2045V5M11%2017h26M11%2031h26'/%3E%3Ccircle%20cx='19'%20cy='12'%20r='3'/%3E%3Ccircle%20cx='28'%20cy='12'%20r='2.5'/%3E%3Ccircle%20cx='20'%20cy='26'%20r='3'/%3E%3Ccircle%20cx='29'%20cy='26'%20r='3'/%3E%3C/svg%3E")}

/* ----- Bước 2: ngân sách ----- */
.range-value{display:block;font:italic 500 clamp(52px,14vw,84px)/1 var(--serif);color:var(--rose-deep);margin:28px 0 28px;letter-spacing:-.02em}
.range{-webkit-appearance:none;appearance:none;display:block;width:100%;height:6px;padding:0;border:0;border-radius:9px;background:var(--line);cursor:pointer;accent-color:var(--moss)}
.range::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;border-radius:50%;background:var(--moss);border:4px solid #fff;box-shadow:0 2px 10px rgba(36,49,43,.35)}
.range::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--moss);border:4px solid #fff;box-shadow:0 2px 10px rgba(36,49,43,.35)}
.range:focus{box-shadow:none}
.range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin:14px 0 22px}

/* ----- Bước 3: lựa chọn ----- */
.choice-grid{display:flex;flex-wrap:wrap;gap:10px}
.choice,.choice-grid .choice{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-size:14px;transition:.2s}
.choice:hover{border-color:var(--rose);transform:translateY(-1px)}
.choice.selected{background:var(--moss);border-color:var(--moss);color:#fff;box-shadow:0 6px 16px rgba(60,85,70,.22)}
.mt-dot{width:15px;height:15px;border-radius:50%;display:inline-block;flex:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06)}

/* ----- Bước 4: nguyên liệu ----- */
.material-tabs,.output-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:18px;scrollbar-width:none}
.material-tabs::-webkit-scrollbar{display:none}
.material-tabs button{white-space:nowrap;border:1px solid var(--line);background:#fff;color:var(--muted);padding:10px 18px;border-radius:999px;font-size:13px;transition:.2s}
.material-tabs button:hover{border-color:var(--rose);color:var(--ink)}
.material-tabs button.selected{background:var(--ink);border-color:var(--ink);color:#fff}

.mt-limits{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.mt-chip{padding:7px 14px;background:#fff;border:1px solid var(--line);border-radius:999px;font-size:12px;color:var(--muted)}
.mt-chip b{color:var(--ink);font-weight:600}
.mt-chip.full{background:var(--moss);border-color:var(--moss);color:#d3e1d8}
.mt-chip.full b{color:#fff}
.mt-chip.over{background:#f7e0dd;border-color:#ecc3be;color:var(--rose-deep)}
.mt-chip.over b{color:var(--rose-deep)}

.mt-list{display:grid;gap:10px;margin-bottom:6px}
.mt-card{display:flex;align-items:center;gap:14px;background:#fff;padding:10px;border:1px solid var(--line);border-radius:20px;transition:transform .2s,box-shadow .2s,border-color .2s}
.mt-card:hover{box-shadow:var(--shadow-sm)}
.mt-card.has-qty{border-color:var(--moss);box-shadow:0 0 0 1px var(--moss),var(--shadow-sm);background:#f8fbf8}
.mt-thumb{width:88px;height:88px;flex:none;object-fit:cover;border-radius:14px;background:var(--blush)}
.mt-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mt-info strong{font-size:14px;line-height:1.35;font-weight:600}
.mt-group{font-size:12px;color:var(--muted)}
.mt-price{font:500 15px var(--serif);color:var(--rose-deep)}
.mt-stock{font-size:11px;color:var(--sage)}
.mt-stock.low{color:#b0702a}
.mt-qty{display:flex;align-items:center;gap:8px;flex:none}
.mt-qty button{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;font-size:18px;line-height:1;display:grid;place-items:center;transition:.15s}
.mt-qty button[data-a=plus]{background:var(--moss);border-color:var(--moss);color:#fff}
.mt-qty button:hover:not(:disabled){transform:scale(1.08)}
.mt-qty button:disabled{opacity:.3;cursor:not-allowed}
.mt-qty b{min-width:18px;text-align:center;font-size:15px}

.cart-sticky{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px max(18px,calc((100vw - 880px)/2)) calc(12px + env(safe-area-inset-bottom,0px));background:rgba(36,49,43,.96);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#fff;border-radius:22px 22px 0 0;box-shadow:0 -10px 30px rgba(36,49,43,.2)}
.cart-info{min-width:0}
.cart-line{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.cart-count{font:500 26px/1 var(--serif)}
.cart-unit{font-size:12px;color:#c5d2ca}
.cart-line strong{margin-left:6px;font-weight:600;font-size:16px}
.cart-sub{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:3px}
.cart-sticky small{color:#b9c9be;font-size:11.5px}
.cart-sticky small.mt-over{color:#f6bdb6}
.mt-raise{padding:4px 12px;border:1px solid #f6bdb6;border-radius:999px;background:transparent;color:#f6bdb6;font-size:11px}
.mt-raise:hover{background:#f6bdb6;color:var(--ink)}
.mt-thumbs{display:flex;margin-top:7px}
.mt-thumbs img{width:26px;height:26px;border-radius:50%;object-fit:cover;border:2px solid var(--ink);margin-left:-6px;background:var(--blush)}
.mt-thumbs img:first-child{margin-left:0}
.cart-sticky .button-light{min-height:44px;padding:0 18px;font-size:13px;flex:none;border:0}
.cart-sticky.invalid{background:#8f4a45;animation:shake .35s}
@keyframes shake{25%{transform:translateX(5px)}75%{transform:translateX(-5px)}}

/* ----- Bước 5: hình dung ----- */
.moodboard{background:#fff;border:1px solid var(--line);border-radius:24px;padding:14px;margin-bottom:22px;box-shadow:var(--shadow-sm);overflow:hidden}
.moodboard>img{width:100%;height:340px;object-fit:cover;border-radius:16px;display:block}
.mood-note{font-size:12px;line-height:1.65;color:var(--muted);padding:14px 6px 4px}
.mood-note span{color:var(--ink);font:italic 500 15px var(--serif)}
.mt-collage{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:12px;padding:10px 4px 6px}
.mt-tile{position:relative;aspect-ratio:1/1.1;background:#fff;padding:6px;border-radius:8px;box-shadow:0 6px 18px rgba(36,49,43,.14);transform:rotate(var(--tilt,0deg));transition:transform .3s}
.mt-tile:nth-child(odd){--tilt:-1.4deg}
.mt-tile:nth-child(even){--tilt:1.2deg}
.mt-tile:nth-child(3n){--tilt:.4deg}
.mt-tile:hover{transform:rotate(0) scale(1.04);z-index:2}
.mt-tile img{width:100%;height:100%;object-fit:cover;border-radius:4px;display:block;background:var(--blush)}
.mt-tile span{position:absolute;right:10px;bottom:10px;max-width:calc(100% - 20px);background:rgba(36,49,43,.88);color:#fff;font-size:11px;padding:3px 10px;border-radius:999px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.mt-summary{background:#fff;border:1px solid var(--line);border-top:4px solid var(--rose);border-radius:18px;padding:20px;margin-top:16px;line-height:1.85;box-shadow:var(--shadow-sm);animation:fade .45s ease both}
.mt-summary hr{border:0;border-top:1px dashed var(--line);margin:12px 0}
.mt-summary p{margin:0}
.mt-sum-row{display:flex;gap:12px;align-items:center;margin:8px 0}
.mt-sum-row img{width:40px;height:40px;border-radius:10px;object-fit:cover;background:var(--blush)}
.mt-sum-row span:nth-child(2){flex:1}

/* =====================================================================
   FORM / CHỐT ĐƠN
   ===================================================================== */
form{display:grid;gap:16px}
label{display:grid;gap:7px;font-size:13px;font-weight:500;color:var(--ink)}
label small{color:var(--muted);font-weight:400}
input,textarea{width:100%;border:1px solid var(--line);border-radius:14px;background:#fff;padding:13px 15px;color:var(--ink);outline:none;transition:border-color .2s,box-shadow .2s}
input:focus,textarea:focus{border-color:var(--sage);box-shadow:0 0 0 4px rgba(125,152,133,.18)}
textarea{resize:vertical}
input[type=file]{padding:10px;background:var(--cream);border-style:dashed;font-size:13px}
input[type=file]::file-selector-button{margin-right:12px;border:0;border-radius:999px;background:var(--moss);color:#fff;padding:8px 16px;font:inherit;font-size:12px;cursor:pointer}
#fieldGift{display:grid;gap:14px}
.mt-upload{display:block;min-height:14px;margin-top:-6px;font-size:12px;color:var(--sage)}

.output-tabs{display:grid;grid-template-columns:1fr;gap:10px;overflow:visible;margin-bottom:14px}
.output-tabs button{display:flex;align-items:center;gap:14px;text-align:left;padding:14px 18px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);font-size:14px;font-weight:500;transition:.2s}
.output-tabs button .ico{width:34px;height:34px;padding:7px;border-radius:50%;background:var(--mist);color:var(--moss);stroke-width:1.5;transition:.2s}
.output-tabs button:hover{border-color:var(--rose)}
.output-tabs button.selected{background:var(--moss);border-color:var(--moss);color:#fff;box-shadow:0 10px 24px rgba(60,85,70,.25)}
.output-tabs button.selected .ico{background:rgba(255,255,255,.16);color:#fff}
#outputHint{padding:14px 16px;background:var(--blush);border-radius:14px;color:#6b4a46;margin-bottom:22px}
#payHint{padding:2px 2px 0}
#payTabs{margin-bottom:10px}

/* =====================================================================
   TRANG CẢM ƠN
   ===================================================================== */
.page-thankyou .flow-shell{text-align:center;padding-bottom:80px}
.thanks-mark{width:68px;height:68px;margin:6px auto 4px;border-radius:50%;display:grid;place-items:center;background:var(--moss);color:#fff;box-shadow:0 0 0 8px var(--mist),0 0 0 9px var(--sage);animation:pop .6s cubic-bezier(.2,1.4,.4,1) both}
.thanks-mark svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@keyframes pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
.thanks-title{font-size:clamp(34px,8vw,54px);margin:6px 0 18px}
.thanks-copy{color:var(--muted);line-height:1.75;max-width:460px;margin:0 auto}
#orderLine{display:inline-block;margin-top:20px;padding:8px 20px;border-radius:999px;background:var(--blush);color:#6b4a46;font-size:14px}
.mt-box{background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px 22px;margin:24px auto;max-width:440px;text-align:center;line-height:1.7;box-shadow:var(--shadow);animation:fade .5s ease both}
.mt-box h4{margin:0 0 12px;font:500 26px var(--serif)}
.mt-box p{margin:6px 0}
.mt-qr{position:relative;display:inline-block;background:#fff;padding:14px;margin:6px 0 12px;border-radius:18px;border:1px solid var(--line)}
.mt-qr canvas,.mt-qr img{display:block}
.mt-qr-logo{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:var(--moss);color:#fff;border:3px solid #fff;display:grid;place-items:center;font:600 13px var(--serif)}
.mt-link{word-break:break-all;font-size:12px;color:var(--muted)}
.mt-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:14px}
.mt-actions .button{min-height:42px;padding:0 20px;font-size:13px}
.mt-bank{text-align:left;display:inline-block;font-size:14px}
.mt-bank img{display:block;width:230px;max-width:100%;margin:0 auto 12px;background:#fff;border-radius:12px}

/* =====================================================================
   TRANG QUÀ TẶNG (người nhận xem)
   ===================================================================== */
.page-gift{background:radial-gradient(60% 40% at 100% 0%,var(--blush),transparent 70%),radial-gradient(50% 40% at 0% 60%,var(--mist),transparent 70%),var(--paper);min-height:100svh}
.gift-page{max-width:580px;margin:auto;padding:34px 22px 80px;text-align:center}
.gift-page .brand{justify-content:center;margin-bottom:34px}
.gift-title{font-size:clamp(34px,9vw,50px);line-height:1.08;margin:0 0 8px}
.gift-from{color:var(--muted);margin:0 0 26px;font-size:15px}
.gift-message{position:relative;font:italic 500 clamp(22px,6vw,30px)/1.5 var(--serif);color:var(--rose-deep);white-space:pre-line;margin:0 0 28px;padding:28px 6px 0}
.gift-message::before{content:'\201C';position:absolute;left:50%;top:-14px;transform:translateX(-50%);font:500 70px/1 var(--serif);color:var(--rose);opacity:.35}
.gift-media img,.gift-media video{display:block;width:100%;max-height:440px;object-fit:cover;background:#fff;padding:8px;border-radius:12px;box-shadow:var(--shadow);margin:0 auto 18px;transform:rotate(-.8deg)}
.gift-media video{padding:0;transform:none;background:#000}
.gift-bouquet{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px 18px;margin:28px 0;box-shadow:var(--shadow-sm);animation:fade .5s ease both}
.gift-bouquet .mt-collage{margin:12px 0}
.gift-meta{font-size:12px;color:var(--muted);line-height:1.7}
.gift-note{color:var(--muted);font-size:11.5px;margin-top:12px}
.gift-error{padding:70px 0;color:var(--muted);line-height:1.7}

/* ---------- Modal dùng chung (ghi đè kiểu mặc định của modal.js) ---------- */
.ma-modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:rgba(36,49,43,.45)}
.ma-modal-overlay .ma-modal{border-radius:24px;font-family:var(--sans);padding:30px 26px 24px}
.ma-modal-overlay .ma-modal h4{font-family:var(--serif)}
.ma-modal-overlay .ma-modal button{border-radius:999px;background:var(--moss);padding:13px}
.ma-modal-overlay .ma-modal button:hover{background:var(--ink)}
.ma-modal-overlay .ma-modal-icon.success{background:var(--moss)}
.ma-modal-overlay .ma-modal-icon.error{background:var(--rose-deep)}
.ma-modal-overlay .ma-modal-icon.info{background:var(--gold)}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media(max-width:640px){
  .stepper li span{display:none}
  .stepper li.is-active span{display:inline}
  .stepper{justify-content:flex-start;gap:14px}
  .flow-head{align-items:flex-start;flex-direction:column;gap:6px}
  .step-label{padding:0}
  .mt-thumb{width:72px;height:72px}
  .mt-card{gap:12px}
  .hero-chip{left:6px}
  .cart-sticky .button-light{padding:0 14px}
  .moodboard>img{height:280px}
}
@media(max-width:380px){
  .mt-card{flex-wrap:wrap}
  .mt-qty{margin-left:auto}
}
@media(min-width:700px){
  .hero{padding-top:70px;padding-bottom:96px}
  .hero-inner{grid-template-columns:1.1fr .9fr;gap:60px}
  .hero-visual{margin:0 0 0 auto}
  .how{grid-template-columns:repeat(3,1fr)}
  .modes{grid-template-columns:repeat(3,1fr)}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .flow-shell{padding-top:60px}
  .output-tabs{grid-template-columns:repeat(3,1fr)}
  .output-tabs button{flex-direction:column;align-items:flex-start;gap:10px;padding:18px}
  .mt-list{grid-template-columns:1fr 1fr}
  .mt-card{flex-wrap:wrap}
  .mt-qty{margin-left:auto;width:100%;justify-content:flex-end}
}
@media(min-width:1000px){
  .how{grid-template-columns:repeat(6,1fr)}
  .how li{padding:18px 14px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* =====================================================================
   BỔ SUNG: nhãn lọc, ảnh minh họa, hiệu ứng chuyển động
   ===================================================================== */
button.mt-chip{font:inherit;font-size:12px;cursor:pointer;transition:.2s}
button.mt-chip:hover{border-color:var(--rose);transform:translateY(-1px)}
button.mt-chip.active{background:var(--ink);border-color:var(--ink);color:#fff;box-shadow:0 6px 16px rgba(36,49,43,.22)}
button.mt-chip.active b{color:#fff}
button.mt-chip.over.active{background:var(--rose-deep);border-color:var(--rose-deep)}

/* Cánh hoa rơi */
.petals{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.petals i{position:absolute;top:-40px;width:14px;height:18px;border-radius:80% 0 80% 0;background:linear-gradient(135deg,#f6d3ce,#e3a49c);opacity:.75;animation:fall linear infinite}
.petals i:nth-child(1){left:6%;animation-duration:15s;animation-delay:-3s}
.petals i:nth-child(2){left:17%;animation-duration:19s;animation-delay:-9s;transform:scale(.7)}
.petals i:nth-child(3){left:29%;animation-duration:13s;animation-delay:-6s}
.petals i:nth-child(4){left:41%;animation-duration:21s;animation-delay:-1s;transform:scale(.8)}
.petals i:nth-child(5){left:55%;animation-duration:16s;animation-delay:-11s}
.petals i:nth-child(6){left:68%;animation-duration:18s;animation-delay:-5s;transform:scale(.65)}
.petals i:nth-child(7){left:80%;animation-duration:14s;animation-delay:-8s}
.petals i:nth-child(8){left:92%;animation-duration:20s;animation-delay:-13s;transform:scale(.85)}
@keyframes fall{0%{transform:translate3d(0,-5vh,0) rotate(0)}50%{transform:translate3d(36px,55vh,0) rotate(220deg)}100%{transform:translate3d(-24px,112vh,0) rotate(480deg)}}
.hero-inner,.page-thankyou .flow-shell,.gift-page{position:relative;z-index:1}
.page-thankyou .flow{position:relative;overflow:hidden}
.page-gift .petals{position:fixed}

/* Hiện dần khi cuộn (chỉ bật khi có JS) */
.js .reveal{opacity:0;transform:translateY(26px);transition:opacity .8s ease,transform .8s ease}
.js .reveal.in{opacity:1;transform:none}
.reveal:nth-child(2){transition-delay:.08s}.reveal:nth-child(3){transition-delay:.16s}.reveal:nth-child(4){transition-delay:.24s}.reveal:nth-child(5){transition-delay:.32s}.reveal:nth-child(6){transition-delay:.4s}

/* Trang chủ: ảnh phụ + chuyển động nhẹ */
.hero-mini{position:absolute;right:-14px;bottom:-26px;width:38%;aspect-ratio:1;border-radius:50%;overflow:hidden;border:6px solid var(--paper);box-shadow:var(--shadow);animation:float 7s ease-in-out infinite}
.hero-mini img{width:100%;height:100%;object-fit:cover;object-position:30% 40%;display:block}
.hero-chip{animation:float 6s ease-in-out -2s infinite}
.hero-photo{animation:rise .9s ease both}
.hero h1,.hero-copy,.hero .button,.hero-points,.hero .eyebrow{animation:rise .8s ease both}
.hero .eyebrow{animation-delay:.05s}.hero h1{animation-delay:.15s}.hero-copy{animation-delay:.3s}.hero .button{animation-delay:.42s}.hero-points{animation-delay:.55s}
@keyframes float{50%{transform:translateY(-10px)}}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
.button-dark{position:relative;overflow:hidden}
.button-dark::after{content:'';position:absolute;top:0;left:-70%;width:50%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);transform:skewX(-20deg);animation:shine 4.5s ease-in-out 1.5s infinite}
@keyframes shine{0%,60%{left:-70%}100%{left:130%}}

/* Bộ sưu tập cảm hứng */
.gallery{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:150px;gap:12px}
.gallery figure{position:relative;margin:0;overflow:hidden;border-radius:22px;background:var(--blush)}
.gallery .g-tall{grid-row:span 2}
.gallery img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.1s ease}
.gallery figure:hover img{transform:scale(1.08)}
.gallery figcaption{position:absolute;left:14px;bottom:12px;color:#fff;font:italic 500 20px var(--serif);text-shadow:0 2px 12px rgba(0,0,0,.35)}
.gallery .g-art{display:grid;place-items:center;text-align:center;color:var(--moss)}
.gallery .g-art .ico{width:64px;height:64px;stroke-width:1.2;transition:transform .8s ease}
.gallery .g-art:hover .ico{transform:rotate(25deg) scale(1.1)}
.gallery .g-art figcaption{position:static;color:var(--ink);text-shadow:none;margin-top:6px}
.gallery .art-rose{background:linear-gradient(145deg,#f7dcd7,#eab9b1)}
.gallery .art-sage{background:linear-gradient(145deg,#dfe9e1,#b9cdbf)}
.gallery .art-cream{background:linear-gradient(145deg,#f7efe0,#ecd9b8)}

/* Ảnh banner trong từng bước thiết kế */
.step-banner{position:relative;height:130px;margin:0 0 26px;border-radius:22px;overflow:hidden;background:var(--blush);box-shadow:var(--shadow-sm)}
.step-banner img{width:100%;height:100%;object-fit:cover;display:block;animation:kenburns 18s ease-in-out infinite alternate}
.step-banner::after{content:attr(data-caption);position:absolute;inset:0;display:flex;align-items:flex-end;padding:14px 18px;color:#fff;font:italic 500 18px var(--serif);background:linear-gradient(0deg,rgba(36,49,43,.62),transparent 65%)}
@keyframes kenburns{from{transform:scale(1) translateX(0)}to{transform:scale(1.14) translateX(-2%)}}
.progress span{background-size:200% 100%;animation:flow 3s linear infinite}
@keyframes flow{to{background-position:-200% 0}}
.product-card.selected::before{animation:pop .5s cubic-bezier(.2,1.4,.4,1)}
.cart-sticky{animation:slide-up .5s cubic-bezier(.2,.9,.3,1)}
@keyframes slide-up{from{transform:translateY(100%)}to{transform:none}}
.mt-qty b{transition:transform .2s}
.mt-card.has-qty .mt-thumb{animation:pop .4s ease}
.mt-tile{animation:rise .6s ease both}
.mt-tile:nth-child(2){animation-delay:.07s}.mt-tile:nth-child(3){animation-delay:.14s}.mt-tile:nth-child(4){animation-delay:.21s}.mt-tile:nth-child(5){animation-delay:.28s}.mt-tile:nth-child(n+6){animation-delay:.35s}
.gift-message,.gift-title,.gift-media img{animation:rise .9s ease both}
.gift-message{animation-delay:.2s}.gift-media img{animation-delay:.4s}

@media(min-width:700px){
  .gallery{grid-template-columns:repeat(4,1fr);grid-auto-rows:190px}
  .step-banner{height:170px}
}

/* =====================================================================
   BƯỚC 5: STYLE NGUYÊN BẢN TỪ static/style.css CỦA BẠN CÙNG NHÓM
   ===================================================================== */
#mocanh-photo-preview {
  --bg: #f7f4ed;
  --paper: #fffdf8;
  --green: #304f42;
  --ink: #283c32;
  --muted: #7a8174;
  --line: #e6e5dc;
  --rose: #bb7f83;
  color: var(--ink);
  font: 15px/1.55 system-ui, -apple-system, Segoe UI, sans-serif;
}
#mocanh-photo-preview .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}
#mocanh-photo-preview .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
#mocanh-photo-preview .section-title h2 {
  font-size: 18px;
  font-weight: 600;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  margin: 0;
}
#mocanh-photo-preview .section-title .step {
  display: grid !important;
  place-items: center;
  font-size: 11px;
  color: var(--green);
  background: #ecf0e8;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
#mocanh-photo-preview label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
}
#mocanh-photo-preview select {
  width: 100%;
  font: 14px system-ui;
  color: var(--ink);
  border: 1px solid #dedfd5;
  background: #fffefb;
  padding: 11px 12px;
  border-radius: 9px;
  margin-top: 7px;
}
#mocanh-photo-preview select:focus {
  outline: 2px solid #a8b9a3;
  outline-offset: 1px;
}
#mocanh-photo-preview .secondary {
  cursor: pointer;
  font: 13px system-ui;
  border-radius: 10px;
  padding: 13px 17px;
  transition: background .15s;
  background: transparent;
  color: var(--green);
  border: 1px solid #d8dfd2;
}
#mocanh-photo-preview .secondary:hover:not(:disabled) {
  background: #edf1e8;
}
#mocanh-photo-preview button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
#mocanh-photo-preview .fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
#mocanh-photo-preview .status {
  font-size: 12px;
  margin: 16px 0;
  color: var(--muted);
}
#mocanh-photo-preview .actions {
  display: flex;
  gap: 10px;
}
#mocanh-photo-preview .actions button {
  flex: 1;
}
.flow-shell:has(section.step.active[data-step="5"]) {
  max-width: 1240px;
}