@font-face{font-family:"Great Vibes";src:url("fonts/GreatVibes-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Mrs Saint Delafield";src:url("fonts/MrsSaintDelafield-Regular.ttf") format("truetype");font-display:swap}
@font-face{font-family:"Be Vietnam Pro";src:url("fonts/BeVietnamPro-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Be Vietnam Pro";src:url("fonts/BeVietnamPro-Medium.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"Be Vietnam Pro";src:url("fonts/BeVietnamPro-SemiBold.ttf") format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:"Be Vietnam Pro";src:url("fonts/BeVietnamPro-Bold.ttf") format("truetype");font-weight:700;font-display:swap}

:root{
  --font:"Be Vietnam Pro",Arial,sans-serif;
  --script:"Great Vibes",cursive;
  --ink:#611425; --muted:#a3233f; --rose:#ac2442; --line:#fcd5de;
  --pearl:#fffefe;
  --pink-ink:#9a213c; --pink-line:#fac3cf;
  --shadow:0 6px 23px #c3294b12,inset 0 1px 0 white;
  --sheet:linear-gradient(138deg,#fff 25%,#fffafb 72%,#fff1f4);
  --engraving:
    radial-gradient(ellipse 50% 115% at 50% 100%,transparent 43%,#d9496939 45% 46%,transparent 48% 57%,#d9496926 59% 60%,transparent 62%),
    radial-gradient(ellipse 50% 115% at 0% 0%,transparent 43%,#d9496933 45% 46%,transparent 48% 57%,#d9496920 59% 60%,transparent 62%),
    radial-gradient(ellipse 50% 115% at 100% 0%,transparent 43%,#d9496933 45% 46%,transparent 48% 57%,#d9496920 59% 60%,transparent 62%);
}
html{
  min-height:100%;background:radial-gradient(ellipse at 14% 0%,#ffedf1,transparent 56%),#fffcfd fixed;
}
body.customer16,body.admin16{min-height:100vh;color:var(--ink);font-family:var(--font);background:none;isolation:isolate}
body::before{display:none!important}
body>svg{opacity:.39}
body.customer16 main{max-width:930px!important;padding:clamp(10px,2vw,26px) clamp(10px,2.5vw,30px) 30px!important;gap:12px!important;margin:0 auto}
body.admin16{max-width:1220px;margin:0 auto}
body :is(button,input,textarea,select,footer){font-family:var(--font)}
body :is(button,a):focus-visible{outline:2px solid #bd2849;outline-offset:3px}
.masthead{
  box-sizing:border-box;isolation:isolate;position:relative;overflow:hidden;display:flex;align-items:center;
  min-height:130px;padding:20px clamp(18px,4vw,42px);margin:0;border:1px solid #fabecb;border-radius:22px;
  background:linear-gradient(106deg,#fff 10%,#fff8fa 49%,#ffcbd7 100%);box-shadow:var(--shadow);
}
.masthead::before{
  content:"";position:absolute;inset:5px;z-index:1;border:1px solid #fff;border-radius:17px;pointer-events:none;
}
/* Botanical roses, customer masthead only. */
body.customer16 .masthead::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(98deg,#fffafb 2%,#fffafbcc 35%,#fffafb00 65%),
    url("art/chanri-roses.webp") right -8px bottom -12px / clamp(250px,48%,480px) auto no-repeat,
    radial-gradient(ellipse at 84% 69%,#ffabbe76,transparent 58%);
}
.masthead-copy{position:relative;z-index:2;min-width:0;text-align:left}
.masthead .masthead-copy h1{font:400 clamp(36px,5.1vw,60px)/1.14 var(--script);color:var(--pink-ink);letter-spacing:0;text-shadow:0 1px white;margin:0;text-align:left}
.masthead .masthead-tagline{font:italic 400 12px/1.4 var(--font);color:#a72441;text-align:left;margin:4px 0 0 2px}

body.customer16 main>#checkoutNav{
  padding:6px 6px 8px!important;border-radius:18px!important;position:relative;top:auto;
  background:#fffcfd;border:1px solid #fbd2db;box-shadow:var(--shadow);width:100%;
}
.order-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.order-stages button{
  --face-base:#fff1f4;
  --edge:#f9b9c7;
  --stroke:#fac7d2;
  position:relative;isolation:isolate;display:grid;grid-template-rows:14px 1.55em;
  align-content:center;align-items:start;min-width:0;min-height:64px;
  padding:5px 5px 9px;overflow:hidden;text-align:center;letter-spacing:0;font:500 11px/1.25 var(--font);
  background:linear-gradient(162deg,var(--face-top),var(--face-base));color:#7a1a2f;
  border:1px solid var(--stroke);border-bottom:4px solid var(--edge);border-radius:12px;
  box-shadow:inset 0 1px 1px #fff,0 2px 4px #d9496914;
  transition:transform .16s,box-shadow .16s;
}
.order-stages button::before{
  content:"";position:absolute;inset:3px;z-index:-1;pointer-events:none;
  border:1px solid #fffd;border-radius:8px;
}
.order-stages button::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(114deg,transparent 36%,#fff9 49%,transparent 65%);
  transform:translateX(-115%);animation:box-light 5.8s ease-in-out infinite var(--delay,0s);
}
.order-stages button:nth-child(2){--delay:.19s}
.order-stages button:nth-child(3){--delay:.38s}
.order-stages button:nth-child(4){--delay:.57s}
@keyframes box-light{0%,19%{transform:translateX(-115%)}53%,100%{transform:translateX(115%)}}
.order-stages button:disabled{opacity:1;cursor:default}
.order-stages button.done{--face-top:#fff9fa;--face-base:#ffe8ed;--edge:#f2bdc9}
.order-stages button.active{
  --face-top:#fff0f3;--face-base:#ffafc1;--edge:#e47f95;--stroke:#eda0b1;
  color:#78192e;box-shadow:inset 0 1px 2px #fff,0 3px 5px #d94a6a28;
}
.order-stages button:not(:disabled):active{transform:translateY(2px);box-shadow:inset 0 1px 1px #fff,0 1px 2px #d9496926;filter:none}
.order-stages span{font:600 9px/1.3 var(--font);letter-spacing:.1em;white-space:nowrap}
.order-stages b{font:600 12px/1.25 var(--font);text-wrap:balance;margin-top:2px}
#navCart,#navTotal,#ticket{display:none!important}
#checkoutNav .navsummary{min-height:0;margin:0;padding:0}
#checkoutNav .navsummary:not(:has(#navHold:not(:empty))){display:none}
#checkoutNav #navHold:not(:empty){padding:5px 8px 1px;color:#a3223f}
#checkoutShell,#checkoutShell>#form{border:0;background:none;box-shadow:none;overflow:visible}
#form>.panel,#checkoutShell>#thanks,#checkoutShell>#recovery,.admin16 section{
  border:1px solid #fbd2db!important;border-radius:22px!important;background:var(--sheet)!important;box-shadow:var(--shadow)!important
}
#form>.panel{padding:clamp(15px,2.5vw,26px)!important}
#productList .productRow{border:0!important;border-radius:14px;background:transparent!important;box-shadow:none;padding:0 0 16px;gap:clamp(10px,2vw,20px)}
#productList .productRow+.productRow{border-top:1px solid var(--line)!important;padding-top:14px}
#productList .noPhoto{flex:0 0 clamp(76px,11vw,108px);width:clamp(76px,11vw,108px);height:auto;aspect-ratio:4/5;position:relative;isolation:isolate;overflow:hidden;border:1px solid #fac6d1;border-radius:9px 15px 15px 9px;box-shadow:inset 4px 0 0 #fff9,0 4px 11px #c2294b20;background:linear-gradient(128deg,#fff9,transparent 53%), var(--engraving) 2px 0/34px 17px,#feeff2!important}
#productList .noPhoto::after{content:"";position:absolute;inset:5px;border:1px solid #fff9;border-radius:6px 10px 10px 6px;pointer-events:none}
#productList .noPhoto>div{color:#b42646;font:600 7px/1.3 var(--font);letter-spacing:.12em}
#productList .noPhoto strong{font:400 clamp(37px,5vw,55px)/1.12 var(--script);color:#a72340}
#productList .productInfo>b{font:600 clamp(16px,2.4vw,22px)/1.4 var(--font);color:#611526}
#form #productList .productInfo .muted{font-size:14px!important;font-weight:600;color:#ac2442}
#productList .productDesc,#productList .stockText{font-size:12px;line-height:1.55;color:#a3233f}
#productList .stockText{margin:3px 0}
#productList .qty{gap:7px}
#form #productList .qty button{min-height:35px!important;width:35px;height:35px;border:1px solid #f9bac8;border-radius:50%!important;padding:0;font-size:18px}
#form #productList .qty button:first-child{background:#fff9fa;color:#a0223e}
#form #productList .qty button:last-child{background:#c3294b;color:white}
#form .line{border-color:var(--line);margin-top:2px}
#form .line .total{color:#a72340!important}
#form :is(#reserve,#paidNext,#send),#success #finish,.admin16 button:not(.secondary),#closedPage #checkAgain,#thanks #downloadAgain{background:linear-gradient(170deg,#ffd0da,#ffaec0);color:#74192d;border:1px solid #ef9cae;box-shadow:inset 0 1px 0 #fff9,0 3px 9px #d8496924;border-radius:13px!important;text-shadow:none}
#form :is(#reserve,#paidNext,#send):not(:disabled):active,#success #finish:active,#closedPage #checkAgain:active{
  background:linear-gradient(170deg,#ffbdcc,#ffa3b7);filter:none;
}
#form :is(#reserve,#paidNext,#send):disabled{background:#fcd6df;color:#a62340;opacity:1;border-color:#fcd6df;box-shadow:none}
#form .note,#form #billFields,.admin16 :is(.warn,#status){background:#fef1f4!important;color:#881d35;border-color:#fbcad5}
#form input:not([type=checkbox]),#form textarea,.admin16 input:not([type=checkbox]),.admin16 textarea,.admin16 select{font-family:var(--font);border-radius:12px!important}
#form #preview,#form #previewZoom{display:none!important}
.customer16 footer{
  border:1px solid #fbccd7;border-radius:16px;background:#fffdfbd9;padding:6px 12px;
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;box-shadow:none;
}
.customer16 footer,.customer16 footer :is(button,span,a){color:#99203b;font:500 12px/1.5 var(--font)!important;letter-spacing:0}
.customer16 footer>a,.customer16 footer>button{padding:7px 4px;min-height:32px;background:none;border:0;box-shadow:none;text-decoration:underline;text-underline-offset:3px}
.customer16 footer>span{margin-right:auto}
.admin-masthead{min-height:145px}
.admin-masthead small,.admin-masthead b{display:block}.admin-masthead small{font:600 10px/1.5 var(--font);letter-spacing:.09em;color:#99203b}
.admin-masthead b{font:600 13px/1.4 var(--font);color:#9e213d}
.admin-masthead .masthead-copy h1{font-size:clamp(34px,4.9vw,56px);margin:3px 0}
.store-link{margin-left:auto;z-index:2;border-radius:24px;border:1px solid #f9bbc9;padding:10px 14px;background:#fffbfced;color:#95203a;font:600 12px/1.3 var(--font);text-decoration:none}
.admin16 .tabs{border-radius:18px;padding:7px;background:var(--pearl);border:1px solid var(--line)}
.admin16 button.secondary,.customer16 button.secondary{background:#fdeaee;color:#941f39;border-color:#fac0cd}
.admin16 .tabs button{border-radius:11px}
.admin16 .tabs button.current{background:#c0294a}
.admin16 .metric,.admin16 .item{background:var(--sheet);border-color:var(--line);border-radius:16px}
.admin16 #login{max-width:760px;margin:18px auto;text-align:left}
.admin16 #loginForm{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;margin-top:12px}
#success{background:#51111f46!important;backdrop-filter:blur(4px);z-index:10000}
#success .success-inner,#gallery[open]{border:1px solid #fbc9d4!important;border-radius:24px!important;background:var(--sheet)!important;box-shadow:0 20px 65px #821b3233!important}
#success .success-inner{padding:clamp(15px,4vw,24px)!important;max-height:90dvh;overflow:auto;background:linear-gradient(145deg,#fff 67%,#fff4f6)!important;text-align:center}
#success .popup-brand18{position:relative;display:grid;gap:3px;text-align:center;justify-items:center;border-radius:16px;background:linear-gradient(120deg,#fff 12%,#fff1f4 74%,#ffe2e8);padding:15px 22px;border:1px solid #fbd1da;margin:3px 0 8px}
#success .popup-brand18 strong{font:400 clamp(29px,5vw,40px)/1.25 var(--script);color:var(--pink-ink)}
#success .popup-brand18 p{margin:0;font:italic 12px/1.5 var(--font);color:#9d213d}
#success .popup-brand18 a{font:500 10px/1.5 var(--font);color:var(--pink-ink);text-decoration:none;letter-spacing:.07em}
#success .chibi-stage{display:block;width:min(32vw,135px);height:auto;aspect-ratio:280/340;margin:10px auto}
#success .thankLetter271{background:none;border:0;box-shadow:none}
#success .thankLetter271 h2{font:600 21px/1.4 var(--font);color:var(--pink-ink)}
#success .close{z-index:2}
#thanks .thankLetter271 h2{font:400 43px/1.25 var(--script);color:#a72441}
#thanks .sign27{font:400 30px/1.25 'Mrs Saint Delafield',cursive}
#ticketStatus:empty{display:none}
#ticketStatus{color:var(--muted);text-align:center;font-size:12px}
#gallery::backdrop{background:#61142559;backdrop-filter:blur(4px)}
body [hidden]{display:none!important}


/* The flap changes stacking order when edge-on so the note can rise in front of it. */
body.customer16 main>#closedPage{padding:8px 8px 20px!important;background:var(--sheet);border:1px solid #fbc8d4;border-radius:22px;overflow:hidden;text-align:center}
#closedPage .letter-scene{
  position:relative;display:grid;place-items:center;overflow:hidden;isolation:isolate;
  height:clamp(256px,42vw,330px);margin:0 0 13px;border-radius:15px;border:1px solid #fbd2db;
  background:radial-gradient(ellipse at 39% 28%,#fff 3%,#fff9fa 51%,#ffe5eb 100%);
}
.letter-scene::before{
  content:"";position:absolute;inset:6px;border-radius:10px;border:1px solid #fff;
  pointer-events:none;
}
.letter-envelope{
  position:relative;isolation:isolate;width:min(75%,274px);aspect-ratio:1.66;perspective:1000px;
  transform:translateY(19%) rotate(-5deg);filter:drop-shadow(1px 13px 9px #d436593b);
}
.letter-back,.letter-pocket,.letter-flap,.letter-card{position:absolute;inset:0}
.letter-back{z-index:0;border-radius:5px;background:linear-gradient(155deg,#eca4b4,#fcd8e0 56%,#fbc7d3);border:1px solid #efb3c0}
.letter-card{
  z-index:2;inset:5% 6% 7%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  padding:4%;border:1px solid #f1bdc9;border-radius:3px;color:#ac2543;
  box-shadow:inset 0 0 0 5px #fffafb,inset 0 0 0 6px #fac3cf,0 3px 8px #ae254318;
  background:linear-gradient(146deg,#fff 52%,#fff3f6);
}
.letter-card span{font:400 clamp(22px,4.5vw,34px)/1.1 var(--script)}
.letter-card small{font:italic 10px/1.4 var(--font)}
.letter-pocket{
  z-index:3;border:1px solid #efb2c0;border-radius:5px;overflow:hidden;
  clip-path:polygon(0 0,50% 61%,100% 0,100% 100%,0 100%);
  background:linear-gradient(38deg,#fcdce3 0%,#fffafb 50%,#fac2ce 51%,#fff6f8 100%);
}
.letter-pocket::after{
  content:"";position:absolute;inset:0;clip-path:polygon(0 100%,50% 42%,100% 100%);
  background:linear-gradient(163deg,#ea9bad 0%,#fffdfd 53%,#fcd9e1 99%);
}
.letter-flap{z-index:4;transform-origin:center top;transform:rotateX(0);transform-style:preserve-3d;pointer-events:none}
.letter-flap::before,.letter-flap::after{
  content:"";position:absolute;inset:0;border-radius:4px;backface-visibility:hidden;
  clip-path:polygon(0 0,100% 0,52.7% 67%,50% 68%,47.3% 67%);
}
.letter-flap::before{
  background:linear-gradient(150deg,#fffafb 6%,#fff2f5 50%,#fac7d2 100%);
  box-shadow:inset 0 1px 0 #fff;
}
.letter-flap::after{transform:rotateY(180deg);background:linear-gradient(165deg,#fff5f7,#efb3c0)}
.letter-seal{
  position:absolute;z-index:5;left:50%;top:64%;width:17%;aspect-ratio:1;transform:translate(-50%,-50%) rotate(6deg);
  display:grid;place-items:center;border-radius:47% 53% 47% 50%;font:400 clamp(20px,4vw,30px)/1 Georgia,serif;color:#c82a4d;
  text-shadow:0 1px #ffedf1;background:radial-gradient(ellipse at 36% 27%,#ffe3e9,#efa0b2 67%,#dd5d7a);
  box-shadow:inset 0 0 0 3px #fabdcb,inset 0 0 0 4px #d32f5340,0 2px 4px #a2223f55;
}
.letter-seal::after{content:"";position:absolute;inset:7%;border-radius:50%;pointer-events:none;background:linear-gradient(115deg,transparent 40%,#fff7 49%,transparent 58%) 100% 0/290% 100%;animation:paper-light 7s ease-in-out infinite}
.letter-opening .letter-seal{animation:unseal 1.4s .6s ease-in-out both}
.letter-opening .letter-flap{animation:unfold 2.2s 2s cubic-bezier(.42,0,.25,1) both}
.letter-opening .letter-card{animation:raise-note 2.5s 4.2s cubic-bezier(.42,0,.25,1) both}
.letter-closing .letter-card{animation:raise-note 2.6s .4s cubic-bezier(.42,0,.25,1) reverse both}
.letter-closing .letter-flap{animation:unfold 2.4s 3s cubic-bezier(.42,0,.25,1) reverse both}
.letter-closing .letter-seal{animation:unseal 1.8s 5.4s ease-in-out reverse both}
@keyframes unseal{from{opacity:1;scale:1}to{opacity:0;scale:1.08}}
@keyframes unfold{0%{transform:rotateX(0);z-index:4}49%{z-index:4}50%{z-index:1}100%{transform:rotateX(173deg);z-index:1}}
@keyframes raise-note{from{transform:translateY(0)}to{transform:translateY(-67%)}}
#closedPage #closedTitle{color:var(--pink-ink);font:400 clamp(35px,6vw,51px)/1.22 var(--script)!important;margin:8px auto 5px}
#closedPage #closedText{max-width:48ch;margin:5px auto 10px;padding:0 10px;color:#a2223f;font:400 14px/1.6 var(--font)}
#letterCountdown{color:#a3223f;font:600 18px/1.35 var(--font);font-variant-numeric:tabular-nums;letter-spacing:.1em;margin:6px 0}
#closedPage .closedContact{font:500 12px/1.5 var(--font);color:#aa2442}
#closedPage #checkAgain{padding:8px 16px}

@media(max-width:680px){
  body.customer16 main{gap:8px!important}
  .masthead{min-height:102px;border-radius:18px;padding:15px clamp(15px,4vw,24px)}
  .masthead::before{border-radius:13px}
  .order-stages{gap:3px}
  .order-stages button{min-height:59px;grid-template-rows:14px 2.55em;padding:4px 2px;font-size:9.5px}
  body.customer16 .masthead::after{background-size:auto,245px auto,auto;background-position:center,right -35px bottom -5px,center}
  .order-stages button::before{inset:2px}
  .order-stages b{font-size:clamp(9.5px,2.6vw,11.5px)}
  #productList .productRow{display:grid;grid-template-columns:clamp(62px,16vw,90px) minmax(0,1fr);align-items:start}
  #productList .noPhoto{width:100%}
  #productList .qty{grid-column:2;justify-self:end}
  .admin-masthead{flex-wrap:wrap;row-gap:8px}
  .admin-masthead .store-link{position:relative;margin:0 0 0 auto;align-self:flex-end;padding:6px 9px;font-size:10px}
  .customer16 footer{column-gap:8px;row-gap:0;justify-content:space-between}
  .customer16 footer>span{order:3;flex-basis:100%;margin:0;padding:0 4px 5px;font-size:10px!important}
}
@media(max-width:370px){.masthead .masthead-copy h1{font-size:32px}}
@media(prefers-reduced-motion:reduce){
  .order-stages button::after,.letter-scene *,.letter-scene *::after{animation:none!important;transition:none!important}
}

/* V2.30 — reference palette, warm bright pink */
:root{--pink-ink:#a51e46;--rose:#c51d4b;--line:#ffe0e6;--pink-line:#f8d1d8;--sheet:linear-gradient(145deg,#fff 65%,#fff5f7);--shadow:0 6px 23px #d95a7b12,inset 0 1px 0 white}
html{background:#fff8fa fixed}
.masthead{background:linear-gradient(106deg,#fff 10%,#fff5f7 49%,#f8d1d8 100%)}
.order-stages button{--face-top:#fff;--face-base:#ffe4ea;--edge:#f8d1d8;--stroke:#f8d1d8;color:#96203f}
.order-stages button.done{--face-top:#fff5f7;--face-base:#f8d1d8;--edge:#eea5b5}
.order-stages button.active{--face-top:#f8d1d8;--face-base:#eea5b5;--edge:#e57f98;--stroke:#eea5b5;color:#821536}
#form :is(#reserve,#paidNext,#send):not(:disabled),#success #finish,#closedPage #checkAgain,#thanks #downloadAgain,.admin16 button:not(.secondary){background:linear-gradient(170deg,#eea5b5,#e57f98);color:#68132c;border-color:#e57f98}
#form #productList .qty button:last-child,.admin16 .tabs button.current{background:#d95a7b;color:#fff}
#form .note,#form #billFields,.admin16 :is(.warn,#status){background:#fff5f7!important;border-color:#f8d1d8}
#success .success-inner,#gallery[open]{background:#fff!important;border-color:#f8d1d8!important}
#success .popup-brand18{background:linear-gradient(120deg,#fff,#fff1f4);border-color:#f8d1d8}

/* RC13 — masthead theo banner mẫu (chỉ trang khách) */
body.customer16 .masthead{min-height:clamp(112px,14vw,158px);padding:18px clamp(18px,7.5vw,78px);border:1px solid #c98a9b;border-radius:clamp(20px,2.6vw,28px);background:linear-gradient(100deg,#fdf1f3 0%,#fdeaee 55%,#fde3e7 100%);box-shadow:0 1px 0 #fff inset,0 6px 18px #d9669622}
body.customer16 .masthead::before{inset:auto;left:clamp(6px,1.4vw,18px);top:clamp(4px,1vw,12px);width:clamp(70px,13vw,142px);aspect-ratio:294/198;border:0;border-radius:0;background:url("art/chanri-banner-left.webp") left top/100% auto no-repeat;opacity:.95;z-index:1}
body.customer16 .masthead::after{inset:auto;right:clamp(-34px,-2vw,-6px);bottom:0;width:clamp(240px,62%,640px);aspect-ratio:1275/286;background:url("art/chanri-banner-right.webp") right bottom/100% auto no-repeat;z-index:-1}
body.customer16 .masthead .masthead-copy h1{font-size:clamp(34px,5.6vw,66px);color:#a8153f;line-height:1.1;text-shadow:0 1px 0 #fff8,0 0 1px #a8153f55}
body.customer16 .masthead .masthead-tagline{font:italic 500 clamp(12px,1.5vw,16px)/1.4 var(--font);color:#a8153f;margin:6px 0 0 4px}
@media(max-width:560px){body.customer16 .masthead{padding:16px 18px 16px 22px;min-height:112px}body.customer16 .masthead::after{width:78%;right:-26px}body.customer16 .masthead .masthead-copy h1{font-size:34px}}
