:root{
  --navy:#071124;--navy-2:#0c1732;--ink:#071124;--paper:#f6f7fb;--white:#fff;
  --red:#ff2448;--blue:#1765ff;--cyan:#00d7ff;--yellow:#ffe33d;--lime:#9cff45;
  --pink:#ff5bd7;--muted:#6e7892;--line:#dfe4ef;--dark-line:rgba(255,255,255,.16);
  --shadow:0 24px 70px rgba(7,17,36,.18);--radius:26px;--content-max:1480px;--page-gutter:48px;--section-space:96px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;max-width:100%;overflow-x:clip}
body{font-family:'IBM Plex Sans Thai','DM Sans',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;background:var(--paper);color:var(--ink);font-size:16px;line-height:1.6;min-height:100vh;max-width:100%;overflow-x:clip}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.shell{width:calc(100% - (var(--page-gutter) * 2));max-width:var(--content-max);margin-inline:auto}
.ambient,.grid-floor{position:fixed;pointer-events:none;z-index:-1}
.ambient{width:420px;height:420px;border-radius:50%;filter:blur(120px);opacity:.22}
.ambient-red{background:var(--red);left:-180px;top:140px}.ambient-blue{background:var(--blue);right:-180px;top:40px}
.grid-floor{inset:0;background-image:linear-gradient(rgba(23,101,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,36,72,.04) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(transparent,#000 60%,transparent)}

.site-header{position:fixed;top:0;left:0;right:0;width:100%;z-index:100;display:flex;align-items:center;justify-content:space-between;min-height:72px;padding:10px clamp(16px,2.2vw,36px);background:rgba(255,255,255,.94);color:var(--ink);border-bottom:1px solid var(--line);box-shadow:0 1px 8px rgba(11,11,12,.04);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
main{padding-top:var(--site-header-height,78px)}
.brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;flex-shrink:0}.brand>span:last-child{display:grid}.brand strong{font-size:18px;line-height:1.05;color:var(--ink);font-weight:900;letter-spacing:-.02em}.brand small{font-size:11px;color:var(--muted);margin-top:2px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.brand-cube{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#151922,#2a3140);border:1px solid rgba(255,255,255,.18);box-shadow:0 6px 18px rgba(11,11,12,.2);color:#fff}.brand-cube i{font-style:normal;font-weight:900;letter-spacing:-1px}
.main-nav{display:inline-flex;align-items:center;gap:4px;background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.06);border-radius:999px;padding:4px 6px;margin:0 auto;flex-shrink:0}
.nav-link{color:var(--muted);border-radius:999px;border:none;background:transparent;padding:8px 15px;min-height:42px;font-size:14px;letter-spacing:normal;font-weight:700;white-space:nowrap;transition:all .18s ease}
.nav-link:hover{color:var(--ink);background:rgba(255,255,255,.6)}
.nav-link.is-active{color:var(--ink);background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08);border-color:transparent}
.header-right-actions{display:flex;align-items:center;gap:10px}
.mode-control{display:flex;align-items:center;gap:8px;background:transparent;border:none;padding:0;white-space:nowrap}
body[data-mode="customer"] [data-admin-nav],body[data-mode="customer"] .admin-view{display:none!important}
body[data-mode="admin"]{background:#f6f5f4;color:var(--ink)}
body[data-mode="admin"] .nav-link:not([data-admin-nav]){display:none!important}
body[data-mode="admin"] .customer-auth-bar{display:none!important}
body[data-mode="admin"] .header-social-links{display:none!important}
body[data-mode="admin"] .site-lang-pill{display:none!important}
body[data-mode="admin"] .shop-sidebar-rail{display:none!important}
body[data-mode="admin"] .floating-chat-dock{display:none!important}
body[data-mode="admin"] .ambient,body[data-mode="admin"] .grid-floor{display:none!important}
body[data-mode="admin"] #adminModeButton{display:none!important}
body[data-mode="admin"] #customerModeButton{display:inline-flex!important;align-items:center;gap:6px;background:#0b0b0c;color:#fff;border-radius:999px;border:none;font-size:13px;font-weight:700;padding:8px 18px;min-height:44px;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px rgba(0,0,0,.15)}
body[data-mode="admin"] #customerModeButton:hover{background:#2a3140;transform:translateY(-1px)}
body[data-mode="admin"] .admin-logout-btn{border-radius:999px;padding:8px 16px;min-height:44px;font-size:12px;font-weight:700;background:transparent;border:1px solid var(--line);color:var(--muted);cursor:pointer}
body[data-mode="admin"] .admin-logout-btn:hover{border-color:var(--red);color:var(--red);background:#fff}
body[data-mode="admin"] .admin-heading{padding:14px 20px;border-radius:18px;background:#0b0b0c;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.08);align-items:center;gap:16px;margin-bottom:16px}
body[data-mode="admin"] .admin-heading p.eyebrow{color:rgba(255,255,255,.65);font-size:10px;letter-spacing:.12em;margin:0;gap:6px}
body[data-mode="admin"] .admin-heading p.eyebrow span{width:7px;height:7px;box-shadow:0 0 0 3px rgba(255,36,72,.18)}
body[data-mode="admin"] .admin-heading h1{color:#fff;font-size:clamp(18px,1.55vw,22px)!important;line-height:1.25!important;letter-spacing:-.02em!important;margin:3px 0 0!important}
body[data-mode="admin"] .admin-heading>div>p:last-child{color:rgba(255,255,255,.7);font-size:12.5px!important;line-height:1.45!important;margin:4px 0 0!important}
body[data-mode="admin"] .admin-heading .admin-heading-actions{gap:6px}
body[data-mode="admin"] .admin-heading .button,body[data-mode="admin"] .admin-heading>.button{min-height:34px;padding:6px 12px;font-size:12px;border-radius:10px}
body[data-mode="admin"] .admin-heading .demo-chip{padding:5px 10px;font-size:9.5px}
body[data-mode="admin"] .admin-view.page-space{padding-block:16px 48px}
body[data-mode="admin"] .cockpit-card{background:#fff;border:1px solid #ebebeb;box-shadow:0 4px 14px rgba(0,0,0,.04)}
body[data-mode="admin"] .admin-panel{background:#fff;border:1px solid #ebebeb;box-shadow:0 4px 14px rgba(0,0,0,.04)}
body[data-mode="admin"] .customer-only{display:none!important}

.view{display:none}.view.is-active{display:block}
#homeView{background:var(--navy);color:#fff}
.hero{min-height:620px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:40px;padding-block:64px 70px}
.eyebrow{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:900;letter-spacing:.16em;color:#d5ddf7}.eyebrow span{width:9px;height:9px;border-radius:50%;background:var(--red);box-shadow:0 0 0 5px rgba(255,36,72,.15)}.eyebrow.dark{color:#4f5a75}.eyebrow.centered{justify-content:center}
.hero h1,.page-hero h1,.page-title-row h1,.admin-heading h1{font-size:clamp(45px,7vw,88px);line-height:1.08;letter-spacing:-.065em;margin-top:20px;font-weight:900}.hero h1 em,.page-hero h1 em{font-style:normal;color:var(--yellow);text-shadow:4px 4px 0 var(--blue)}
.hero-lead{max-width:680px;color:#b8c5e7;font-size:18px;line-height:1.75;margin-top:26px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:32px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:14px;border:0;padding:12px 18px;font-weight:900;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease}.button:hover{transform:translateY(-2px)}.button:disabled{cursor:not-allowed;opacity:1;background:#cbd2df!important;color:#4d5972!important;box-shadow:none!important;filter:none;transform:none}.button-primary{background:linear-gradient(135deg,var(--red),#ff3b25);color:#fff;box-shadow:0 12px 30px rgba(255,36,72,.28)}.button-secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.button-dark{background:var(--navy);color:#fff}.button.full{width:100%}
.trust-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:28px;color:#9fb0db;font-size:12px;font-weight:700}.trust-row span::first-letter{color:var(--lime)}
.hero-art{position:relative;min-height:520px;display:grid;place-items:center}.orbit{position:absolute;border:1px dashed rgba(255,255,255,.23);border-radius:50%}.orbit-one{width:440px;height:440px;animation:spin 24s linear infinite}.orbit-two{width:330px;height:330px;animation:spin 16s linear infinite reverse}@keyframes spin{to{transform:rotate(360deg)}}
.toy-card{position:relative;width:330px;height:400px;display:grid;place-items:center;filter:drop-shadow(0 40px 40px rgba(0,0,0,.4));transform:rotate(-8deg)}.toy-shadow{position:absolute;width:280px;height:50px;border-radius:50%;background:#000;filter:blur(22px);bottom:20px;opacity:.5}.toy-body{position:relative;width:280px;height:315px;border-radius:62px;background:linear-gradient(145deg,#246fff,#0739b9);border:10px solid #10359b;box-shadow:inset 12px 12px 20px rgba(255,255,255,.22),inset -18px -18px 28px rgba(0,0,0,.24);display:flex;gap:28px;justify-content:center;align-items:flex-start;padding-top:72px}.toy-loop{position:absolute;top:-48px;left:46px;width:82px;height:90px;border-radius:42px;border:25px solid #ff2448;background:transparent;z-index:-1}.toy-button{width:82px;height:82px;border-radius:28px;box-shadow:inset 9px 9px 13px rgba(255,255,255,.35),inset -10px -10px 18px rgba(0,0,0,.22),0 8px 0 rgba(0,0,0,.2)}.toy-button.red{background:#ff3151}.toy-button.blue{background:#00c9ff}.toy-body strong{position:absolute;bottom:45px;font-size:38px;letter-spacing:.08em;color:#fff;text-shadow:0 4px 0 rgba(0,0,0,.2)}
.art-note{position:absolute;background:#fff;color:var(--ink);border:2px solid var(--ink);border-radius:999px;padding:9px 13px;font-size:10px;font-weight:900;box-shadow:5px 5px 0 var(--red)}.note-one{left:0;top:130px;transform:rotate(-8deg)}.note-two{right:0;top:210px;box-shadow:5px 5px 0 var(--yellow);transform:rotate(6deg)}.note-three{left:50px;bottom:70px;box-shadow:5px 5px 0 var(--lime);transform:rotate(4deg)}
.marquee{overflow:hidden;background:var(--yellow);color:var(--ink);border-block:3px solid var(--ink);padding:13px 24px;white-space:nowrap}.marquee div{font-weight:900;letter-spacing:.1em;word-spacing:20px}.marquee span{color:var(--red)}
.section-block,.featured-block{width:100%;max-width:none;margin-inline:0;padding-block:var(--section-space);padding-inline:max(var(--page-gutter),calc((100vw - var(--content-max))/2));color:var(--ink)}.section-block{background:#fff}.featured-block{background:#f2f5fb}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:34px}.section-heading h2{font-size:clamp(34px,5vw,56px);letter-spacing:-.055em;margin-top:10px}.section-heading>p{max-width:480px;color:var(--muted);line-height:1.7}.steps-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.steps-grid article{position:relative;min-height:260px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;overflow:hidden;box-shadow:0 14px 40px rgba(7,17,36,.06)}.steps-grid article>b{position:absolute;right:-4px;top:-18px;font-size:82px;color:#eef1f7;letter-spacing:-.08em}.step-icon{position:relative;width:54px;height:54px;border-radius:18px;background:var(--navy);color:var(--yellow);display:grid;place-items:center;font-size:24px;margin-bottom:46px}.steps-grid h3{font-size:21px}.steps-grid p{color:var(--muted);line-height:1.65;margin-top:10px}.steps-grid article:nth-child(2) .step-icon{background:var(--blue)}.steps-grid article:nth-child(3) .step-icon{background:var(--red)}.steps-grid article:nth-child(4) .step-icon{background:var(--yellow);color:var(--ink)}
.featured-block{padding-top:var(--section-space);padding-bottom:var(--section-space)}.text-link{border:0;background:transparent;color:var(--blue);font-weight:900}.text-link.light{color:var(--yellow)}.featured-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mini-product{border-radius:30px;padding:18px;background:#fff;border:1px solid var(--line);box-shadow:0 16px 45px rgba(7,17,36,.07)}.mini-product-art{height:260px;border-radius:22px;background:#dfe5f8;display:flex;align-items:center;justify-content:center;gap:15px;overflow:hidden}.mini-product-art::before{content:"";position:absolute}.mini-product-art i{display:block;width:86px;height:86px;border-radius:28px;background:var(--red);box-shadow:inset 9px 9px 12px rgba(255,255,255,.3),0 9px 0 rgba(7,17,36,.14)}.mini-product.red-blue .mini-product-art{background:linear-gradient(135deg,#ffdde3,#c8ddff)}.mini-product.red-blue i:nth-child(2){background:var(--blue)}.mini-product.blue-yellow .mini-product-art{background:linear-gradient(135deg,#c6efff,#fff2a9)}.mini-product.blue-yellow i{background:var(--blue)}.mini-product.neon .mini-product-art{background:linear-gradient(135deg,#d5ffb8,#d8c9ff)}.mini-product.neon i{width:64px;height:64px;background:var(--lime)}.mini-product.neon i:nth-child(2){background:var(--pink)}.mini-product.neon i:nth-child(3){background:var(--blue)}.mini-product>span{display:block;color:var(--red);font-size:10px;font-weight:900;letter-spacing:.14em;margin-top:18px}.mini-product h3{font-size:23px;margin-top:7px}.mini-product p{color:var(--muted);margin-top:4px}

.page-space{padding-block:54px 100px;min-height:calc(100vh - 75px)}.page-hero{background:linear-gradient(135deg,var(--navy),#102255);color:#fff;border-radius:34px;padding:54px;overflow:hidden;position:relative}.page-hero::after{content:"3D";position:absolute;right:-20px;bottom:-70px;font-weight:900;font-size:250px;color:rgba(255,255,255,.05);letter-spacing:-.12em}.page-hero.compact h1{font-size:clamp(44px,7vw,76px)}.page-hero p:last-child{max-width:680px;color:#b5c1df;line-height:1.7;margin-top:22px}.info-strip{margin-block:24px;background:var(--yellow);border:2px solid var(--ink);box-shadow:6px 6px 0 var(--ink);border-radius:14px;padding:15px 18px;font-size:13px;word-break:keep-all;overflow-wrap:normal}.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:32px}.product-card{position:relative;background:#fff;border:2px solid transparent;border-radius:30px;padding:14px;box-shadow:0 18px 55px rgba(7,17,36,.08);transition:.2s}.product-card:hover,.product-card.is-selected{border-color:var(--blue);transform:translateY(-4px)}.product-badge{position:absolute;z-index:2;top:26px;left:26px;background:var(--red);color:#fff;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:900}.product-badge.blue{background:var(--blue)}.product-badge.lime{background:var(--lime);color:var(--ink)}.product-visual{height:300px;border-radius:22px;display:grid;place-items:center;overflow:hidden}.product-visual.red-blue{background:linear-gradient(135deg,#ffced7,#c1d6ff)}.product-visual.blue-yellow{background:linear-gradient(135deg,#b9edff,#fff1aa)}.product-visual.neon{background:linear-gradient(135deg,#ceffad,#d4c2ff)}.product-toy{position:relative;width:230px;height:190px;border-radius:48px;background:var(--blue);border:8px solid rgba(7,17,36,.22);box-shadow:inset 10px 10px 16px rgba(255,255,255,.25),inset -12px -12px 20px rgba(0,0,0,.18),0 30px 35px rgba(7,17,36,.25);display:flex;align-items:flex-start;justify-content:center;gap:18px;padding-top:36px;transform:rotate(-8deg)}.product-toy i{width:60px;height:60px;border-radius:21px;background:var(--red);box-shadow:inset 7px 7px 9px rgba(255,255,255,.35),0 7px 0 rgba(7,17,36,.22)}.product-toy i:nth-child(2){background:var(--cyan)}.product-toy strong{position:absolute;bottom:24px;color:#fff;letter-spacing:.1em;font-size:21px}.product-toy.one{width:190px;background:var(--blue)}.product-toy.one i{background:var(--yellow)}.product-toy.three{width:260px;gap:10px;background:#5621b5}.product-toy.three i{width:53px;height:53px;background:var(--lime)}.product-toy.three i:nth-child(2){background:var(--pink)}.product-toy.three i:nth-child(3){background:var(--blue)}.product-copy{padding:18px 8px 8px}.product-copy>p{font-size:10px;font-weight:900;letter-spacing:.13em;color:var(--red)}.product-copy h2{font-size:25px;margin-top:5px}.product-copy>span{display:block;color:var(--muted);min-height:48px;line-height:1.5;margin-top:7px}.product-copy>div{margin-block:18px}.product-copy>div strong{font-size:28px}.product-copy>div small{color:var(--muted)}.product-copy .button{width:100%}

/* Premium retail catalog composition */
#productsView{padding-top:48px;padding-bottom:112px}
#productsView .page-hero{padding:64px clamp(32px,5vw,78px);border-radius:32px;box-shadow:0 24px 80px rgba(7,17,36,.2)}
#productsView .info-strip{margin:28px 0 42px;padding:18px 22px;box-shadow:none;border-width:1px;border-radius:16px}
.product-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:24px;margin-top:0}
.product-card{grid-column:span 6;min-width:0;border:1px solid #dce2ed;border-radius:28px;padding:16px;box-shadow:0 18px 48px rgba(7,17,36,.08);transform:none;overflow:hidden}
.product-card:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(380px,.75fr);align-items:stretch;padding:18px}
.product-card:hover{border-color:#b7c4da;transform:translateY(-3px);box-shadow:0 28px 64px rgba(7,17,36,.13)}
.product-card.is-selected{border-color:var(--blue);box-shadow:0 0 0 3px rgba(23,101,255,.1),0 24px 60px rgba(7,17,36,.12)}
.product-card:first-child .product-visual{height:480px}
.product-card:first-child .product-toy{transform:rotate(-7deg) scale(1.28)}
.product-card:first-child .product-copy{display:flex;flex-direction:column;justify-content:center;padding:46px 46px 42px}
.product-card:first-child .product-copy h2{font-size:clamp(38px,4vw,58px);letter-spacing:-.055em}
.product-visual{height:360px;border-radius:20px}
.product-copy{padding:26px 16px 14px}
.product-copy>p{font-size:11px;letter-spacing:.11em}
.product-copy h2{font-size:32px;letter-spacing:-.035em;margin-top:8px}
.product-copy>span{min-height:0;color:#52607b;font-size:15px;line-height:1.7;margin-top:12px}
.product-features{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.product-features li{border:1px solid #d9e0ed;background:#f6f8fc;border-radius:999px;padding:8px 11px;color:#41506c;font-size:11px;font-weight:800}
.product-buy{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-top:30px;padding-top:22px;border-top:1px solid var(--line)}
.product-buy>div{display:flex;align-items:baseline;gap:4px;white-space:nowrap}
.product-buy>div strong{font-size:36px;letter-spacing:-.04em}
.product-buy>div small{color:var(--muted)}
.product-buy .button{width:auto;min-width:220px}
.product-badge{top:30px;left:30px;padding:8px 12px;font-size:11px}

.page-title-row,.admin-heading{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}.page-title-row h1,.admin-heading h1{font-size:clamp(38px,5vw,62px);margin-top:10px}.page-title-row>div>p:last-child,.admin-heading>div>p:last-child{color:var(--muted);margin-top:10px}#customerModelCanvas{display:block;width:100%;height:100%;min-height:360px;border:0;background:transparent}.order-rail{background:#fff;border:1px solid var(--line);border-radius:28px;padding:24px;align-self:start;position:sticky;top:92px}.rail-label,.summary-label{font-size:10px;font-weight:900;letter-spacing:.14em;color:var(--red)}.order-rail h2{font-size:28px;margin-top:8px}.order-rail>p{color:var(--muted);line-height:1.65;margin-block:14px 20px}.rail-rule{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding-block:13px;font-size:12px}.rail-rule span{color:var(--muted)}.rail-rule strong{text-align:right}.order-rail .button{margin-top:16px}

.secure-label,.demo-chip{display:inline-flex;align-items:center;border:1px solid #b8c3db;border-radius:999px;padding:9px 12px;font-size:10px;font-weight:900;letter-spacing:.08em;color:#46536f}.secure-label{background:#eaffdf;color:#237100;border-color:#bce6a6}.checkout-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}.checkout-main{display:grid;gap:18px}.form-card,.checkout-summary{background:#fff;border:1px solid var(--line);border-radius:28px;padding:24px;box-shadow:0 12px 40px rgba(7,17,36,.06)}.form-card-head{display:flex;gap:13px;align-items:center;padding-bottom:20px;border-bottom:1px solid var(--line)}.form-card-head>span{width:38px;height:38px;border-radius:13px;background:var(--navy);color:var(--yellow);display:grid;place-items:center;font-weight:900}.form-card-head h2{font-size:20px}.form-card-head p{color:var(--muted);font-size:12px;margin-top:2px}.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}.fields-grid label{display:grid;gap:7px}.fields-grid label.wide{grid-column:1/-1}.fields-grid label>span{font-size:12px;font-weight:800}.fields-grid input,.fields-grid select,.fields-grid textarea{width:100%;border:1.5px solid #94a3b8;background:#f8fafc;border-radius:12px;padding:12px 14px;color:#0f172a;box-shadow:inset 0 1px 2px rgba(15,23,42,.04);transition:all .15s ease}.fields-grid textarea{resize:vertical}.fields-grid input:focus,.fields-grid select:focus,.fields-grid textarea:focus{border-color:var(--blue);background:#fff}.fields-grid input[readonly]{background:#eef1f7;color:#52607d}.fields-grid small{color:var(--muted);font-size:10px}.field-error{color:#d81739!important}.field-invalid{border-color:var(--red)!important;background:#fff4f6!important}.payment-layout{display:grid;grid-template-columns:260px 1fr;gap:18px;margin-top:20px}.promptpay-card{border:1px solid var(--line);border-radius:20px;padding:16px;text-align:center;background:#f8faff}.promptpay-title{font-size:18px;color:#1d4ed8;font-weight:900}.qr-placeholder,.line-qr{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:120px;height:120px;margin:12px auto;padding:10px;background:#fff;border:1px solid var(--line)}.qr-placeholder i,.line-qr i{background:var(--ink)}.qr-placeholder i:nth-child(2n),.line-qr i:nth-child(3n){background:transparent;border:3px solid var(--ink)}.promptpay-card strong,.promptpay-card small{display:block}.promptpay-card small{color:var(--muted);font-size:9px;margin-top:5px}.upload-zone{min-height:200px;border:2px dashed #aeb8ce;border-radius:20px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;cursor:pointer;background:#fbfcff}.upload-zone:hover{border-color:var(--blue);background:#f4f7ff}.upload-zone input{position:absolute;opacity:0;pointer-events:none}.upload-icon{width:46px;height:46px;border-radius:15px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:23px}.upload-zone strong{margin-top:12px}.upload-zone small{color:var(--muted)}.checkout-summary{position:sticky;top:92px}.summary-product{display:flex;gap:13px;align-items:center;margin-block:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}.summary-thumb{width:72px;height:72px;border-radius:18px;background:linear-gradient(135deg,#ffd2da,#c1d7ff);display:flex;align-items:center;justify-content:center;gap:6px}.summary-thumb i{width:23px;height:23px;border-radius:8px;background:var(--red);box-shadow:0 3px 0 rgba(0,0,0,.2)}.summary-thumb i:nth-child(2){background:var(--blue)}.summary-product>div:last-child{display:grid;gap:3px}.summary-product span{color:var(--muted);font-size:11px;line-height:1.4}.price-line{display:flex;justify-content:space-between;padding-block:11px;font-size:13px}.price-line span{color:var(--muted)}.price-total{display:flex;justify-content:space-between;align-items:end;border-top:2px solid var(--ink);margin-top:8px;padding-top:18px}.price-total span{font-weight:900}.price-total strong{font-size:31px}.review-reminder{background:#fff8cd;border:1px solid #f3d861;border-radius:15px;padding:13px;margin-block:18px;display:grid;gap:4px}.review-reminder b{font-size:12px}.review-reminder span{color:#786612;font-size:10px;line-height:1.5}.microcopy{text-align:center;color:var(--muted);font-size:10px;margin-top:9px}

.success-card{max-width:800px;margin:30px auto;background:#fff;border:1px solid var(--line);border-radius:34px;padding:50px;text-align:center;box-shadow:var(--shadow)}.success-check{width:84px;height:84px;border-radius:28px;background:var(--lime);color:var(--ink);display:grid;place-items:center;font-size:45px;font-weight:900;margin:0 auto 20px;box-shadow:8px 8px 0 var(--ink)}.success-card h1{font-size:clamp(34px,6vw,56px);letter-spacing:-.055em;margin-block:12px}.success-card>p{color:var(--muted)}.success-card>p strong{color:var(--blue)}.next-steps{margin-block:35px;text-align:left}.next-steps>div{display:flex;gap:14px;padding:16px;border-left:2px solid var(--line);margin-left:18px}.next-steps>div>b{flex:0 0 36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e9edf6}.next-steps>div.is-current{border-color:var(--blue);background:#f3f6ff;border-radius:0 16px 16px 0}.next-steps>div.is-current>b{background:var(--blue);color:#fff}.next-steps span{display:grid;gap:3px}.next-steps small{color:var(--muted)}.success-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}

.admin-view{background:transparent}.admin-heading{padding:30px;border-radius:28px;background:linear-gradient(135deg,var(--navy),#102656);color:#fff}.admin-heading>div>p:last-child{color:#aab8dc}.admin-heading .demo-chip{color:var(--yellow);border-color:rgba(255,227,61,.4);background:rgba(255,227,61,.08)}.cockpit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-block:22px}.cockpit-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;display:grid;gap:5px}.cockpit-card>span{color:var(--muted);font-size:12px;font-weight:700}.cockpit-card>strong{font-size:42px;letter-spacing:-.06em}.cockpit-card>small{color:var(--muted);min-height:34px}.cockpit-card button{margin-top:10px;border:0;background:transparent;text-align:left;color:var(--blue);font-size:11px;font-weight:900}.cockpit-card.urgent{background:#fff0f3;border-color:#ffb1bf}.cockpit-card.urgent>strong{color:var(--red)}.cockpit-card.blue{background:#edf3ff}.cockpit-card.yellow{background:#fff9d8}.admin-columns{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.admin-panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--line)}.panel-heading p{font-size:10px;color:var(--red);font-weight:900;letter-spacing:.12em}.panel-heading h2{font-size:21px;margin-top:3px}.panel-heading>span{font-size:10px;color:var(--muted)}.queue-list>div,.alert-list>div{display:flex;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.queue-list>div:last-child,.alert-list>div:last-child{border-bottom:0}.queue-list>div>b{width:34px;height:34px;border-radius:11px;background:#edf0f7;display:grid;place-items:center}.queue-list span,.alert-list span{display:grid;gap:3px;min-width:0;flex:1}.queue-list small,.alert-list small{color:var(--muted)}.status{font-style:normal;font-size:9px;font-weight:900;border-radius:999px;padding:6px 8px;background:#e8edf7}.status.printing{background:#dbe8ff;color:#1656ca}.status.qc{background:#e6ffdb;color:#2c7211}.status.pending{background:#fff4c4;color:#7a6200}.alert>b{width:34px;height:34px;border-radius:11px;background:#e8edf7;display:grid;place-items:center}.alert.danger>b{background:#ffe1e7;color:var(--red)}
.order-filter{display:flex;gap:7px;margin-block:20px;overflow:auto}.order-filter button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:800}.order-filter button.is-active{background:var(--navy);color:#fff}.admin-orders-list{display:grid;gap:14px}.empty-orders{background:#fff;border:1px dashed #aeb8ce;border-radius:24px;padding:50px;text-align:center;color:var(--muted)}.admin-order{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;display:grid;grid-template-columns:1fr auto;gap:18px}.admin-order-main{display:grid;gap:14px}.admin-order-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.admin-order-head h2{font-size:20px}.admin-order-head time{color:var(--muted);font-size:10px}.admin-order-data{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.admin-order-data div{background:#f6f8fc;border-radius:13px;padding:11px;display:grid;gap:3px}.admin-order-data span{font-size:9px;color:var(--muted);font-weight:800}.admin-order-data strong{font-size:12px}.admin-order-address{color:var(--muted);font-size:11px;line-height:1.5}.admin-order-actions{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:180px}.admin-order-actions .button{font-size:11px}.status-badge{font-size:9px;font-weight:900;border-radius:999px;padding:6px 9px;background:#fff0c7;color:#745e00}.status-badge.confirmed{background:#ddffd0;color:#257007}.status-badge.clarification_required{background:#ffe0e6;color:#a00d2a}
.stock-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-block:22px}.stock-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px}.stock-card>div:first-child{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:9px}.stock-card>div:first-child small{grid-column:2;color:var(--muted);font-size:9px}.stock-card>strong{display:block;font-size:29px;margin-block:18px 7px}.material-dot{grid-row:1/3;width:15px;height:15px;border-radius:50%;background:#ccc}.material-dot.red{background:var(--red)}.material-dot.blue{background:var(--blue)}.material-dot.white{background:#fff;border:2px solid #bfc6d6}.material-dot.dark{background:#212534}.material-dot.silver{background:#aeb8ca}.material-dot.yellow{background:var(--yellow)}.stock-bar{height:9px;background:#e9edf5;border-radius:999px;overflow:hidden}.stock-bar i{display:block;width:var(--level);height:100%;background:var(--blue);border-radius:inherit}.stock-card.low .stock-bar i{background:var(--yellow)}.stock-card.critical .stock-bar i{background:var(--red)}.stock-card>p{font-size:10px;color:var(--muted);margin-top:7px}.bom-panel{margin-top:18px}.bom-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:10px;padding:13px;border-bottom:1px solid var(--line);font-size:12px}.bom-row.head{color:var(--muted);font-size:10px;font-weight:900}.report-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-block:22px}.report-stats article{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px;display:grid;gap:5px}.report-stats span{color:var(--muted);font-size:11px}.report-stats strong{font-size:29px}.report-stats small{color:#2f8110}.bar-chart{height:280px;display:flex;align-items:end;justify-content:space-around;gap:9px;padding:26px 10px 24px}.bar-chart i{position:relative;width:11%;height:var(--h);border-radius:9px 9px 3px 3px;background:linear-gradient(var(--cyan),var(--blue))}.bar-chart span{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);font-style:normal;font-size:9px;color:var(--muted)}.ranking>div{display:grid;grid-template-columns:34px 1fr auto;gap:10px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.ranking>div>b{width:32px;height:32px;border-radius:11px;background:var(--yellow);display:grid;place-items:center}.source-truth{display:grid;grid-template-columns:280px 80px 1fr;align-items:center;margin-block:22px}.source-core{background:linear-gradient(135deg,var(--blue),#162e92);color:#fff;border-radius:28px;padding:28px;display:grid;gap:6px;box-shadow:var(--shadow)}.source-core span{font-size:9px;font-weight:900;letter-spacing:.14em;color:var(--cyan)}.source-core strong{font-size:28px}.source-core small{color:#c4d0f2;line-height:1.5}.source-lines{display:grid;gap:20px}.source-lines i{height:2px;background:var(--blue)}.source-targets{display:grid;grid-template-columns:1fr 1fr;gap:10px}.source-targets article{background:#fff;border:1px solid var(--line);border-radius:15px;padding:14px;display:grid;gap:3px}.source-targets span{font-size:10px;color:var(--muted)}.integration-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.integration-grid article{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px}.integration-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-weight:900;background:#e8ebf2}.integration-icon.sheet{background:#dff7e4;color:#118432}.integration-icon.line{background:#d9ffd5;color:#0b9a00}.integration-icon.iship{background:#dce8ff;color:#1754cf}.integration-grid article>span{display:grid}.integration-grid small{color:var(--muted)}.integration-status{font-style:normal;font-size:9px;font-weight:900}.integration-status.waiting{color:#9b7200}.security-note{margin-top:18px;background:#fff5cb;border:1px solid #f2d872;border-radius:18px;padding:18px}.security-note p{color:#65591e;margin-top:5px;line-height:1.6}

.site-footer{background:var(--navy);color:#fff;padding-block:32px;border-top:1px solid var(--dark-line)}.site-footer .shell{display:flex;justify-content:space-between;align-items:center;gap:20px}.site-footer>div>p{color:#94a2c9;font-size:12px}.footer-brand .brand-cube{width:38px;height:38px}
.line-fab{position:fixed;right:20px;bottom:20px;z-index:45;border:0;border-radius:18px;background:#13bf00;color:#fff;padding:11px 14px;box-shadow:0 16px 36px rgba(11,140,0,.35);display:grid;text-align:left}.line-fab span{font-size:14px;font-weight:900}.line-fab i{font-style:normal;font-size:9px}

.review-dialog,.line-dialog{border:0;padding:0;background:transparent;max-width:none;max-height:none;margin:auto}.review-dialog::backdrop,.line-dialog::backdrop{background:rgba(3,8,20,.76);backdrop-filter:blur(7px)}.dialog-card{width:min(930px,calc(100vw - 48px));max-height:calc(100vh - 48px);overflow:auto;background:#fff;border-radius:28px;padding:24px;box-shadow:0 40px 100px rgba(0,0,0,.45)}.dialog-head{display:flex;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:29px;margin-top:5px}.dialog-head>div>p:last-child{color:var(--muted);margin-top:5px}.dialog-close{flex:0 0 44px;width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:#f4f6fa;font-size:22px}.review-grid{display:grid;grid-template-columns:330px 1fr;gap:18px;margin-block:20px}.review-preview{min-height:360px;border-radius:22px;background:linear-gradient(145deg,#ffd3dc,#c8dcff);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;text-align:center}.review-toy{position:relative;width:225px;height:185px;border-radius:45px;background:var(--blue);border:8px solid rgba(7,17,36,.2);box-shadow:inset 10px 10px 16px rgba(255,255,255,.25),0 25px 30px rgba(7,17,36,.25);display:flex;justify-content:center;gap:18px;padding-top:36px;transform:rotate(-5deg)}.review-toy i{width:60px;height:60px;border-radius:20px;background:var(--red);box-shadow:inset 7px 7px 9px rgba(255,255,255,.35),0 7px 0 rgba(0,0,0,.18)}.review-toy i:nth-child(2){background:var(--cyan)}.review-toy strong{position:absolute;bottom:24px;color:#fff;letter-spacing:.09em}.review-preview>span{font-size:11px;font-weight:900;letter-spacing:.04em;margin-top:28px}.review-preview>small{color:#55617c;line-height:1.5;margin-top:7px}.review-details{border:1px solid var(--line);border-radius:22px;padding:10px 18px}.review-row{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.review-row span{color:var(--muted)}.review-row strong{text-align:right;overflow-wrap:anywhere}.review-row.address strong{line-height:1.5}.review-total{display:flex;justify-content:space-between;align-items:end;padding-top:16px}.review-total span{font-weight:900}.review-total strong{font-size:29px;color:var(--red)}.confirm-list{display:grid;gap:10px}.confirm-help{font-size:11px;font-weight:900;color:#8a6700;background:#fff6c8;border:1px solid #ecd668;border-radius:12px;padding:10px 12px}.confirm-list label{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:15px;padding:14px;cursor:pointer}.confirm-list input{flex:0 0 22px;width:22px;height:22px;accent-color:var(--blue)}.confirm-list span{font-size:12px;line-height:1.55;color:var(--muted)}.confirm-list b{color:var(--ink)}.dialog-actions{position:sticky;bottom:-24px;background:#fff;border-top:1px solid var(--line);padding-block:14px 2px;display:grid;grid-template-columns:1fr 1.4fr;gap:10px;margin-top:18px}.line-card{position:relative;width:min(430px,calc(100vw - 28px));background:#fff;border-radius:28px;padding:32px;text-align:center}.line-card>.dialog-close{position:absolute;right:14px;top:14px}.line-logo{display:inline-grid;place-items:center;width:70px;height:70px;border-radius:24px;background:#13bf00;color:#fff;font-weight:900;margin-bottom:16px}.line-card h2{font-size:27px}.line-card>p{color:var(--muted);line-height:1.6;margin-top:7px}.line-card>strong,.line-card>small{display:block}.line-card>small{color:var(--muted);line-height:1.5;margin:8px 0 16px}.toast{position:fixed;left:50%;bottom:26px;z-index:100;transform:translate(-50%,140px);background:var(--navy);color:#fff;border:1px solid var(--dark-line);box-shadow:var(--shadow);border-radius:14px;padding:13px 18px;font-size:12px;font-weight:800;transition:.25s}.toast.is-visible{transform:translate(-50%,0)}

@media(max-width:1100px){
  :root{--page-gutter:28px;--section-space:80px}
  .site-header{grid-template-columns:auto 1fr}.mode-control{justify-self:end}.main-nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}
  .hero{grid-template-columns:1fr;min-height:auto;padding-top:60px}.hero-art{min-height:500px}.steps-grid,.cockpit-grid,.report-stats{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:1fr 1fr}.product-card{grid-column:span 1}.product-card:first-child{grid-column:1/-1;grid-template-columns:minmax(0,1.1fr) minmax(330px,.9fr)}.product-card:first-child .product-copy{padding:32px}.checkout-layout{grid-template-columns:1fr}.order-rail,.checkout-summary{position:static}.checkout-summary{order:-1}.source-truth{grid-template-columns:230px 50px 1fr}
}
@media(max-width:760px){
  :root{--page-gutter:16px;--section-space:64px}
  .site-header{padding:10px 16px;gap:10px}.brand strong{font-size:13px}.brand small{font-size:9px}.brand-cube{width:40px;height:40px}.mode-control button{min-height:44px;padding:7px 10px;font-size:10px}.main-nav{margin-inline:-16px;padding-inline:16px}.nav-link{font-size:11px;padding:8px 11px}
  .hero{padding-block:44px 64px;gap:8px}.hero h1{font-size:47px}.hero-lead{font-size:15px;line-height:1.65}.hero-actions{display:grid}.hero-actions .button{width:100%}.trust-row{display:grid;gap:8px}.hero-art{min-height:400px}.orbit-one{width:330px;height:330px}.orbit-two{width:250px;height:250px}.toy-card{transform:rotate(-8deg) scale(.78)}.art-note{font-size:8px;padding:7px 9px}.note-one{left:2px}.note-two{right:2px}.note-three{left:20px;bottom:50px}.marquee div{font-size:11px}.section-block,.featured-block{padding-block:58px}.section-heading{display:grid;gap:13px;align-items:start}.section-heading h2{font-size:37px}.steps-grid,.featured-grid,.product-grid,.stock-grid,.report-stats,.integration-grid{grid-template-columns:1fr}.steps-grid article{min-height:220px}.mini-product-art{height:220px}
  .page-space{padding-block:28px 70px}.page-hero{padding:30px 22px;border-radius:24px}.page-hero.compact h1{font-size:43px}.page-title-row,.admin-heading{align-items:flex-start;display:grid}.page-title-row h1,.admin-heading h1{font-size:39px}.page-title-row>.button{width:100%}.product-visual{height:250px}.product-copy>span{min-height:auto}.order-rail{padding:19px}.fields-grid,.payment-layout{grid-template-columns:1fr}.fields-grid label.wide{grid-column:auto}.checkout-summary{order:initial}.form-card,.checkout-summary{padding:18px;border-radius:22px}.payment-layout{grid-template-columns:1fr}.promptpay-card{max-width:none}.success-card{padding:30px 18px;border-radius:24px}.success-actions{display:grid}.success-actions .button{width:100%}
  .cockpit-grid,.admin-columns{grid-template-columns:1fr}.admin-heading{padding:24px}.admin-order{grid-template-columns:1fr}.admin-order-data{grid-template-columns:1fr 1fr}.admin-order-actions{min-width:0}.bom-row{grid-template-columns:1.5fr 1fr 1fr}.bom-row>*:nth-child(3){display:none}.source-truth{grid-template-columns:1fr}.source-lines{display:none}.source-targets{grid-template-columns:1fr;margin-top:10px}.integration-grid article{grid-template-columns:auto 1fr}.integration-status{grid-column:2}.site-footer .shell{display:grid;text-align:center;justify-items:center}.line-fab{right:12px;bottom:12px}.line-fab i{display:none}
  .dialog-card{padding:18px;border-radius:22px}.dialog-head h2{font-size:23px}.review-grid{grid-template-columns:1fr}.review-preview{min-height:300px}.review-toy{transform:rotate(-5deg) scale(.86)}.review-row{grid-template-columns:84px 1fr}.dialog-actions{grid-template-columns:1fr}.dialog-actions .button{min-height:52px}.confirm-list label{min-height:64px}.line-card{padding:28px 18px}
}
@media(max-width:420px){.hero h1{font-size:42px}.toy-card{transform:rotate(-8deg) scale(.7)}.hero-art{min-height:360px}.product-toy{transform:rotate(-8deg) scale(.83)}.product-visual{height:225px}.admin-order-data{grid-template-columns:1fr}.review-preview{min-height:270px}.review-toy{transform:rotate(-5deg) scale(.75)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Professional storefront layout v3 */
:root{--content-max:1240px;--page-gutter:32px;--section-space:104px;--radius:22px;--shadow:0 20px 55px rgba(7,17,36,.11)}
.shell{width:min(var(--content-max),calc(100% - (var(--page-gutter) * 2)));max-width:var(--content-max);margin-inline:auto}
.site-header{min-height:78px;padding-block:12px;padding-inline:clamp(16px,2.2vw,36px);gap:18px;border-bottom-color:rgba(255,255,255,.1)}
.brand strong{font-size:17px}.brand small{font-size:11px}.main-nav{gap:6px}.nav-link{padding-inline:14px;font-size:13.5px}.nav-link:hover,.nav-link.is-active{box-shadow:none}.mode-control{padding:3px}.mode-control button{min-height:38px;padding:7px 12px;font-size:11px}
.hero{min-height:610px;grid-template-columns:minmax(0,1fr) minmax(460px,.92fr);gap:72px;padding-block:78px 86px}.hero-copy{max-width:610px}.hero h1{font-size:clamp(56px,5.7vw,78px);line-height:1.12;letter-spacing:-.055em}.hero h1 em{display:inline-block;text-shadow:3px 3px 0 var(--blue)}.hero-lead{max-width:570px;font-size:17px;line-height:1.75}.hero-art{min-height:460px}.trust-row{font-size:13px;gap:22px;color:#b9c6e8}
.section-block,.featured-block{width:100vw;max-width:none;margin-inline:calc(50% - 50vw);padding-inline:max(var(--page-gutter),calc((100vw - var(--content-max))/2))}.section-block{padding-block:96px 72px}.featured-block{padding-block:72px 96px}.section-heading{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);align-items:end;gap:64px;margin-bottom:48px}.section-heading h2{font-size:clamp(38px,4.2vw,54px);line-height:1.16}.section-heading>p{max-width:440px;font-size:16px;color:#59647c}.steps-grid{gap:20px}.steps-grid article{min-height:245px;padding:28px;border-radius:22px;box-shadow:0 12px 32px rgba(7,17,36,.055)}.steps-grid article>b{right:18px;top:8px;font-size:58px}.step-icon{margin-bottom:38px}.steps-grid p{font-size:15px;color:#59647c}.featured-grid{gap:24px}.mini-product{padding:16px;border-radius:24px;box-shadow:0 12px 32px rgba(7,17,36,.065)}.mini-product-art{height:245px;border-radius:18px}.mini-product>span{font-size:11px}.mini-product h3{font-size:25px}.mini-product p{font-size:15px;color:#59647c}
.page-space{padding-block:56px 104px;min-height:0}.page-title-row,.admin-heading{margin-bottom:36px}.page-title-row h1,.admin-heading h1{line-height:1.12}

#productsView{padding-top:48px;padding-bottom:112px}
#productsView .catalog-hero{min-height:330px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr);align-items:center;gap:54px;padding:48px 58px;border-radius:28px;box-shadow:0 20px 55px rgba(7,17,36,.16)}
#productsView .catalog-hero::after{display:none}.catalog-hero-copy{position:relative;z-index:1}.catalog-hero-copy h1{font-size:clamp(48px,4.7vw,66px);line-height:1.12;letter-spacing:-.045em;margin-top:14px}.catalog-hero-copy>p:not(.eyebrow){max-width:650px;margin-top:18px;color:#c2ccea;font-size:16px;line-height:1.7}.catalog-hero-points{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}.catalog-hero-points span{padding:8px 11px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.08);font-size:11px;font-weight:800;color:#e7ecff}
.catalog-family-art{position:relative;min-height:240px;display:flex;align-items:center;justify-content:center;gap:14px}.catalog-family-art::before{content:"";position:absolute;width:350px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(0,215,255,.24),transparent 68%);filter:blur(6px)}.family-toy{position:relative;width:105px;height:128px;border-radius:28px;background:linear-gradient(145deg,#246fff,#0739b9);border:5px solid rgba(255,255,255,.16);box-shadow:inset 7px 7px 12px rgba(255,255,255,.25),0 22px 30px rgba(0,0,0,.28);display:flex;justify-content:center;gap:7px;padding-top:28px;transform:rotate(-7deg)}.family-toy i{width:28px;height:28px;border-radius:9px;background:var(--yellow);box-shadow:inset 4px 4px 6px rgba(255,255,255,.4),0 4px 0 rgba(0,0,0,.18)}.family-toy b{position:absolute;bottom:18px;color:#fff;font-size:19px}.family-toy.featured{width:132px;height:158px;background:linear-gradient(145deg,#ff3959,#b70f39);transform:translateY(-9px) rotate(5deg)}.family-toy.featured i:first-child{background:var(--cyan)}.family-toy.featured i:nth-child(2){background:var(--yellow)}.family-toy.large{width:145px;height:145px;background:linear-gradient(145deg,#6937d4,#351181);transform:rotate(8deg)}.family-toy.large i{width:27px;height:27px}.family-toy.large i:nth-child(1){background:var(--lime)}.family-toy.large i:nth-child(2){background:var(--pink)}.family-toy.large i:nth-child(3){background:var(--cyan)}
#productsView .info-strip{display:flex;align-items:center;justify-content:center;gap:10px;margin:20px 0 64px;padding:14px 20px;border:1px solid #e8cd42;border-radius:13px;box-shadow:none;font-size:13px}.info-strip span{color:#b51e37;font-weight:900}
.catalog-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:28px}.catalog-heading p{font-size:11px;font-weight:900;letter-spacing:.14em;color:var(--red)}.catalog-heading h2{font-size:clamp(34px,4vw,48px);letter-spacing:-.045em;margin-top:6px}.catalog-heading>div>span{display:block;color:#59647c;font-size:15px;margin-top:8px}.catalog-heading>strong{border:1px solid #cfd6e5;border-radius:999px;padding:9px 12px;color:#55617b;font-size:10px;letter-spacing:.1em}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-top:0;align-items:stretch}.product-card,.product-card:first-child{grid-column:auto;display:flex;flex-direction:column;min-width:0;padding:14px;border:1px solid #dce2ed;border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(7,17,36,.075);overflow:hidden;transform:none}.product-card:hover{border-color:#aebbd1;transform:translateY(-3px);box-shadow:0 22px 48px rgba(7,17,36,.12)}.product-card.is-selected{border-color:#789cff;box-shadow:0 0 0 2px rgba(23,101,255,.1),0 18px 42px rgba(7,17,36,.1)}.product-card:first-child .product-visual,.product-visual{height:260px;border-radius:17px}.product-card:first-child .product-toy,.product-toy{transform:rotate(-7deg) scale(.9)}.product-card:first-child .product-copy,.product-copy{display:flex;flex:1;flex-direction:column;justify-content:flex-start;padding:22px 10px 10px}.product-card:first-child .product-copy h2,.product-copy h2{font-size:28px;line-height:1.15;letter-spacing:-.035em;margin-top:7px}.product-copy>p{font-size:10px;letter-spacing:.1em}.product-copy>span{min-height:76px;color:#536079;font-size:14px;line-height:1.65;margin-top:10px}.product-features{gap:7px;margin-top:16px}.product-features li{padding:7px 9px;border-radius:8px;background:#f3f5f9;color:#46526a;font-size:10px}.product-buy{display:grid;grid-template-columns:1fr;gap:14px;margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}.product-buy>div strong{font-size:32px}.product-buy .button{width:100%;min-width:0;white-space:normal;box-shadow:0 8px 20px rgba(255,36,72,.2)}.product-badge{top:26px;left:26px;padding:7px 10px;font-size:10px}
.product-assurance{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:70px;border:1px solid #dce2ed;border-radius:22px;background:#dce2ed;overflow:hidden}.product-assurance article{min-height:140px;background:#fff;padding:24px;display:flex;gap:14px}.product-assurance article>b{flex:0 0 34px;height:34px;border-radius:11px;background:var(--navy);color:var(--yellow);display:grid;place-items:center;font-size:10px}.product-assurance article>div{display:grid;align-content:start;gap:6px}.product-assurance strong{font-size:15px}.product-assurance span{font-size:12px;line-height:1.55;color:#66718a}
.comparison-card{margin-top:28px;background:#fff;border:1px solid #dce2ed;border-radius:24px;padding:28px;box-shadow:0 14px 38px rgba(7,17,36,.055)}.comparison-head{display:flex;justify-content:space-between;align-items:end;gap:24px;padding-bottom:22px}.comparison-head p{font-size:10px;font-weight:900;letter-spacing:.13em;color:var(--red)}.comparison-head h2{font-size:30px;margin-top:5px}.comparison-head>span{font-size:12px;color:#66718a}.comparison-row{display:grid;grid-template-columns:1.35fr 1.8fr .8fr .8fr .6fr;gap:12px;align-items:center;padding:15px 14px;border-top:1px solid var(--line);font-size:13px}.comparison-row.head{color:#7b8499;font-size:10px;font-weight:900}.comparison-row.recommended{background:#f2f6ff;border-radius:12px;border-top-color:transparent}.comparison-row strong i{font-style:normal;font-size:9px;background:var(--yellow);border-radius:999px;padding:4px 7px;margin-left:6px}.comparison-row b{text-align:right;font-size:17px}

.site-footer{padding-block:58px 24px}.site-footer .footer-grid{display:grid;grid-template-columns:1.35fr .65fr .85fr 1.15fr;align-items:start;gap:54px}.footer-brand-block>p{max-width:310px;color:#aeb9d6;font-size:13px;line-height:1.7;margin-top:18px}.footer-column,.footer-contact{display:grid;align-content:start;gap:10px}.footer-column>strong,.footer-contact>strong{font-size:14px;color:#fff;margin-bottom:6px}.footer-column button{border:0;background:transparent;color:#aeb9d6;text-align:left;padding:0;font-size:12px}.footer-column button:hover{color:var(--yellow)}.footer-column span,.footer-contact p{color:#aeb9d6;font-size:12px;line-height:1.55}.footer-line-button{margin-top:8px;justify-self:start;min-height:42px;background:var(--yellow);color:var(--ink);box-shadow:none}.footer-bottom{display:flex;justify-content:space-between;gap:20px;margin-top:42px;padding-top:20px;border-top:1px solid rgba(255,255,255,.12);color:#7886ac;font-size:11px}.line-fab{right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));border-radius:16px;padding:10px 13px;box-shadow:0 12px 28px rgba(11,140,0,.28)}body:has(#productsView.is-active) .line-fab{display:none}.toast{opacity:0;visibility:hidden;pointer-events:none}.toast:empty{display:none}.toast.is-visible{display:block;opacity:1;visibility:visible}

@media(max-width:1100px){
  :root{--page-gutter:28px;--section-space:80px}.hero{grid-template-columns:1fr;gap:20px}.hero-copy{max-width:720px}.hero-art{min-height:450px}.section-heading{grid-template-columns:1fr;gap:16px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-card:last-child{grid-column:1/-1;width:calc(50% - 12px);justify-self:center}.product-assurance{grid-template-columns:repeat(2,1fr)}#productsView .catalog-hero{grid-template-columns:1fr}.catalog-family-art{display:none}.site-footer .footer-grid{grid-template-columns:1.2fr .8fr .9fr}.footer-contact{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.12);padding-top:24px}}
@media(max-width:760px){
  :root{--page-gutter:20px;--section-space:64px}.shell{width:calc(100% - 40px)}.site-header{min-height:auto;padding:10px 16px;gap:10px}.brand strong{font-size:14px}.brand small{font-size:10px}.main-nav{margin-inline:-16px;padding-inline:16px}.nav-link{min-height:44px;font-size:12px}.mode-control button{min-height:40px;padding:6px 9px;font-size:9px}.hero{padding-block:48px 58px}.hero h1{font-size:clamp(39px,11vw,48px);line-height:1.16;letter-spacing:-.035em}.hero h1 em{display:inline;text-shadow:2px 2px 0 var(--blue)}.hero-lead{font-size:15px}.hero-art{min-height:380px}.section-block{padding-block:64px 44px}.featured-block{padding-block:44px 64px}.section-heading{margin-bottom:30px}.steps-grid,.featured-grid{grid-template-columns:1fr}.page-space{padding-block:28px 68px}.page-hero.compact h1{font-size:39px;line-height:1.15}.product-grid{grid-template-columns:1fr;gap:18px}.product-card:last-child{grid-column:auto;width:auto}.product-card,.product-card:first-child{width:100%;padding:12px}.product-card:first-child .product-visual,.product-visual{height:220px}.product-card:first-child .product-toy,.product-toy{transform:rotate(-7deg) scale(.82)}.product-card:first-child .product-copy,.product-copy{padding:20px 8px 8px}.product-copy>span{min-height:0}.product-buy{grid-template-columns:1fr}.product-buy .button{min-width:0;width:100%;min-height:50px}.product-assurance{grid-template-columns:1fr;margin-top:48px}.product-assurance article{min-height:0;padding:19px}.comparison-card{padding:18px;overflow:hidden}.comparison-head{display:grid;gap:5px}.comparison-row{grid-template-columns:1.3fr .7fr .7fr}.comparison-row>*:nth-child(2),.comparison-row>*:nth-child(3){display:none}.comparison-row b{text-align:right}.site-footer .footer-grid{grid-template-columns:1fr;gap:28px}.footer-contact{grid-column:auto}.footer-bottom{display:grid}.line-fab{width:54px;height:54px;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));border-radius:50%;padding:0;place-items:center;text-align:center}.line-fab i{display:none}.line-fab span{font-size:11px}#productsView{padding-top:24px;padding-bottom:36px}#productsView .catalog-hero{min-height:0;grid-template-columns:1fr;padding:30px 24px;border-radius:22px}.catalog-hero-copy h1{font-size:36px;line-height:1.3;letter-spacing:-.02em}.catalog-hero-copy h1 em{text-shadow:none}.catalog-hero-copy>p:not(.eyebrow){font-size:14px}.catalog-family-art{display:none}#productsView .info-strip{justify-content:flex-start;flex-wrap:wrap;margin:16px 0 44px;padding:14px 16px;line-height:1.65}.catalog-heading{align-items:start;margin-bottom:22px}.catalog-heading h2{font-size:34px}.catalog-heading>strong{display:none}}
@media(max-width:390px){:root{--page-gutter:20px}.shell{width:calc(100% - 40px)}.mode-control{max-width:142px}.mode-control button{padding-inline:7px}.product-card:first-child .product-visual,.product-visual{height:205px}.catalog-heading h2{font-size:31px}}

/* Direct Facebook Messenger contact */
.product-card{min-width:0}
@media(max-width:760px){.product-card:last-child{width:100%;justify-self:stretch}}
.messenger-button{border-color:#4f8dff;color:#dbeafe;background:rgba(8,102,255,.12)}.messenger-button:hover{background:#0866ff;color:#fff;border-color:#0866ff}.catalog-contact{margin-top:18px;min-height:44px;background:#0866ff;color:#fff;border-color:#0866ff}.footer-facebook-button{margin-top:8px;justify-self:start;min-height:44px;background:#0866ff;color:#fff;box-shadow:none}.footer-facebook-button:hover{background:#0058e6}.footer-line-button{margin-top:2px;background:transparent;color:#dce6ff;border-color:rgba(255,255,255,.25)}
.contact-fabs{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:45;display:grid;justify-items:end;gap:8px}.contact-fabs .line-fab{position:static;right:auto;bottom:auto;width:54px;height:54px;padding:0;border-radius:50%;place-items:center;text-align:center}.contact-fabs .line-fab i{display:none}.website-chat-fab{width:58px;height:58px;min-height:58px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:var(--red);color:#fff;box-shadow:0 12px 26px rgba(255,55,75,.34);transition:transform .18s ease,background .18s ease}.website-chat-fab:hover{transform:translateY(-2px);background:#e51f3a}.website-chat-fab b{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--red);font-size:20px;line-height:1}.website-chat-fab span,.website-chat-fab i{display:none}body:has(#productsView.is-active) .contact-fabs{display:none}
@media(max-width:760px){.contact-fabs{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}.website-chat-fab,.contact-fabs .line-fab{width:52px;height:52px;min-height:52px}.website-chat-fab b{width:34px;height:34px}.footer-facebook-button,.footer-line-button{width:100%;justify-content:center}}

/* Minimade first-party website chat */
.website-chat-backdrop{position:fixed;inset:0;z-index:70;background:rgba(3,8,20,.48);backdrop-filter:blur(3px)}.website-chat-backdrop[hidden]{display:none!important}.website-chat-drawer{position:fixed;z-index:71;top:0;right:0;width:min(420px,100vw);height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f7f8fc;color:var(--ink);box-shadow:-24px 0 70px rgba(3,8,20,.34);transform:translateX(105%);visibility:hidden;pointer-events:none;transition:transform .24s ease,visibility .24s}.website-chat-drawer.is-open{transform:translateX(0);visibility:visible;pointer-events:auto}.website-chat-head{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(12px + env(safe-area-inset-top)) 14px 12px;background:linear-gradient(135deg,var(--red),#ff7651);color:#fff}.website-chat-head>div{display:flex;align-items:center;gap:11px;min-width:0}.website-chat-head>div>b{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:14px;background:#fff;color:var(--red);font:900 15px/1 'DM Sans',sans-serif;box-shadow:4px 4px 0 #111d39}.website-chat-head span{display:grid;min-width:0}.website-chat-head strong{font-size:15px}.website-chat-head small{font-size:10px;opacity:.9;margin-top:3px;display:flex;align-items:center;gap:5px}.chat-online-dot{width:7px;height:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 3px rgba(175,255,51,.2)}.website-chat-head button{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:28px;line-height:1}.website-chat-connect{align-self:stretch;align-content:start;min-height:0;overflow:auto;display:grid;gap:14px;padding:36px 28px 28px}.website-chat-connect h2{font-size:24px;letter-spacing:-.04em}.website-chat-connect>p{color:var(--muted);font-size:13px;line-height:1.6}.chat-welcome-icon{font-size:40px}.website-chat-connect label{display:grid;gap:7px}.website-chat-connect label>span{font-size:12px;font-weight:900}.website-chat-connect label>span em{color:var(--red);font-style:normal}.website-chat-connect input,.chat-compose textarea,.admin-chat-auth input{width:100%;border:1px solid #cfd5e3;border-radius:13px;background:#fff;color:var(--ink);padding:12px 13px;font:inherit;outline:none}.website-chat-connect input:focus,.chat-compose textarea:focus,.admin-chat-auth input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,102,255,.12)}.chat-privacy{color:#59657c;font-size:10px;line-height:1.55}.website-chat-conversation{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto}.website-chat-conversation[hidden]{display:none!important}.chat-messages{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:9px;padding:16px}.chat-message{max-width:82%;display:grid;gap:4px;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #e1e5ee;align-self:flex-start;box-shadow:0 4px 12px rgba(9,19,42,.05)}.chat-message.customer{align-self:flex-end;background:#e9f1ff;border-color:#c8dcff}.chat-message.admin{align-self:flex-start}.chat-message strong{font-size:10px}.chat-message p{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message time{font-size:8px;color:var(--muted)}.chat-empty{margin:auto;text-align:center;color:var(--muted);font-size:12px;padding:25px}.chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-top:1px solid #dde3ef;background:#fff}.chat-compose textarea{resize:none;min-height:48px;max-height:120px}.chat-compose .button{align-self:stretch;min-width:64px;box-shadow:none}.website-chat-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #dce2ee;background:#fff;font-size:10px;color:#4f5d75}.website-chat-foot a{min-height:44px;display:flex;align-items:center;color:#0866ff;font-weight:900;text-decoration:none}.website-chat-foot .is-error{color:#c81d35}body.website-chat-open{overflow:hidden}
.chat-nav-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding-inline:4px;border-radius:999px;background:var(--red);color:#fff;font-size:8px;margin-left:3px}.admin-chat-auth{margin-top:20px;padding:20px;background:#fff;border:1px solid var(--line);border-radius:22px;display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;align-items:end}.admin-chat-auth label{display:grid;gap:6px}.admin-chat-auth label span{font-size:10px;font-weight:900}.admin-chat-auth>small{grid-column:1/-1;color:var(--muted);font-size:9px}.admin-chat-layout{display:grid;grid-template-columns:320px minmax(0,1fr);height:min(680px,calc(100dvh - 230px));min-height:480px;margin-top:20px;background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}.admin-chat-auth[hidden],.admin-chat-layout[hidden]{display:none!important}.admin-chat-list{overflow:auto;border-right:1px solid var(--line);background:#f7f8fc}.admin-chat-item{width:100%;display:grid;grid-template-columns:1fr auto;gap:5px 9px;padding:15px;text-align:left;border:0;border-bottom:1px solid #e0e5ef;background:transparent;color:var(--ink)}.admin-chat-item:hover{background:#fff}.admin-chat-item.is-active{background:#fff;border-left:5px solid var(--red);padding-left:10px}.admin-chat-item strong{font-size:13px}.admin-chat-item small{font-size:11px;color:#59657c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-chat-item time{font-size:10px;color:#59657c}.admin-chat-item i{min-width:19px;height:19px;display:grid;place-items:center;border-radius:50%;background:var(--red);color:#fff;font-size:8px;font-style:normal}.admin-chat-thread{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.admin-chat-thread>header{min-height:66px;padding:14px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center}.admin-chat-thread>header div{display:grid;gap:4px}.admin-chat-thread>header strong{font-size:14px}.admin-chat-thread>header small{font-size:9px;color:var(--muted)}.admin-chat-messages .chat-message.admin{align-self:flex-end;background:#fff1e8;border-color:#ffd0b3}.chat-api-state.is-online{color:var(--lime);border-color:rgba(175,255,51,.45)}.chat-api-state.is-offline{color:#ff96a4;border-color:rgba(255,55,75,.45)}body[data-mode="admin"] .contact-fabs{display:none}.website-chat-drawer :focus-visible,.admin-chat-layout :focus-visible{outline:3px solid var(--blue);outline-offset:2px}.admin-chat-thread>header small{font-size:11px;color:#59657c}.chat-message p{font-size:14px}.chat-message time{font-size:10px;color:#59657c}
@media(max-width:760px){.website-chat-drawer{width:100vw}.website-chat-head{min-height:68px;padding:calc(8px + env(safe-area-inset-top)) 10px 8px}.website-chat-connect{padding:22px}.admin-chat-auth{grid-template-columns:1fr}.admin-chat-layout{grid-template-columns:1fr;height:auto;min-height:0}.admin-chat-list{max-height:230px;border-right:0;border-bottom:1px solid var(--line)}.admin-chat-thread{height:520px}.website-chat-foot{font-size:10px}}
.admin-order-files{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.admin-order-files .button{min-height:38px;padding:7px 10px;font-size:9px}.admin-order-files>span{color:var(--muted);font-size:10px}
.admin-order-sync,.admin-heading-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.admin-order-sync{margin-top:10px}.sync-badge{min-height:36px;border:1px solid var(--line);border-radius:999px;padding:7px 11px;background:#fff;color:var(--ink);font:800 9px/1 var(--font-body);cursor:pointer}.sync-badge.succeeded{border-color:#33c778;background:#eafff2;color:#087a3c}.sync-badge.running{border-color:#2f68ff;background:#edf2ff;color:#1746bd}.sync-badge.failed{border-color:#f34235;background:#fff0ee;color:#b21d14}.sync-badge.pending{border-color:#f1b51b;background:#fff8dc;color:#875d00}@media(max-width:760px){.admin-heading-actions{width:100%}.admin-heading-actions .button{flex:1;min-height:44px}.sync-badge{min-height:44px}}

/* Full-viewport customer customizer — approved layout C */
body[data-view="customizerView"]{overflow:hidden}
body[data-view="customizerView"] .contact-fabs{display:none}
#customizerView.customizer-workspace{width:100%;max-width:none;height:calc(100dvh - var(--site-header-height,78px));min-width:0;min-height:0;margin:0;padding:12px clamp(12px,1.4vw,22px);grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:hidden;background:#edf1f8}
#customizerView.customizer-workspace.is-active{display:grid}
#customizerView .customizer-topbar{min-width:0;min-height:0;margin:0;padding:0 2px;align-items:center}
#customizerView .customizer-topbar>div{min-width:0}
#customizerView .customizer-topbar .eyebrow{margin:0 0 2px;font-size:9px}
#customizerView .customizer-topbar h1{margin:0;font-size:clamp(22px,2.1vw,31px);line-height:1.05}
#customizerView .customizer-topbar>div>p:last-child{margin-top:4px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#customizerView .customizer-topbar>.button{min-height:44px;padding:9px 15px}












#productsView .catalog-category-tabs{display:flex;gap:8px;margin:34px 0 22px}.catalog-category-tabs button{min-height:42px;padding:9px 16px;border:1px solid #cfd7e7;border-radius:999px;background:#fff;color:#536079;font-weight:900;font-size:12px}.catalog-category-tabs button.is-active{border-color:var(--navy);background:var(--navy);color:#fff}.product-grid[hidden]{display:none!important}.keychain-art{display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,#fff8d5,#f3b238)}.keychain-art.purple{background:radial-gradient(circle at 50% 35%,#f2eaff,#9a78df)}.keychain-art.blue{background:radial-gradient(circle at 50% 35%,#e7f8ff,#48a5df)}.catalog-keychain{position:relative;min-width:170px;padding:28px 32px;border:7px solid rgba(8,20,53,.22);border-radius:26px;background:#ffe789;color:#1a2443;font-weight:900;font-size:24px;text-align:center;transform:rotate(-6deg);box-shadow:inset 8px 8px 12px rgba(255,255,255,.45),0 18px 22px rgba(7,17,36,.22)}.catalog-keychain.bubble{border-radius:52px}.catalog-keychain.mini{min-width:140px;font-size:18px}.catalog-keychain i{position:absolute;right:15px;top:13px;width:21px;height:21px;border:6px solid #fff9df;border-radius:50%;background:#2f4169}.related-presets{border-top:1px solid var(--line);padding-top:12px}.related-presets>p{font-size:10px;font-weight:900;letter-spacing:.12em;color:#59647c;margin-bottom:8px}.related-presets>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.related-presets button{min-width:0;padding:9px;border:1px solid #dce2ed;border-radius:11px;background:#f7f9fe;color:var(--ink);text-align:left;display:grid;gap:3px}.related-presets button:hover{border-color:var(--blue);background:#fff}.related-presets b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.related-presets span{font-size:9px;color:var(--muted)}

.three-preview{position:relative;min-height:420px;display:grid;place-items:stretch;overflow:hidden;border-radius:20px;background:radial-gradient(120% 90% at 50% 16%,#ffffff 0%,#eef3fb 44%,#dae5f6 100%)}.three-preview #customerModelCanvas{position:relative;z-index:1;width:100%;height:100%;min-height:420px}.three-preview p{position:absolute;right:14px;bottom:12px;left:14px;margin:0;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.86);color:#3d4a64;font-size:11px;font-weight:700;pointer-events:none;z-index:2}.three-preview #customerPreviewStatus{top:12px;bottom:auto}

#customizerView .customer-configurator{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:14px;overflow:auto;padding-bottom:4px}.customer-preview-panel,.customer-controls{border:1px solid #dbe2ee;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(7,17,36,.08);overflow:hidden}.customer-preview-panel{min-height:550px;display:grid;grid-template-rows:44px minmax(0,1fr) auto;background:var(--navy)}.preview-toolbar{height:44px;padding-inline:15px;display:flex;align-items:center;justify-content:space-between;color:#fff;border-bottom:1px solid var(--dark-line)}.preview-toolbar span{font-size:10px;font-weight:900;letter-spacing:.13em}.preview-toolbar span i{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 10px var(--lime)}.preview-toolbar small{color:#aab8dc;font-size:10px}.customer-preview{position:relative;min-height:0;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 52% 35%,#edf6ff 0 12%,#cfddff 35%,#9cb3e7 100%)}.customer-preview::before{content:"";position:absolute;width:70%;aspect-ratio:1;border:1px solid rgba(255,255,255,.55);border-radius:50%;box-shadow:0 0 0 34px rgba(255,255,255,.1),0 0 0 70px rgba(255,255,255,.07)}.preview-product{position:relative;z-index:1}.clicker-preview{width:min(51vw,350px);height:215px;border:9px solid rgba(6,16,39,.24);border-radius:62px;background:linear-gradient(145deg,#ff4763,#b90e3e);box-shadow:inset 13px 13px 20px rgba(255,255,255,.3),inset -12px -12px 16px rgba(73,0,21,.2),0 30px 45px rgba(7,17,36,.28);display:flex;justify-content:center;gap:20px;padding-top:45px;transform:rotate(-7deg);transition:.25s ease}.clicker-preview i{width:61px;height:61px;border-radius:21px;background:#29d3ff;box-shadow:inset 8px 8px 11px rgba(255,255,255,.5),0 7px 0 rgba(0,0,0,.18)}.clicker-preview i:nth-child(2){background:var(--yellow)}.clicker-preview i:nth-child(3){background:var(--lime)}.clicker-preview strong{position:absolute;bottom:29px;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:18px;letter-spacing:.1em;text-shadow:0 2px 0 rgba(0,0,0,.2)}.keychain-preview{display:none;width:min(58vw,380px);min-height:165px;padding:28px 54px;border:9px solid rgba(6,16,39,.22);border-radius:38px;background:linear-gradient(145deg,#ffefb0,#e6a91b);box-shadow:inset 12px 12px 17px rgba(255,255,255,.45),0 30px 45px rgba(7,17,36,.25);transform:rotate(-5deg);align-items:center;justify-content:center}.keychain-preview span{font-size:clamp(24px,4vw,43px);font-weight:900;letter-spacing:.04em;color:#1a2443;word-break:break-all;text-align:center}.keychain-preview i{position:absolute;right:22px;top:20px;width:34px;height:34px;border-radius:50%;border:9px solid #fff3c9;background:#31446d}.customer-preview[data-family="keychain"] .clicker-preview{display:none}.customer-preview[data-family="keychain"] .keychain-preview{display:flex}.customer-preview[data-color="blue"] .clicker-preview{background:linear-gradient(145deg,#39bdf2,#1459d2)}.customer-preview[data-color="purple"] .clicker-preview{background:linear-gradient(145deg,#9c6bff,#5234ad)}.customer-preview[data-color="cream"] .clicker-preview{background:linear-gradient(145deg,#fff1bd,#e3a72b)}.customer-preview[data-color="blue"] .keychain-preview{background:linear-gradient(145deg,#a7e9ff,#3395e7)}.customer-preview[data-color="purple"] .keychain-preview{background:linear-gradient(145deg,#d7c6ff,#8e6de2)}.customer-preview[data-color="cream"] .keychain-preview{background:linear-gradient(145deg,#fff9db,#e7c76b)}.customer-preview[data-size="large"] .preview-product{transform:rotate(-7deg) scale(1.12)}.customer-preview[data-family="keychain"][data-size="large"] .preview-product{transform:rotate(-5deg) scale(1.12)}.preview-spark{position:absolute;z-index:1;color:#fff;font-size:32px;text-shadow:0 5px 14px rgba(25,43,94,.3)}.spark-one{top:18%;left:18%}.spark-two{right:17%;bottom:20%;font-size:23px}.customer-preview>p{position:absolute;z-index:2;bottom:18px;padding:8px 12px;border-radius:999px;background:rgba(8,20,53,.68);color:#fff;font-size:11px;font-weight:800;backdrop-filter:blur(6px)}.preview-note{padding:12px 15px;display:grid;gap:3px;background:#fff;color:var(--ink)}.preview-note b{font-size:11px}.preview-note span{font-size:10px;color:var(--muted)}.customer-controls{padding:22px;display:grid;align-content:start;gap:14px;overflow:auto}.config-heading{padding-bottom:14px;border-bottom:1px solid var(--line)}.config-heading p{font-size:10px;font-weight:900;letter-spacing:.13em;color:var(--red)}.config-heading h2{font-size:27px;letter-spacing:-.04em;margin-top:5px}.config-heading span{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.5}.customer-controls label:not(.keyring-control){display:grid;gap:6px}.customer-controls label>span{font-size:11px;font-weight:900}.customer-controls select,.customer-controls input[type="text"]{width:100%;min-height:43px;border:1px solid #cdd4e3;border-radius:12px;background:#f9fafe;padding:10px 12px;color:var(--ink);font:inherit}.customer-controls small{color:var(--muted);font-size:10px}.config-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.keyring-control{display:flex;gap:10px;align-items:center;padding:12px;border:1px solid #dce2ed;border-radius:13px;background:#f7f9fe;cursor:pointer}.keyring-control input{width:18px;height:18px;accent-color:var(--red)}.keyring-control span{display:grid;gap:3px}.keyring-control b{font-size:11px}.keyring-control small{font-size:10px}.customer-controls .button{min-height:48px;margin-top:2px}.config-state{min-height:15px;text-align:center;color:#53617d;font-size:10px}.config-safe-note{padding:11px 12px;border-radius:12px;background:#eef7e7;border:1px solid #c8e7b8;display:grid;gap:3px}.config-safe-note b{font-size:10px;color:#2d7416}.config-safe-note span{font-size:9px;color:#54724b;line-height:1.45}@media(max-width:900px){#customizerView.customizer-workspace{height:auto;min-height:calc(100dvh - var(--site-header-height,78px));overflow:visible}body[data-view="customizerView"]{overflow:auto}#customizerView .customer-configurator{grid-template-columns:1fr;overflow:visible}.customer-preview-panel{min-height:480px}.customer-controls{overflow:visible}}@media(max-width:600px){#customizerView .customer-configurator{gap:10px}.customer-preview-panel{min-height:400px}.customer-controls{padding:17px}.config-two-col{grid-template-columns:1fr}.preview-toolbar small{display:none}.clicker-preview{width:270px;height:175px;padding-top:36px;gap:13px;border-radius:50px}.clicker-preview i{width:48px;height:48px;border-radius:17px}.keychain-preview{width:290px;min-height:135px}.customer-preview>p{font-size:9px;max-width:85%;text-align:center}.preview-spark{font-size:24px}}




@media(max-width:760px){
  #customizerView.customizer-workspace{height:calc(100dvh - var(--site-header-height,118px));padding:7px 8px calc(7px + env(safe-area-inset-bottom));gap:7px}
  #customizerView .customizer-topbar{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  #customizerView .customizer-topbar .eyebrow,#customizerView .customizer-topbar>div>p:last-child{display:none}
  #customizerView .customizer-topbar h1{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #customizerView .customizer-topbar>.button{width:auto;min-height:44px;padding:7px 11px;font-size:10px;white-space:nowrap}





}
@media(max-width:390px){
  #customizerView .customizer-topbar h1{font-size:17px}
  #customizerView .customizer-topbar>.button{font-size:0}
  #customizerView .customizer-topbar>.button::after{content:'← สินค้า';font-size:10px}


}

/* Legacy Facebook Page drawer styles retained for old cached markup */
.facebook-chat-backdrop{position:fixed;inset:0;z-index:70;background:rgba(3,8,20,.48);backdrop-filter:blur(3px)}.facebook-chat-backdrop[hidden]{display:none!important}.facebook-chat-drawer{position:fixed;z-index:71;top:0;right:0;width:min(420px,100vw);height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff;color:var(--ink);box-shadow:-24px 0 70px rgba(3,8,20,.34);transform:translateX(105%);visibility:hidden;pointer-events:none;transition:transform .24s ease,visibility .24s}.facebook-chat-drawer.is-open{transform:translateX(0);visibility:visible;pointer-events:auto}.facebook-chat-head{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:calc(12px + env(safe-area-inset-top)) 14px 12px;background:#0866ff;color:#fff}.facebook-chat-head>div{display:flex;align-items:center;gap:11px;min-width:0}.facebook-chat-head>div>b{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#0866ff;font:900 28px/1 Arial,sans-serif}.facebook-chat-head span{display:grid;min-width:0}.facebook-chat-head strong{font-size:15px}.facebook-chat-head small{font-size:10px;opacity:.82;margin-top:3px}.facebook-chat-head button{width:44px;height:44px;flex:0 0 44px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:28px;line-height:1}.facebook-chat-frame{min-height:0;overflow:hidden;background:#f0f2f5;display:grid;align-items:stretch;justify-items:center}.facebook-chat-frame iframe{display:block;width:380px;max-width:100%;height:100%;min-height:520px;border:0;background:#fff}.facebook-chat-foot{display:grid;gap:4px;padding:10px 14px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #dce2ee;background:#fff;font-size:10px;color:#5f6b82}.facebook-chat-foot a{min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#0866ff;color:#fff;font-size:12px;font-weight:900;text-decoration:none}.facebook-chat-foot a:hover{background:#0058e6;text-decoration:none}body.facebook-chat-open{overflow:hidden}@media(max-width:520px){.facebook-chat-drawer{width:100vw}.facebook-chat-head{min-height:64px;padding:calc(8px + env(safe-area-inset-top)) 10px 8px}.facebook-chat-frame iframe{min-height:480px}}

/* Order Tracking View & Timeline */
.track-search-card{background:rgba(10,23,45,.85);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:24px;max-width:680px;margin:0 auto 28px;backdrop-filter:blur(10px)}
.track-input-group{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(140px,.7fr) auto;gap:12px;align-items:center}
.track-input-group input{width:100%;min-width:0;min-height:50px;border-radius:12px;border:1px solid rgba(255,255,255,.16);background:rgba(3,8,20,.6);color:#fff;padding:0 18px;font-size:15px;outline:none}
.track-form .field-hint{margin:10px 2px 0;color:rgba(255,255,255,.62);font-size:13px}
@media(max-width:620px){.track-input-group{grid-template-columns:1fr}.track-input-group .button{min-height:50px;width:100%}}
.track-input-group input:focus{border-color:#29d3ff;box-shadow:0 0 0 2px rgba(41,211,255,.25)}
.track-result-wrap{max-width:720px;margin:0 auto}
.track-card{background:rgba(10,23,45,.9);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:28px;backdrop-filter:blur(12px);box-shadow:0 20px 40px rgba(0,0,0,.4)}
.track-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;border-bottom:1px solid rgba(255,255,255,.08);padding-bottom:18px}
.track-meta-label{font-size:12px;color:rgba(255,255,255,.5);text-transform:uppercase;letter-spacing:1px;margin-bottom:4px}
.track-card-header h2{font-size:24px;font-weight:800;color:#fff;letter-spacing:.5px}
.track-timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:28px;position:relative}
.track-step{display:flex;flex-direction:column;align-items:center;text-align:center;position:relative}
.track-step::before{content:'';position:absolute;top:18px;left:-50%;width:100%;height:3px;background:rgba(255,255,255,.12);z-index:1}
.track-step:first-child::before{display:none}
.track-step.is-active::before{background:#10b981}
.step-num{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.1);color:rgba(255,255,255,.5);display:grid;place-items:center;font-weight:700;font-size:14px;position:relative;z-index:2;margin-bottom:8px;border:2px solid transparent}
.track-step.is-active .step-num{background:#10b981;color:#fff;box-shadow:0 0 15px rgba(16,185,129,.4)}
.step-info strong{display:block;font-size:13px;color:#fff;margin-bottom:2px}
.step-info small{display:block;font-size:10px;color:rgba(255,255,255,.6);line-height:1.2}
.track-shipping-card{background:linear-gradient(135deg,rgba(16,185,129,.15),rgba(41,211,255,.1));border:1px solid rgba(16,185,129,.35);border-radius:16px;padding:20px;margin-bottom:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.shipping-head{display:flex;align-items:center;gap:14px}
.truck-icon{font-size:32px}
.shipping-head h3{font-size:16px;color:#fff;margin-bottom:4px}
.tracking-no-code{font-family:monospace;font-size:17px;color:#29d3ff;letter-spacing:1px}
.shipping-actions{display:flex;gap:10px;align-items:center}
.track-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;background:rgba(0,0,0,.25);padding:18px;border-radius:14px;font-size:13px}
.track-detail-grid span{color:rgba(255,255,255,.5);margin-right:6px}
.track-detail-grid strong{color:#fff}
.track-not-found{text-align:center;padding:40px 20px;background:rgba(10,23,45,.8);border-radius:18px;border:1px solid rgba(255,255,255,.1)}
.ship-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.courier-select,.tracking-input{min-height:38px;border-radius:8px;border:1px solid rgba(255,255,255,.18);background:#071124;color:#fff;padding:4px 10px;font-size:12px}
.tracking-input{flex:1;min-width:180px}
@media(max-width:640px){
  .track-timeline{grid-template-columns:1fr;gap:16px;align-items:flex-start}
  .track-step{flex-direction:row;gap:14px;text-align:left}
  .track-step::before{top:-16px;left:17px;width:3px;height:100%}
  .shipping-actions{width:100%;justify-content:stretch}
  .shipping-actions .button{flex:1;text-align:center}
}

/* Customer Auth & Google Login Bar */
.customer-auth-bar{display:flex;align-items:center;margin-left:auto;margin-right:12px}
.button-google-login{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:20px;background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.18);font-size:12px;font-weight:600;cursor:pointer;transition:all .2s ease}
.button-google-login:hover{background:rgba(255,255,255,.15);border-color:#4285f4;box-shadow:0 0 10px rgba(66,133,244,.3)}
.customer-profile-pill{display:inline-flex;align-items:center;gap:8px;background:rgba(10,23,45,.85);border:1px solid rgba(41,211,255,.3);border-radius:24px;padding:4px 8px 4px 6px}
.customer-profile-pill[hidden],#customerLoggedOut[hidden],#customerLoggedIn[hidden]{display:none!important}
.customer-avatar{border-radius:50%;border:1px solid #29d3ff;object-fit:cover}
.customer-name{font-size:12px;font-weight:700;color:#fff;max-width:110px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-logout-btn{background:transparent;border:0;color:rgba(255,255,255,.5);cursor:pointer;font-size:14px;padding:2px 6px;line-height:1}
.customer-logout-btn:hover{color:#ff5b6b}
.admin-logout-btn{background:rgba(255,91,107,.15);border:1px solid rgba(255,91,107,.4);color:#ff5b6b;border-radius:8px;padding:4px 10px;font-size:11px;font-weight:700;cursor:pointer;margin-left:6px;transition:all .2s}
.admin-logout-btn:hover{background:rgba(255,91,107,.25);color:#fff}

/* Admin Login & My Orders Modals */
.admin-login-dialog, .my-orders-dialog{border:0;border-radius:20px;padding:0;background:transparent;max-width:480px;width:90vw;margin:auto}
.admin-login-dialog::backdrop, .my-orders-dialog::backdrop{background:rgba(3,8,20,.7);backdrop-filter:blur(6px)}
.admin-login-card, .my-orders-card{background:#0a172d;border:1px solid rgba(255,255,255,.15);border-radius:20px;padding:28px;color:#fff;box-shadow:0 24px 60px rgba(0,0,0,.6)}
.admin-login-head, .my-orders-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.admin-login-card h2, .my-orders-card h2{font-size:20px;font-weight:800;margin-bottom:6px}
.admin-login-card p, .my-orders-card p{font-size:13px;color:rgba(255,255,255,.6);margin-bottom:18px}
.remember-row{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer;color:rgba(255,255,255,.8);margin-top:6px}
.remember-row input{width:16px;height:16px;accent-color:#29d3ff}
.auth-error-msg{background:rgba(255,91,107,.15);border:1px solid rgba(255,91,107,.4);color:#ff8b94;padding:10px 14px;border-radius:8px;font-size:13px;margin:12px 0}
.my-orders-dialog{max-width:620px}
.my-orders-list{display:flex;flex-direction:column;gap:12px;max-height:60vh;overflow-y:auto;padding-right:4px;margin-bottom:20px}
.my-order-item{background:rgba(3,8,20,.6);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}
.my-order-item-head{display:flex;justify-content:space-between;align-items:center}
.my-order-item-head strong{font-size:15px;color:#29d3ff;font-family:monospace}
.my-order-item-body{display:flex;justify-content:space-between;align-items:flex-end;font-size:13px;color:rgba(255,255,255,.8)}
.my-order-item-shipping{background:rgba(16,185,129,.12);border:1px solid rgba(16,185,129,.3);border-radius:10px;padding:8px 12px;font-size:12px;display:flex;justify-content:space-between;align-items:center}
@media(max-width:768px){
  .customer-auth-bar{order:3;width:100%;justify-content:center;margin:8px 0}
}


.customerPreviewShell{display:grid;place-items:center;gap:12px;min-height:260px;padding:28px;border:1px dashed rgba(255,255,255,.45);border-radius:24px;background:rgba(255,255,255,.14);text-align:center}.customerPreviewLink{display:inline-flex;min-height:44px;align-items:center;padding:10px 16px;border-radius:999px;background:#fff;color:#19284a;font-weight:900;text-decoration:none}.customerPreviewShell p{max-width:560px;margin:0;color:#eef4ff;font-weight:700}
@keyframes productReelScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
@keyframes floatGentle{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes floatSatRight{0%,100%{transform:translateY(0) rotate(5deg)}50%{transform:translateY(-7px) rotate(7deg)}}
@keyframes floatSatLeft{0%,100%{transform:translateY(0) rotate(-6deg)}50%{transform:translateY(-6px) rotate(-4deg)}}
@keyframes pulseDot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.85)}}
@keyframes twinkleSpark{0%,100%{opacity:.85;transform:scale(1) rotate(0deg)}50%{opacity:.2;transform:scale(.6) rotate(15deg)}}

/* Admin member directory. */
.member-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}
.member-stats article{display:grid;gap:5px;padding:20px;border:1px solid var(--line);border-radius:22px;background:#fff}
.member-stats span{color:var(--muted);font-size:12px;font-weight:800}.member-stats strong{font-size:38px;letter-spacing:-.05em}.member-stats small{color:var(--muted)}
.members-panel{padding:0;overflow:hidden}.members-toolbar{padding:20px 22px}.members-toolbar label{width:min(320px,45%)}
.members-toolbar input{width:100%;min-height:42px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:#f7f8fb}
.admin-members-list{overflow-x:auto}.member-table{width:100%;border-collapse:collapse}.member-table th,.member-table td{padding:14px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.member-table th{color:var(--muted);font-size:9px;letter-spacing:.1em;text-transform:uppercase;background:#f7f8fb}.member-table td{font-size:12px}
.member-identity{display:flex;align-items:center;gap:10px;min-width:220px}.member-identity img,.member-avatar-placeholder{width:38px;height:38px;flex:0 0 38px;border-radius:50%;object-fit:cover;background:#ffe0cd;display:grid;place-items:center;font-weight:900;color:#9a3f17}
.member-identity span{display:grid;gap:2px}.member-identity small{color:var(--muted)}.member-role{display:inline-flex;padding:5px 8px;border-radius:999px;background:#edf2ff;color:#1d4eb0;font-size:9px;font-weight:900}.member-role.admin{background:#ffe8cf;color:#964000}
@media(max-width:760px){.member-stats{grid-template-columns:1fr}.members-toolbar{align-items:stretch}.members-toolbar label{width:100%}}

/* Studio 3D workspace embed */
#studioView.studio-workspace{display:none;width:100%;max-width:100%;padding:0;margin:0;box-sizing:border-box}
#studioView.studio-workspace.is-active{display:block}
.studio-embed-wrapper{width:100%;height:calc(100vh - var(--site-header-height, 78px));min-height:680px;background:#0d1117;position:relative;overflow:hidden}
.studio-embedded-frame{width:100%;height:100%;border:none;display:block}
body[data-view="studioView"]{overflow:hidden}
@media(max-width:860px){
  .studio-embed-wrapper{height:calc(100vh - var(--site-header-height, 70px) - 64px);min-height:560px}
  body[data-view="studioView"]{overflow:auto}
}

/* Checkout 3D Design Showcase & Accessory Hardware Options */
.checkout-title-actions { display: flex; align-items: center; gap: 12px; }
.checkout-back-studio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1a1a24;
  border: 1px solid #d4d4db;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}
.checkout-back-studio-btn:hover {
  background: #f0f0f5;
  border-color: #5433eb;
  color: #5433eb;
  transform: translateX(-2px);
}

.checkout-design-showcase {
  margin-bottom: 24px;
}
.showcase-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e5e5ea;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  align-items: center;
}
.showcase-snapshot-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #181926 0%, #0e0f17 100%);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #282a3c;
}
.showcase-snapshot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.showcase-snapshot-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #00e5a3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 163, 0.35);
}
.showcase-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.showcase-sub {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #787574;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.showcase-header h3 {
  margin: 2px 0 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #111116;
}
.showcase-price-tag {
  background: #f0edff;
  color: #5433eb;
  font-size: 18px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(84, 51, 235, 0.15);
}
.showcase-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}
.showcase-badge-item {
  background: #f7f7f9;
  border: 1px solid #ebebed;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.showcase-badge-item small {
  font-size: 10px;
  font-weight: 600;
  color: #888894;
}
.showcase-badge-item strong {
  font-size: 13px;
  font-weight: 700;
  color: #22222a;
}
.showcase-text-badge {
  color: #5433eb !important;
  letter-spacing: .05em;
}
.showcase-color-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.showcase-color-badge i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.showcase-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px dashed #e8e8ee;
  margin-top: 2px;
}
.button-link-back {
  background: transparent;
  border: none;
  color: #5433eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all .15s ease;
}
.button-link-back:hover {
  background: #ede9fe;
}
.showcase-status-confirmed {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
}

/* Accessory hardware picker */
.accessory-selection-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #ebebed;
}
.accessory-box-head {
  margin-bottom: 12px;
}
.accessory-box-head label span {
  font-size: 13px;
  font-weight: 700;
  color: #111116;
}
.accessory-box-head small {
  display: block;
  font-size: 11px;
  color: #787574;
  margin-top: 2px;
}
.accessory-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.accessory-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fbfbfc;
  border: 1.5px solid #e5e5ec;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s ease;
  position: relative;
}
.accessory-option input[type="radio"] {
  display: none;
}
.accessory-option:hover {
  border-color: #c7c5d8;
  background: #ffffff;
}
.accessory-option.is-active {
  border-color: #5433eb;
  background: #fcfaff;
  box-shadow: 0 2px 10px rgba(84, 51, 235, 0.08);
}
.accessory-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.accessory-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.accessory-info strong {
  font-size: 12px;
  font-weight: 700;
  color: #1e1e24;
}
.accessory-info small {
  font-size: 10px;
  color: #71717e;
}
.accessory-price {
  font-size: 12px;
  font-weight: 800;
  color: #5433eb;
}

@media(max-width: 768px) {
  .showcase-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .showcase-snapshot-wrap {
    height: 160px;
  }
  .accessory-options-grid {
    grid-template-columns: 1fr;
  }
}

/* Studio Footer Display Rule */
body[data-view="studioView"] .site-footer,
body:has(#studioView.is-active) .site-footer {
  display: none !important;
}

/* Rich Marquee Ticker & Modern How It Works Section */
.marquee-content-rich {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}
.marquee-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--shop-ink, #0b0b0c);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.marquee-bullet {
  color: var(--holo-indigo, #6366f1);
  font-size: 8px;
  opacity: 0.6;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.how-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.75) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.07);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.how-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--holo-grad-main, linear-gradient(90deg, #6366f1, #a855f7));
  opacity: 0.8;
}
.how-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(99, 102, 241, 0.16);
}
.how-step-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 32px;
  font-weight: 900;
  color: rgba(30, 41, 59, 0.08);
  font-family: var(--mono, monospace);
  line-height: 1;
  letter-spacing: -0.04em;
}
.how-step-card .step-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.16));
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.how-step-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--shop-ink, #0b0b0c);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.how-step-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--shop-muted, #787574);
  margin: 0 0 16px;
  flex: 1;
}
.step-tag-pill {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.18);
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .how-steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}
@media (max-width: 580px) {
  .how-steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Admin Pricing & Cost Settings */
.pricing-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.pricing-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.pricing-input-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
}
.pricing-input-label input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}
.pricing-input-label input:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.pricing-simulator-box {
  margin-top: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 28px;
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
}
.sim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.sim-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  margin-bottom: 6px;
}
.sim-head h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
  color: #ffffff;
}
.sim-head p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}
.sim-total-pill {
  text-align: right;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sim-total-pill small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}
.sim-total-pill strong {
  font-size: 26px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.03em;
}
.sim-formula-cards {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.sim-card {
  flex: 1;
  min-width: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sim-card span {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}
.sim-card b {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
}
.sim-card small {
  font-size: 11px;
  color: #64748b;
}
.sim-card.highlight {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(168, 85, 247, 0.35));
  border-color: rgba(168, 85, 247, 0.5);
}
.sim-card.highlight b {
  color: #38bdf8;
}
.sim-op {
  font-size: 20px;
  font-weight: 900;
  color: #64748b;
}

/* Pricing Model Formula Callout (จุดที่ 3) */
.pricing-model-formula-callout {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 16px 0 18px;
}
.formula-callout-icon {
  font-size: 26px;
  flex-shrink: 0;
}
.formula-callout-body {
  flex: 1;
  min-width: 0;
}
.formula-callout-body strong {
  display: block;
  font-size: 13px;
  color: #1e1b4b;
  margin-bottom: 2px;
}
.formula-callout-body p {
  font-size: 11.5px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}
.formula-callout-body code {
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  color: #4338ca;
}
.formula-suggested-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 6px;
  align-self: flex-start;
}

/* Pricing Simulator Controls & Actions (จุดที่ 2 & 3) */
.sim-controls-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sim-control-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sim-control-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  min-width: 110px;
}
.sim-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sim-pill {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sim-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.sim-pill.is-active {
  background: #38bdf8;
  color: #0f172a;
  border-color: #38bdf8;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}
.sim-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.sim-action-note {
  font-size: 11.5px;
  color: #94a3b8;
  max-width: 520px;
  line-height: 1.45;
}

/* 3D Printable Files in Admin Order Actions (จุดที่ 1) */
.admin-action-files-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-action-files-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.02em;
}
.admin-action-files-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.btn-print-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-print-file.is-3mf {
  background: #059669;
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}
.btn-print-file.is-3mf:hover {
  background: #047857;
  transform: translateY(-1px);
}
.btn-print-file.is-stl {
  background: #2563eb;
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.btn-print-file.is-stl:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.btn-print-file.is-cfg {
  background: #475569;
  color: #ffffff;
  border-color: #334155;
}
.btn-print-file.is-cfg:hover {
  background: #334155;
  transform: translateY(-1px);
}
.btn-print-file.is-preview {
  background: #e2e8f0;
  color: #1e293b;
  border-color: #cbd5e1;
}
.btn-print-file.is-preview:hover {
  background: #cbd5e1;
  color: #0f172a;
}
.admin-action-workflow-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 900px) {
  .pricing-admin-grid {
    grid-template-columns: 1fr;
  }
}

/* Media Manager Admin View & Storefront Media styles */
.media-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 22px;
}
.media-section-card {
  display: flex;
  flex-direction: column;
}
.media-section-card.full-width {
  grid-column: 1 / -1;
}
.panel-desc {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 16px;
  line-height: 1.5;
}
.media-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.media-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color .15s ease;
}
.media-card-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}
.media-thumb-preview {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.media-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.media-card-info strong {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}
.media-card-info span {
  font-size: 12px;
  color: #94a3b8;
}
.media-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.media-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.media-upload-label:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.btn-clear-media {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-clear-media:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Storefront Media & Banners */
.storefront-media-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.store-media-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.store-media-head strong {
  display: block;
  font-size: 14px;
  color: #f8fafc;
  margin-bottom: 2px;
}
.store-media-head small {
  font-size: 12px;
  color: #94a3b8;
}
.media-banner-preview-wrap {
  width: 100%;
  max-height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.media-banner-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.media-qr-preview-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.media-qr-preview {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.media-placeholder-box {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #94a3b8;
  font-size: 12px;
}
.media-logo-preview-wrap {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.media-logo-preview {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Marquee Showcase Reel Editor Grid */
.marquee-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.marquee-editor-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.marquee-card-preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-editor-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #1e293b;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.marquee-editor-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.marquee-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.marquee-field-full {
  grid-column: 1 / -1;
}
.marquee-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #94a3b8;
}
.marquee-fields input,
.marquee-fields select {
  width: 100%;
  background: #090f1e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #f8fafc;
  padding: 6px 10px;
  font-size: 12px;
}
.marquee-fields input:focus,
.marquee-fields select:focus {
  outline: none;
  border-color: #38bdf8;
}

/* Accessory Checkout Thumbnail */
.accessory-media-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f2f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.accessory-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.promptpay-real-qr {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 10px auto;
  display: block;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.marquee-custom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Products & Stock Management OS (Redesigned Clean Category UI) */
.stock-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stock-stat-card,
.fil-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0284c7;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.stock-stat-card.accent-blue,
.fil-stat-card.accent-blue {
  border-left-color: #0284c7;
}
.stock-stat-card.accent-indigo,
.fil-stat-card.accent-indigo {
  border-left-color: #4f46e5;
}
.stock-stat-card.accent-emerald,
.fil-stat-card.accent-emerald {
  border-left-color: #10b981;
}
.stock-stat-card.accent-sky {
  border-left-color: #0ea5e9;
}
.stock-stat-card.alert,
.fil-stat-card.alert {
  border-color: #fecdd3;
  border-left: 4px solid #e11d48;
  background: #fff1f2;
}
.stock-stat-card > span,
.fil-stat-card > span {
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
}
.stock-stat-card > strong,
.fil-stat-card > strong {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.stock-stat-card.alert > strong,
.fil-stat-card.alert > strong {
  color: #e11d48;
}
.stock-stat-card > small,
.fil-stat-card > small {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* Category Tabs Bar (Products & Filaments) */
.stock-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.stock-cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  color: #334155;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}
.stock-cat-tab:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.stock-cat-tab.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}
.stock-cat-tab .cat-icon {
  font-size: 18px;
  line-height: 1;
}
.stock-cat-tab .cat-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.stock-cat-tab .cat-meta strong {
  font-size: 12.5px;
  font-weight: 800;
  color: inherit;
}
.stock-cat-tab .cat-meta small {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}
.stock-cat-tab.is-active .cat-meta small {
  color: #cbd5e1;
}
.stock-cat-tab .cat-badge {
  background: #e2e8f0;
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.stock-cat-tab.is-active .cat-badge {
  background: #38bdf8;
  color: #030814;
}

/* Filter Toolbar + Search */
.stock-toolbar-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.stock-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stock-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.stock-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
}
.stock-pill.active,
.stock-pill.is-active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}
.stock-search-box {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
}
.stock-search-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  color: #0f172a;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.stock-search-input::placeholder {
  color: #94a3b8;
}
.stock-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Inventory & Filament Tables */
.stock-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
}
.stock-inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.stock-inventory-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}
.stock-inventory-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #0f172a;
}
.stock-inventory-table tbody tr:hover {
  background: #f8fafc;
}
.stock-cat-group-row td {
  background: linear-gradient(90deg, #f1f5f9, #f8fafc);
  border-top: 1.5px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 9px 14px !important;
}
.stock-cat-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.stock-cat-group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
}
.stock-cat-group-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.stock-prod-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stock-prod-thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}
.stock-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stock-prod-info strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}
.stock-prod-info small {
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.35;
  display: block;
  max-width: 340px;
}
.stock-type-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.stock-type-tag.ready {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.stock-type-tag.custom {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}
.stock-qty-stepper,
.fil-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 3px 6px;
}
.stock-qty-btn,
.fil-step-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.stock-qty-btn:hover,
.fil-step-btn:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.stock-num-val,
.fil-num {
  min-width: 28px;
  text-align: center;
  font-weight: 900;
  font-size: 14px;
  color: #0f172a;
}
.stock-status-pill,
.fil-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.stock-status-pill.in-stock,
.fil-badge.in-stock {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.stock-status-pill.low,
.fil-badge.low {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}
.stock-status-pill.out,
.fil-badge.out {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fda4af;
}
.stock-actions-cell,
.fil-action-btns {
  display: flex;
  gap: 6px;
  align-items: center;
}
.btn-stock-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-stock-action:hover {
  background: #f1f5f9;
  border-color: #64748b;
  color: #0f172a;
}
.btn-stock-action.delete {
  color: #e11d48;
  border-color: #fecdd3;
}
.btn-stock-action.delete:hover {
  background: #fff1f2;
  border-color: #f43f5e;
  color: #be123c;
}

/* Filament Spool Visual Meter & Category Badges */
.fil-sync-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}
.fil-meter-cell {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fil-meter-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.fil-meter-usable {
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
}
.fil-meter-net {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.fil-meter-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.fil-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #0ea5e9);
  transition: width 0.25s ease;
}
.fil-meter-fill.is-low {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}
.fil-meter-fill.is-out {
  background: #ef4444;
}
.fil-mat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

/* Product Modal Dialog */
.product-modal-dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: transparent;
  max-width: 620px;
  width: 92vw;
  margin: auto;
}
.product-modal-dialog::backdrop {
  background: rgba(3, 8, 20, 0.75);
  backdrop-filter: blur(8px);
}
.product-modal-card {
  background: #0a172d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 24px 28px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
}
.product-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}
.product-modal-head h2 {
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}
.product-modal-head p {
  font-size: 12px;
  color: #94a3b8;
  margin: 4px 0 0 0;
}
.product-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.product-form-grid .field-full {
  grid-column: 1 / -1;
}
.product-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #94a3b8;
}
.product-form-grid input,
.product-form-grid select,
.product-form-grid textarea {
  background: #090f1e;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
}
.product-form-grid input:focus,
.product-form-grid select:focus,
.product-form-grid textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.product-img-upload-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(9, 15, 30, 0.7);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px;
}
.product-img-preview {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #030814;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 11px;
  color: #64748b;
}
.product-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-img-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Color Simulation Disclaimer (จุดที่ 5) */
.color-simulation-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 14px;
}
.color-simulation-notice .notice-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.3;
}
.color-simulation-notice p {
  font-size: 11.5px;
  color: #92400e;
  line-height: 1.45;
  margin: 0;
}
.color-simulation-notice strong {
  color: #78350f;
}

/* Made to Order Consultation Box (จุดที่ 7 & 8) */
.custom-order-consult-box {
  background: linear-gradient(135deg, #f0f7ff, #f8faff);
  border: 1.5px solid #c7d2fe;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
}
.consult-box-head {
  margin-bottom: 14px;
}
.consult-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #4338ca;
  background: #e0e7ff;
  border-radius: 999px;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.consult-box-head h3 {
  font-size: 16px;
  color: #1e1b4b;
  font-weight: 800;
  margin: 0 0 4px;
}
.consult-box-head p {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}
.consult-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.consult-action-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all .18s ease;
}
.consult-action-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.consult-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}
.consult-messenger .consult-card-icon {
  background: #e0f2fe;
  color: #0284c7;
}
.consult-confirm .consult-card-icon {
  background: #dcfce7;
  color: #16a34a;
  font-weight: 900;
}
.consult-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.consult-card-content strong {
  font-size: 13.5px;
  color: #0f172a;
}
.consult-card-content p {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 8px;
}
.button-messenger-direct {
  background: #0084ff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all .15s ease;
  width: 100%;
}
.button-messenger-direct:hover {
  background: #0073e6;
  transform: translateY(-1px);
}
.button-messenger-direct svg {
  flex-shrink: 0;
}
.review-messenger-wrap {
  margin-top: 14px;
  margin-bottom: 8px;
}
.button-messenger-review {
  background: #0084ff;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  transition: all .15s ease;
}
.button-messenger-review:hover {
  background: #0073e6;
}

/* Filament Spools Management OS (จุดที่ 1 & 2) */
.filament-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.fil-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fil-stat-card>span {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}
.fil-stat-card>strong {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -.03em;
}
.fil-stat-card>small {
  font-size: 11px;
  color: #94a3b8;
}
.fil-stat-card.alert>strong {
  color: #e11d48;
}
.fil-color-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fil-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.15);
  border: 1.5px solid #fff;
  flex-shrink: 0;
}
.fil-visible-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.fil-visible-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.fil-visible-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background .18s ease;
  flex-shrink: 0;
}
.fil-visible-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform .18s ease;
}
.fil-visible-toggle input:checked + .fil-visible-track {
  background: #16a34a;
}
.fil-visible-toggle input:checked + .fil-visible-track::after {
  transform: translateX(16px);
}
.fil-visible-toggle input:focus-visible + .fil-visible-track {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.fil-visible-text {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
tr.is-hidden-on-web > td:not(:nth-last-child(-n+2)) {
  opacity: .5;
}
.product-form-grid label.fil-form-visible {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
}
.product-form-grid label.fil-form-visible input {
  width: 18px;
  height: 18px;
  padding: 0;
  flex: none;
  accent-color: #16a34a;
}
.fil-color-name {
  font-weight: 800;
  color: #0f172a;
  font-size: 13px;
}
.fil-code-badge {
  font-family: monospace;
  font-size: 11px;
  background: #f1f5f9;
  color: #334155;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 700;
}
.fil-brand-text {
  font-size: 12px;
  color: #475569;
}
.fil-hex-pill {
  font-family: monospace;
  font-size: 11px;
  color: #64748b;
}
.fil-target-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: #ede9fe;
  color: #5b21b6;
}
.fil-target-pill.case {
  background: #e0f2fe;
  color: #0369a1;
}
.fil-target-pill.text {
  background: #fef3c7;
  color: #b45309;
}
.fil-status-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.fil-status-pill.in-stock {
  background: #dcfce7;
  color: #15803d;
}
.fil-status-pill.low {
  background: #fef9c3;
  color: #a16207;
}
.fil-status-pill.out {
  background: #ffe4e6;
  color: #e11d48;
}
.btn-fil-action {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-fil-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.btn-fil-action.delete {
  color: #e11d48;
  border-color: #fecdd3;
}
.btn-fil-action.delete:hover {
  background: #fff1f2;
  border-color: #fda4af;
}

/* Member Order History (จุดที่ 10) */
.btn-member-orders {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-member-orders:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
}
.member-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding: 4px;
}
.member-order-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}
.member-order-no {
  font-weight: 800;
  font-size: 13.5px;
  color: #0f172a;
}
.member-order-date {
  font-size: 11px;
  color: #94a3b8;
}
.member-order-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
.member-order-details strong {
  font-size: 13px;
  color: #0f172a;
  display: block;
}
.member-order-specs {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}
.member-order-price {
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

/* Major Stock Categories Switcher (จุดที่ 1) */
.stock-major-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
}
.stock-major-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: rgba(30, 41, 59, 0.65);
  border: 1.5px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  color: #94a3b8;
  cursor: pointer;
  text-align: left;
  transition: all .2s ease;
}
.stock-major-tab:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.4);
  color: #f8fafc;
  transform: translateY(-1px);
}
.stock-major-tab.is-active {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45), rgba(15, 23, 42, 0.95));
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.22);
}
.stock-major-tab .major-tab-icon {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.stock-major-tab .major-tab-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.stock-major-tab .major-tab-info strong {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-major-tab .major-tab-info small {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-major-tab .major-tab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .stock-major-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Charm & Deco Icons Library (จุดที่ 3) */
.charm-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.charm-admin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  transition: all .2s ease;
  position: relative;
}
.charm-admin-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.charm-admin-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 8px;
  color: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.charm-admin-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.charm-admin-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
}
.charm-admin-code {
  font-size: 10px;
  color: #94a3b8;
  font-family: monospace;
  margin-top: 3px;
}
.charm-delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease;
}
.charm-admin-card:hover .charm-delete-btn {
  opacity: 1;
}
.charm-delete-btn:hover {
  background: #ef4444;
  color: #fff;
}

/* Admin Direct STL Export & Production Queue Sheet */
.btn-generate-stl-direct {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
}
.btn-generate-stl-charm {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 800 !important;
}
.prod-queue-group {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 12px;
}
.prod-queue-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.prod-queue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.prod-queue-table th, .prod-queue-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.prod-queue-table th {
  color: #94a3b8;
  font-size: 11.5px;
  text-transform: uppercase;
}
#productionQueueDialog {
  max-width: 840px;
  width: min(840px, 94vw);
  padding: 0;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0b1528;
  color: #f8fafc;
}
#productionQueueDialog .my-orders-card {
  width: 100%;
  max-width: 100%;
  padding: 24px;
  background: #0b1528;
  color: #f8fafc;
  box-sizing: border-box;
}
#productionQueueDialog .dialog-actions {
  background: transparent;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 16px;
  margin-top: 16px;
}

/* Admin Custom Design Requests (บรีฟให้ร้านออกแบบให้) */
.admin-design-requests-panel {
  margin: 18px 0 24px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.92));
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}
.admin-briefs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.admin-briefs-header h2 {
  margin: 4px 0 6px;
  font-size: 20px;
  color: #f8fafc;
}
.admin-briefs-header p {
  margin: 0;
  font-size: 13.5px;
  color: #94a3b8;
}
.admin-briefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.admin-brief-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #e2e8f0;
}
.admin-brief-card.is-quoted {
  border-color: rgba(52, 211, 153, 0.45);
}
.admin-brief-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.admin-brief-id {
  font-weight: 900;
  font-size: 13px;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-brief-status {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-brief-status.pending {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
}
.admin-brief-status.quoted {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}
.admin-brief-idea {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.45;
}
.admin-brief-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}
.admin-brief-meta span {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 3px 8px;
  border-radius: 8px;
}
.admin-brief-ref {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.65);
  font-size: 12px;
}
.admin-brief-ref img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.admin-brief-quote-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  margin-top: 4px;
}
.admin-brief-quote-row input {
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #f8fafc;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
}
.admin-brief-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.admin-brief-actions .button {
  flex: 1;
  min-height: 34px;
  font-size: 12.5px;
  padding: 6px 10px;
}

/* ==========================================================================
   5180 Cost & Quote Formula Panel in Admin Pricing (#admin5180FormulaPanel)
   ========================================================================== */
#admin5180FormulaPanel.cf-admin-panel {
  margin-bottom: 24px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0f172a, #1e293b) !important;
  border: 1.5px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.35);
  color: #f8fafc;
}

.cf-admin-panel .cf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.cf-admin-panel .cf-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-admin-panel .cf-header-actions .button-secondary {
  background: rgba(30, 41, 59, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.38) !important;
  color: #f8fafc !important;
}

.cf-admin-panel .cf-header-actions .button-secondary:hover {
  background: rgba(56, 189, 248, 0.22) !important;
  border-color: #38bdf8 !important;
}

.cf-admin-panel .cf-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cf-admin-panel .cf-title > span {
  font-size: 26px;
}

.cf-admin-panel .cf-title strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc !important;
}

.cf-admin-panel .cf-title small {
  display: block;
  font-size: 12.5px;
  color: #cbd5e1 !important;
  margin-top: 2px;
}

.cf-admin-panel .cf-profiles-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.cf-admin-panel .cf-profiles-lbl {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  margin-right: 4px;
}

.cf-admin-panel .cf-profile-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.cf-admin-panel .cf-profile-btn:hover {
  border-color: #38bdf8;
  color: #ffffff;
}

.cf-admin-panel .cf-profile-btn.active {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.cf-admin-panel .cf-equation-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.cf-admin-panel .cf-eq-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.cf-admin-panel .cf-eq-tag {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
}

.cf-admin-panel .cf-eq-tag.cost {
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.cf-admin-panel .cf-eq-tag.quote {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.cf-admin-panel .cf-eq-text {
  color: #e2e8f0;
  font-weight: 600;
}

.cf-admin-panel .cf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cf-admin-panel .cf-section {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cf-admin-panel .cf-section.highlight {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.45), rgba(15, 23, 42, 0.85));
  border-color: rgba(52, 211, 153, 0.4);
}

.cf-admin-panel .cf-sec-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.cf-admin-panel .cf-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cf-admin-panel .cf-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cf-admin-panel .cf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cf-admin-panel .cf-field label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.cf-admin-panel .cf-field input,
.cf-admin-panel .cf-field select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
}

.cf-admin-panel .cf-ams-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 11px;
  font-weight: 700;
  color: #bae6fd;
  cursor: pointer;
}

.cf-admin-panel .cf-wholesale-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.cf-admin-panel .cf-ws-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.cf-admin-panel .cf-ws-header span {
  font-size: 12.5px;
  font-weight: 800;
  color: #f8fafc;
}

.cf-admin-panel .cf-ws-header small {
  font-size: 11.5px;
  color: #94a3b8;
}

.cf-admin-panel .cf-tier-editor {
  margin: 8px 0 12px;
  padding: 10px 12px;
  max-width: 520px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
}

.cf-admin-panel .cf-tier-head,
.cf-admin-panel .cf-tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr 32px;
  gap: 8px;
  align-items: center;
}

.cf-admin-panel .cf-tier-head {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.cf-admin-panel .cf-tier-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-admin-panel .cf-tier-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cf-admin-panel .cf-tier-row input {
  width: 100%;
  min-width: 0;
  padding: 6px 36px 6px 8px;
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
}

.cf-admin-panel .cf-tier-row input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.cf-admin-panel .cf-tier-unit {
  position: absolute;
  right: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  pointer-events: none;
}

.cf-admin-panel .cf-tier-del {
  height: 30px;
  font-size: 12px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.cf-admin-panel .cf-tier-del:hover:not(:disabled) {
  color: #f87171;
  background: rgba(239, 68, 68, 0.16);
}

.cf-admin-panel .cf-tier-del:disabled {
  opacity: 0.3;
  cursor: default;
}

.cf-admin-panel .cf-tier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.cf-admin-panel .cf-ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}

.cf-admin-panel .cf-ws-card {
  padding: 10px;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
}

.cf-admin-panel .cf-ws-card.popular {
  background: rgba(6, 78, 59, 0.55);
  border-color: rgba(52, 211, 153, 0.55);
}

.cf-admin-panel .ws-qty {
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
}

.cf-admin-panel .ws-qty-editable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cf-admin-panel .ws-card-qty-input {
  width: 60px;
  padding: 2px 5px;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 6px;
}

.cf-admin-panel .ws-card-qty-input:focus,
.cf-admin-panel .ws-card-pct-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.28);
}

.cf-admin-panel .ws-price {
  font-size: 16px;
  font-weight: 900;
  color: #38bdf8;
  margin: 4px 0;
}

.cf-admin-panel .cf-ws-card.popular .ws-price {
  color: #4ade80;
}

.cf-admin-panel .ws-price small {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
}

.cf-admin-panel .ws-disc {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
}

.cf-admin-panel .ws-disc-editable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 7px;
}

.cf-admin-panel .ws-card-pct-input {
  width: 48px;
  padding: 1px 4px;
  font-size: 11.5px;
  font-weight: 800;
  text-align: center;
  color: #7dd3fc;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 5px;
}

.cf-admin-panel .ws-disc.floored {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.25);
}

.cf-admin-panel .ws-disc.floored .ws-card-pct-input {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.55);
}

.cf-admin-panel .ws-floor-badge {
  display: block;
  margin-top: 2px;
  font-size: 9.5px;
  font-weight: 700;
  color: #fcd34d;
}

.cf-admin-panel .ws-total {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.cf-admin-panel .ws-profit {
  margin-top: 4px;
  font-size: 10.5px;
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .cf-admin-panel .cf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cf-admin-panel .cf-ws-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-pricing-unified-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cf-5180-hud-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cf-5180-hud-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.25);
}

.cf-5180-hud-card.cost-card {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.38), rgba(15, 23, 42, 0.9));
  border-color: rgba(251, 191, 36, 0.45);
}

.cf-5180-hud-card.quote-card {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.55), rgba(15, 23, 42, 0.9));
  border-color: rgba(52, 211, 153, 0.55);
}

.cf-5180-hud-card .hud-icon {
  font-size: 24px;
  line-height: 1;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cf-5180-hud-card .hud-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cf-5180-hud-card .hud-meta small {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.cf-5180-hud-card .hud-meta strong {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.15;
}

.cf-5180-hud-card.cost-card .hud-meta strong {
  color: #fcd34d;
}

.cf-5180-hud-card.quote-card .hud-meta strong {
  color: #4ade80;
}

.cf-5180-hud-card .hud-sub {
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
}

@keyframes navBadgePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.38); }
  100% { transform: scale(1); }
}

@media (max-width: 980px) {
  .cf-5180-hud-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================================
   Admin Orders & iShip 3-Line Fulfillment Workflow (จุดที่ 11, 12, 13, 14)
   ============================================================================ */
.admin-iship-workflow-banner {
  margin: 16px 0 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.96) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.28);
  color: #f8fafc;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-iship-step-card,
.iship-step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.iship-step-card.is-highlight {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16) 0%, rgba(79, 70, 229, 0.18) 100%);
  border-color: rgba(56, 189, 248, 0.5);
}

.admin-iship-step-num,
.iship-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-iship-step-card strong,
.iship-step-card strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 4px;
}

.admin-iship-step-card p,
.iship-step-card small {
  display: block;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
}

.admin-briefs-collapsible {
  margin: 0 0 18px;
  border-radius: 16px;
  background: rgba(30, 27, 75, 0.55);
  border: 1px solid rgba(139, 92, 246, 0.35);
  overflow: hidden;
}

.admin-briefs-summary,
.admin-briefs-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  cursor: pointer;
  list-style: none;
  color: #f5f3ff;
  font-size: 14px;
  font-weight: 700;
}

.admin-briefs-summary::-webkit-details-marker,
.admin-briefs-summary-bar::-webkit-details-marker {
  display: none;
}

.admin-briefs-expand-hint,
.admin-briefs-toggle-hint {
  font-size: 12px;
  font-weight: 800;
  color: #c4b5fd;
}

.admin-briefs-body {
  padding: 0 18px 18px;
}

.admin-order-step-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-step-pill {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.admin-step-pill.is-current {
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28);
}

.admin-step-pill.is-done {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
}

.iship-fulfillment-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.92) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.25);
}

.iship-fulfillment-head,
.iship-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.iship-fulfillment-title,
.iship-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.iship-logo-pill,
.iship-badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.iship-fulfillment-title strong,
.iship-box-title strong {
  display: block;
  font-size: 13.5px;
  color: #f8fafc;
}

.iship-header-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.iship-fulfillment-grid,
.iship-box-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.iship-3line-card,
.iship-tracking-save-card {
  padding: 14px;
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iship-3line-head,
.iship-tracking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.iship-3line-head span,
.iship-tracking-head span {
  font-size: 13px;
  font-weight: 800;
  color: #e2e8f0;
}

.iship-3line-pre,
.iship-3line-preview {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  font-family: 'IBM Plex Sans Thai', monospace;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.iship-3line-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #94a3b8;
}

.iship-3line-legend b {
  color: #38bdf8;
}

.btn-copy-iship-3lines {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
}

.btn-copy-iship-3lines.is-copied {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

.iship-shipped-banner,
.shipped-badge-wrap {
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.iship-tracking-form-row,
.ship-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iship-courier-select,
.iship-tracking-input,
.courier-select,
.tracking-input {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #ffffff;
  font-size: 13px;
  width: 100%;
}

.btn-save-tracking {
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.admin-status-actions-row {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-status-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.admin-status-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .admin-iship-steps-grid,
  .iship-fulfillment-grid,
  .iship-tracking-form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   🧩 Modular Jigsaw Spec Pattern Builder (Parts 1–8) in Admin Back-Office
   ========================================================================== */
.jigsaw-pattern-admin-panel {
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.55) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.jigsaw-master-parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.jigsaw-master-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  transition: all 0.16s ease;
  font-family: inherit;
}

.jigsaw-master-card:hover {
  border-color: #6366f1;
  background: #f5f3ff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.12);
}

.jigsaw-master-card.is-active {
  border: 2px solid #4f46e5 !important;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%) !important;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.18);
}

.jigsaw-num-badge {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
}

.jigsaw-master-info {
  flex: 1;
  min-width: 0;
}

.jigsaw-master-info strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.jigsaw-master-info small {
  display: block;
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
  margin-top: 2px;
}

.jigsaw-master-edit-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  white-space: nowrap;
}

.jigsaw-master-card.is-active .jigsaw-master-edit-pill {
  background: #4f46e5;
  color: #ffffff;
}

.jigsaw-master-mini-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
}

.jigsaw-part-inspector-box {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
  border: 2px solid #818cf8;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jigsaw-inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e7ff;
}

.jigsaw-inspector-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.jigsaw-inspector-field {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jigsaw-inspector-field span {
  font-size: 11.5px;
  font-weight: 800;
  color: #334155;
}

.jigsaw-inspector-field input {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
}

.jigsaw-subopts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.jigsaw-subopt-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 8px;
  transition: all 0.15s ease;
}

.jigsaw-subopt-item.is-enabled {
  border-color: #818cf8;
  background: #f8fafc;
}

.jigsaw-subopt-item.is-disabled {
  opacity: 0.65;
  background: #f1f5f9;
  border-style: dashed;
}

.jigsaw-subopt-toggle-btn {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 2px;
  font-family: inherit;
}

.jigsaw-subopt-check {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  background: #e0e7ff;
  color: #312e81;
  white-space: nowrap;
}

.jigsaw-subopt-item.is-disabled .jigsaw-subopt-check {
  background: #e2e8f0;
  color: #64748b;
}

.jigsaw-subopt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jigsaw-subopt-text strong {
  font-size: 12.5px;
  color: #0f172a;
}

.jigsaw-subopt-text small {
  font-size: 11px;
  color: #475569;
}

.jigsaw-add-inline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.jigsaw-inspector-clicker-icons-box {
  padding: 12px;
  border-radius: 12px;
  background: #eef2ff;
  border: 1.5px solid #a5b4fc;
}

.jigsaw-clicker-icons-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 7px;
}

.jigsaw-clicker-icon-admin-card {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #818cf8;
  border-radius: 10px;
  padding: 6px 8px;
}

.jigsaw-clicker-icon-admin-card.is-disabled {
  opacity: 0.6;
  border-color: #cbd5e1;
  border-style: dashed;
  background: #f8fafc;
}

.jigsaw-clicker-icon-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font-family: inherit;
}

.jigsaw-clicker-icon-emoji {
  font-size: 20px;
  line-height: 1;
}

.jigsaw-clicker-icon-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jigsaw-clicker-icon-meta strong {
  font-size: 12px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jigsaw-clicker-icon-meta small {
  font-size: 10px;
  color: #475569;
}

.jigsaw-clicker-icon-state {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
}

.jigsaw-clicker-icon-admin-card.is-disabled .jigsaw-clicker-icon-state {
  background: #e2e8f0;
  color: #64748b;
}

.jigsaw-icon-del-btn {
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  border-radius: 6px;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  margin-left: 4px;
}


.jigsaw-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.jigsaw-part-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}

.jigsaw-part-pill b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #334155;
  font-size: 11px;
}

.jigsaw-part-pill.is-active {
  border-color: #4f46e5;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
}

.jigsaw-part-pill.is-active b {
  background: #ffffff;
  color: #4f46e5;
}

.jigsaw-part-pill:disabled {
  opacity: 0.78;
  cursor: default;
}

.jigsaw-matrix-row-default {
  background: #eef2ff !important;
}

.jigsaw-quick-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.jigsaw-quick-btn:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: #eef2ff;
}

.prod-jigsaw-pattern-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.35);
}

/* Custom Jigsaw Presets Box & Cards */
.jigsaw-presets-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(129, 140, 248, 0.32);
}

.jigsaw-presets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.new-jigsaw-preset-form,
.jigsaw-preset-creator {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #c7d2fe;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.06);
}

.jigsaw-preset-creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.jigsaw-preset-creator-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jigsaw-preset-creator-grid label > span {
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
}

.jigsaw-preset-creator-grid input,
.jigsaw-preset-creator-grid select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}

.jigsaw-presets-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.jigsaw-preset-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.jigsaw-preset-card:hover {
  border-color: #6366f1;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.1);
  transform: translateY(-1px);
}

.jigsaw-preset-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.jigsaw-preset-card-head strong,
.jigsaw-preset-card strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a !important;
}

.jigsaw-preset-card small {
  color: #475569 !important;
}

.jigsaw-preset-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: #334155;
}

.jigsaw-preset-meta-chip {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #312e81;
  font-weight: 700;
}

.jigsaw-preset-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

/* Stock Filament Ledger & Usable Weight Meter */
.filament-ledger-section {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.filament-ledger-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filament-ledger-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.filament-ledger-badge.type-reserve {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.filament-ledger-badge.type-consume {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.filament-ledger-badge.type-weigh,
.filament-ledger-badge.type-restock {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.filament-ledger-badge.type-release {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

/* 3D Print Job Card + Smart NFC QR Station */
#printJobCardDialog {
  width: min(860px, 95vw) !important;
  max-width: 860px !important;
  padding: 0 !important;
}

#printJobCardDialog .my-orders-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 24px 26px !important;
}

.job-card-sheet {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-card-summary-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #f8fafc;
}

.job-card-summary-cell small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}

.job-card-summary-cell strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.job-card-ams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}

.job-card-ams-slot {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-card-ams-swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.job-card-nfc-qr-box {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1.5px solid #818cf8;
  color: #1e1b4b;
}

@media (max-width: 640px) {
  .job-card-nfc-qr-box {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}


/* หลังบ้าน: สวิตช์สินค้าพร้อมส่ง + ช่องรหัสวัดผล (2026-10-20) — อยู่นอกบล็อก Shop theme ที่สงวนไว้ให้หน้าลูกค้า */
.admin-ready-made-toggle { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: #fff; cursor: pointer; }
.admin-ready-made-toggle input { width: 20px; height: 20px; margin-top: 2px; }
.admin-ready-made-toggle span { display: grid; gap: 4px; }
.admin-ready-made-toggle small { color: #64748b; }
.admin-analytics-box { display: grid; gap: 10px; margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: #fff; }
.admin-analytics-box legend { font-weight: 800; padding: 0 6px; }
.admin-analytics-box p { margin: 0; color: #64748b; font-size: 13px; }
.admin-analytics-box label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.admin-analytics-box input { min-height: 40px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
.admin-analytics-box .button { justify-self: start; }


/* ============================================================================
   FIX: หน้าติดตามออเดอร์ (.track-card) คอนทราสต์สูง อ่านชัดบนพื้นขาว + หน้า Admin Orders & Stock
   ============================================================================ */
#trackOrderView .track-search-card,
body[data-mode="customer"] .track-search-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
#trackOrderView .track-input-group input,
body[data-mode="customer"] .track-input-group input {
  background: #f8fafc;
  border: 1.5px solid #94a3b8;
  color: #0f172a;
  font-weight: 600;
}
#trackOrderView .track-input-group input::placeholder,
body[data-mode="customer"] .track-input-group input::placeholder {
  color: #64748b;
}
#trackOrderView .track-form .field-hint,
body[data-mode="customer"] .track-form .field-hint {
  color: #475569;
  font-weight: 600;
}
#trackResultContainer .track-card,
body[data-mode="customer"] .track-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}
#trackResultContainer .track-card-header,
body[data-mode="customer"] .track-card-header {
  border-bottom: 1.5px solid #e2e8f0;
}
#trackResultContainer .track-meta-label,
body[data-mode="customer"] .track-meta-label {
  color: #475569;
  font-weight: 700;
}
#trackResultContainer .track-card-header h2,
body[data-mode="customer"] .track-card-header h2 {
  color: #0f172a;
}
#trackResultContainer .track-step::before,
body[data-mode="customer"] .track-step::before {
  background: #cbd5e1;
}
#trackResultContainer .track-step.is-active::before,
body[data-mode="customer"] .track-step.is-active::before {
  background: #10b981;
}
#trackResultContainer .step-num,
body[data-mode="customer"] .step-num {
  background: #f1f5f9;
  color: #475569;
  border: 2px solid #cbd5e1;
}
#trackResultContainer .track-step.is-active .step-num,
body[data-mode="customer"] .track-step.is-active .step-num {
  background: #10b981;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}
#trackResultContainer .step-info strong,
body[data-mode="customer"] .step-info strong {
  color: #0f172a;
  font-weight: 800;
}
#trackResultContainer .step-info small,
body[data-mode="customer"] .step-info small {
  color: #475569;
  font-weight: 600;
}
#trackResultContainer .track-shipping-card,
body[data-mode="customer"] .track-shipping-card {
  background: linear-gradient(135deg, #ecfdf5, #f0f9ff);
  border: 1.5px solid #6ee7b7;
}
#trackResultContainer .shipping-head h3,
body[data-mode="customer"] .shipping-head h3 {
  color: #065f46;
}
#trackResultContainer .tracking-no-code,
body[data-mode="customer"] .tracking-no-code {
  color: #0284c7;
  font-weight: 800;
}
#trackResultContainer .track-detail-grid,
body[data-mode="customer"] .track-detail-grid {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
#trackResultContainer .track-detail-grid span,
body[data-mode="customer"] .track-detail-grid span {
  color: #475569;
  font-weight: 600;
}
#trackResultContainer .track-detail-grid strong,
body[data-mode="customer"] .track-detail-grid strong {
  color: #0f172a;
  font-weight: 800;
}
#trackResultContainer .track-not-found,
body[data-mode="customer"] .track-not-found {
  background: #ffffff;
  border: 1.5px solid #fecaca;
  color: #0f172a;
}

/* Admin Orders: Visual 3D Preview Banner & Cancel Order Button */
.admin-order-visual-banner {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}
@media (max-width: 680px) {
  .admin-order-visual-banner {
    grid-template-columns: 1fr;
  }
}
.admin-order-preview-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-order-preview-img {
  width: 100%;
  height: 124px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #94a3b8;
  background: #0f172a;
  display: block;
}
.admin-order-preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}
.admin-order-color-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.ao-swatch-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
.ao-swatch-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  flex: 0 0 24px;
}
.ao-swatch-chip small {
  display: block;
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}
.ao-swatch-chip strong {
  display: block;
  font-size: 12px;
  color: #0f172a;
  font-weight: 800;
}
.button-cancel-order {
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1.5px solid #fda4af !important;
  font-weight: 800 !important;
}
.button-cancel-order:hover {
  background: #ffe4e6 !important;
  border-color: #f43f5e !important;
}
.packed-ready-hint.is-cancelled {
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #9f1239;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
}
.status-badge.cancelled {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}
.filament-stats-row {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important;
}
.fil-stat-card.accent-amber {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}
.fil-stat-card.accent-amber strong {
  color: #d97706;
}

/* ============================================================================
   Admin Orders: Master-Detail Split Layout (Left Order List + Right Detail)
   ============================================================================ */
.admin-orders-master-detail {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-orders-sidebar {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
}

.admin-orders-sidebar-head {
  padding: 12px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aosh-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.aosh-title-row strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.aosh-title-row small {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.admin-order-quick-search {
  width: 100%;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12.5px;
  color: #0f172a;
}

.admin-order-quick-search:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.admin-orders-sidebar-list {
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-order-list-item {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.admin-order-list-item:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.admin-order-list-item.is-selected {
  border-color: #4f46e5;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.aoli-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.aoli-order-no {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.admin-order-list-item.is-selected .aoli-order-no {
  color: #4338ca;
}

.aoli-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.aoli-product {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.aoli-swatches {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.aoli-swatches span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.25);
  display: inline-block;
}

.aoli-prod-text {
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aoli-prod-text b {
  color: #0f172a;
  font-weight: 800;
}

.aoli-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: #64748b;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.aoli-customer {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aoli-price {
  color: #0f172a;
  font-weight: 800;
}

.admin-order-detail-pane {
  min-width: 0;
}

/* Collapsible iShip & Tech Details in Order Detail Pane */
details.iship-fulfillment-box.is-collapsible-section > summary.iship-box-header {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

details.iship-fulfillment-box.is-collapsible-section > summary.iship-box-header::-webkit-details-marker {
  display: none;
}

details.iship-fulfillment-box.is-collapsible-section:not([open]) {
  padding-bottom: 10px;
}

details.admin-order-tech-details {
  margin-top: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 8px 12px;
}

details.admin-order-tech-details > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  user-select: none;
}

.admin-order-tech-body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1024px) {
  .admin-orders-master-detail {
    grid-template-columns: 1fr;
  }
  .admin-orders-sidebar {
    position: static;
    max-height: 320px;
  }
}

/* ============================================================================
   NOTEBOOK & SINGLE-SCREEN ERGONOMIC OVERHAUL (2026-10-24)
   ปรับขนาด Header, การจัดเรียง และขนาดตัวอักษรใน 3 หน้าหลัก:
   1. หน้าให้ร้านออกแบบให้ (#assistDesignView) — ย่อ Header เหลือแถบเดียว + จัด 2 คอลัมน์ซ้าย-ขวาจบในจอเดียวไม่ต้อง Scroll
   2. หน้าตะกร้าสินค้า & ชำระเงิน (#cartView / #checkoutView) — ย่อ Stepper + Header + ปรับฟอนต์และการ์ดให้พอดีจอ Notebook
   3. หน้าติดตามออเดอร์ (#trackOrderView) — รวม Header + กล่องค้นหาไว้ในแถบเดียวด้านบน + แสดงสถานะและขั้นตอนในจอเดียว
   ============================================================================ */

/* ซ่อนปุ่มลอยแชทมุมขวาล่างในหน้าให้ร้านออกแบบให้ เพื่อไม่ให้บังปุ่มการ์ดด้านขวา */
body[data-view="assistDesignView"] .contact-fabs {
  display: none !important;
}

/* ----------------------------------------------------------------------------
   1. หน้าให้ร้านออกแบบให้ (#assistDesignView) — Compact Header + 2-Column Fit
   ---------------------------------------------------------------------------- */
body[data-mode="customer"] #assistDesignView.shell.page-space {
  max-width: 1680px;
  width: min(1680px, calc(100vw - 32px));
  padding-top: 10px !important;
  padding-bottom: 18px !important;
  min-height: auto;
}

body[data-mode="customer"] #assistDesignView .page-title-row.assist-compact-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding: 8px 16px !important;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

body[data-mode="customer"] #assistDesignView .assist-topbar-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

body[data-mode="customer"] #assistDesignView .assist-compact-topbar .eyebrow {
  display: none !important;
}

body[data-mode="customer"] #assistDesignView .assist-compact-topbar h1#customBriefTitle {
  margin: 0 !important;
  font-size: clamp(17px, 1.45vw, 20px) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a;
}

body[data-mode="customer"] #assistDesignView .assist-compact-topbar > .assist-topbar-left > p:last-child {
  margin: 0 !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  color: #64748b;
}

body[data-mode="customer"] #assistDesignView .checkout-title-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

body[data-mode="customer"] #assistDesignView .checkout-title-actions .button {
  min-height: 34px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

/* จุดที่ 3: รายการบรีฟและใบเสนอราคาของลูกค้า แสดงด้านบนสุดก่อนอย่างแรก (ซ่อนอัตโนมัติถ้ายังไม่ได้ส่งบรีฟ) */
body[data-mode="customer"] #assistDesignView #myDesignRequestsBox[hidden] {
  display: none !important;
}

body[data-mode="customer"] #assistDesignView .my-design-requests-box {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 18px;
  padding: 10px 14px !important;
  margin-bottom: 10px !important;
  gap: 8px !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

body[data-mode="customer"] #assistDesignView .my-design-requests-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 10px;
}

body[data-mode="customer"] #assistDesignView .my-requests-header strong {
  font-size: 13px !important;
}

body[data-mode="customer"] #assistDesignView .my-requests-header small {
  font-size: 11px !important;
}

body[data-mode="customer"] #assistDesignView .my-brief-item {
  padding: 8px 11px !important;
  border-radius: 12px !important;
  gap: 8px !important;
}

body[data-mode="customer"] #assistDesignView .my-brief-item-info strong {
  font-size: 12.5px !important;
}

body[data-mode="customer"] #assistDesignView .my-brief-item-info small {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

/* จุดที่ 1: ขั้นตอนให้ร้านออกแบบอยู่ทางซ้ายมือ + ฟอร์มอยู่ทางขวามือ */
body[data-mode="customer"] #assistDesignView .assist-design-page-layout {
  display: grid !important;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.62fr) !important;
  gap: 14px !important;
  align-items: stretch !important;
}

body[data-mode="customer"] #assistDesignView .assist-design-main-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

body[data-mode="customer"] #assistDesignView .assist-design-form-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 14px 18px !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

body[data-mode="customer"] #assistDesignView .brief-simple-section {
  gap: 7px !important;
  margin-bottom: 10px !important;
}

body[data-mode="customer"] #assistDesignView .brief-section-label {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #0f172a;
}

body[data-mode="customer"] #assistDesignView .brief-quick-type-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body[data-mode="customer"] #assistDesignView .brief-type-pill {
  padding: 9px 12px !important;
  border-radius: 12px !important;
  gap: 8px !important;
  align-items: center !important;
}

body[data-mode="customer"] #assistDesignView .brief-pill-icon {
  font-size: 17px !important;
}

body[data-mode="customer"] #assistDesignView .brief-type-pill strong {
  font-size: 12.5px !important;
  line-height: 1.25 !important;
}

body[data-mode="customer"] #assistDesignView .brief-type-pill small {
  display: none !important;
}

body[data-mode="customer"] #assistDesignView #briefIdeaText {
  padding: 8px 12px !important;
  font-size: 13px !important;
  min-height: 46px !important;
  max-height: 56px;
  border-radius: 12px !important;
}

/* จุดที่ 6 + จุดที่ 1 (รอบใหม่): ปุ่มเลือกสีแบบ Multi-Select คลิกเลือกได้มากกว่า 1 สี + ปุ่ม "อื่นๆ" กรอกสีเองได้ */
body[data-mode="customer"] #assistDesignView .brief-mood-chips-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
}

body[data-mode="customer"] #assistDesignView .brief-color-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-mode="customer"] #assistDesignView .brief-sub-label {
  font-size: 12px !important;
  font-weight: 800;
  color: #1e293b;
}

body[data-mode="customer"] #assistDesignView .brief-selected-colors-badge {
  font-size: 11px;
  font-weight: 800;
  color: #4338ca;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 2px 9px;
  border-radius: 999px;
}

body[data-mode="customer"] #assistDesignView .brief-mood-chips.brief-color-swatch-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

body[data-mode="customer"] #assistDesignView .brief-mood-chip.brief-color-swatch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px 4px 7px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-mode="customer"] #assistDesignView .brief-mood-chip.brief-color-swatch:hover {
  border-color: #6366f1 !important;
  transform: translateY(-1px);
}

body[data-mode="customer"] #assistDesignView .brief-mood-chip.brief-color-swatch.is-active {
  background: #eef2ff !important;
  color: #312e81 !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.18) !important;
  font-weight: 800 !important;
}

body[data-mode="customer"] #assistDesignView .brief-color-swatch .swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch, #ff8da1);
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  flex-shrink: 0;
  display: inline-block;
}

body[data-mode="customer"] #assistDesignView .brief-color-swatch .swatch-dot.is-light {
  border-color: #94a3b8;
}

body[data-mode="customer"] #assistDesignView .brief-color-swatch.is-active::after {
  content: "✓";
  font-size: 10.5px;
  font-weight: 900;
  color: #4f46e5;
  margin-left: 1px;
}

body[data-mode="customer"] #assistDesignView .brief-custom-color-input-wrap[hidden] {
  display: none !important;
}

body[data-mode="customer"] #assistDesignView .brief-custom-color-input-wrap {
  display: flex;
  margin-top: 2px;
}

body[data-mode="customer"] #assistDesignView .brief-custom-color-input {
  width: 100%;
  min-height: 32px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
  border: 1.5px solid #818cf8 !important;
  background: #ffffff !important;
  color: #0f172a;
}

body[data-mode="customer"] #assistDesignView .brief-form-grid.brief-compact-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px 10px !important;
}

body[data-mode="customer"] #assistDesignView .brief-field {
  gap: 4px !important;
}

body[data-mode="customer"] #assistDesignView .brief-field label {
  font-size: 12px !important;
}

body[data-mode="customer"] #assistDesignView .brief-field input,
body[data-mode="customer"] #assistDesignView .brief-field select {
  padding: 6px 10px !important;
  font-size: 12.5px !important;
  border-radius: 10px !important;
  min-height: 35px !important;
}

body[data-mode="customer"] #assistDesignView .brief-upload-zone {
  padding: 4px 8px !important;
  border-radius: 10px !important;
  min-height: 35px;
  display: flex !important;
  align-items: center !important;
}

body[data-mode="customer"] #assistDesignView .brief-upload-zone input[type="file"] {
  padding: 0 !important;
  border: 0 !important;
  font-size: 11px !important;
  min-height: 0 !important;
  background: transparent !important;
}

/* จุดที่ 7: แถบตัวเลือก Clicker + NFC */
body[data-mode="customer"] #assistDesignView .brief-tier-and-addons-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 7px 12px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
  border: 1px solid #c7d2fe;
}

body[data-mode="customer"] #assistDesignView .brief-bulk-tier-card {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  flex: 1 1 210px;
}

body[data-mode="customer"] #assistDesignView .brief-bulk-tier-card strong {
  font-size: 11.5px !important;
  display: inline !important;
  margin-right: 6px;
}

body[data-mode="customer"] #assistDesignView .brief-bulk-tier-card p {
  font-size: 11px !important;
  display: inline !important;
  margin: 0 !important;
}

body[data-mode="customer"] #assistDesignView .brief-extra-addons-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 !important;
}

body[data-mode="customer"] #assistDesignView .brief-addon-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  font-size: 11.5px !important;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-mode="customer"] #assistDesignView .brief-addon-pill.is-checked {
  background: #eef2ff;
  border-color: #4f46e5;
  color: #312e81;
  font-weight: 800;
}

body[data-mode="customer"] #assistDesignView .brief-addon-pill input {
  width: 13px !important;
  height: 13px !important;
  min-height: 0 !important;
  margin: 0;
  accent-color: #4f46e5;
}

body[data-mode="customer"] #assistDesignView .field-hint {
  font-size: 11px !important;
  font-weight: 600;
  margin: 1px 0 0 !important;
  color: #475569;
}

body[data-mode="customer"] #assistDesignView .custom-brief-actions {
  margin-top: 8px !important;
  padding-top: 8px !important;
}

body[data-mode="customer"] #assistDesignView .custom-brief-actions .button {
  min-height: 36px !important;
  padding: 6px 14px !important;
  font-size: 12.5px !important;
}

body[data-mode="customer"] #assistDesignView .brief-submit-messenger-btn {
  min-height: 38px !important;
  padding: 7px 18px !important;
  font-size: 13px !important;
}

/* จุดที่ 1, 2, 4: ฝั่งซ้ายมือของหน้าให้ร้านออกแบบให้ (ขั้นตอน 1-4 + กล่องทักแชท) */
body[data-mode="customer"] #assistDesignView .assist-design-side-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

body[data-mode="customer"] #assistDesignView .assist-guide-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 14px 16px !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}

body[data-mode="customer"] #assistDesignView .assist-guide-head-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 0;
}

body[data-mode="customer"] #assistDesignView .assist-guide-card .eyebrow {
  font-size: 10px !important;
  margin: 0 !important;
}

body[data-mode="customer"] #assistDesignView .assist-guide-card h3 {
  margin: 0 !important;
  font-size: 15.5px !important;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] #assistDesignView .assist-step-list {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none;
  display: grid;
  gap: 6px;
}

body[data-mode="customer"] #assistDesignView .assist-step-list li {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 12px;
  line-height: 1.35;
}

body[data-mode="customer"] #assistDesignView .assist-step-list li b {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1px;
}

body[data-mode="customer"] #assistDesignView .assist-step-list li span {
  font-size: 11px;
  color: #64748b;
  display: block;
}

/* จุดที่ 4 (รอบใหม่): กล่องแจ้งอัตราค่าออกแบบ 99 บาท+ / สั่งครบ 500 ออกแบบฟรี / มัดจำ 50% */
body[data-mode="customer"] #assistDesignView .assist-pricing-policy-box {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fcd34d;
  border-radius: 12px;
  padding: 9px 12px;
  color: #78350f;
}

body[data-mode="customer"] #assistDesignView .assist-pricing-policy-box strong {
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 4px;
}

body[data-mode="customer"] #assistDesignView .assist-pricing-policy-box ul {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 2px;
  font-size: 11.5px;
  line-height: 1.35;
}

body[data-mode="customer"] #assistDesignView .assist-pricing-policy-box li b {
  color: #b45309;
  font-weight: 800;
}

body[data-mode="customer"] #assistDesignView .assist-direct-chat-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1.5px solid #bfdbfe;
  margin-top: auto;
}

body[data-mode="customer"] #assistDesignView .assist-direct-chat-box strong {
  display: block;
  font-size: 12.5px;
  color: #1e3a8a;
}

body[data-mode="customer"] #assistDesignView .assist-direct-chat-box p {
  margin: 1px 0 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}

body[data-mode="customer"] #assistDesignView .assist-direct-chat-box .button {
  min-height: 36px !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  width: 100%;
  justify-content: center;
}


/* ----------------------------------------------------------------------------
   2. หน้าตะกร้าสินค้า & ชำระเงิน (#cartView / #checkoutView) — Notebook-Friendly Scale
   ---------------------------------------------------------------------------- */
body[data-mode="customer"] #cartView.shell.page-space,
body[data-mode="customer"] #checkoutView.shell.page-space {
  max-width: 1640px;
  width: min(1640px, calc(100vw - 32px));
  padding-top: 8px !important;
  padding-bottom: 24px !important;
  min-height: auto;
}

/* ย่อแถบ Stepper ด้านบนให้เป็นแถบเม็ดยาบางกระชับ (~38px) */
body[data-mode="customer"] #cartView .order-flow-stepper,
body[data-mode="customer"] #checkoutView .order-flow-stepper {
  padding: 5px 12px !important;
  margin-bottom: 8px !important;
  border-radius: 14px !important;
  gap: 8px !important;
  min-height: 0 !important;
}

body[data-mode="customer"] #cartView .order-flow-stepper .flow-step,
body[data-mode="customer"] #checkoutView .order-flow-stepper .flow-step {
  padding: 4px 12px !important;
  min-height: 30px !important;
  border-radius: 999px !important;
  gap: 7px !important;
}

body[data-mode="customer"] #cartView .order-flow-stepper .flow-step-num,
body[data-mode="customer"] #checkoutView .order-flow-stepper .flow-step-num {
  width: 20px !important;
  height: 20px !important;
  font-size: 11px !important;
}

body[data-mode="customer"] #cartView .order-flow-stepper .flow-step-text strong,
body[data-mode="customer"] #checkoutView .order-flow-stepper .flow-step-text strong {
  font-size: 12px !important;
}

body[data-mode="customer"] #cartView .order-flow-stepper .flow-step-text small,
body[data-mode="customer"] #checkoutView .order-flow-stepper .flow-step-text small {
  display: none !important;
}

/* ย่อ Header หน้าตะกร้าและหน้าชำระเงินให้เหลือบรรทัดเดียว ไม่กินพื้นที่จอ Notebook */
body[data-mode="customer"] #cartView .page-title-row,
body[data-mode="customer"] #checkoutView .page-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 10px !important;
  padding: 8px 16px !important;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

body[data-mode="customer"] #cartView .page-title-row .eyebrow,
body[data-mode="customer"] #checkoutView .page-title-row .eyebrow,
body[data-mode="customer"] #cartView .page-title-row > div > p:last-child,
body[data-mode="customer"] #checkoutView .page-title-row > div > p:last-child {
  display: none !important;
}

body[data-mode="customer"] #cartView .page-title-row h1,
body[data-mode="customer"] #checkoutView .page-title-row h1 {
  margin: 0 !important;
  font-size: clamp(18px, 1.5vw, 21px) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
}

body[data-mode="customer"] #cartView .checkout-title-actions .button,
body[data-mode="customer"] #checkoutView .checkout-title-actions .button {
  min-height: 34px !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
  border-radius: 999px !important;
}

/* ปรับขนาดแถบ Overview และการ์ดสินค้าในตะกร้าให้กระชับขึ้นสำหรับจอ Notebook */
body[data-mode="customer"] .cart-view-layout,
body[data-mode="customer"] .checkout-layout.checkout-layout-modern {
  grid-template-columns: minmax(0, 1.58fr) minmax(370px, 0.88fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

body[data-mode="customer"] .cart-view-main {
  gap: 10px !important;
}

body[data-mode="customer"] .cart-plate-overview-bar {
  padding: 8px 14px !important;
  border-radius: 14px !important;
}

body[data-mode="customer"] .cart-plate-icon {
  width: 32px !important;
  height: 32px !important;
  font-size: 16px !important;
  border-radius: 10px !important;
}

body[data-mode="customer"] .cart-plate-overview-info strong {
  font-size: 13.5px !important;
}

body[data-mode="customer"] .cart-plate-overview-info small {
  font-size: 11.5px !important;
}

body[data-mode="customer"] .cart-rich-item-card {
  padding: 12px 15px !important;
  border-radius: 18px !important;
  gap: 6px !important;
}

body[data-mode="customer"] .cart-rich-item-head {
  padding-bottom: 6px !important;
  margin-bottom: 2px !important;
}

body[data-mode="customer"] .cart-rich-item-top {
  grid-template-columns: 132px minmax(0, 1fr) !important;
  gap: 12px !important;
}

body[data-mode="customer"] .cart-rich-thumb-wrap {
  width: 132px !important;
  min-width: 132px !important;
}

body[data-mode="customer"] .cart-rich-thumb-img {
  height: 108px !important;
  border-radius: 12px !important;
}

body[data-mode="customer"] .cart-rich-specs-grid {
  gap: 6px !important;
}

body[data-mode="customer"] .cart-spec-cell {
  padding: 6px 10px !important;
  border-radius: 10px !important;
}

body[data-mode="customer"] .cart-spec-label {
  font-size: 10.5px !important;
}

body[data-mode="customer"] .cart-spec-value {
  font-size: 12.5px !important;
}

body[data-mode="customer"] .cart-rich-index-badge {
  font-size: 12px !important;
  padding: 3px 10px !important;
}

body[data-mode="customer"] .cart-left-selected-upgrades {
  margin-top: 4px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
}

body[data-mode="customer"] .cart-rich-actions-bar {
  margin-top: 6px !important;
  padding-top: 6px !important;
}

/* ย่อขนาดฟอนต์และช่องไฟในกล่องสรุปยอดฝั่งขวา (aside.cart-summary-aside) ให้เห็นครบในจอ Notebook */
body[data-mode="customer"] aside.checkout-summary.cart-summary-aside {
  top: 68px !important;
  padding: 12px 14px !important;
  gap: 6px !important;
  border-radius: 18px !important;
}

body[data-mode="customer"] .cart-summary-head {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 6px !important;
}

body[data-mode="customer"] .cart-summary-title {
  font-size: 16px !important;
  order: 1;
}

body[data-mode="customer"] .cart-summary-eyebrow {
  font-size: 10px !important;
  padding: 3px 9px !important;
  order: 2;
}

body[data-mode="customer"] .cart-summary-aside .free-shipping-banner {
  padding: 6px 10px !important;
  border-radius: 10px !important;
}

body[data-mode="customer"] .cart-summary-aside .free-shipping-text {
  font-size: 12px !important;
}

body[data-mode="customer"] .cart-summary-aside .free-shipping-bar {
  height: 5px !important;
  margin-top: 4px !important;
}

body[data-mode="customer"] .cart-summary-stats-grid {
  gap: 6px !important;
}

body[data-mode="customer"] .cart-stat-box {
  padding: 5px 9px !important;
  border-radius: 10px !important;
  gap: 1px !important;
}

body[data-mode="customer"] .cart-stat-label {
  font-size: 10.5px !important;
}

body[data-mode="customer"] .cart-stat-value {
  font-size: 13px !important;
}

body[data-mode="customer"] .cart-summary-items-box {
  padding: 6px 9px !important;
  border-radius: 12px !important;
  gap: 4px !important;
}

body[data-mode="customer"] .cart-summary-section-head {
  font-size: 11px !important;
  padding-bottom: 3px !important;
}

body[data-mode="customer"] .cart-mini-line {
  padding: 5px 8px !important;
  border-radius: 9px !important;
}

body[data-mode="customer"] .cart-mini-name {
  font-size: 12px !important;
}

body[data-mode="customer"] .cart-mini-sub {
  font-size: 10.5px !important;
}

body[data-mode="customer"] .cart-mini-price {
  font-size: 13px !important;
}

body[data-mode="customer"] .cart-summary-calc-card {
  padding: 6px 9px !important;
  border-radius: 12px !important;
  gap: 4px !important;
}

body[data-mode="customer"] .cart-summary-aside .price-line.cart-calc-row {
  padding: 5px 9px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

body[data-mode="customer"] .cart-summary-aside .price-line.cart-calc-row span {
  font-size: 11.5px !important;
}

body[data-mode="customer"] .cart-summary-aside .price-line.cart-calc-row strong {
  font-size: 13px !important;
}

body[data-mode="customer"] .cart-summary-aside .price-total.cart-grand-total-box {
  padding: 8px 12px !important;
  border-radius: 12px !important;
  margin-top: 2px !important;
}

body[data-mode="customer"] .cart-grand-total-label span {
  font-size: 13.5px !important;
}

body[data-mode="customer"] .cart-grand-total-label small {
  font-size: 10.5px !important;
}

body[data-mode="customer"] .cart-summary-aside #cartSummaryGrandTotal {
  font-size: 20px !important;
}

body[data-mode="customer"] .cart-summary-aside .review-reminder.cart-summary-note {
  display: none !important;
}

body[data-mode="customer"] .cart-summary-cta-stack {
  gap: 5px !important;
}

body[data-mode="customer"] .cart-main-checkout-btn {
  min-height: 38px !important;
  font-size: 13.5px !important;
  padding: 6px 12px !important;
  border-radius: 11px !important;
}

body[data-mode="customer"] .cart-back-studio-btn {
  min-height: 30px !important;
  font-size: 11.5px !important;
  padding: 4px 10px !important;
  border-radius: 9px !important;
}

/* ----------------------------------------------------------------------------
   3. หน้าติดตามออเดอร์ (#trackOrderView) — Unified Top Search Bar + Single-Screen Fit
   ---------------------------------------------------------------------------- */
body[data-mode="customer"] #trackOrderView.view.is-active.shell.page-space {
  max-width: 1480px;
  width: min(1480px, calc(100vw - 32px));
  padding-top: 12px !important;
  padding-bottom: 24px !important;
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-mode="customer"] #trackOrderView .track-top-unified-bar {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.35fr);
  gap: 18px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

body[data-mode="customer"] #trackOrderView .page-title-row.track-compact-header {
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body[data-mode="customer"] #trackOrderView .track-compact-header .eyebrow {
  display: none !important;
}

body[data-mode="customer"] #trackOrderView .track-compact-header h1 {
  margin: 0 !important;
  font-size: clamp(19px, 1.6vw, 23px) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a;
}

body[data-mode="customer"] #trackOrderView .track-compact-header p {
  margin: 4px 0 0 !important;
  font-size: 12.5px !important;
  color: #64748b;
  line-height: 1.4;
}

body[data-mode="customer"] #trackOrderView .track-search-card {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

body[data-mode="customer"] #trackOrderView .track-input-group {
  grid-template-columns: minmax(0, 1.4fr) minmax(130px, 0.65fr) auto !important;
  gap: 8px !important;
}

body[data-mode="customer"] #trackOrderView .track-input-group input {
  min-height: 40px !important;
  padding: 0 12px !important;
  font-size: 13.5px !important;
  border-radius: 10px !important;
}

body[data-mode="customer"] #trackOrderView .track-input-group .button {
  min-height: 40px !important;
  padding: 0 18px !important;
  font-size: 13.5px !important;
  border-radius: 10px !important;
}

body[data-mode="customer"] #trackOrderView .track-quick-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

body[data-mode="customer"] #trackOrderView .track-form .field-hint {
  margin: 0 !important;
  font-size: 11.5px !important;
}

body[data-mode="customer"] #trackOrderView .track-sample-pill {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-mode="customer"] #trackOrderView .track-sample-pill:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

/* ผลลัพธ์การค้นหาออเดอร์แบบกระชับ เต็มความกว้างและอ่านง่ายในจอเดียว */
body[data-mode="customer"] #trackOrderView .track-result-wrap {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
}

body[data-mode="customer"] #trackOrderView .track-card {
  padding: 16px 20px !important;
  border-radius: 18px !important;
}

body[data-mode="customer"] #trackOrderView .track-card-header {
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
}

body[data-mode="customer"] #trackOrderView .track-card-header h2 {
  font-size: 19px !important;
  margin: 0 !important;
}

body[data-mode="customer"] #trackOrderView .track-timeline {
  margin-bottom: 14px !important;
}

body[data-mode="customer"] #trackOrderView .track-shipping-card {
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
}

body[data-mode="customer"] #trackOrderView .track-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
}

/* การ์ดแสดง 4 ขั้นตอนมาตรฐานด้านล่าง */
body[data-mode="customer"] #trackOrderView .track-stages-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body[data-mode="customer"] #trackOrderView .track-stage-mini-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

body[data-mode="customer"] #trackOrderView .tsm-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef2ff;
  border: 1.5px solid #c7d2fe;
  color: #4338ca;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body[data-mode="customer"] #trackOrderView .track-stage-mini-card strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

body[data-mode="customer"] #trackOrderView .track-stage-mini-card small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  body[data-mode="customer"] #assistDesignView .assist-design-page-layout,
  body[data-mode="customer"] #trackOrderView .track-top-unified-bar {
    grid-template-columns: 1fr !important;
  }
  body[data-mode="customer"] #assistDesignView .brief-quick-type-grid,
  body[data-mode="customer"] #trackOrderView .track-stages-overview-grid,
  body[data-mode="customer"] #trackOrderView .track-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body[data-mode="customer"] #assistDesignView .brief-form-grid.brief-compact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------------------------------
   4. Admin Header & Sub-Header Compact Scale (Today -> Orders -> Briefs -> Chats -> Members -> Stock -> Settings)
   ---------------------------------------------------------------------------- */
body[data-mode="admin"] .admin-view.shell.page-space,
.admin-view.shell.page-space {
  max-width: 1560px;
  width: min(1560px, calc(100vw - 32px));
  padding-top: 12px !important;
  padding-bottom: 36px !important;
}

body[data-mode="admin"] .admin-heading,
.admin-view .admin-heading {
  padding: 12px 18px !important;
  border-radius: 16px !important;
  background: #0b0b0c !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px 16px !important;
  margin-bottom: 14px !important;
}

body[data-mode="admin"] .admin-heading > div:first-child,
.admin-view .admin-heading > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}

body[data-mode="admin"] .admin-heading p.eyebrow,
.admin-view .admin-heading p.eyebrow {
  font-size: 9.5px !important;
  letter-spacing: 0.11em !important;
  color: rgba(255, 255, 255, 0.62) !important;
  margin: 0 0 2px 0 !important;
  gap: 6px !important;
}

body[data-mode="admin"] .admin-heading p.eyebrow span,
.admin-view .admin-heading p.eyebrow span {
  width: 6px !important;
  height: 6px !important;
  box-shadow: 0 0 0 3px rgba(255, 36, 72, 0.18) !important;
}

body[data-mode="admin"] .admin-heading h1,
.admin-view .admin-heading h1 {
  font-size: clamp(16.5px, 1.35vw, 20px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  color: #ffffff !important;
  margin: 0 !important;
}

body[data-mode="admin"] .admin-heading > div > p:last-child,
.admin-view .admin-heading > div > p:last-child {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  margin: 3px 0 0 0 !important;
}

body[data-mode="admin"] .admin-heading .admin-heading-actions,
.admin-view .admin-heading .admin-heading-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}

body[data-mode="admin"] .admin-heading .button,
body[data-mode="admin"] .admin-heading > .button,
.admin-view .admin-heading .button,
.admin-view .admin-heading > .button {
  min-height: 32px !important;
  padding: 5px 11px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 9px !important;
}

body[data-mode="admin"] .admin-heading .demo-chip,
.admin-view .admin-heading .demo-chip {
  padding: 4px 10px !important;
  font-size: 9.5px !important;
}

/* ย่อแถบคู่มือ iShip และหัวข้อการ์ดย่อยในหน้า Admin ให้กระชับเข้าชุดกัน */
body[data-mode="admin"] .admin-iship-workflow-banner,
.admin-view .admin-iship-workflow-banner {
  margin: 0 0 12px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  gap: 10px !important;
}

body[data-mode="admin"] .iship-step-card,
.admin-view .iship-step-card {
  padding: 8px 11px !important;
  border-radius: 10px !important;
  gap: 8px !important;
}

body[data-mode="admin"] .iship-step-card strong,
.admin-view .iship-step-card strong {
  font-size: 12px !important;
}

body[data-mode="admin"] .iship-step-card small,
.admin-view .iship-step-card small {
  font-size: 11px !important;
  line-height: 1.35 !important;
}

body[data-mode="admin"] .panel-heading h2,
.admin-view .panel-heading h2 {
  font-size: 17px !important;
}


/* ===== หลังบ้าน: งานออกแบบให้ลูกค้า — ซ้ายรายการ / ขวารายละเอียด + แถบขั้นตอน ===== */
.admin-briefs-grid:has(> .abw) { display: block; }
.abw { display: flex; flex-direction: column; gap: 12px; color: #0f172a; }
.abw-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.abw-tab { flex: 0 0 auto; border: 1px solid #cbd5e1; background: #ffffff; color: #334155; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.abw-tab:hover { border-color: #6366f1; }
.abw-tab.is-active { background: #4f46e5; border-color: #4338ca; color: #ffffff; }
.abw-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(15, 23, 42, 0.08); font-size: 11px; text-align: center; }
.abw-tab.is-active .abw-count { background: rgba(255, 255, 255, 0.25); }
.abw-body { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 14px; align-items: start; }
.abw-list { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 200px); overflow-y: auto; position: sticky; top: 90px; padding: 2px; }
.abw-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; width: 100%; background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; cursor: pointer; color: #0f172a; font: inherit; }
.abw-item:hover { border-color: #a5b4fc; }
.abw-item.is-active { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15); background: #eef2ff; }
.abw-item-name { font-weight: 900; font-size: 14px; }
.abw-item-id { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: #4338ca; font-weight: 700; }
.abw-item-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.abw-item-file { color: #475569; font-size: 11px; word-break: break-all; }
.abw-pill { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.abw-pill--new { background: #fef3c7; color: #92400e; }
.abw-pill--design_fee { background: #dbeafe; color: #1e40af; }
.abw-pill--designing { background: #ede9fe; color: #5b21b6; }
.abw-pill--awaiting_payment { background: #cffafe; color: #155e75; }
.abw-pill--producing { background: #d1fae5; color: #065f46; }
.abw-pill--done { background: #dcfce7; color: #166534; }
.abw-pill--cancelled { background: #fee2e2; color: #991b1b; }
.abw-pill--alert { background: #ffedd5; color: #9a3412; }
.abw-empty { color: #64748b; padding: 14px; background: #ffffff; border-radius: 12px; border: 1px dashed #cbd5e1; margin: 0; }
.abw-detail { min-width: 0; }
.abw-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; color: #0f172a; }
.abw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.abw-head h2 { margin: 0; font-size: 20px; }
.abw-sub { font-size: 12.5px; color: #475569; margin-top: 2px; }
.abw-head-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.abw-stepper { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; }
.abw-stepper li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: #94a3b8; text-align: center; position: relative; }
.abw-stepper li::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: #e2e8f0; z-index: 0; }
.abw-stepper li:first-child::before { display: none; }
.abw-stepper li.is-done::before, .abw-stepper li.is-current::before { background: #4f46e5; }
.abw-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; color: #64748b; font-weight: 900; position: relative; z-index: 1; }
.abw-stepper li.is-done { color: #4338ca; }
.abw-stepper li.is-done .abw-dot { background: #4f46e5; color: #ffffff; }
.abw-stepper li.is-current { color: #0f172a; }
.abw-stepper li.is-current .abw-dot { background: #f59e0b; color: #ffffff; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25); }
.abw-next { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.abw-cancelled { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 8px 12px; font-weight: 800; }
.abw-sec { border: 1.5px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: #ffffff; }
.abw-sec h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.abw-sec.is-current { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12); }
.abw-sec.is-done { background: #f8fafc; }
.abw-sec.is-done h3 { color: #475569; }
.abw-brief { background: #f8fafc; }
.abw-num { width: 24px; height: 24px; border-radius: 50%; background: #4f46e5; color: #ffffff; display: inline-grid; place-items: center; font-size: 13px; }
.abw-sec.is-done .abw-num { background: #94a3b8; }
.abw-sec-flag { font-size: 11.5px; font-weight: 800; background: #f59e0b; color: #ffffff; border-radius: 999px; padding: 2px 9px; }
.abw-sec-flag.is-done { background: #dcfce7; color: #166534; }
.abw-hint { margin: 0; font-size: 12.5px; color: #64748b; }
.abw-idea { margin: 0; font-size: 14px; font-weight: 700; color: #1e293b; }
.abw-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.abw-meta span { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 9px; }
.abw-ref { display: flex; align-items: center; gap: 8px; }
.abw-ref img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid #cbd5e1; }
.abw-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.abw-row--muted { align-items: center; font-size: 12.5px; color: #475569; background: #f8fafc; border-radius: 10px; padding: 6px 10px; }
.abw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.abw-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 800; color: #334155; }
.abw-field--wide { width: 100%; }
.abw-field input, .abw-field select { padding: 7px 9px; border-radius: 9px; border: 1px solid #94a3b8; font-weight: 800; background: #ffffff; color: #0f172a; font-size: 13px; box-sizing: border-box; width: 100%; }
.abw-upload-btn { cursor: pointer; margin: 0; }
.abw-status-line { font-size: 13px; font-weight: 800; }
.abw-ok { color: #047857; }
.abw-wait { color: #b45309; }
.abw-warn { background: #fff7ed; border: 1px dashed #fb923c; color: #9a3412; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; }
.abw-empty-file { background: #fffbeb; border: 1px dashed #f59e0b; color: #92400e; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; }
.abw-file { border: 1.5px solid #818cf8; background: #eef2ff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.abw-file-head { display: flex; gap: 10px; align-items: center; }
.abw-file-icon { font-size: 28px; }
.abw-file-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.abw-file-label { font-size: 11.5px; font-weight: 800; color: #4338ca; }
.abw-file-name { font-family: ui-monospace, Consolas, monospace; font-size: 15px; color: #1e1b4b; word-break: break-all; }
.abw-file-meta small { color: #475569; font-size: 11.5px; }
.abw-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.abw-chip { display: inline-flex; align-items: center; gap: 4px; background: #ffffff; border: 1px solid #cbd5e1; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #1e293b; }
.abw-chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, 0.2); }
.abw-preview { position: relative; background: linear-gradient(135deg, #f8fafc, #e0e7ff); border-radius: 10px; overflow: hidden; }
.abw-preview canvas { display: block; width: 100%; height: 300px; touch-action: none; cursor: grab; }
.abw-preview-status { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: #475569; background: rgba(255, 255, 255, 0.85); border-radius: 999px; padding: 2px 8px; pointer-events: none; }
.abw-rev { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 3px 8px; }
.abw-rev .button { min-height: 24px; padding: 0 8px; }
.abw-breakdown { background: #f1f5f9; border-radius: 10px; padding: 8px 10px; }
.abw-slips { background: #fff7ed; border: 1.5px solid #fb923c; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: #9a3412; }
.abw-slips small { font-weight: 600; }
.abw-slip-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; background: #ffffff; border: 1px solid #fed7aa; border-radius: 8px; padding: 6px 8px; color: #1e293b; }
.abw-row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.abw-btn-ok { background: #059669 !important; border-color: #047857 !important; }
.abw-btn-danger { color: #b91c1c !important; border-color: #fca5a5 !important; }
.abw-slip-thumb { width: 34px; height: 44px; object-fit: cover; border-radius: 6px; border: 1.5px solid #059669; }
.abw-foot { display: flex; justify-content: flex-end; }
.abw .button[disabled] { opacity: 0.5; cursor: not-allowed; }
.abw-grid--5 { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.abw-row--fee-quick { align-items: center; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 7px 10px; }
.abw-fee-quick-label { font-size: 12px; font-weight: 800; color: #334155; }

/* ===== 3 ช่องอัปโหลดสลิป / ลิงก์ & เช็กสถานะรับเงิน (3 ขั้นตอน) ===== */
.abw-pay3 { display: flex; flex-direction: column; gap: 10px; }
.abw-pay3-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; }
.abw-pay3-track { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.abw-pay3-arrow { color: #94a3b8; font-weight: 900; font-size: 14px; }
.abw-pay3-step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 10px; background: #ffffff; border: 1.5px solid #e2e8f0; }
.abw-pay3-step-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 900; background: #e2e8f0; color: #475569; flex-shrink: 0; }
.abw-pay3-step-text { display: flex; flex-direction: column; line-height: 1.2; }
.abw-pay3-step-text strong { font-size: 12px; color: #0f172a; }
.abw-pay3-step-text small { font-size: 10.5px; color: #64748b; font-weight: 700; }
.abw-pay3-step.is-paid { background: #ecfdf5; border-color: #6ee7b7; }
.abw-pay3-step.is-paid .abw-pay3-step-dot { background: #059669; color: #ffffff; }
.abw-pay3-step.is-paid .abw-pay3-step-text small { color: #047857; }
.abw-pay3-step.is-current { background: #fffbeb; border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.16); }
.abw-pay3-step.is-current .abw-pay3-step-dot { background: #f59e0b; color: #ffffff; }
.abw-pay3-step.is-current .abw-pay3-step-text small { color: #b45309; }
.abw-pay3-step.is-skipped { opacity: 0.72; background: #f1f5f9; }

.abw-rule-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.abw-rule-pill.is-installment { background: #ede9fe; color: #5b21b6; }
.abw-rule-pill.is-discount { background: #d1fae5; color: #065f46; }
.abw-rule-pill.is-normal { background: #fef3c7; color: #92400e; }

.abw-pay3-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.abw-pay3-card { display: flex; flex-direction: column; gap: 9px; border-radius: 14px; border: 2px solid #cbd5e1; background: #ffffff; padding: 12px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.abw-pay3-card.is-current { border-color: #f59e0b; background: #fffdf7; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.12); }
.abw-pay3-card.is-current.is-alert { border-color: #ea580c; background: #fff7ed; box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16); }
.abw-pay3-card.is-paid { border-color: #10b981; background: #f0fdf4; }
.abw-pay3-card.is-skipped { border-style: dashed; border-color: #cbd5e1; background: #f8fafc; }

.abw-pay3-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.abw-pay3-card-title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #0f172a; }
.abw-pay3-badge { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: #334155; color: #ffffff; flex-shrink: 0; }
.abw-pay3-card.is-paid .abw-pay3-badge { background: #059669; }
.abw-pay3-card.is-current .abw-pay3-badge { background: #f59e0b; }
.abw-pay3-status { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.abw-pay3-card.is-paid .abw-pay3-status { background: #d1fae5; color: #065f46; }
.abw-pay3-card.is-current .abw-pay3-status { background: #fef3c7; color: #92400e; }
.abw-pay3-card.is-current.is-alert .abw-pay3-status { background: #ffedd5; color: #9a3412; }

.abw-pay3-reminder { background: rgba(255, 255, 255, 0.88); border: 1px dashed #94a3b8; border-radius: 10px; padding: 7px 10px; display: flex; flex-direction: column; gap: 2px; }
.abw-pay3-reminder-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.abw-pay3-reminder-label { font-size: 11.5px; font-weight: 800; color: #475569; }
.abw-pay3-reminder-amt { font-size: 16px; font-weight: 900; color: #0f172a; }
.abw-pay3-reminder-sub { font-size: 11px; color: #64748b; }

.abw-paid-check { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 11px; border: 1.5px solid #94a3b8; background: #ffffff; cursor: pointer; user-select: none; transition: all 0.14s ease; }
.abw-paid-check:hover { border-color: #059669; background: #f0fdf4; }
.abw-paid-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.abw-paid-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #64748b; background: #ffffff; display: grid; place-items: center; font-size: 14px; font-weight: 900; color: #ffffff; flex-shrink: 0; }
.abw-paid-check.is-checked { border-color: #059669; background: #ecfdf5; box-shadow: 0 2px 8px rgba(5, 150, 105, 0.14); }
.abw-paid-check.is-checked .abw-paid-box { border-color: #059669; background: #059669; }
.abw-paid-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.abw-paid-text strong { font-size: 12.5px; color: #0f172a; }
.abw-paid-check.is-checked .abw-paid-text strong { color: #065f46; }
.abw-paid-text small { font-size: 10.5px; color: #64748b; }

.abw-slot-body { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.abw-slot-empty { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px; font-size: 11.5px; color: #64748b; text-align: center; background: rgba(255, 255, 255, 0.7); }
.abw-slot-slip-box { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; border: 1px solid #cbd5e1; background: #ffffff; }
.abw-slot-slip-box.is-pending { border-color: #fb923c; background: #fff7ed; }
.abw-slot-thumb { width: 48px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid #94a3b8; cursor: pointer; flex-shrink: 0; background: #f1f5f9; }
.abw-slot-thumb--icon { display: grid; place-items: center; font-size: 22px; cursor: default; }
.abw-slot-slip-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.abw-slot-slip-meta strong { font-size: 12px; color: #0f172a; word-break: break-all; }
.abw-slot-slip-meta small { font-size: 10.5px; color: #475569; }
.abw-slot-slip-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.abw-slot-upload-btn { width: 100%; justify-content: center; cursor: pointer; font-weight: 800; }
.abw-slot-link-row { display: flex; gap: 5px; align-items: center; }
.abw-slot-link-row input { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 8px; border: 1px solid #cbd5e1; font-size: 12px; background: #ffffff; color: #0f172a; }
.abw-slot-quick { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 4px; border-top: 1px dashed #e2e8f0; }

/* ===== ดีไซน์ใหม่ ขั้นที่ 1: ตั้งราคาสินค้า · ค่าออกแบบ · แยกเงื่อนไขมัดจำ & บันทึกข้อความ ===== */
.abw-subcard { border: 1.5px solid #e2e8f0; border-radius: 13px; padding: 12px 14px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
.abw-subcard + .abw-subcard { margin-top: 4px; }
.abw-price-box { background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%); border-color: #cbd5e1; }
.abw-cond-box { background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%); border-color: #d8b4fe; }
.abw-note-box { background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%); border-color: #fde68a; }

.abw-subcard-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 1px dashed #cbd5e1; }
.abw-subcard-title { font-size: 13.5px; font-weight: 900; color: #0f172a; display: inline-flex; align-items: center; gap: 6px; }
.abw-subcard-pill { font-size: 12px; color: #334155; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 999px; padding: 3px 11px; }
.abw-subcard-pill b { color: #312e81; font-weight: 900; }

.abw-price-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.abw-price-grid .abw-field { background: #ffffff; border: 1.5px solid #cbd5e1; border-radius: 11px; padding: 8px 10px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.abw-price-grid .abw-field:focus-within { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }
.abw-price-grid .abw-field--discount { background: #f0fdfa; border-color: #5eead4; }
.abw-price-grid .abw-field--total { background: #f0fdf4; border-color: #86efac; }
.abw-price-grid .abw-field--fee { background: #eff6ff; border-color: #93c5fd; }
.abw-price-grid .abw-field input { font-size: 16px; font-weight: 900; padding: 7px 10px; border-radius: 8px; border: 1px solid #94a3b8; }
.abw-field-help { font-size: 10.5px; font-weight: 600; color: #64748b; margin-top: 1px; }

.abw-ws-tier-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: #f0fdfa; border: 1px dashed #5eead4; border-radius: 10px; padding: 7px 10px; margin-bottom: 6px; }
.abw-ws-tier-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.abw-ws-tier-presets .button.is-selected { background: #0d9488 !important; border-color: #0f766e !important; color: #ffffff !important; }
.abw-fee-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; background: #ffffff; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 7px 10px; }
.abw-fee-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.abw-fee-presets .button.is-selected { background: #4f46e5 !important; border-color: #4338ca !important; color: #ffffff !important; }
.abw-fee-paid-tag { font-size: 12px; font-weight: 800; color: #047857; background: #ecfdf5; border: 1px solid #6ee7b7; border-radius: 999px; padding: 3px 10px; }

/* กล่อง 1.2: เงื่อนไขมัดจำแยกชัดเจน */
.abw-cond-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.abw-cond-card { background: #ffffff; border: 1.5px solid #e2e8f0; border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; opacity: 0.78; transition: all 0.16s ease; }
.abw-cond-card.is-active { opacity: 1; border-color: #7c3aed; background: #ffffff; box-shadow: 0 4px 14px rgba(124, 58, 237, 0.12), 0 0 0 2px rgba(124, 58, 237, 0.15); }
.abw-cond-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.abw-cond-tier-tag { font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #334155; }
.abw-cond-card.is-active .abw-cond-tier-tag { background: #ede9fe; color: #5b21b6; }
.abw-cond-status { font-size: 10.5px; font-weight: 800; color: #64748b; }
.abw-cond-card.is-active .abw-cond-status { color: #059669; }
.abw-cond-card strong { font-size: 12.5px; color: #0f172a; }
.abw-cond-card p { margin: 0; font-size: 11px; color: #475569; line-height: 1.38; }
.abw-cond-select-row { margin-top: auto; padding-top: 6px; border-top: 1px dashed #e2e8f0; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; font-weight: 800; color: #4c1d95; }
.abw-cond-select-row select { padding: 4px 8px; border-radius: 8px; border: 1.5px solid #a78bfa; background: #f5f3ff; color: #3b0764; font-weight: 800; font-size: 11.5px; cursor: pointer; }

.abw-cond-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: #ffffff; border: 1px solid #d8b4fe; border-radius: 10px; padding: 8px 12px; }
.abw-cond-stage-pill { display: flex; flex-direction: column; gap: 1px; flex: 1 1 160px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 9px; padding: 6px 10px; }
.abw-cond-stage-pill.is-highlight { background: #eff6ff; border-color: #93c5fd; }
.abw-cond-stage-pill.is-stage3 { background: #f5f3ff; border-color: #c4b5fd; }
.abw-cond-stage-pill.is-muted { opacity: 0.7; }
.abw-cond-stage-num { font-size: 10.5px; font-weight: 800; color: #64748b; }
.abw-cond-stage-pill strong { font-size: 13px; font-weight: 900; color: #0f172a; }
.abw-cond-stage-arrow { color: #94a3b8; font-weight: 900; font-size: 14px; }

/* กล่อง 1.3: ข้อความถึงลูกค้า & บันทึกราคา */
.abw-note-presets { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; font-weight: 800; color: #475569; }
.abw-preset-chip { border: 1px solid #cbd5e1; background: #ffffff; color: #334155; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.14s ease; }
.abw-preset-chip:hover { border-color: #4f46e5; color: #4338ca; background: #eef2ff; }
.abw-note-textarea { width: 100%; box-sizing: border-box; border-radius: 10px; border: 1.5px solid #cbd5e1; padding: 8px 11px; font: inherit; font-size: 13px; font-weight: 600; color: #0f172a; background: #ffffff; resize: vertical; min-height: 54px; }
.abw-note-textarea:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }
.abw-note-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.abw-save-quote-btn { font-weight: 900 !important; padding: 9px 18px !important; font-size: 13.5px !important; border-radius: 10px !important; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22); }
.abw-save-quote-meta { font-size: 11.5px; color: #64748b; font-weight: 600; }

/* ===== ดีไซน์ใหม่ ขั้นที่ 2: พรีวิว 3D Studio + อัปโหลด .3MF & ลิงก์ลูกค้าแบบ 2 คอลัมน์สมดุล ===== */
.abw-studio-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr); gap: 12px; align-items: stretch; }
.abw-studio-stage { display: flex; flex-direction: column; justify-content: space-between; border: 1.5px solid #818cf8; border-radius: 14px; background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%); color: #f8fafc; overflow: hidden; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14); }
.abw-studio-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; background: rgba(15, 23, 42, 0.65); border-bottom: 1px solid rgba(148, 163, 184, 0.22); }
.abw-studio-title-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.abw-studio-title-wrap strong { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.abw-studio-badge { font-size: 10px; font-weight: 900; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 999px; background: #4f46e5; color: #ffffff; flex-shrink: 0; }
.abw-studio-metrics { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.abw-studio-metric { font-size: 11px; font-weight: 700; color: #e2e8f0; background: rgba(255, 255, 255, 0.12); border-radius: 999px; padding: 2px 8px; }

.abw-studio-stage .abw-preview { border-radius: 0; background: radial-gradient(circle at 50% 38%, #f8fafc 0%, #dbeafe 65%, #c7d2fe 100%); flex: 1; min-height: 250px; display: flex; align-items: center; justify-content: center; }
.abw-studio-stage .abw-preview canvas { width: 100%; height: 260px; display: block; }
.abw-preview--empty { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important; padding: 24px 18px; text-align: center; }
.abw-preview-empty-inner { max-width: 340px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #cbd5e1; }
.abw-preview-empty-icon { font-size: 34px; line-height: 1; }
.abw-preview-empty-inner strong { font-size: 14px; color: #ffffff; }
.abw-preview-empty-inner p { margin: 0; font-size: 12px; color: #94a3b8; line-height: 1.45; }

.abw-studio-parts-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: #f8fafc; border-top: 1px solid #cbd5e1; color: #1e293b; }
.abw-studio-parts-label { font-size: 11.5px; font-weight: 800; color: #334155; flex-shrink: 0; }
.abw-chip-empty { font-size: 11.5px; color: #64748b; font-style: italic; }

.abw-studio-side { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; }
.abw-studio-card { border: 1.5px solid #cbd5e1; border-radius: 13px; padding: 12px; background: #f8fafc; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.abw-studio-card--link { background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); border-color: #93c5fd; }
.abw-studio-card-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.abw-studio-card-title { font-size: 13px; font-weight: 900; color: #0f172a; }
.abw-studio-status-pill { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.abw-studio-status-pill.is-ready { background: #d1fae5; color: #065f46; }
.abw-studio-status-pill.is-empty { background: #fef3c7; color: #92400e; }
.abw-studio-status-pill.is-warn { background: #dbeafe; color: #1e40af; }

.abw-studio-file-meta { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.abw-studio-file-meta strong { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: #1e1b4b; word-break: break-all; }
.abw-studio-file-meta small { font-size: 11px; color: #64748b; }
.abw-upload-btn--full { width: 100%; justify-content: center; text-align: center; padding: 9px 12px !important; font-weight: 900 !important; border-radius: 10px !important; box-sizing: border-box; }
.abw-studio-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.abw-studio-card-actions .button { flex: 1 1 auto; justify-content: center; }
.abw-studio-link-desc { margin: 0; font-size: 11.5px; color: #334155; line-height: 1.4; }
.abw-studio-url-box { background: #ffffff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 6px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: #1e3a8a; }

@media (max-width: 1100px) {
  .abw-pay3-grid,
  .abw-cond-grid,
  .abw-studio-split { grid-template-columns: 1fr; }
  .abw-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .abw-body { grid-template-columns: 1fr; }
  .abw-list { position: static; max-height: 260px; }
  .abw-stepper { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .abw-stepper li:nth-child(4)::before { display: none; }
  .abw-price-grid { grid-template-columns: 1fr; }
}
/* กำแพงภาพ */
@keyframes ovDriftUp {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, -50%, 0); }
}
@keyframes ovDriftDown {
  0% { transform: translate3d(0, -50%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}
@keyframes ovBadgeSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================================================
   Shop theme — customer storefront surfaces only
   ----------------------------------------------------------------------------
   The customer pages (Home / Catalog / Customizer / Checkout / Track) use a soft,
   product-first commerce system: a cool white canvas, floating rounded cards,
   pill controls, and a single violet accent. Everything here is scoped to
   body[data-mode="customer"], so the Admin / Smart Maker Lab surfaces keep the
   original palette untouched.
   ============================================================================ */
body[data-mode="customer"]{
  --shop-canvas:#f6f5f4;--shop-surface:#fff;--shop-ink:#0b0b0c;--shop-muted:#787574;
  --shop-border:#ebebeb;--shop-accent:#5433eb;--shop-accent-soft:rgba(84,51,235,.1);
  --shop-radius-card:28px;--shop-radius-inner:20px;
  --shop-shadow:0 4px 16px rgba(11,11,12,.05),0 1px 2px rgba(11,11,12,.04);
  --shop-shadow-lift:0 12px 36px rgba(11,11,12,.08),0 2px 6px rgba(11,11,12,.04);
  --shop-shadow-sm:0 2px 8px rgba(11,11,12,.04);
  --shop-shadow-accent:0 8px 24px rgba(84,51,235,.28);
  background:var(--shop-canvas);color:var(--shop-ink);
  font-family:'IBM Plex Sans Thai','DM Sans',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:16px;
  line-height:1.65;
  letter-spacing:normal;
}
body[data-mode="customer"] h1,body[data-mode="customer"] h2{letter-spacing:-.015em}
body[data-mode="customer"] .ambient,body[data-mode="customer"] .grid-floor{display:none}

/* Header — light surface, fixed capsule navbar (Dayos style), streetwear brand mark */
body[data-mode="customer"] .site-header{position:fixed;top:0;left:0;right:0;width:100%;z-index:100;background:rgba(255,255,255,.92);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);color:var(--shop-ink);border-bottom:1px solid var(--shop-border);box-shadow:0 1px 8px rgba(11,11,12,.04);display:flex;align-items:center;justify-content:space-between;padding:10px clamp(16px,2.2vw,36px);min-height:72px}
body[data-mode="customer"] main{padding-top:var(--site-header-height,78px)}
body[data-mode="customer"] .brand strong{letter-spacing:-.035em;color:var(--shop-ink);font-weight:900}
body[data-mode="customer"] .brand small{color:var(--shop-muted);font-weight:700;letter-spacing:.04em;text-transform:uppercase}
body[data-mode="customer"] .brand-cube{background:linear-gradient(135deg,#151922,#2a3140);border:1px solid rgba(255,255,255,.18);box-shadow:0 6px 18px rgba(11,11,12,.2);border-radius:12px;color:#fff}
body[data-mode="customer"] .main-nav{display:inline-flex;align-items:center;gap:4px;background:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.06);border-radius:999px;padding:4px 6px;margin:0 auto;flex-shrink:0}
body[data-mode="customer"] .nav-link{color:var(--shop-muted);border-radius:999px;border:none;background:transparent;font-size:14px;letter-spacing:normal;font-weight:700;min-height:42px;padding:8px 15px;transition:all .18s ease}
body[data-mode="customer"] .nav-link:hover{color:var(--shop-ink);background:rgba(255,255,255,.6)}
body[data-mode="customer"] .nav-link.is-active{color:var(--shop-ink);background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.08);border-color:transparent}
body[data-mode="customer"] .header-right-actions{display:flex;align-items:center;gap:10px}
body[data-mode="customer"] .button.button-google-login{background:transparent;color:#fff;border:none;border-radius:999px;box-shadow:none;font-weight:700;min-height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
body[data-mode="customer"] .button.button-google-login:hover{background:transparent;color:#fff;transform:none;box-shadow:none}
body[data-mode="customer"] .button.button-google-login span{color:#fff}
body[data-mode="customer"] .button.button-google-login iframe{display:block}
body[data-mode="customer"] .customer-profile-pill{background:var(--shop-surface);border:1px solid var(--shop-border);border-radius:999px;box-shadow:var(--shop-shadow-sm);color:var(--shop-ink)}
body[data-mode="customer"] [hidden],body[data-mode="customer"] .customer-profile-pill[hidden]{display:none!important}
body[data-mode="customer"] .customer-name{color:var(--shop-ink);font-weight:800}
body[data-mode="customer"] #customerModeButton{display:none!important}
body[data-mode="customer"] .mode-control{background:transparent;border:none;display:flex;align-items:center;margin:0;padding:0}
body[data-mode="customer"] #adminModeButton{background:transparent;border:1px solid var(--shop-border);color:var(--shop-muted);border-radius:999px;font-size:12px;font-weight:700;padding:6px 14px;min-height:40px;cursor:pointer;transition:all .18s ease;display:inline-flex;align-items:center;gap:6px}
body[data-mode="customer"] #adminModeButton:hover{border-color:var(--shop-accent);color:var(--shop-accent);background:var(--shop-surface)}

/* Controls — one violet action, everything else quiet pills */
body[data-mode="customer"] .button{border-radius:999px;border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-ink);box-shadow:none;letter-spacing:-.02em;font-weight:700;min-height:44px;transition:transform .18s ease,box-shadow .18s ease}
body[data-mode="customer"] .button:hover{border-color:rgba(84,51,235,.35);box-shadow:var(--shop-shadow-sm);transform:translateY(-1px)}
body[data-mode="customer"] .button-primary{background:var(--shop-accent);border-color:var(--shop-accent);color:#fff;box-shadow:var(--shop-shadow-accent)}
body[data-mode="customer"] .button-primary:hover{background:#4726d6;border-color:#4726d6;box-shadow:0 8px 28px rgba(69,36,219,.4)}
body[data-mode="customer"] .button-secondary{background:var(--shop-surface);color:var(--shop-ink);box-shadow:var(--shop-shadow-sm)}
body[data-mode="customer"] .button-dark{background:var(--shop-surface);border-color:var(--shop-border);color:var(--shop-ink)}
body[data-mode="customer"] input,body[data-mode="customer"] select,body[data-mode="customer"] textarea{border-radius:999px;border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-ink);letter-spacing:-.02em;min-height:44px;padding:8px 16px;font-weight:600}
body[data-mode="customer"] textarea{border-radius:18px}
body[data-mode="customer"] input:focus,body[data-mode="customer"] select:focus,body[data-mode="customer"] textarea:focus{border-color:var(--shop-accent);background:var(--shop-surface);outline:3px solid rgba(84,51,235,.15);outline-offset:1px}
body[data-mode="customer"] button:focus-visible,body[data-mode="customer"] input:focus-visible,body[data-mode="customer"] select:focus-visible,body[data-mode="customer"] textarea:focus-visible{outline:3px solid var(--shop-accent);outline-offset:2px}
body[data-mode="customer"] .secure-label,body[data-mode="customer"] .demo-chip{border-radius:999px;border-color:var(--shop-border);background:var(--shop-surface);color:var(--shop-muted)}
body[data-mode="customer"] .secure-label{background:var(--shop-accent-soft);color:var(--shop-accent);border-color:rgba(84,51,235,.2)}

/* Hero Section — Streetwear Collectible Showcase & Floating Constellation */
body[data-mode="customer"] #homeView{background:var(--shop-canvas);color:var(--shop-ink)}
body[data-mode="customer"] .hero{padding:48px 0 60px;gap:36px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center}
body[data-mode="customer"] .hero .eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;background:var(--shop-surface);border:1px solid var(--shop-border);box-shadow:var(--shop-shadow-sm);color:#ff3e00;font-size:11px;font-weight:800;letter-spacing:.08em;width:fit-content}
body[data-mode="customer"] .hero .eyebrow .pulse-dot{width:8px;height:8px;border-radius:50%;background:#ff3e00;box-shadow:0 0 10px rgba(255,62,0,.6);animation:pulseDot 2s ease-in-out infinite}
body[data-mode="customer"] .hero-copy h1{font-size:clamp(34px,4.2vw,54px);line-height:1.14;letter-spacing:-.045em;color:var(--shop-ink);font-weight:900}
body[data-mode="customer"] .hero h1{color:var(--shop-ink)}
body[data-mode="customer"] .hero h1 em{color:#ff3e00;font-style:normal;text-shadow:none}
body[data-mode="customer"] .hero-lead{color:var(--shop-muted);font-size:15px;line-height:1.65;margin:16px 0 22px;max-width:540px}

/* Interactive Try Name & Color Palette Box */
body[data-mode="customer"] .hero-interactive-box{margin:18px 0 24px;display:flex;flex-direction:column;gap:12px;max-width:520px}
body[data-mode="customer"] .hero-name-capsule{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--shop-border);border-radius:9999px;box-shadow:0 6px 20px rgba(0,0,0,.06);padding:5px 6px 5px 16px;min-height:54px;transition:border-color .2s ease,box-shadow .2s ease}
body[data-mode="customer"] .hero-name-capsule:focus-within{border-color:#121212;box-shadow:0 8px 24px rgba(0,0,0,.12)}
body[data-mode="customer"] .capsule-icon{font-size:16px;user-select:none}
body[data-mode="customer"] #heroNameQuickInput{border:none;background:transparent;outline:none;font-size:14px;font-weight:700;color:var(--shop-ink);flex:1;min-width:0;padding:0;letter-spacing:.02em}
body[data-mode="customer"] #heroNameQuickInput::placeholder{color:#a0a0a0;font-weight:600}
body[data-mode="customer"] .hero-name-submit{background:#121212;color:#fff;border:none;border-radius:9999px;padding:9px 20px;font-size:13px;font-weight:800;display:inline-flex;align-items:center;gap:6px;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px rgba(0,0,0,.15);white-space:nowrap}
body[data-mode="customer"] .hero-name-submit:hover{background:#ff3e00;box-shadow:0 6px 20px rgba(255,62,0,.35);transform:translateY(-1px)}
body[data-mode="customer"] .hero-color-palette{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:0 4px}
body[data-mode="customer"] .palette-label{font-size:11px;font-weight:800;color:var(--shop-muted)}
body[data-mode="customer"] .color-swatch-list{display:inline-flex;align-items:center;gap:7px}
body[data-mode="customer"] .hero-swatch{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--swatch-a) 50%,var(--swatch-b) 50%);border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.15);cursor:pointer;transition:all .18s ease;padding:0}
body[data-mode="customer"] .hero-swatch:hover{transform:scale(1.22);box-shadow:0 4px 10px rgba(0,0,0,.22)}
body[data-mode="customer"] .hero-swatch.is-active{transform:scale(1.25);box-shadow:0 0 0 2px #121212,0 4px 12px rgba(0,0,0,.25)}
body[data-mode="customer"] .trust-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
body[data-mode="customer"] .trust-row span{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;background:var(--shop-surface);border:1px solid var(--shop-border);box-shadow:var(--shop-shadow-sm);color:var(--shop-ink);font-size:12px;font-weight:700}
body[data-mode="customer"] .trust-row span::first-letter{color:#ff3e00}

/* Floating Toy Constellation */
body[data-mode="customer"] .hero-constellation{position:relative;min-height:460px;display:flex;align-items:center;justify-content:center;perspective:1000px}
body[data-mode="customer"] .constellation-card.main-toy-card{width:min(390px,88vw);min-height:360px;background:#fff;border-radius:28px;border:1px solid var(--shop-border);box-shadow:0 20px 50px rgba(11,11,12,.08),0 2px 8px rgba(11,11,12,.04);position:relative;padding:24px 20px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;animation:floatGentle 6s ease-in-out infinite}
body[data-mode="customer"] .card-tech-tag{position:absolute;font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--shop-muted);background:rgba(0,0,0,.03);padding:4px 10px;border-radius:999px}
body[data-mode="customer"] .card-tech-tag.top-left{top:16px;left:18px}
body[data-mode="customer"] .card-tech-tag.top-right{top:16px;right:18px}
body[data-mode="customer"] .card-tech-tag.bottom-left{bottom:16px;left:18px}
body[data-mode="customer"] .card-tech-tag.bottom-right{bottom:16px;right:18px}
body[data-mode="customer"] .card-tech-tag.highlight{background:rgba(255,62,0,.08);color:#ff3e00}
body[data-mode="customer"] .toy-card-inner{display:flex;align-items:center;justify-content:center;padding:18px 0}
body[data-mode="customer"] .hero-constellation .toy-body{position:relative;width:240px;height:250px;border-radius:50px;background:linear-gradient(155deg,#1c212a 0%,#0d1015 100%);border:3px solid rgba(255,255,255,.14);box-shadow:inset 0 2px 2px rgba(255,255,255,.3),inset 0 -3px 8px rgba(0,0,0,.6),0 24px 44px rgba(0,0,0,.22);display:flex;gap:18px;justify-content:center;align-items:flex-start;padding-top:52px;transform:rotate(-4deg);transition:all .3s ease}
body[data-mode="customer"] .hero-constellation .toy-loop{position:absolute;top:-38px;left:42px;width:64px;height:72px;border-radius:36px;border:16px solid #cbd5e1;background:transparent;box-shadow:inset 0 2px 4px rgba(255,255,255,.8),0 4px 10px rgba(0,0,0,.15);z-index:-1}
body[data-mode="customer"] .hero-constellation .toy-button{width:68px;height:68px;border-radius:22px;box-shadow:inset 0 3px 4px rgba(255,255,255,.5),inset 0 -4px 6px rgba(0,0,0,.3),0 8px 18px rgba(0,0,0,.25);transition:background .25s ease,transform .15s ease}
body[data-mode="customer"] .hero-constellation .toy-body strong{position:absolute;bottom:32px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:24px;font-weight:900;letter-spacing:.16em;color:#f1f5f9;text-shadow:0 -1px 1px rgba(0,0,0,.8),0 1px 1px rgba(255,255,255,.25);transition:all .2s ease}

/* Floating Satellite Cards */
body[data-mode="customer"] .satellite-card{position:absolute;background:#fff;border:1px solid var(--shop-border);border-radius:20px;box-shadow:0 12px 32px rgba(11,11,12,.09);padding:10px 12px;display:flex;flex-direction:column;align-items:center;gap:4px;z-index:2;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
body[data-mode="customer"] .satellite-card:hover{box-shadow:0 18px 42px rgba(11,11,12,.14);transform:scale(1.06) !important}
body[data-mode="customer"] .satellite-card.sat-pink{top:12px;right:-12px;width:130px;animation:floatSatRight 5.2s ease-in-out infinite}
body[data-mode="customer"] .satellite-card.sat-blue{bottom:16px;left:-16px;width:130px;animation:floatSatLeft 5.8s ease-in-out infinite}
body[data-mode="customer"] .sat-badge{font-size:9px;font-weight:900;letter-spacing:.04em;background:rgba(0,0,0,.05);padding:3px 8px;border-radius:999px;color:var(--shop-ink)}
body[data-mode="customer"] .sat-visual{width:100%;height:68px;border-radius:14px;display:grid;place-items:center;position:relative}
body[data-mode="customer"] .sat-visual.pink-toy{background:radial-gradient(circle at 50% 40%,#ffd2ea 0%,#ff58ae 100%)}
body[data-mode="customer"] .sat-visual.blue-toy{background:radial-gradient(circle at 50% 40%,#d2f2ff 0%,#64c6ff 100%)}
body[data-mode="customer"] .sat-keychain-shape{width:86px;height:42px;border-radius:20px;background:#ffcd6c;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 2px 4px rgba(255,255,255,.6),0 4px 8px rgba(0,0,0,.15);border:2px solid #e5b347}
body[data-mode="customer"] .sat-keychain-shape span{font-size:12px;font-weight:900;letter-spacing:.08em;color:#121212}
body[data-mode="customer"] .sat-clicker-shape{width:68px;height:44px;border-radius:16px;background:#121212;display:flex;align-items:center;justify-content:space-around;padding:4px 8px;box-shadow:0 4px 10px rgba(0,0,0,.2)}
body[data-mode="customer"] .sat-clicker-shape i{width:18px;height:18px;border-radius:7px;background:#ff3e00;box-shadow:inset 0 1px 2px rgba(255,255,255,.5)}
body[data-mode="customer"] .sat-clicker-shape span{font-size:10px;font-weight:900;letter-spacing:.06em;color:#fff}
body[data-mode="customer"] .satellite-card small{font-size:9px;font-weight:800;color:var(--shop-muted)}
body[data-mode="customer"] .hero-sparkle{position:absolute;font-size:18px;color:#ffcd6c;user-select:none;pointer-events:none;animation:twinkleSpark 3s ease-in-out infinite}
body[data-mode="customer"] .spark-1{top:8%;left:12%;font-size:22px;color:#ff58ae}
body[data-mode="customer"] .spark-2{top:15%;right:26%;font-size:16px;color:#ffcd6c}
body[data-mode="customer"] .spark-3{bottom:12%;right:10%;font-size:20px;color:#00ca48}

/* Shop-Style Category Quick Access Pills */
body[data-mode="customer"] .hero-category-pills{display:flex;align-items:center;gap:10px;overflow-x:auto;padding:12px 4px 28px;margin-bottom:20px;scrollbar-width:none}
body[data-mode="customer"] .hero-category-pills::-webkit-scrollbar{display:none}
body[data-mode="customer"] .category-pill{border-radius:9999px;background:#fff;border:1px solid var(--shop-border);box-shadow:0 2px 8px rgba(0,0,0,.04);padding:8px 18px 8px 8px;display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:var(--shop-ink);cursor:pointer;transition:all .2s ease;white-space:nowrap;flex-shrink:0}
body[data-mode="customer"] .cat-pill-icon{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;box-shadow:0 2px 6px rgba(0,0,0,.1)}
body[data-mode="customer"] .category-pill:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08);border-color:rgba(0,0,0,.15)}
body[data-mode="customer"] .category-pill.is-active{background:#121212;color:#fff;border-color:#121212;box-shadow:0 4px 14px rgba(0,0,0,.22)}

@media(max-width:900px){
  body[data-mode="customer"] .hero{grid-template-columns:1fr;gap:28px;padding:32px 0 44px}
  body[data-mode="customer"] .satellite-card.sat-pink{right:0;top:0}
  body[data-mode="customer"] .satellite-card.sat-blue{left:0;bottom:0}
}
@media(max-width:600px){
  body[data-mode="customer"] .satellite-card{display:none}
  body[data-mode="customer"] .constellation-card.main-toy-card{width:100%;min-height:320px}
}

/* Marquee — Streetwear Ticker */
body[data-mode="customer"] .marquee{background:var(--shop-surface);border-top:1px solid var(--shop-border);border-bottom:1px solid var(--shop-border);color:var(--shop-muted);font-size:12px;font-weight:800;letter-spacing:.09em;padding:14px 0}
body[data-mode="customer"] .marquee span{color:var(--shop-accent)}

/* Catalog Hero & Steps — hidden in customer mode so products/shapes are immediately front and center */
body[data-mode="customer"] .catalog-hero,body[data-mode="customer"] #productsView .info-strip{display:none !important}
body[data-mode="customer"] #productsView{padding-top:20px}
body[data-mode="customer"] .catalog-family-art{display:none}

/* Cards — Floating Collectible Surfaces */
body[data-mode="customer"] .product-card,body[data-mode="customer"] .form-card,body[data-mode="customer"] .checkout-summary,
body[data-mode="customer"] .customer-preview-panel,body[data-mode="customer"] .customer-controls,
body[data-mode="customer"] .order-rail,body[data-mode="customer"] .steps-grid article,
body[data-mode="customer"] .featured-grid article,body[data-mode="customer"] .product-assurance article,
body[data-mode="customer"] .page-hero,body[data-mode="customer"] .track-card,body[data-mode="customer"] .success-card{
  border:1px solid var(--shop-border);border-radius:var(--shop-radius-card);background:var(--shop-surface);box-shadow:var(--shop-shadow)
}
body[data-mode="customer"] .product-card{padding:14px;display:flex;flex-direction:column;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;position:relative}
body[data-mode="customer"] .product-card:hover,body[data-mode="customer"] .featured-grid article:hover{box-shadow:var(--shop-shadow-lift);transform:translateY(-4px);border-color:rgba(84,51,235,.25)}
body[data-mode="customer"] .product-visual,body[data-mode="customer"] .mini-product-art{border-radius:var(--shop-radius-inner);background:radial-gradient(circle at 50% 35%,#ffffff 0%,#f4f6fa 65%,#e6ebf4 100%);border:1px solid rgba(0,0,0,.04);aspect-ratio:1/1;display:grid;place-items:center;position:relative;overflow:hidden;margin-bottom:14px}
body[data-mode="customer"] .product-visual::before{content:"MM3D // SPEC";position:absolute;top:14px;right:16px;font-size:9px;font-weight:800;letter-spacing:.1em;color:var(--shop-muted);opacity:.7}
body[data-mode="customer"] .product-visual img{width:100%;height:100%;object-fit:cover;border-radius:var(--shop-radius-inner);display:block}

/* Product Visual Collectible Toys */
body[data-mode="customer"] .product-toy{position:relative;border-radius:40px;background:linear-gradient(155deg,#1c212a 0%,#0d1015 100%);border:2px solid rgba(255,255,255,.14);box-shadow:inset 0 2px 2px rgba(255,255,255,.25),0 20px 36px rgba(0,0,0,.18);display:flex;align-items:flex-start;justify-content:center;gap:14px;padding-top:32px;transform:rotate(-6deg);transition:transform .2s ease}
body[data-mode="customer"] .product-card:hover .product-toy{transform:rotate(-3deg) scale(1.03)}
body[data-mode="customer"] .product-toy.one{width:170px;height:160px}
body[data-mode="customer"] .product-toy.two{width:200px;height:175px}
body[data-mode="customer"] .product-toy.three{width:230px;height:185px;gap:10px}
body[data-mode="customer"] .product-toy i{width:48px;height:48px;border-radius:17px;box-shadow:inset 0 2px 3px rgba(255,255,255,.5),0 5px 12px rgba(0,0,0,.2)}
body[data-mode="customer"] .product-toy.one i{background:linear-gradient(145deg,#3b82f6,#1d4ed8)}
body[data-mode="customer"] .product-toy.two i:first-child{background:linear-gradient(145deg,#ff3358,#cc0f32)}
body[data-mode="customer"] .product-toy.two i:last-child{background:linear-gradient(145deg,#6842ff,#4722d6)}
body[data-mode="customer"] .product-toy.three i:nth-child(1){background:linear-gradient(145deg,#10b981,#059669);width:44px;height:44px}
body[data-mode="customer"] .product-toy.three i:nth-child(2){background:linear-gradient(145deg,#ec4899,#db2777);width:44px;height:44px}
body[data-mode="customer"] .product-toy.three i:nth-child(3){background:linear-gradient(145deg,#6842ff,#4722d6);width:44px;height:44px}
body[data-mode="customer"] .product-toy strong{position:absolute;bottom:20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:16px;font-weight:900;letter-spacing:.16em;color:#f1f5f9;text-shadow:0 -1px 1px rgba(0,0,0,.8),0 1px 1px rgba(255,255,255,.2)}

body[data-mode="customer"] .product-copy>p,body[data-mode="customer"] .config-heading p,body[data-mode="customer"] .catalog-heading p,body[data-mode="customer"] .eyebrow{color:var(--shop-accent);letter-spacing:.08em;font-weight:800;font-size:11px;text-transform:uppercase}
body[data-mode="customer"] .product-copy>h2{color:var(--shop-ink);font-size:20px;font-weight:900;margin:4px 0 8px;letter-spacing:-.03em}
body[data-mode="customer"] .product-copy>span,body[data-mode="customer"] .preview-note span,body[data-mode="customer"] .config-heading span{color:var(--shop-muted);font-size:13px;line-height:1.5}
body[data-mode="customer"] .product-features{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0 16px;list-style:none}
body[data-mode="customer"] .product-features li{background:var(--shop-canvas);border:1px solid var(--shop-border);border-radius:999px;padding:4px 10px;font-size:11px;font-weight:700;color:var(--shop-muted)}
body[data-mode="customer"] .product-buy{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid var(--shop-border)}
body[data-mode="customer"] .product-buy strong{color:var(--shop-ink);font-size:24px;font-weight:900;letter-spacing:-.03em}
body[data-mode="customer"] .product-badge{border-radius:999px;background:var(--shop-accent);color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em;padding:5px 12px;position:absolute;top:24px;left:24px;z-index:2;box-shadow:0 4px 12px rgba(84,51,235,.25)}
body[data-mode="customer"] .product-badge.blue,body[data-mode="customer"] .product-badge.lime{background:var(--shop-surface);color:var(--shop-ink);border:1px solid var(--shop-border);box-shadow:var(--shop-shadow-sm)}

/* Catalog — Category Tabs */
body[data-mode="customer"] .catalog-category-tabs{display:flex;gap:10px;margin:28px 0 24px}
body[data-mode="customer"] .catalog-category-tabs button{border-radius:999px;border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-muted);box-shadow:var(--shop-shadow-sm);font-size:14px;font-weight:700;padding:8px 24px;min-height:44px;transition:all .18s ease}
body[data-mode="customer"] .catalog-category-tabs button:hover{border-color:rgba(84,51,235,.35);color:var(--shop-ink)}
body[data-mode="customer"] .catalog-category-tabs button.is-active{background:var(--shop-accent);border-color:var(--shop-accent);color:#fff;box-shadow:0 4px 16px rgba(69,36,219,.28)}
body[data-mode="customer"] #customizerView.customizer-workspace{grid-template-rows:auto auto minmax(0,1fr);gap:8px}
body[data-mode="customer"] .customizer-shape-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--shop-surface);border:1px solid var(--shop-border);border-radius:var(--shop-radius-card);padding:6px 14px;box-shadow:var(--shop-shadow-sm);flex-wrap:wrap;margin:0}
body[data-mode="customer"] .shape-category-nav{display:flex;gap:6px}
body[data-mode="customer"] .shape-cat-pill{border-radius:999px;border:1.5px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-muted);font-size:11px;font-weight:700;padding:5px 12px;cursor:pointer;transition:all .18s ease;min-height:32px}
body[data-mode="customer"] .shape-cat-pill:hover{border-color:rgba(84,51,235,.35);color:var(--shop-ink)}
body[data-mode="customer"] .shape-cat-pill.is-active{background:var(--shop-ink);border-color:var(--shop-ink);color:#fff;box-shadow:var(--shop-shadow-sm)}
body[data-mode="customer"] .shape-chips-container{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body[data-mode="customer"] .shape-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;border:1.5px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-ink);font-size:11px;font-weight:700;cursor:pointer;transition:all .2s cubic-bezier(.16,1,.3,1);box-shadow:var(--shop-shadow-sm);min-height:32px}
body[data-mode="customer"] .shape-chip:hover{border-color:rgba(84,51,235,.4);transform:translateY(-1px);box-shadow:0 4px 12px rgba(84,51,235,.12)}
body[data-mode="customer"] .shape-chip.is-active{border-color:var(--shop-accent);background:var(--shop-surface);color:var(--shop-accent);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--shop-accent);font-weight:800}
body[data-mode="customer"] .shape-chip-name{font-size:11px}
body[data-mode="customer"] .shape-chip-price{font-size:10px;font-weight:800;color:var(--shop-muted);background:var(--shop-canvas);padding:2px 7px;border-radius:999px}
body[data-mode="customer"] .shape-chip.is-active .shape-chip-price{color:var(--shop-accent);background:var(--shop-accent-soft)}
body[data-mode="customer"] .related-presets{display:none!important}

/* Customizer — Studio 3D Canvas & Tactile Controls */
body[data-mode="customer"] .customer-preview-panel{background:var(--shop-surface);display:grid;grid-template-rows:48px minmax(0,1fr) auto;overflow:hidden}
body[data-mode="customer"] .three-preview{border-radius:var(--shop-radius-inner);background:radial-gradient(circle at 50% 40%,#ffffff 0%,#f4f6fa 65%,#e6ecf4 100%);margin:0 14px;border:1px solid rgba(0,0,0,.04);position:relative}
body[data-mode="customer"] .preview-toolbar{background:var(--shop-surface);color:var(--shop-ink);border-bottom:1px solid var(--shop-border);padding:0 20px;display:flex;align-items:center;justify-content:space-between}
body[data-mode="customer"] .preview-toolbar span{color:var(--shop-ink);font-size:11px;font-weight:800;letter-spacing:.06em;display:flex;align-items:center}
body[data-mode="customer"] .preview-toolbar span i{background:#10b981;box-shadow:0 0 10px rgba(16,185,129,.7);width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px}
body[data-mode="customer"] .preview-toolbar small{color:var(--shop-muted);font-size:11px;font-weight:600}
body[data-mode="customer"] .customer-controls{background:var(--shop-surface);padding:12px 16px 20px;gap:6px}
body[data-mode="customer"] #customerColor{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;margin:-1px;padding:0;border:0;clip:rect(0 0 0 0);overflow:hidden}
body[data-mode="customer"] .customer-controls label:not(.keyring-control){gap:2px}
body[data-mode="customer"] .customer-controls label>span{font-size:12px;font-weight:800;color:var(--shop-ink);letter-spacing:-.01em}
body[data-mode="customer"] .customer-controls select,body[data-mode="customer"] .customer-controls input[type="text"]{min-height:38px;padding:8px 14px}
body[data-mode="customer"] #customerNameText{font-size:15px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:var(--shop-canvas);border:1.5px solid var(--shop-border);padding:8px 16px}
body[data-mode="customer"] #customerNameText:focus{border-color:var(--shop-accent);background:var(--shop-surface)}
body[data-mode="customer"] .name-quick-suggestions{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
body[data-mode="customer"] .name-tag-chip{border:1px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-muted);border-radius:999px;padding:3px 11px;font-size:10px;font-weight:700;cursor:pointer;transition:all .18s ease}
body[data-mode="customer"] .name-tag-chip:hover{border-color:var(--shop-accent);color:var(--shop-accent);background:var(--shop-accent-soft)}

/* Tactile Color Swatches */
body[data-mode="customer"] .color-swatches{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:6px}
body[data-mode="customer"] .color-swatch-chip{display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;border:1.5px solid var(--shop-border);background:var(--shop-surface);color:var(--shop-ink);font-size:12px;font-weight:700;cursor:pointer;transition:all .2s cubic-bezier(.16,1,.3,1);box-shadow:var(--shop-shadow-sm);min-height:38px}
body[data-mode="customer"] .color-swatch-chip:hover{border-color:rgba(84,51,235,.4);transform:translateY(-1px);box-shadow:0 4px 12px rgba(84,51,235,.12)}
body[data-mode="customer"] .color-swatch-chip.is-active{border-color:var(--shop-accent);background:var(--shop-surface);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--shop-accent);font-weight:800;color:var(--shop-accent)}
body[data-mode="customer"] .color-swatch-dot{width:18px;height:18px;border-radius:50%;flex-shrink:0;box-shadow:inset 0 2px 3px rgba(255,255,255,.5),0 2px 6px rgba(0,0,0,.2);border:1.5px solid rgba(255,255,255,.9)}
body[data-mode="customer"] .color-swatch-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

body[data-mode="customer"] .config-heading{border-bottom:1px solid var(--shop-border);padding-bottom:6px}
body[data-mode="customer"] .config-heading p{font-size:10px;font-weight:900;letter-spacing:.12em;margin:0}
body[data-mode="customer"] .config-heading h2{font-size:18px;letter-spacing:-.03em;margin:2px 0}
body[data-mode="customer"] .config-heading span{display:none}
body[data-mode="customer"] .keyring-control{border-radius:16px;border:1px solid var(--shop-border);background:var(--shop-canvas);padding:10px 14px}
body[data-mode="customer"] .keyring-control input{accent-color:var(--shop-accent)}
body[data-mode="customer"] .config-safe-note{border-radius:16px;background:var(--shop-accent-soft);border:1px solid rgba(84,51,235,.18);padding:10px 14px}
body[data-mode="customer"] .config-safe-note b{color:var(--shop-accent);font-size:11px}
body[data-mode="customer"] .config-safe-note span{color:var(--shop-muted);font-size:11px}
body[data-mode="customer"] .config-state{color:var(--shop-muted);font-size:11px;text-align:center}
body[data-mode="customer"] .customer-controls .button{min-height:44px;margin-top:4px}

/* Floating Contact FABs — Clean Unified Dock */
body[data-mode="customer"] .contact-fabs{display:flex;gap:8px;align-items:center;position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:45}
/* ซ่อนปุ่มลอย แชทกับร้าน + LINE อัตโนมัติในหน้าส่งออเดอร์/ตะกร้า/3D Studio และตอนเปิดหน้าต่าง Popup ชำระเงิน เพื่อไม่ให้บังปุ่มกด */
body[data-mode="customer"][data-view="checkoutView"] .contact-fabs,
body[data-mode="customer"][data-view="cartView"] .contact-fabs,
body[data-mode="customer"][data-view="studioView"] .contact-fabs,
body[data-mode="customer"][data-view="customizerView"] .contact-fabs,
body[data-mode="customer"][data-view="customerProofView"] .contact-fabs,
body[data-mode="customer"]:has(dialog[open]) .contact-fabs{display:none!important}
body[data-mode="customer"] .website-chat-fab{width:auto;height:auto;min-height:48px;padding:8px 18px;border-radius:999px;background:#0b0b0c;color:#fff;border:1px solid rgba(255,255,255,.15);box-shadow:0 10px 28px rgba(0,0,0,.22);display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:700;transition:transform .2s ease,box-shadow .2s ease}
body[data-mode="customer"] .website-chat-fab:hover{transform:translateY(-2px);background:#181b22;box-shadow:0 14px 32px rgba(0,0,0,.28)}
body[data-mode="customer"] .website-chat-fab b{width:auto;height:auto;background:transparent;color:inherit;font-size:16px;border-radius:0}
body[data-mode="customer"] .website-chat-fab span{display:inline}
body[data-mode="customer"] .website-chat-fab i{display:none}
body[data-mode="customer"] .line-fab{width:48px;height:48px;border-radius:50%;background:#06c755;color:#fff;border:0;box-shadow:0 10px 24px rgba(6,199,85,.28);display:grid;place-items:center;padding:0;font-size:11px;font-weight:800;transition:transform .2s ease}
body[data-mode="customer"] .line-fab:hover{transform:translateY(-2px)}
body[data-mode="customer"] .contact-fabs-collapse-btn{width:28px;height:28px;border-radius:50%;background:rgba(15,23,42,.78);color:#fff;border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;padding:0;font-size:15px;font-weight:700;line-height:1;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.18);transition:all .18s ease}
body[data-mode="customer"] .contact-fabs-collapse-btn:hover{background:#0f172a;transform:scale(1.08)}
body[data-mode="customer"] .contact-fabs.is-collapsed .website-chat-fab,
body[data-mode="customer"] .contact-fabs.is-collapsed .line-fab{display:none!important}
body[data-mode="customer"] .contact-fabs.is-collapsed .contact-fabs-collapse-btn{width:42px;height:42px;background:#0b0b0c;font-size:18px;box-shadow:0 8px 22px rgba(0,0,0,.25)}

/* Checkout / Tracking */
body[data-mode="customer"] .checkout-summary{position:sticky;top:92px}
body[data-mode="customer"] .fields-grid input,body[data-mode="customer"] .fields-grid select,body[data-mode="customer"] .fields-grid textarea{background:#f8fafc;border:1.5px solid #94a3b8;color:#0f172a;box-shadow:inset 0 1px 2px rgba(15,23,42,.05);border-radius:12px;transition:all .15s ease}
body[data-mode="customer"] .fields-grid input:hover,body[data-mode="customer"] .fields-grid select:hover,body[data-mode="customer"] .fields-grid textarea:hover{border-color:#64748b;background:#fff}
body[data-mode="customer"] .fields-grid input:focus,body[data-mode="customer"] .fields-grid select:focus,body[data-mode="customer"] .fields-grid textarea:focus{border-color:var(--shop-accent);background:#fff;outline:none;box-shadow:0 0 0 3px rgba(84,51,235,.18)}
body[data-mode="customer"] .fields-grid input[readonly]{background:var(--shop-canvas);color:var(--shop-muted)}
body[data-mode="customer"] .price-total{border-top:1px solid var(--shop-ink)}
body[data-mode="customer"] .review-reminder{border-radius:16px;background:var(--shop-canvas);border-color:var(--shop-border)}
body[data-mode="customer"] .review-reminder span{color:var(--shop-muted)}
body[data-mode="customer"] .upload-zone{border-radius:var(--shop-radius-inner);border-color:var(--shop-border);background:var(--shop-canvas)}
body[data-mode="customer"] .upload-zone:hover{border-color:var(--shop-accent);background:var(--shop-surface)}
body[data-mode="customer"] .upload-icon{background:var(--shop-accent)}
body[data-mode="customer"] .promptpay-card{border-radius:var(--shop-radius-inner);border-color:var(--shop-border);background:var(--shop-canvas)}
body[data-mode="customer"] .promptpay-title{color:var(--shop-accent)}
body[data-mode="customer"] .track-search-card,body[data-mode="customer"] .track-card{background:var(--shop-surface);border:1px solid var(--shop-border);color:var(--shop-ink)}
body[data-mode="customer"] .track-card-header{border-bottom:1px solid var(--shop-border)}
body[data-mode="customer"] .track-input-group input{background:var(--shop-canvas);border-color:var(--shop-border);color:var(--shop-ink)}
body[data-mode="customer"] .track-meta-label{color:var(--shop-muted)}
body[data-mode="customer"] .site-footer{background:var(--shop-surface);color:var(--shop-muted);border-top:1px solid var(--shop-border)}

/* Shop Sidebar Nav Rail — Persistent left-edge navigation */
body[data-mode="customer"] .shop-sidebar-rail{position:fixed;left:14px;top:50%;transform:translateY(-50%);width:60px;background:var(--shop-surface);border:1px solid var(--shop-border);border-radius:24px;box-shadow:var(--shop-shadow-lg);padding:14px 6px;display:flex;flex-direction:column;align-items:center;gap:12px;z-index:90;backdrop-filter:blur(16px)}
body[data-mode="customer"] .rail-brand{width:36px;height:36px;display:grid;place-items:center;margin-bottom:2px}
body[data-mode="customer"] .rail-brand .brand-cube{width:28px;height:28px;font-size:10px}
body[data-mode="customer"] .rail-nav{display:flex;flex-direction:column;gap:8px;width:100%;align-items:center}
body[data-mode="customer"] .rail-link{width:48px;height:48px;border-radius:18px;border:none;background:transparent;color:var(--shop-muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;transition:all .2s ease;padding:0}
body[data-mode="customer"] .rail-link svg{stroke:currentColor;transition:stroke .2s ease}
body[data-mode="customer"] .rail-link .rail-label{font-size:9px;font-weight:700;line-height:1;letter-spacing:-.02em}
body[data-mode="customer"] .rail-link:hover{background:var(--shop-canvas);color:var(--shop-ink)}
body[data-mode="customer"] .rail-link.is-active{background:var(--shop-canvas);color:var(--shop-accent);box-shadow:inset 0 0 0 1.5px rgba(84,51,235,.2)}
body[data-mode="customer"] .rail-link.is-active svg{stroke:var(--shop-accent)}
body[data-mode="customer"] .rail-dot{width:6px;height:6px;border-radius:50%;background:#06c755;box-shadow:0 0 6px rgba(6,199,85,.6)}
@media (max-width: 1340px){
  body[data-mode="customer"] .shop-sidebar-rail{display:none}
}

/* Product Showcase Marquee — Running Product Stream */
body[data-mode="customer"] .product-marquee-section{margin:28px auto 36px;overflow:hidden;position:relative}
body[data-mode="customer"] .product-marquee-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:16px;padding:0 4px}
body[data-mode="customer"] .product-marquee-heading h3{font-size:18px;font-weight:800;color:var(--shop-ink);letter-spacing:-.03em;margin-top:4px}
body[data-mode="customer"] .product-marquee-track-wrap{overflow:hidden;position:relative;margin:0 -20px;padding:12px 20px;mask-image:linear-gradient(to right,transparent,black 4%,black 96%,transparent)}
body[data-mode="customer"] .product-marquee-track{display:flex;gap:16px;width:max-content;animation:productReelScroll 28s linear infinite}
body[data-mode="customer"] .product-marquee-track:hover{animation-play-state:paused}
body[data-mode="customer"] .marquee-card{flex:0 0 204px;background:var(--shop-surface);border:1px solid var(--shop-border);border-radius:var(--shop-radius-card);box-shadow:var(--shop-shadow-sm);padding:14px;display:flex;flex-direction:column;gap:10px;text-align:left;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;position:relative}
body[data-mode="customer"] .marquee-card:hover{transform:translateY(-4px);box-shadow:var(--shop-shadow);border-color:rgba(84,51,235,.35)}
body[data-mode="customer"] .marquee-card-badge{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.06);color:var(--shop-muted);border-radius:999px;font-size:9px;font-weight:800;padding:3px 8px;letter-spacing:.03em;z-index:2}
body[data-mode="customer"] .marquee-card-badge.blue{background:rgba(0,122,255,.1);color:#007aff}
body[data-mode="customer"] .marquee-card-badge.lime{background:rgba(52,199,89,.12);color:#28a745}
body[data-mode="customer"] .marquee-card-badge.purple{background:rgba(84,51,235,.1);color:var(--shop-accent)}
body[data-mode="customer"] .marquee-card-badge.gold{background:rgba(255,149,0,.12);color:#d97706}
body[data-mode="customer"] .marquee-card-badge.cyan{background:rgba(6,182,212,.12);color:#0891b2}
body[data-mode="customer"] .marquee-card-visual{height:110px;border-radius:var(--shop-radius-inner);background:radial-gradient(circle at 50% 40%,#28313e 0%,#0e1217 100%);display:grid;place-items:center;position:relative;overflow:hidden}
body[data-mode="customer"] .marquee-card-visual .mini-toy{transform:scale(.75)}
body[data-mode="customer"] .marquee-card-visual .catalog-keychain{transform:scale(.85)}
body[data-mode="customer"] .marquee-card-visual .marquee-custom-img{width:100%;height:100%;object-fit:cover;display:block}
body[data-mode="customer"] .accessory-media-wrap{width:36px;height:36px;border-radius:8px;overflow:hidden;background:#f8fafc;display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid #e2e8f0}
body[data-mode="customer"] .accessory-thumb{width:100%;height:100%;object-fit:cover;display:block}
body[data-mode="customer"] .marquee-card-info{display:flex;flex-direction:column;gap:2px}
body[data-mode="customer"] .marquee-card-info strong{font-size:13px;font-weight:800;color:var(--shop-ink);letter-spacing:-.02em}
body[data-mode="customer"] .marquee-card-info span{font-size:11px;font-weight:600;color:var(--shop-muted)}

@media (prefers-reduced-motion: reduce){
  body[data-mode="customer"] *,body[data-mode="customer"] *::before,body[data-mode="customer"] *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* ============================================================================
   Holographic / Iridescent Glassmorphism — customer storefront
   Luminous sky-white ambient, frosted glassmorphism, prismatic accents, crisp ink.
   ============================================================================ */
body[data-mode="customer"]{
  --shop-canvas:#f0f6ff;
  --shop-surface:rgba(255,255,255,0.78);
  --shop-ink:#0a1128;
  --shop-muted:#5a6e85;
  --shop-border:rgba(255,255,255,0.85);
  --shop-accent:#2563eb;
  --shop-accent-soft:rgba(37,99,235,0.1);
  --holo-grad-main:linear-gradient(135deg, #38bdf8 0%, #6366f1 35%, #a855f7 70%, #ec4899 100%);
  --holo-grad-blue:linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  --holo-grad-cyan:linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --holo-sky:#38bdf8;
  --holo-indigo:#6366f1;
  --holo-purple:#a855f7;
  --holo-pink:#ec4899;
  --holo-glass-bg:rgba(255,255,255,0.72);
  --holo-glass-border:rgba(255,255,255,0.88);
  --shop-shadow:0 6px 24px rgba(37,99,235,0.06);
  --shop-shadow-lift:0 16px 40px rgba(99,102,241,0.12);
  --shop-shadow-sm:0 3px 12px rgba(37,99,235,0.04);
  --shop-shadow-accent:0 8px 24px rgba(37,99,235,0.28);
  background:linear-gradient(180deg, #f0f6ff 0%, #f5f3ff 25%, #fdf2f8 50%, #f0f9ff 75%, #f8fafc 100%);
  background-attachment:fixed;
}

/* Retained header — Frosted Iridescent Glass */
body[data-mode="customer"] .site-header{
  background:rgba(255,255,255,0.75);
  border-bottom:1px solid rgba(255,255,255,0.85);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 4px 20px rgba(37,99,235,0.04);
}
body[data-mode="customer"] .brand-cube{
  background:var(--holo-grad-main);
  border:1.5px solid rgba(255,255,255,0.9);
  box-shadow:0 4px 14px rgba(99,102,241,0.3);
  color:#fff;
  transform:none;
}
body[data-mode="customer"] .main-nav{
  background:rgba(255,255,255,0.65);
  border:1px solid rgba(255,255,255,0.85);
  backdrop-filter:blur(12px);
  box-shadow:0 2px 10px rgba(37,99,235,0.04);
}
body[data-mode="customer"] .nav-link{
  color:var(--shop-muted);
}
body[data-mode="customer"] .nav-link:hover{
  background:rgba(255,255,255,0.9);
  color:var(--shop-ink);
}
body[data-mode="customer"] .nav-link.is-active{
  background:var(--holo-grad-blue);
  color:#fff;
  box-shadow:0 4px 14px rgba(37,99,235,0.25);
}
body[data-mode="customer"] .button.button-google-login{background:transparent;box-shadow:none}

/* Hero Section — Ethereal Sky Ambient with Holographic Glow */
body[data-mode="customer"] #homeView{
  background:transparent;
}
body[data-mode="customer"] #homeView>.hero{
  width:100%;
  max-width:none;
  padding:72px max(var(--page-gutter),calc((100vw - 1200px)/2)) 82px;
  background:radial-gradient(circle at 80% 25%, rgba(168,85,247,0.18) 0%, rgba(56,189,248,0.15) 35%, transparent 65%), radial-gradient(circle at 20% 60%, rgba(236,72,153,0.1) 0%, transparent 50%), linear-gradient(135deg, #f0f6ff 0%, #eef2ff 50%, #fdf4ff 100%);
  color:var(--shop-ink);
  position:relative;
  overflow:hidden;
}
body[data-mode="customer"] .hero-copy h1{
  font-size:clamp(48px,6.5vw,76px);
  line-height:1.05;
  color:var(--shop-ink);
  font-weight:700;
}
body[data-mode="customer"] .hero h1{
  color:var(--shop-ink);
}
body[data-mode="customer"] .hero h1 em{
  background:linear-gradient(135deg, #0284c7 0%, #4f46e5 45%, #ec4899 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  font-style:normal;
  text-shadow:none;
}
body[data-mode="customer"] .hero-lead{
  color:var(--shop-muted);
  font-size:17.5px;
  line-height:1.75;
}
body[data-mode="customer"] .hero .eyebrow{
  background:rgba(255,255,255,0.85);
  border:1.5px solid rgba(99,102,241,0.25);
  box-shadow:0 3px 12px rgba(99,102,241,0.08);
  color:#4338ca;
  backdrop-filter:blur(8px);
}
body[data-mode="customer"] .hero .eyebrow .pulse-dot{
  background:var(--holo-grad-main);
  box-shadow:0 0 10px rgba(99,102,241,0.6);
}
body[data-mode="customer"] .hero-name-capsule{background:rgba(255,255,255,0.85);border:1px solid rgba(255,255,255,0.9);box-shadow:0 8px 24px rgba(37,99,235,0.08)}
body[data-mode="customer"] .hero-name-submit{background:var(--holo-grad-blue);border-radius:60px;color:#fff;border:none}
body[data-mode="customer"] .hero-name-submit:hover{filter:brightness(1.1)}
body[data-mode="customer"] .palette-label{color:var(--shop-muted)}
body[data-mode="customer"] .hero-swatch.is-active{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--shop-accent)}
body[data-mode="customer"] .hero-actions .messenger-button{background:rgba(255,255,255,0.85);color:var(--shop-ink);border:1px solid rgba(255,255,255,0.9);box-shadow:0 4px 14px rgba(37,99,235,0.06)}
body[data-mode="customer"] .trust-row span{
  background:rgba(255,255,255,0.75);
  border:1px solid rgba(255,255,255,0.9);
  box-shadow:0 3px 10px rgba(37,99,235,0.04);
  color:var(--shop-ink);
  backdrop-filter:blur(10px);
}
body[data-mode="customer"] .trust-row span::first-letter{
  color:#059669;
  font-weight:900;
}

/* Illustration card uses Frosted Glass Display */
body[data-mode="customer"] .constellation-card.main-toy-card{
  background:rgba(255,255,255,0.75);
  border:2px solid rgba(255,255,255,0.92);
  border-radius:44px;
  box-shadow:0 20px 50px rgba(99,102,241,0.12), inset 0 2px 4px rgba(255,255,255,0.8);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  transform:none;
}
body[data-mode="customer"] .hero-constellation .toy-body{
  background:linear-gradient(145deg, #38bdf8 0%, #2563eb 55%, #1d4ed8 100%);
  border:3px solid rgba(255,255,255,0.85);
  box-shadow:0 18px 36px rgba(37,99,235,0.3), inset 0 3px 6px rgba(255,255,255,0.4);
}
body[data-mode="customer"] .hero-constellation .toy-loop{border-color:#e2e8f0}
body[data-mode="customer"] .card-tech-tag.highlight{background:var(--holo-grad-main);color:#fff}
body[data-mode="customer"] .satellite-card{
  background:rgba(255,255,255,0.82);
  border:1.5px solid rgba(255,255,255,0.92);
  backdrop-filter:blur(14px);
  box-shadow:0 12px 30px rgba(99,102,241,0.1);
}

/* Category Discovery Area */
body[data-mode="customer"] .hero-category-pills{margin:0 auto;padding-top:30px;padding-bottom:22px}
body[data-mode="customer"] .category-pill{
  background:rgba(255,255,255,0.75);
  border:1.5px solid rgba(255,255,255,0.9);
  backdrop-filter:blur(12px);
  color:var(--shop-ink);
  box-shadow:0 3px 12px rgba(37,99,235,0.05);
}
body[data-mode="customer"] .category-pill:hover{
  background:#fff;
  border-color:rgba(99,102,241,0.4);
  transform:translateY(-2px);
  box-shadow:0 8px 22px rgba(99,102,241,0.14);
}
body[data-mode="customer"] .category-pill.is-active{
  background:var(--holo-grad-blue);
  border-color:transparent;
  color:#fff;
  box-shadow:0 6px 18px rgba(37,99,235,0.3);
}
body[data-mode="customer"] .product-marquee-section{margin-top:10px;margin-bottom:50px}
body[data-mode="customer"] .product-marquee-heading h3{font-size:clamp(28px,3vw,42px);line-height:1}
body[data-mode="customer"] .marquee-card{
  background:rgba(255,255,255,0.8);
  border:1.5px solid rgba(255,255,255,0.9);
  backdrop-filter:blur(14px);
  box-shadow:0 8px 24px rgba(37,99,235,0.06);
}
body[data-mode="customer"] .marquee-card-visual{
  background:radial-gradient(circle at 50% 40%, #e0f2fe 0%, #c7d2fe 60%, #ddd6fe 100%);
}
body[data-mode="customer"] .marquee{
  background:rgba(255,255,255,0.65);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,0.85);
  border-bottom:1px solid rgba(255,255,255,0.85);
  color:var(--shop-muted);
}
body[data-mode="customer"] .marquee span{
  background:var(--holo-grad-main);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  font-weight:900;
}
body[data-mode="customer"] .section-block{background:transparent}
body[data-mode="customer"] .featured-block{
  background:linear-gradient(135deg, rgba(224,242,254,0.6) 0%, rgba(237,233,254,0.6) 50%, rgba(250,232,255,0.6) 100%);
  backdrop-filter:blur(16px);
  border-block:1px solid rgba(255,255,255,0.85);
}
body[data-mode="customer"] .featured-block .eyebrow,
body[data-mode="customer"] .featured-block .section-heading h2,
body[data-mode="customer"] .featured-block .text-link{color:var(--shop-ink)}
body[data-mode="customer"] .section-heading h2{font-size:clamp(42px,5vw,68px);line-height:.94;font-weight:600}
body[data-mode="customer"] .steps-grid article{
  border:1.5px solid rgba(255,255,255,0.9);
  background:rgba(255,255,255,0.78);
  backdrop-filter:blur(14px);
  box-shadow:0 6px 20px rgba(37,99,235,0.05);
}
body[data-mode="customer"] .steps-grid article:nth-child(1) .step-icon{background:var(--holo-grad-blue);color:#fff}
body[data-mode="customer"] .steps-grid article:nth-child(2) .step-icon{background:linear-gradient(135deg, #06b6d4, #3b82f6);color:#fff}
body[data-mode="customer"] .steps-grid article:nth-child(3) .step-icon{background:linear-gradient(135deg, #6366f1, #a855f7);color:#fff}
body[data-mode="customer"] .steps-grid article:nth-child(4) .step-icon{background:linear-gradient(135deg, #ec4899, #f43f5e);color:#fff}
body[data-mode="customer"] .featured-grid article{
  border:1.5px solid rgba(255,255,255,0.9);
  background:rgba(255,255,255,0.78);
  backdrop-filter:blur(14px);
  box-shadow:0 6px 20px rgba(37,99,235,0.05);
}

/* Retained side icon rail — Frosted Glass Capsule */
body[data-mode="customer"] .shop-sidebar-rail{
  background:rgba(255,255,255,0.75);
  border:1.5px solid rgba(255,255,255,0.9);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 8px 28px rgba(37,99,235,0.08);
}
body[data-mode="customer"] .rail-link:hover{background:rgba(255,255,255,0.95);color:var(--shop-ink)}
body[data-mode="customer"] .rail-link.is-active{background:var(--holo-grad-blue);color:#fff;box-shadow:0 4px 14px rgba(37,99,235,0.25)}
body[data-mode="customer"] .rail-link.is-active svg{stroke:#fff}
body[data-mode="customer"] .rail-dot{background:var(--holo-grad-main);box-shadow:0 0 8px rgba(99,102,241,0.6)}

/* Supporting views inherit the holographic iridescent glass system. */
body[data-mode="customer"] .button-primary{
  background:var(--holo-grad-blue);
  border-color:transparent;
  color:#fff;
  box-shadow:0 6px 20px rgba(37,99,235,0.25);
}
body[data-mode="customer"] .button-primary:hover{
  filter:brightness(1.08);
  box-shadow:0 10px 28px rgba(37,99,235,0.35);
}
body[data-mode="customer"] .product-card:hover,
body[data-mode="customer"] .featured-grid article:hover{border-color:rgba(99,102,241,0.4);box-shadow:var(--shop-shadow-lift)}
body[data-mode="customer"] .product-badge,
body[data-mode="customer"] .catalog-category-tabs button.is-active{background:var(--holo-grad-blue);border-color:transparent;color:#fff;box-shadow:0 4px 14px rgba(37,99,235,0.25)}
body[data-mode="customer"] .three-preview{background:linear-gradient(135deg, #e0f2fe 0%, #ede9fe 100%)}
body[data-mode="customer"] .config-safe-note{background:rgba(56,189,248,0.12);border-color:rgba(56,189,248,0.3)}
body[data-mode="customer"] .config-safe-note b{color:#0284c7}
body[data-mode="customer"] .site-footer{background:#0a1128;color:rgba(255,255,255,0.72);border-top:1px solid rgba(255,255,255,0.1)}

@media(max-width:900px){
  body[data-mode="customer"] #homeView>.hero{padding:46px var(--page-gutter) 56px}
  body[data-mode="customer"] .hero-copy h1{font-size:clamp(46px,12vw,68px)}
}

/* Holographic Prismatic Stripe */
body[data-mode="customer"] #homeView>.hero::after,
body[data-mode="customer"] .featured-block::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:4px;
  background:var(--holo-grad-main);
}
body[data-mode="customer"] #homeView>.hero{position:relative}
body[data-mode="customer"] #homeView>.hero::after{bottom:0}
body[data-mode="customer"] .featured-block{position:relative}
body[data-mode="customer"] .featured-block::before{top:0}

body[data-mode="customer"] .hero-copy h1{max-width:680px;font-size:clamp(42px,4.8vw,62px);font-weight:600;line-height:1.08}
body[data-mode="customer"] .product-marquee-heading h3{font-size:clamp(25px,2.5vw,34px);line-height:1.2}
body[data-mode="customer"] .section-heading h2{font-size:clamp(36px,4vw,50px);line-height:1.14}
body[data-mode="customer"] .eyebrow,
body[data-mode="customer"] .product-copy>p,
body[data-mode="customer"] .config-heading p,
body[data-mode="customer"] .catalog-heading p{font-family:"DM Sans","IBM Plex Sans Thai",sans-serif;letter-spacing:.11em}

@media(max-width:600px){
  body[data-mode="customer"] .hero-copy h1{font-size:clamp(38px,10.5vw,48px);line-height:1.12}
  body[data-mode="customer"] .section-heading h2{font-size:clamp(30px,8.5vw,40px)}
}

/* ============================================================================
   Playful Toy Atelier — calmer hierarchy, product-led colour
   ============================================================================ */
body[data-mode="customer"] #homeView>.hero::after,
body[data-mode="customer"] .featured-block::before{
  height:4px;
  background:var(--holo-grad-main);
}

/* Customer mini studio — a focused subset of the internal text workflow. */
body[data-mode="customer"] .config-system-fields{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
body[data-mode="customer"] .customer-controls{padding:18px;gap:12px;background:rgba(255,255,255,0.65);backdrop-filter:blur(16px)}
body[data-mode="customer"] .config-heading{padding:0 2px 13px}
body[data-mode="customer"] .config-heading h2{font-size:22px;margin:3px 0 4px}
body[data-mode="customer"] .config-heading span{display:block;font-size:12px;line-height:1.45}
body[data-mode="customer"] .config-step{display:grid;gap:10px;padding:14px;border:1.5px solid rgba(255,255,255,0.9);border-radius:20px;background:rgba(255,255,255,0.78);backdrop-filter:blur(12px);box-shadow:0 4px 14px rgba(37,99,235,0.05)}
body[data-mode="customer"] .config-step-title{display:flex;align-items:center;gap:10px;padding-bottom:9px;border-bottom:1px solid rgba(37,99,235,0.08)}
body[data-mode="customer"] .config-step-title>b{width:28px;height:28px;flex:0 0 28px;display:grid;place-items:center;border-radius:10px;background:var(--holo-grad-blue);color:#fff;font:800 12px/1 "DM Sans",sans-serif;box-shadow:0 4px 10px rgba(37,99,235,0.25)}
body[data-mode="customer"] .config-step:nth-of-type(2) .config-step-title>b{background:linear-gradient(135deg, #06b6d4, #3b82f6)}
body[data-mode="customer"] .config-step:nth-of-type(3) .config-step-title>b{background:linear-gradient(135deg, #6366f1, #a855f7)}
body[data-mode="customer"] .config-step-title>div{display:grid;gap:1px}
body[data-mode="customer"] .config-step-title strong{font-size:13px;color:var(--shop-ink)}
body[data-mode="customer"] .config-step-title small{font-size:10px;color:var(--shop-muted)}
body[data-mode="customer"] .config-step .config-two-col{gap:8px}
body[data-mode="customer"] .config-step select{background:#fff;border:1px solid rgba(37,99,235,0.15)}
body[data-mode="customer"] .config-step .keychain-only{display:grid;gap:8px}
body[data-mode="customer"] .config-step .keychain-only[hidden]{display:none}
body[data-mode="customer"] .config-step .keyring-control{margin-top:1px}
body[data-mode="customer"] .customer-preview-panel{position:sticky;top:0;align-self:start;height:100%}
body[data-mode="customer"] #customizerView .customer-configurator{overflow:hidden}
body[data-mode="customer"] .preview-note{padding:14px 18px}

@media(max-width:900px){
  body[data-mode="customer"] .customer-preview-panel{position:relative;height:auto}
  body[data-mode="customer"] #customizerView .customer-configurator{overflow:visible}
  body[data-mode="customer"] .customer-controls{padding:16px}
}
@media(max-width:600px){
  body[data-mode="customer"] .config-heading h2{font-size:20px}
  body[data-mode="customer"] .config-step{padding:12px;border-radius:17px}
  body[data-mode="customer"] .config-step .config-two-col{grid-template-columns:1fr 1fr}
}

/* Clear hero product and frosted constellation */
body[data-mode="customer"] .hero{grid-template-columns:1.08fr .92fr;column-gap:56px;row-gap:30px}
body[data-mode="customer"] .card-tech-tag,
body[data-mode="customer"] .hero-sparkle{display:none}
body[data-mode="customer"] .hero-constellation{min-height:430px}
body[data-mode="customer"] .constellation-card.main-toy-card{
  width:min(420px,92vw);
  min-height:390px;
  border-radius:40px;
  background:#fffdf8;
  box-shadow:0 18px 44px rgba(6,36,28,.24);
  animation:none;
  transform:rotate(2deg);
}
body[data-mode="customer"] .hero-constellation .toy-body{width:262px;height:278px}
body[data-mode="customer"] .hero-constellation .toy-body:hover{transform:rotate(-2deg) translateY(-3px)}

/* Holographic Frosted Glass Showcase */
body[data-mode="customer"] .marquee{
  background:rgba(255,255,255,0.65);
  backdrop-filter:blur(12px);
  border-top:1px solid rgba(255,255,255,0.85);
  border-bottom:1px solid rgba(255,255,255,0.85);
}
body[data-mode="customer"] .featured-block{background:linear-gradient(135deg, rgba(224,242,254,0.6) 0%, rgba(237,233,254,0.6) 50%, rgba(250,232,255,0.6) 100%)}
body[data-mode="customer"] .featured-grid article{
  border-radius:24px;
  background:rgba(255,255,255,0.8);
  border:1.5px solid rgba(255,255,255,0.9);
  backdrop-filter:blur(14px);
  box-shadow:0 6px 18px rgba(37,99,235,0.06);
}
body[data-mode="customer"] .featured-grid article:hover{box-shadow:0 14px 34px rgba(99,102,241,0.14)}
body[data-mode="customer"] .steps-grid article{border-radius:24px;background:rgba(255,255,255,0.8);border:1.5px solid rgba(255,255,255,0.9);backdrop-filter:blur(14px);box-shadow:0 6px 18px rgba(37,99,235,0.05)}
body[data-mode="customer"] .mini-product-art{background:transparent}

/* Keep the showcase moving so every product is visible without manual dragging. */
body[data-mode="customer"] .product-marquee-track-wrap{overflow:hidden;scrollbar-width:none;mask-image:linear-gradient(to right,transparent,black 4%,black 96%,transparent)}
body[data-mode="customer"] .product-marquee-track-wrap::-webkit-scrollbar{display:none}
body[data-mode="customer"] .product-marquee-track{animation:productReelScroll 58s linear infinite;will-change:transform}
body[data-mode="customer"] .product-marquee-track:hover,
body[data-mode="customer"] .product-marquee-track:focus-within{animation-play-state:paused}
body[data-mode="customer"] .marquee-card[aria-hidden="true"]{display:flex}

@media(prefers-reduced-motion:reduce){
  body[data-mode="customer"] .product-marquee-track-wrap{overflow-x:auto;mask-image:none}
  body[data-mode="customer"] .product-marquee-track{animation:none;transform:none}
  body[data-mode="customer"] .marquee-card[aria-hidden="true"]{display:none}
}

/* Holographic accents */
body[data-mode="customer"] .text-link{color:var(--holo-indigo)}
body[data-mode="customer"] .featured-block .text-link{color:var(--holo-indigo)}
body[data-mode="customer"] .product-marquee-heading .eyebrow span,
body[data-mode="customer"] .featured-block .eyebrow span{background:var(--holo-grad-main);box-shadow:none}
body[data-mode="customer"] .category-pill.is-active{background:var(--holo-grad-blue);border-color:transparent;color:#fff}

@media(max-width:900px){
  body[data-mode="customer"] .hero{gap:20px}
  body[data-mode="customer"] .hero-constellation{min-height:380px}
  body[data-mode="customer"] .constellation-card.main-toy-card{width:min(390px,94vw);min-height:350px;transform:none}
}
@media(max-width:600px){
  body[data-mode="customer"] .hero-constellation{min-height:330px}
  body[data-mode="customer"] .constellation-card.main-toy-card{min-height:310px;border-radius:32px}
  body[data-mode="customer"] .hero-constellation .toy-body{width:220px;height:238px}
}

/* Social Media Channels (Facebook & Instagram) */
body[data-mode="customer"] .hero-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body[data-mode="customer"] .hero-actions .button{display:inline-flex;align-items:center;gap:8px}
body[data-mode="customer"] .hero-topline{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:-8px;padding-bottom:18px;border-bottom:1px solid rgba(37,99,235,.1)}
body[data-mode="customer"] .hero-topline .eyebrow{margin:0;background:rgba(255,255,255,.8);border-color:rgba(99,102,241,.25);box-shadow:none;color:#4338ca}
body[data-mode="customer"] .hero-copy{align-self:center}
body[data-mode="customer"] .hero-promo-actions{margin-top:28px;align-items:center}
body[data-mode="customer"] .hero-promo-actions>.button{min-height:54px;padding-inline:22px;border-radius:999px;background:var(--holo-grad-blue);border:1.5px solid rgba(255,255,255,0.7);color:#fff;box-shadow:0 10px 26px rgba(37,99,235,.32)}
body[data-mode="customer"] .hero-promo-actions>.button:hover{filter:brightness(1.08);transform:translateY(-2px);box-shadow:0 14px 32px rgba(37,99,235,.42)}
body[data-mode="customer"] .hero-contact-channels{min-height:46px;display:flex;align-items:center;gap:8px;padding:4px 5px 4px 15px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}
body[data-mode="customer"] .hero-contact-label{margin-right:2px;color:rgba(255,255,255,.82);font-size:12px;font-weight:800;white-space:nowrap}
body[data-mode="customer"] .social-contact-link{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border:0;border-radius:50%;color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.2);transition:transform .18s ease,box-shadow .18s ease}
body[data-mode="customer"] .social-contact-link:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(0,0,0,.26)}
body[data-mode="customer"] .social-contact-link svg{width:19px;height:19px}
body[data-mode="customer"] .social-contact-link.is-facebook{background:#1877f2}
body[data-mode="customer"] .social-contact-link.is-instagram{background:radial-gradient(circle at 30% 105%,#fdf497 0 5%,#fd5949 36%,#d6249f 62%,#285aeb 100%)}
body[data-mode="customer"] .hero-instagram-btn{background:#fff;color:var(--shop-ink);border:1px solid rgba(22,16,21,.15);border-radius:999px;font-size:13px;padding:9px 18px;transition:transform .15s ease,background .15s ease}
body[data-mode="customer"] .hero-instagram-btn:hover{background:#faf8f5;border-color:rgba(22,16,21,.3);transform:translateY(-1px)}
body[data-mode="customer"] .hero-instagram-btn svg{color:#e1306c}

body[data-mode="customer"] .rail-bottom{display:flex;flex-direction:column;align-items:center;gap:8px;padding-bottom:12px}
body[data-mode="customer"] .rail-social-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:var(--shop-muted);background:rgba(22,16,21,.05);transition:transform .15s ease,color .15s ease,background .15s ease}
body[data-mode="customer"] .rail-social-btn:hover{color:var(--brand-pop);background:rgba(22,16,21,.1);transform:scale(1.1)}

body[data-mode="customer"] .footer-social-links{display:flex;gap:8px;margin-top:16px;align-items:center}
body[data-mode="customer"] .footer-social-links .social-btn{display:inline-flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;font-size:12px;font-weight:600;text-decoration:none;transition:transform .15s ease,opacity .15s ease;border:1px solid rgba(255,255,255,.12)}
body[data-mode="customer"] .footer-social-links .social-btn.facebook-btn{background:#1877f2;color:#fff;border-color:transparent}
body[data-mode="customer"] .footer-social-links .social-btn.instagram-btn{background:linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);color:#fff;border-color:transparent}
body[data-mode="customer"] .footer-social-links .social-btn:hover{transform:translateY(-2px);opacity:.92}

body[data-mode="customer"] .footer-contact-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-start;margin-top:8px}
body[data-mode="customer"] .footer-contact-actions .button{display:inline-flex;align-items:center;gap:8px}
body[data-mode="customer"] .footer-instagram-button{background:linear-gradient(45deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);color:#fff;border-color:transparent;font-size:13px;padding:9px 18px;border-radius:999px}
body[data-mode="customer"] .footer-instagram-button:hover{filter:brightness(1.08);color:#fff}

@media(max-width:900px){
  body[data-mode="customer"] #homeView>.hero{grid-template-columns:1fr}
  body[data-mode="customer"] .hero-topline{margin-bottom:4px}
}
@media(max-width:600px){
  body[data-mode="customer"] .hero-topline{align-items:flex-start;flex-direction:column;gap:12px;padding-bottom:16px}
  body[data-mode="customer"] .hero-promo-actions{align-items:stretch}
  body[data-mode="customer"] .hero-promo-actions>.button{width:100%}
}

/* Brand assets, compact contact actions, and a calmer storefront CTA. */
body[data-mode="customer"] .brand-logo{
  width:54px;
  height:54px;
  object-fit:contain;
  flex:0 0 54px;
  filter:drop-shadow(0 4px 6px rgba(64,28,5,.12));
}
body[data-mode="customer"] .site-header{gap:14px;padding-inline:clamp(16px,2.2vw,36px)}
body[data-mode="customer"] .main-nav{min-width:0;overflow-x:visible;flex-shrink:0}
body[data-mode="customer"] .header-right-actions{flex:0 0 auto;gap:8px}
body[data-mode="customer"] .header-social-links{
  display:flex;
  align-items:center;
  gap:5px;
  padding:4px;
  border:1px solid rgba(22,16,21,.12);
  border-radius:999px;
  background:#fffdf8;
}
body[data-mode="customer"] .header-social-links .social-contact-link{
  width:34px;
  height:34px;
  flex-basis:34px;
  box-shadow:none;
}
body[data-mode="customer"] .header-social-links .social-contact-link:hover{box-shadow:0 7px 16px rgba(22,16,21,.16)}

body[data-mode="customer"] .hero-copy>.eyebrow{margin-bottom:24px}
body[data-mode="customer"] .hero-promo-actions>.button{
  background:var(--holo-grad-blue);
  border:1.5px solid rgba(255,255,255,0.7);
  color:#fff;
  box-shadow:0 10px 26px rgba(37,99,235,0.32);
}
body[data-mode="customer"] .hero-promo-actions>.button:hover{
  filter:brightness(1.08);
  transform:translateY(-2px);
  box-shadow:0 14px 32px rgba(37,99,235,0.42);
}

body[data-mode="customer"] .brand-banner{
  margin-top:30px;
  overflow:hidden;
  border:1.5px solid rgba(255,255,255,0.85);
  border-radius:30px;
  background:rgba(255,255,255,0.78);
  backdrop-filter:blur(14px);
  box-shadow:0 14px 34px rgba(37,99,235,0.08);
}
body[data-mode="customer"] .brand-banner img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:8/3;
  object-fit:cover;
}
body[data-mode="customer"] .admin-brand-logo{width:50px;height:50px;object-fit:contain;filter:drop-shadow(0 4px 6px rgba(64,28,5,.12))}

@media(max-width:1100px){
  body[data-mode="customer"] .site-header>.brand>span:last-child{display:none}
  body[data-mode="customer"] .site-header{gap:10px}
}
@media(max-width:820px){
  body[data-mode="customer"] .button-google-login span{display:none}
  body[data-mode="customer"] .button.button-google-login{width:44px;padding:0;justify-content:center}
}
@media(max-width:760px){
  body[data-mode="customer"] .site-header{flex-wrap:wrap}
  body[data-mode="customer"] .brand-logo{width:46px;height:46px;flex-basis:46px}
  body[data-mode="customer"] .main-nav{order:3;flex:1 0 calc(100% + 32px);width:calc(100% + 32px);overflow-x:auto;scrollbar-width:thin}
  body[data-mode="customer"] .header-right-actions{margin-left:auto}
  body[data-mode="customer"] .brand-banner{margin-top:20px;border-radius:20px}
}
@media(max-width:460px){
  body[data-mode="customer"] .header-social-links .social-contact-link{width:31px;height:31px;flex-basis:31px}
  body[data-mode="customer"] #adminModeButton{max-width:86px;line-height:1.15;text-align:center;padding-inline:9px}
  body[data-mode="customer"] .brand-banner{width:calc(100% - 28px)}
}

body[data-mode="customer"] .admin-login-card{
  background:#fffdf8;
  border:1px solid rgba(74,31,5,.14);
  color:var(--shop-ink);
  box-shadow:0 28px 70px rgba(22,16,21,.32);
}
body[data-mode="customer"] .admin-login-card p{color:var(--shop-muted)}
body[data-mode="customer"] .admin-login-card .dialog-close{background:#f7f0e4;color:var(--shop-ink);border-color:rgba(74,31,5,.12)}
body[data-mode="customer"] .admin-login-card .remember-row{display:flex;align-items:center;grid-template-columns:none;gap:9px;color:var(--shop-muted)}
body[data-mode="customer"] .admin-login-card .remember-row input{width:18px;height:18px;min-height:18px;padding:0;flex:0 0 18px}
body[data-mode="customer"] .admin-login-card .dialog-actions{position:static;bottom:auto;background:transparent;border-top:1px solid rgba(74,31,5,.1);padding-top:16px}
body[data-mode="customer"] .admin-login-card .button-primary{background:var(--shop-ink);border-color:var(--shop-ink);color:#fff;box-shadow:none}
body[data-mode="customer"] .admin-login-card .button-primary:hover{background:#30252a;border-color:#30252a;color:#fff;box-shadow:none}
body[data-mode="customer"] .admin-google-login{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:var(--shop-ink);border-color:rgba(22,16,21,.16);box-shadow:0 6px 16px rgba(22,16,21,.08)}
body[data-mode="customer"] .admin-google-login:hover{background:#f8f3ea;border-color:rgba(22,16,21,.25);box-shadow:0 8px 20px rgba(22,16,21,.12)}
body[data-mode="customer"] .admin-google-note{margin:12px 0 18px!important;font-size:11px!important;line-height:1.6;text-align:center}
body[data-mode="customer"] .admin-password-fallback{border-top:1px solid rgba(74,31,5,.1);padding-top:14px}
body[data-mode="customer"] .admin-password-fallback summary{cursor:pointer;color:var(--shop-muted);font-size:12px;font-weight:700;text-align:center}
body[data-mode="customer"] .admin-password-fallback[open] summary{margin-bottom:14px;color:var(--shop-ink)}
body[data-mode="customer"] .admin-password-fallback:not([open])~.dialog-actions{display:none}

/* Clear sign-in entry point: Google UI lives in a focused dialog, never on the header surface. */
body[data-mode="customer"] .header-login-button{
  min-width:118px;min-height:44px;padding:10px 20px;border:1px solid var(--shop-ink);border-radius:999px;
  background:var(--shop-ink);color:#fff;font:800 13px/1 "IBM Plex Sans Thai",sans-serif;box-shadow:none
}
body[data-mode="customer"] .header-login-button:hover{background:#30252a;color:#fff;transform:translateY(-1px)}
body[data-mode="customer"] .customer-login-dialog{border:0;padding:0;background:transparent;max-width:none;max-height:none;margin:auto}
body[data-mode="customer"] .customer-login-dialog::backdrop{background:rgba(6,12,10,.72);backdrop-filter:blur(8px)}
body[data-mode="customer"] .customer-login-card{position:relative;width:min(440px,calc(100vw - 28px));padding:34px;border-radius:30px;background:#fffdf8;color:#241819;text-align:center;box-shadow:0 40px 100px rgba(0,0,0,.38)}
body[data-mode="customer"] .customer-login-card>.dialog-close{position:absolute;right:16px;top:16px}
body[data-mode="customer"] .customer-login-card>img{display:block;width:76px;height:76px;margin:0 auto 12px;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(74,31,5,.14))}
body[data-mode="customer"] .customer-login-card .login-kicker{margin:0;color:#f26936;font:900 10px/1.2 "DM Sans",sans-serif;letter-spacing:.17em}
body[data-mode="customer"] .customer-login-card h2{margin:8px 0 10px;font-size:30px;letter-spacing:-.04em}
body[data-mode="customer"] .customer-login-card>p:not(.login-kicker){margin:0 auto;color:#74676b;line-height:1.65;max-width:350px}
body[data-mode="customer"] .google-signin-mount{min-height:48px;margin:22px auto 12px;display:flex;align-items:center;justify-content:center;color:#74676b;font-size:12px}
body[data-mode="customer"] .google-signin-mount iframe{display:block}
body[data-mode="customer"] .customer-login-card>small{display:block;color:#8a7e81;line-height:1.5}
body[data-mode="customer"] .member-login-benefits{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin-top:20px;padding-top:18px;border-top:1px solid rgba(74,31,5,.1)}
body[data-mode="customer"] .member-login-benefits span{padding:7px 10px;border-radius:999px;background:#f8efe2;color:#59484d;font-size:10px;font-weight:800}

/* The supplied banner becomes a quiet brand-story card instead of a second hero. */
body[data-mode="customer"] .brand-story{margin-top:24px;display:grid;grid-template-columns:minmax(260px,420px) 1fr;align-items:center;gap:26px;padding:18px;border:1px solid rgba(74,31,5,.12);border-radius:26px;background:#fffdf8;box-shadow:0 10px 26px rgba(74,31,5,.07)}
body[data-mode="customer"] .brand-story-visual{overflow:hidden;border-radius:18px;background:#fff1dc}
body[data-mode="customer"] .brand-story-visual img{display:block;width:100%;height:144px;object-fit:cover}
body[data-mode="customer"] .brand-story-copy{padding-right:24px}
body[data-mode="customer"] .brand-story-copy p{margin:0 0 7px;color:#f26936;font:900 10px/1.2 "DM Sans",sans-serif;letter-spacing:.15em}
body[data-mode="customer"] .brand-story-copy h2{margin:0 0 7px;font-size:clamp(24px,3vw,34px);line-height:1.16;color:var(--shop-ink)}
body[data-mode="customer"] .brand-story-copy span{color:var(--shop-muted);font-size:13px;line-height:1.6}

@media(max-width:760px){
  body[data-mode="customer"] .brand-story{grid-template-columns:1fr;gap:14px;padding:14px;margin-top:18px}
  body[data-mode="customer"] .brand-story-visual img{height:120px}
  body[data-mode="customer"] .brand-story-copy{padding:2px 6px 8px}
  body[data-mode="customer"] .customer-login-card{padding:30px 20px}
}

/* ============================================================================
   Customer Typography Overhaul — Large, Clear, and Readable Thai & English Text
   ============================================================================ */
body[data-mode="customer"]{
  font-family:"IBM Plex Sans Thai","DM Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:16px;
  line-height:1.65;
  letter-spacing:normal;
}
body[data-mode="customer"] h1,
body[data-mode="customer"] h2,
body[data-mode="customer"] h3,
body[data-mode="customer"] .section-heading h2,
body[data-mode="customer"] .product-marquee-heading h3{
  letter-spacing:normal;
}
body[data-mode="customer"] p,
body[data-mode="customer"] span,
body[data-mode="customer"] li{
  letter-spacing:normal;
}
body[data-mode="customer"] .nav-link{
  font-size:15px;
  font-weight:700;
  letter-spacing:normal;
}
body[data-mode="customer"] .brand strong{
  font-size:19px;
  letter-spacing:normal;
}
body[data-mode="customer"] .brand small{
  font-size:12px;
  letter-spacing:.05em;
}
body[data-mode="customer"] .hero-lead{
  font-size:18px;
  line-height:1.75;
  letter-spacing:normal;
}
body[data-mode="customer"] .hero .eyebrow,
body[data-mode="customer"] .eyebrow{
  font-size:13px;
  font-weight:800;
  letter-spacing:.06em;
}
body[data-mode="customer"] .trust-row{
  font-size:14.5px;
  font-weight:700;
  letter-spacing:normal;
}
body[data-mode="customer"] .trust-row span{
  font-size:14.5px;
  font-weight:700;
}
body[data-mode="customer"] .category-pill{
  font-size:15px;
  font-weight:800;
  padding:10px 20px 10px 10px;
  letter-spacing:normal;
}
body[data-mode="customer"] .cat-pill-icon{
  width:32px;
  height:32px;
  font-size:15px;
}
body[data-mode="customer"] .button{
  font-size:15px;
  letter-spacing:normal;
}
body[data-mode="customer"] .button-primary,
body[data-mode="customer"] .button-secondary,
body[data-mode="customer"] .hero-name-submit{
  font-size:15px;
  font-weight:800;
  letter-spacing:normal;
}
body[data-mode="customer"] .product-copy>h2{
  font-size:24px;
  font-weight:800;
  line-height:1.3;
  margin:6px 0 10px;
  letter-spacing:normal;
}
body[data-mode="customer"] .product-copy>span{
  font-size:14.5px;
  font-weight:700;
  color:var(--shop-muted);
  line-height:1.6;
}
body[data-mode="customer"] .product-copy>p{
  font-size:14px;
  line-height:1.65;
  color:var(--shop-muted);
  letter-spacing:normal;
}
body[data-mode="customer"] .product-features li{
  font-size:13.5px;
  font-weight:700;
  padding:6px 14px;
}
body[data-mode="customer"] .product-buy strong{
  font-size:28px;
  letter-spacing:normal;
}
body[data-mode="customer"] .product-badge{
  font-size:12.5px;
  font-weight:800;
  padding:5px 12px;
  letter-spacing:normal;
}
body[data-mode="customer"] .catalog-category-tabs button{
  font-size:15px;
  font-weight:700;
  padding:9px 24px;
  letter-spacing:normal;
}
body[data-mode="customer"] .shape-cat-pill{
  font-size:13.5px;
  font-weight:700;
  padding:6px 14px;
}
body[data-mode="customer"] .shape-chip{
  font-size:13px;
  font-weight:700;
  padding:6px 14px;
}
body[data-mode="customer"] .shape-chip-name{
  font-size:13px;
}
body[data-mode="customer"] .shape-chip-price{
  font-size:12px;
}
body[data-mode="customer"] .preview-toolbar span{
  font-size:13.5px;
  font-weight:800;
}
body[data-mode="customer"] .preview-toolbar small{
  font-size:12.5px;
  font-weight:600;
}
body[data-mode="customer"] .customer-controls label>span{
  font-size:14px;
  font-weight:800;
  letter-spacing:normal;
  margin-bottom:6px;
}
body[data-mode="customer"] .customer-controls select,
body[data-mode="customer"] .customer-controls input[type="text"]{
  font-size:15px;
}
body[data-mode="customer"] #customerNameText{
  font-size:16px;
}
body[data-mode="customer"] .name-tag-chip{
  font-size:13px;
  padding:4px 12px;
}
body[data-mode="customer"] .color-swatch-chip{
  font-size:13px;
}
body[data-mode="customer"] .config-heading p{
  font-size:12px;
  letter-spacing:.08em;
}
body[data-mode="customer"] .config-heading h2{
  font-size:24px;
  letter-spacing:normal;
}
body[data-mode="customer"] .config-heading span{
  font-size:14px;
  line-height:1.6;
}
body[data-mode="customer"] .config-step-title strong{
  font-size:15px;
}
body[data-mode="customer"] .config-step-title small{
  font-size:12px;
}
body[data-mode="customer"] .config-safe-note b,
body[data-mode="customer"] .config-safe-note span{
  font-size:13px;
  line-height:1.6;
}
body[data-mode="customer"] .config-state{
  font-size:13px;
}
body[data-mode="customer"] .marquee-card-info strong{
  font-size:15px;
  letter-spacing:normal;
}
body[data-mode="customer"] .marquee-card-info span{
  font-size:13px;
}
body[data-mode="customer"] .marquee-card-badge{
  font-size:11px;
}
body[data-mode="customer"] .sat-badge{
  font-size:11px;
}
body[data-mode="customer"] .satellite-card small{
  font-size:11.5px;
}
body[data-mode="customer"] .rail-link .rail-label{
  font-size:11px;
  letter-spacing:normal;
}
body[data-mode="customer"] .hero-contact-label{
  font-size:13px;
}
body[data-mode="customer"] .footer-social-links .social-btn{
  font-size:13px;
}
body[data-mode="customer"] .footer-instagram-button{
  font-size:14px;
}
body[data-mode="customer"] .header-login-button{
  font-size:14px;
}
body[data-mode="customer"] .customer-login-card .login-kicker{
  font-size:12px;
}
body[data-mode="customer"] .customer-login-card>p:not(.login-kicker){
  font-size:14.5px;
  line-height:1.65;
}
body[data-mode="customer"] .customer-login-card>small{
  font-size:12.5px;
  line-height:1.55;
}
body[data-mode="customer"] .member-login-benefits span{
  font-size:12.5px;
}
body[data-mode="customer"] .brand-story-copy p{
  font-size:12px;
}
body[data-mode="customer"] .brand-story-copy span{
  font-size:14.5px;
  line-height:1.65;
}
body[data-mode="customer"] .admin-google-note{
  font-size:13px!important;
}
body[data-mode="customer"] .admin-password-fallback summary{
  font-size:13px;
}
body[data-mode="customer"] #adminModeButton{
  font-size:13px;
}
body[data-mode="customer"] .website-chat-fab{
  font-size:14px;
}

body[data-mode="customer"] .btn-ready-order{
  background:#10b981;
  color:#fff;
  border:none;
  font-weight:700;
  border-radius:999px;
  box-shadow:0 4px 14px rgba(16,185,129,.28);
}
body[data-mode="customer"] .btn-ready-order:hover{
  background:#059669;
  box-shadow:0 6px 20px rgba(16,185,129,.4);
}

/* Checkout Quantity Stepper & Free Shipping Banner */
body[data-mode="customer"] .checkout-qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
}
body[data-mode="customer"] .checkout-qty-stepper .qty-stepper-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
}
body[data-mode="customer"] .checkout-qty-stepper .qty-stepper-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body[data-mode="customer"] .checkout-qty-stepper .qty-step-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
body[data-mode="customer"] .checkout-qty-stepper .qty-step-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}
body[data-mode="customer"] .checkout-qty-stepper .qty-step-display {
  min-width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .free-shipping-banner {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}
body[data-mode="customer"] .free-shipping-banner.is-free {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}
body[data-mode="customer"] .free-shipping-text {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  margin-bottom: 6px;
}
body[data-mode="customer"] .free-shipping-banner.is-free .free-shipping-text {
  color: #047857;
}
body[data-mode="customer"] .free-shipping-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
body[data-mode="customer"] .free-shipping-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
  transition: width 0.3s ease;
}
body[data-mode="customer"] .free-shipping-banner.is-free .free-shipping-bar i {
  background: linear-gradient(90deg, #10b981, #059669);
}

body[data-mode="customer"] .review-snapshot-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
}

/* Multi-Design Cart Box in Checkout */
body[data-mode="customer"] .checkout-cart-items-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9), rgba(248, 250, 252, 0.95));
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}
body[data-mode="customer"] .checkout-cart-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #cbd5e1;
}
body[data-mode="customer"] .checkout-cart-box-head strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a8a;
}
body[data-mode="customer"] .checkout-cart-box-head small {
  display: block;
  font-size: 12px;
  color: #475569;
}
body[data-mode="customer"] .checkout-cart-box-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
body[data-mode="customer"] .button-ghost-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
body[data-mode="customer"] .button-ghost-danger:hover {
  background: #fee2e2;
}
body[data-mode="customer"] .checkout-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body[data-mode="customer"] .checkout-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}
body[data-mode="customer"] .checkout-cart-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
body[data-mode="customer"] .checkout-cart-item-swatches {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
body[data-mode="customer"] .checkout-cart-item-swatches i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
}
body[data-mode="customer"] .checkout-cart-item-swatches i + i {
  margin-left: -6px;
}
body[data-mode="customer"] .checkout-cart-item-meta {
  min-width: 0;
}
body[data-mode="customer"] .checkout-cart-item-meta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-mode="customer"] .checkout-cart-item-meta small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
}
body[data-mode="customer"] .checkout-cart-item-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
body[data-mode="customer"] .checkout-cart-item-price {
  font-size: 14px;
  font-weight: 900;
  color: #2563eb;
}
body[data-mode="customer"] .btn-remove-cart-item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #e11d48;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
}
body[data-mode="customer"] .btn-remove-cart-item:hover {
  background: #ffe4e6;
}
body[data-mode="customer"] .hero-brief-btn {
  border-color: rgba(84, 51, 235, 0.28);
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  color: #4324d7;
}
body[data-mode="customer"] .hero-brief-btn:hover {
  background: #ede9fe;
  border-color: #5433eb;
}
body[data-mode="customer"] .concierge-service-section {
  margin-top: 28px;
  margin-bottom: 36px;
}
body[data-mode="customer"] .dual-track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
body[data-mode="customer"] .dual-track-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shop-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body[data-mode="customer"] .dual-track-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shop-shadow-lift);
}
body[data-mode="customer"] .dual-track-card.track-concierge {
  background: linear-gradient(155deg, #ffffff 0%, #f5f3ff 65%, #ede9fe 100%);
  border-color: rgba(84, 51, 235, 0.32);
}
body[data-mode="customer"] .dual-track-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #f1f5f9;
  color: #334155;
}
body[data-mode="customer"] .dual-track-badge.highlight {
  background: #5433eb;
  color: #ffffff;
}
body[data-mode="customer"] .dual-track-card h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
}
body[data-mode="customer"] .dual-track-card p {
  margin: 0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.6;
}
body[data-mode="customer"] .dual-track-perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}
body[data-mode="customer"] .dual-track-actions {
  margin-top: 6px;
}
body[data-mode="customer"] .concierge-cta-btn {
  background: linear-gradient(135deg, #5433eb 0%, #7c3aed 100%);
  box-shadow: 0 8px 22px rgba(84, 51, 235, 0.26);
}
body[data-mode="customer"] .custom-brief-dialog {
  margin: auto;
  border: 0;
  border-radius: 28px;
  padding: 0;
  max-width: 780px;
  width: min(94vw, 780px);
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}
body[data-mode="customer"] .custom-brief-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
}
body[data-mode="customer"] .custom-brief-card {
  padding: 26px 28px;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  gap: 18px;
}
body[data-mode="customer"] .custom-brief-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
body[data-mode="customer"] .custom-brief-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #5433eb;
  background: #ede9fe;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
body[data-mode="customer"] .custom-brief-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}
body[data-mode="customer"] .custom-brief-head p {
  margin: 0;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}
body[data-mode="customer"] .my-design-requests-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
body[data-mode="customer"] .my-requests-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}
body[data-mode="customer"] .my-requests-header strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}
body[data-mode="customer"] .my-requests-header small {
  font-size: 12px;
  color: #64748b;
}
body[data-mode="customer"] .my-design-requests-list {
  display: grid;
  gap: 8px;
}
body[data-mode="customer"] .my-brief-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
body[data-mode="customer"] .my-brief-item.is-quoted {
  border-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}
body[data-mode="customer"] .my-brief-item-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}
body[data-mode="customer"] .my-brief-item-info small {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}
body[data-mode="customer"] .my-brief-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
body[data-mode="customer"] .brief-attached-draft {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
}
body[data-mode="customer"] .brief-attached-draft img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #bfdbfe;
}
body[data-mode="customer"] .brief-attached-draft-info {
  flex: 1;
  min-width: 0;
}
body[data-mode="customer"] .brief-attached-draft-info strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a8a;
}
body[data-mode="customer"] .brief-attached-draft-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #1d4ed8;
}
body[data-mode="customer"] .brief-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body[data-mode="customer"] .brief-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body[data-mode="customer"] .brief-field.full {
  grid-column: 1 / -1;
}
body[data-mode="customer"] .brief-field label {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}
body[data-mode="customer"] .brief-field input,
body[data-mode="customer"] .brief-field select,
body[data-mode="customer"] .brief-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
}
body[data-mode="customer"] .brief-upload-zone {
  border: 1.5px dashed #94a3b8;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  display: grid;
  gap: 10px;
}
body[data-mode="customer"] .brief-upload-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
body[data-mode="customer"] .brief-upload-preview img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f5f9;
}
body[data-mode="customer"] .brief-upload-meta {
  flex: 1;
  min-width: 0;
}
body[data-mode="customer"] .brief-dfm-feedback {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}
body[data-mode="customer"] .brief-dfm-feedback.ok {
  color: #047857;
}
body[data-mode="customer"] .brief-dfm-feedback.warn {
  color: #b45309;
}
body[data-mode="customer"] .brief-bulk-tier-card {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1.5px solid #c4b5fd;
  border-radius: 12px;
  padding: 10px 12px;
}
body[data-mode="customer"] .brief-bulk-tier-card strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #4324d7;
}
body[data-mode="customer"] .brief-bulk-tier-card p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #4c1d95;
  line-height: 1.45;
}
body[data-mode="customer"] .custom-brief-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}
body[data-mode="customer"] .custom-brief-actions-right {
  display: flex;
  gap: 10px;
}
body[data-mode="customer"] .checkout-smart-addons-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1.5px dashed #e2e8f0;
}
body[data-mode="customer"] .smart-addons-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
body[data-mode="customer"] .smart-addon-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body[data-mode="customer"] .smart-addon-card.is-checked {
  border-color: #5433eb;
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow: 0 6px 18px rgba(84, 51, 235, 0.08);
}
body[data-mode="customer"] .smart-addon-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
body[data-mode="customer"] .smart-addon-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #5433eb;
  flex-shrink: 0;
}
body[data-mode="customer"] .smart-addon-icon {
  font-size: 22px;
  line-height: 1.1;
  flex-shrink: 0;
}
body[data-mode="customer"] .smart-addon-copy {
  flex: 1;
  min-width: 0;
}
body[data-mode="customer"] .smart-addon-copy strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}
body[data-mode="customer"] .smart-addon-copy small {
  display: block;
  font-size: 12.5px;
  color: #475569;
  margin-top: 3px;
  line-height: 1.5;
}
body[data-mode="customer"] .smart-addon-price {
  font-size: 13.5px;
  font-weight: 900;
  color: #5433eb;
  background: #ede9fe;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
body[data-mode="customer"] .smart-addon-expand {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
  display: grid;
  gap: 10px;
}
body[data-mode="customer"] .nfc-quick-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
body[data-mode="customer"] .nfc-preset-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
}
body[data-mode="customer"] .nfc-preset-pill:hover {
  border-color: #5433eb;
  color: #5433eb;
  background: #ede9fe;
}
body[data-mode="customer"] .gift-card-live-preview {
  background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%);
  border: 1.5px solid #fbcfe8;
  border-radius: 14px;
  padding: 12px 14px;
}
body[data-mode="customer"] .gift-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #be185d;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
body[data-mode="customer"] .gift-card-live-preview p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #831843;
  font-style: italic;
}
body[data-mode="customer"] .care-guide-inline-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12px;
  color: #92400e;
  line-height: 1.5;
}
body[data-mode="customer"] .care-card-box {
  margin: 20px 0;
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
  border: 1.5px solid #c7d2fe;
  text-align: left;
}
body[data-mode="customer"] .care-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
body[data-mode="customer"] .care-card-head span {
  font-size: 11px;
  font-weight: 900;
  color: #4f46e5;
  letter-spacing: 0.05em;
}
body[data-mode="customer"] .care-card-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}
body[data-mode="customer"] .care-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body[data-mode="customer"] .care-rule {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
}
body[data-mode="customer"] .care-rule strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
body[data-mode="customer"] .care-rule small {
  display: block;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}
body[data-mode="customer"] .brief-deposit-policy-banner {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #065f46;
  line-height: 1.5;
}
body[data-mode="customer"] .brief-extra-addons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
body[data-mode="customer"] .brief-addon-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}
body[data-mode="customer"] .brief-addon-pill input {
  width: 15px;
  height: 15px;
  accent-color: #5433eb;
}
@media (max-width: 760px) {
  body[data-mode="customer"] .dual-track-grid,
  body[data-mode="customer"] .brief-form-grid,
  body[data-mode="customer"] .care-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Dedicated Cart View (#cartView), Multi-Pattern Item Cards, Quick-Edit Drawer,
   Order Flow Stepper, Header Cart Badges & Global +1 Toast
   ============================================================================ */
body[data-mode="customer"] .nav-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

body[data-mode="customer"] .nav-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5433eb, #0284c7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(84, 51, 235, 0.35);
}

body[data-mode="customer"] .nav-cart-badge.subtle {
  background: #0f172a;
}

body[data-mode="customer"] .nav-cart-badge[hidden] {
  display: none !important;
}

body[data-mode="customer"] .nav-cart-badge.is-popping {
  animation: navBadgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-mode="customer"] .order-flow-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  flex-wrap: wrap;
}

body[data-mode="customer"] .order-flow-stepper .flow-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

body[data-mode="customer"] .order-flow-stepper .flow-step.done {
  color: #059669;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

body[data-mode="customer"] .order-flow-stepper .flow-step.active {
  color: #ffffff;
  background: linear-gradient(135deg, #5433eb, #3b82f6);
  box-shadow: 0 4px 12px rgba(84, 51, 235, 0.25);
}

body[data-mode="customer"] .order-flow-stepper .flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 11.5px;
  font-weight: 900;
}

body[data-mode="customer"] .order-flow-stepper .flow-step.active .flow-num {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

body[data-mode="customer"] .order-flow-stepper .flow-line {
  width: 28px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
}

body[data-mode="customer"] .order-flow-stepper .flow-line.done {
  background: #10b981;
}

body[data-mode="customer"] .cart-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: start;
}

body[data-mode="customer"] .cart-main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body[data-mode="customer"] .cart-plate-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  border: 1.5px solid #bfdbfe;
}

body[data-mode="customer"] .cart-plate-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .plate-badge-icon {
  padding: 5px 12px;
  border-radius: 999px;
  background: #1e40af;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 900;
}

body[data-mode="customer"] .cart-plate-toolbar-left strong {
  font-size: 15px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .cart-plate-Sub {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

body[data-mode="customer"] .cart-plate-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-detailed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-mode="customer"] .cart-empty-state {
  text-align: center;
  padding: 44px 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
}

body[data-mode="customer"] .cart-empty-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

body[data-mode="customer"] .cart-empty-state h3 {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

body[data-mode="customer"] .cart-empty-state p {
  font-size: 14px;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto;
}

body[data-mode="customer"] .cart-rich-item-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body[data-mode="customer"] .cart-rich-item-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

body[data-mode="customer"] .cart-rich-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-rich-item-visual {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

body[data-mode="customer"] .cart-rich-slot-badge {
  padding: 5px 10px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
}

body[data-mode="customer"] .cart-rich-thumb {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

body[data-mode="customer"] .cart-rich-thumb.fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body[data-mode="customer"] .cart-rich-thumb.fallback span {
  font-size: 20px;
  line-height: 1;
}

body[data-mode="customer"] .cart-rich-thumb.fallback small {
  font-size: 9.5px;
  margin-top: 3px;
}

body[data-mode="customer"] .cart-rich-headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body[data-mode="customer"] .cart-rich-type-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-pattern-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

body[data-mode="customer"] .cart-pattern-pill.clicker {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

body[data-mode="customer"] .cart-pattern-pill.keychain {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

body[data-mode="customer"] .cart-size-pill,
body[data-mode="customer"] .cart-weight-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}

body[data-mode="customer"] .cart-rich-title {
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

body[data-mode="customer"] .cart-custom-word {
  color: #5433eb;
}

body[data-mode="customer"] .cart-rich-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

body[data-mode="customer"] .cart-unit-price {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

body[data-mode="customer"] .cart-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 3px 6px;
}

body[data-mode="customer"] .cart-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

body[data-mode="customer"] .cart-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .cart-line-total {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .cart-spec-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body[data-mode="customer"] .cart-spec-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
}

body[data-mode="customer"] .cart-spec-cell.wide {
  grid-column: span 3;
}

body[data-mode="customer"] .cart-spec-cell small {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
}

body[data-mode="customer"] .cart-spec-cell strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .spec-swatch-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  flex-shrink: 0;
}

body[data-mode="customer"] .cart-rich-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

body[data-mode="customer"] .cart-action-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-mode="customer"] .cart-action-btn.primary-outline {
  border-color: #818cf8;
  background: #eef2ff;
  color: #3730a3;
}

body[data-mode="customer"] .cart-action-btn.studio-btn {
  border-color: #38bdf8;
  background: #f0f9ff;
  color: #0369a1;
}

body[data-mode="customer"] .cart-action-btn.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

body[data-mode="customer"] .cart-item-inline-editor {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border: 1.5px solid #818cf8;
}

body[data-mode="customer"] .inline-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body[data-mode="customer"] .inline-editor-head strong {
  font-size: 14px;
  font-weight: 900;
  color: #1e1b4b;
}

body[data-mode="customer"] .inline-editor-head small {
  font-size: 11.5px;
  color: #4338ca;
}

body[data-mode="customer"] .inline-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body[data-mode="customer"] .inline-editor-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-mode="customer"] .inline-editor-grid label span {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
}

body[data-mode="customer"] .inline-editor-grid input,
body[data-mode="customer"] .inline-editor-grid select {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
}

body[data-mode="customer"] .inline-editor-addons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #c7d2fe;
}

body[data-mode="customer"] .inline-addon-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

body[data-mode="customer"] .inline-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

body[data-mode="customer"] .cart-summary-aside .cart-summary-sticky {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-mode="customer"] .cart-mini-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body[data-mode="customer"] .cart-mini-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
}

body[data-mode="customer"] .cart-proceed-checkout-btn {
  width: 100%;
  min-height: 50px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(84, 51, 235, 0.28);
}

/* Global +1 Floating Toast when item added to cart */
body[data-mode="customer"] .global-cart-added-toast {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 9999;
}

body[data-mode="customer"] .global-cart-added-toast[hidden] {
  display: none !important;
}

body[data-mode="customer"] .global-cart-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.35);
}

body[data-mode="customer"] .global-cart-toast-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #0284c7);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

body[data-mode="customer"] .global-cart-toast-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-mode="customer"] .global-cart-toast-copy strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
}

body[data-mode="customer"] .global-cart-toast-copy small {
  font-size: 11.5px;
  color: #bae6fd;
}

body[data-mode="customer"] .global-cart-toast-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: #38bdf8;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

body[data-mode="customer"] .global-cart-toast-close {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 980px) {
  body[data-mode="customer"] .cart-workspace-grid {
    grid-template-columns: 1fr;
  }
  body[data-mode="customer"] .cart-spec-matrix,
  body[data-mode="customer"] .cart-rich-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-mode="customer"] .cart-spec-cell.wide,
  body[data-mode="customer"] .cart-spec-cell-wide {
    grid-column: span 2;
  }
  body[data-mode="customer"] .inline-editor-grid,
  body[data-mode="customer"] .cie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-mode="customer"] .cart-rich-thumb-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 112px;
  flex-shrink: 0;
}

body[data-mode="customer"] .cart-rich-index-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

body[data-mode="customer"] .cart-rich-thumb-img {
  width: 108px;
  height: 108px;
  border-radius: 16px;
  object-fit: cover;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
}

body[data-mode="customer"] .cart-rich-thumb-fallback {
  width: 108px;
  height: 108px;
  border-radius: 16px;
  border: 1.5px solid #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  padding: 6px;
}

body[data-mode="customer"] .cart-fallback-emoji {
  font-size: 28px;
  line-height: 1;
}

body[data-mode="customer"] .cart-rich-thumb-fallback strong {
  font-size: 11.5px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .cart-rich-main-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-mode="customer"] .cart-rich-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-rich-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-mode="customer"] .cart-pattern-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

body[data-mode="customer"] .cart-pattern-badge.is-clicker {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

body[data-mode="customer"] .cart-pattern-badge.is-keychain {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

body[data-mode="customer"] .cart-rich-price-group {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-mode="customer"] .cart-rich-unit-price {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

body[data-mode="customer"] .cart-rich-line-total {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

body[data-mode="customer"] .cart-rich-line-total strong {
  font-size: 18px;
  font-weight: 900;
  color: #5433eb;
}

body[data-mode="customer"] .cart-rich-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body[data-mode="customer"] .cart-spec-cell-wide {
  grid-column: span 3;
}

body[data-mode="customer"] .cart-spec-label {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

body[data-mode="customer"] .cart-spec-val {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

body[data-mode="customer"] .cart-spec-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-swatch-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
}

body[data-mode="customer"] .cart-swatch-pill i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.28);
  display: inline-block;
}

body[data-mode="customer"] .cart-spec-addons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-addon-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  font-size: 11.5px;
  font-weight: 800;
}

body[data-mode="customer"] .cart-addon-none {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

body[data-mode="customer"] .cart-dfm-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 800;
}

body[data-mode="customer"] .btn-cart-qty {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
}

body[data-mode="customer"] .cart-qty-num {
  min-width: 22px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 900;
}

body[data-mode="customer"] .cart-item-edit-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .btn-cart-action {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

body[data-mode="customer"] .btn-cart-action.is-primary-edit {
  background: #eef2ff;
  border-color: #818cf8;
  color: #3730a3;
}

body[data-mode="customer"] .btn-cart-action.is-studio-edit {
  background: #f0f9ff;
  border-color: #38bdf8;
  color: #0369a1;
}

body[data-mode="customer"] .btn-cart-action.is-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

body[data-mode="customer"] .cart-item-inline-editor[hidden] {
  display: none !important;
}

body[data-mode="customer"] .cie-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

body[data-mode="customer"] .cie-head strong {
  font-size: 14px;
  font-weight: 900;
  color: #1e1b4b;
}

body[data-mode="customer"] .cie-head span {
  font-size: 11.5px;
  color: #4338ca;
}

body[data-mode="customer"] .cie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body[data-mode="customer"] .cie-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-mode="customer"] .cie-field span {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
}

body[data-mode="customer"] .cie-field input,
body[data-mode="customer"] .cie-field select {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 700;
}

body[data-mode="customer"] .cie-addons-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #c7d2fe;
}

body[data-mode="customer"] .cie-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

body[data-mode="customer"] .cie-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================================================
   v27 Visual Annotation — High-Clarity Cart Layout & Large-Font Summary Aside
   ============================================================================ */
body[data-mode="customer"] #cartView.shell {
  max-width: 1380px;
  width: min(1380px, calc(100% - 48px));
}

body[data-mode="customer"] #cartView .page-title-row {
  align-items: center;
  margin-bottom: 24px;
}

body[data-mode="customer"] #cartView .page-title-row h1 {
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.15;
  margin-top: 8px;
}

body[data-mode="customer"] #cartView .checkout-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

body[data-mode="customer"] #cartView .checkout-title-actions .button {
  white-space: nowrap;
  padding: 10px 18px;
  font-size: 14.5px;
}

body[data-mode="customer"] .order-flow-stepper .flow-step.is-done {
  color: #065f46;
  background: #ecfdf5;
  border-color: #6ee7b7;
}

body[data-mode="customer"] .order-flow-stepper .flow-step.is-current {
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}

body[data-mode="customer"] .order-flow-stepper .flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

body[data-mode="customer"] .order-flow-stepper .flow-step.is-done .flow-step-num {
  background: #10b981;
  color: #ffffff;
}

body[data-mode="customer"] .order-flow-stepper .flow-step.is-current .flow-step-num {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

body[data-mode="customer"] .order-flow-stepper .flow-step-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  text-align: left;
}

body[data-mode="customer"] .order-flow-stepper .flow-step-text strong {
  font-size: 13.5px;
  font-weight: 800;
}

body[data-mode="customer"] .order-flow-stepper .flow-step-text small {
  font-size: 11.5px;
  opacity: 0.85;
  font-weight: 600;
}

body[data-mode="customer"] .order-flow-stepper .flow-step-arrow {
  color: #94a3b8;
  font-weight: 900;
  font-size: 16px;
}

body[data-mode="customer"] .cart-view-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(410px, 0.92fr);
  gap: 24px;
  align-items: start;
}

body[data-mode="customer"] .cart-view-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

body[data-mode="customer"] .cart-plate-overview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
}

body[data-mode="customer"] .cart-plate-overview-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

body[data-mode="customer"] .cart-plate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #dbeafe;
  font-size: 20px;
  flex-shrink: 0;
}

body[data-mode="customer"] .cart-plate-overview-info strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .cart-plate-overview-info small {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-top: 2px;
}

body[data-mode="customer"] .cart-plate-overview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-detailed-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body[data-mode="customer"] .cart-rich-item-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Redesigned Cart Summary Aside — Clear Visual Hierarchy, Large Font, Grouped Boxes */
body[data-mode="customer"] aside.checkout-summary.cart-summary-aside {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 22px;
  border-radius: 26px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.09);
}

body[data-mode="customer"] .cart-summary-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #e2e8f0;
}

body[data-mode="customer"] .cart-summary-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

body[data-mode="customer"] .cart-summary-title {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

body[data-mode="customer"] .cart-summary-aside .free-shipping-banner {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1.5px solid #7dd3fc;
}

body[data-mode="customer"] .cart-summary-aside .free-shipping-banner.is-free {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #34d399;
}

body[data-mode="customer"] .cart-summary-aside .free-shipping-text {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}

body[data-mode="customer"] .cart-summary-aside .free-shipping-bar {
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

/* 2-Column KPI Stat Boxes (Quantity & Weight) */
body[data-mode="customer"] .cart-summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-mode="customer"] .cart-stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}

body[data-mode="customer"] .cart-stat-label {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
}

body[data-mode="customer"] .cart-stat-value {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

/* Per-Item Breakdown Box */
body[data-mode="customer"] .cart-summary-items-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}

body[data-mode="customer"] .cart-summary-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 800;
  color: #475569;
  padding-bottom: 6px;
  border-bottom: 1px dashed #cbd5e1;
}

body[data-mode="customer"] .cart-summary-mini-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body[data-mode="customer"] .cart-mini-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

body[data-mode="customer"] .cart-mini-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

body[data-mode="customer"] .cart-mini-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  flex-shrink: 0;
}

body[data-mode="customer"] .cart-mini-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.25);
  flex-shrink: 0;
}

body[data-mode="customer"] .cart-mini-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body[data-mode="customer"] .cart-mini-name {
  font-size: 15.5px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-mode="customer"] .cart-mini-sub {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  line-height: 1.25;
}

body[data-mode="customer"] .cart-mini-price {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
  flex-shrink: 0;
}

body[data-mode="customer"] .cart-mini-empty {
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}

/* Financial Calculation Card */
body[data-mode="customer"] .cart-summary-calc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
}

body[data-mode="customer"] .cart-summary-aside .price-line.cart-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 15.5px;
}

body[data-mode="customer"] .cart-summary-aside .price-line.cart-calc-row span {
  font-size: 15px;
  font-weight: 800;
  color: #334155;
}

body[data-mode="customer"] .cart-summary-aside .price-line.cart-calc-row strong {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .cart-summary-aside #cartSummaryShipping.is-free-ship {
  padding: 4px 12px;
  border-radius: 999px;
  background: #d1fae5;
  border: 1px solid #34d399;
  color: #065f46;
  font-size: 15.5px;
}

body[data-mode="customer"] .cart-summary-aside .price-total.cart-grand-total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 2px solid #4338ca;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(49, 46, 129, 0.25);
}

body[data-mode="customer"] .cart-grand-total-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body[data-mode="customer"] .cart-grand-total-label span {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

body[data-mode="customer"] .cart-grand-total-label small {
  font-size: 13px;
  font-weight: 600;
  color: #c7d2fe;
}

body[data-mode="customer"] .cart-summary-aside #cartSummaryGrandTotal {
  font-size: 34px;
  font-weight: 900;
  color: #fde047;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Reassurance Reminder & CTA Stack */
body[data-mode="customer"] .cart-summary-aside .review-reminder.cart-summary-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-mode="customer"] .cart-summary-aside .review-reminder.cart-summary-note b {
  font-size: 14.5px;
  font-weight: 900;
  color: #14532d;
}

body[data-mode="customer"] .cart-summary-aside .review-reminder.cart-summary-note span {
  font-size: 13.5px;
  font-weight: 600;
  color: #166534;
  line-height: 1.5;
}

body[data-mode="customer"] .cart-summary-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-mode="customer"] .cart-main-checkout-btn {
  min-height: 56px;
  font-size: 16.5px;
  font-weight: 900;
  padding: 14px 20px;
  box-shadow: 0 12px 28px rgba(84, 51, 235, 0.32);
}

body[data-mode="customer"] .cart-back-studio-btn {
  min-height: 48px;
  font-size: 14.5px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  body[data-mode="customer"] .cart-view-layout {
    grid-template-columns: 1fr;
  }
  body[data-mode="customer"] aside.checkout-summary.cart-summary-aside {
    position: static;
  }
}

/* ============================================================================
   Cart Add-ons Bundle Card & Redesigned Checkout View (Address & Payment Only)
   ============================================================================ */
body[data-mode="customer"] .cart-addons-bundle-card {
  margin-top: 22px;
  padding: 24px 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 2px solid #e0e7ff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body[data-mode="customer"] .cart-addons-bundle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #e2e8f0;
}

body[data-mode="customer"] .cart-addons-bundle-title {
  margin: 6px 0 6px;
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
}

body[data-mode="customer"] .cart-addons-bundle-desc {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.55;
}

body[data-mode="customer"] .cart-addons-subblock {
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}

body[data-mode="customer"] .cart-addons-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body[data-mode="customer"] .cart-addons-subhead strong {
  font-size: 16.5px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .cart-addons-subhead span {
  font-size: 13.5px;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Redesigned Checkout View Layout */
body[data-mode="customer"] #checkoutView.shell {
  max-width: 1380px;
  width: min(1380px, calc(100% - 48px));
}

body[data-mode="customer"] .checkout-layout.checkout-layout-modern {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(410px, 0.92fr);
  gap: 24px;
  align-items: start;
}

body[data-mode="customer"] .checkout-form-modern {
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

body[data-mode="customer"] #checkoutView .checkout-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

body[data-mode="customer"] #checkoutView .checkout-title-actions .button,
body[data-mode="customer"] #checkoutView .checkout-title-actions .secure-label {
  white-space: nowrap;
}

body[data-mode="customer"] .checkout-card-modern {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body[data-mode="customer"] .form-card-head.checkout-card-head-modern {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid #e2e8f0;
}

body[data-mode="customer"] .form-card-head.checkout-card-head-modern > span.checkout-step-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
  flex-shrink: 0;
}

body[data-mode="customer"] .checkout-head-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

body[data-mode="customer"] .checkout-head-copy h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body[data-mode="customer"] .checkout-head-copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  line-height: 1.45;
}

body[data-mode="customer"] .form-card-head.checkout-card-head-modern > span.checkout-card-pill {
  width: auto;
  height: auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1.5px solid #c7d2fe;
  color: #3730a3;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body[data-mode="customer"] .form-card-head.checkout-card-head-modern > span.checkout-card-pill.is-pay {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Address Grid & Inputs */
body[data-mode="customer"] .checkout-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body[data-mode="customer"] .checkout-field-box {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body[data-mode="customer"] .checkout-field-box.wide {
  grid-column: 1 / -1;
}

body[data-mode="customer"] .checkout-field-box > span {
  font-size: 14.5px;
  font-weight: 800;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 5px;
}

body[data-mode="customer"] .checkout-field-box > span em {
  color: #e11d48;
  font-style: normal;
}

body[data-mode="customer"] .checkout-field-label small {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

body[data-mode="customer"] .checkout-field-box input,
body[data-mode="customer"] .checkout-field-box textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body[data-mode="customer"] .checkout-field-box input:focus,
body[data-mode="customer"] .checkout-field-box textarea:focus {
  outline: none;
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* Payment Grid: PromptPay Card + Slip Upload Zone */
body[data-mode="customer"] .checkout-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

body[data-mode="customer"] .promptpay-card-modern {
  border-radius: 20px;
  border: 2px solid #c7d2fe;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

body[data-mode="customer"] .promptpay-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}

body[data-mode="customer"] .promptpay-brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-mode="customer"] .pp-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #1e1b4b;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

body[data-mode="customer"] .promptpay-brand-badge strong {
  display: block;
  font-size: 15.5px;
  font-weight: 900;
  color: #1e1b4b;
}

body[data-mode="customer"] .promptpay-brand-badge small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

body[data-mode="customer"] .promptpay-amount-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: #1e1b4b;
  color: #fde047;
  font-size: 14.5px;
  font-weight: 900;
  white-space: nowrap;
}

body[data-mode="customer"] .promptpay-body-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

body[data-mode="customer"] .promptpay-qr-frame {
  width: 140px;
  height: 140px;
  margin: 4px auto;
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #4f46e5;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.14);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-mode="customer"] .promptpay-qr-frame .qr-placeholder {
  margin: 0;
  width: 100%;
  height: 100%;
  border: none;
}

body[data-mode="customer"] .promptpay-card-modern strong#checkoutQrTitle {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin-top: 2px;
}

body[data-mode="customer"] .promptpay-card-modern small#checkoutQrSubtitle {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  line-height: 1.45;
  margin-top: 2px;
}

body[data-mode="customer"] .promptpay-account-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-mode="customer"] .pp-acc-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body[data-mode="customer"] .pp-acc-name {
  font-size: 16.5px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .pp-acc-id {
  font-size: 14px;
  font-weight: 800;
  color: #4f46e5;
}

body[data-mode="customer"] .pp-acc-hint {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.45;
}

/* Upload Slip Zone Modern */
body[data-mode="customer"] .upload-zone-modern {
  border-radius: 20px;
  border: 2px dashed #6366f1;
  background: linear-gradient(180deg, #fafaff 0%, #f1f5f9 100%);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}

body[data-mode="customer"] .upload-zone-modern:hover {
  border-color: #4338ca;
  background: #eef2ff;
  transform: translateY(-1px);
}

body[data-mode="customer"] .upload-zone-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-mode="customer"] .upload-zone-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .upload-zone-sub {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
  word-break: break-word;
}

body[data-mode="customer"] .upload-browse-pill {
  margin-top: 4px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

/* Compact Made-to-Order Consult Bar */
body[data-mode="customer"] .checkout-consult-compact {
  padding: 14px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .consult-compact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-mode="customer"] .consult-compact-text strong {
  font-size: 14.5px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .consult-compact-text span {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

body[data-mode="customer"] .consult-compact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Checkout Summary Aside Specific Overrides */
body[data-mode="customer"] .checkout-summary-edit-cart-link {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid #c7d2fe;
  background: #eef2ff;
  color: #4338ca;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

body[data-mode="customer"] .checkout-summary-edit-cart-link:hover {
  background: #e0e7ff;
}

body[data-mode="customer"] .checkout-summary-aside #shippingFee.is-free-ship {
  padding: 4px 12px;
  border-radius: 999px;
  background: #d1fae5;
  border: 1px solid #34d399;
  color: #065f46;
  font-size: 15.5px;
}

body[data-mode="customer"] .checkout-summary-aside #orderTotal {
  font-size: 34px;
  font-weight: 900;
  color: #fde047;
  line-height: 1;
  letter-spacing: -0.02em;
}

@media (max-width: 1080px) {
  body[data-mode="customer"] .checkout-layout.checkout-layout-modern {
    grid-template-columns: 1fr;
  }
  body[data-mode="customer"] .checkout-payment-grid,
  body[data-mode="customer"] .checkout-address-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   V30 Visual Annotations Overhaul (10 Points)
   1. Header Concierge Button + Ready-Made Nav Tab + Compact Fit
   2. Enlarged #cartView & #checkoutView Shell Width + Enlarged Item Index Badge
   3. Per-Item Accessory & Smart Add-On Strip inside each Cart Item Card
   4. Smart Thai Postal Code Auto-Complete Dropdown
   5. Craft.me-Inspired Payment Method Card & Order/QR/Slip Verification Popup
   6. Simplified Concierge Brief Modal + Direct Facebook Messenger Launch
   ============================================================================ */

/* 1 & 10. Header Navigation Fit & Special Pills */
body[data-mode="customer"] .site-header .main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .site-header .main-nav > button {
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
}

body[data-mode="customer"] .site-header .main-nav .nav-ready-products-btn {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border: 1.5px solid #6ee7b7;
}

body[data-mode="customer"] .site-header .main-nav .nav-ready-products-btn:hover,
body[data-mode="customer"] .site-header .main-nav .nav-ready-products-btn.is-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #059669;
}

body[data-mode="customer"] .site-header .main-nav .nav-assist-btn {
  background: linear-gradient(135deg, #fdf2f8 0%, #ede9fe 100%);
  color: #6d28d9;
  border: 1.5px solid #c4b5fd;
  box-shadow: 0 3px 10px rgba(109, 40, 217, 0.12);
}

body[data-mode="customer"] .site-header .main-nav .nav-assist-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-1px);
}

/* 3, 4, 5, 7. Wider Cart & Checkout Container + Larger Item Badge + Wider Summary Aside */
body[data-mode="customer"] #cartView.shell,
body[data-mode="customer"] #checkoutView.shell {
  max-width: 1640px;
  width: min(1640px, calc(100% - 40px));
}

body[data-mode="customer"] .cart-view-layout,
body[data-mode="customer"] .checkout-layout.checkout-layout-modern {
  grid-template-columns: minmax(0, 1.56fr) minmax(440px, 0.96fr);
  gap: 28px;
  align-items: start;
}

body[data-mode="customer"] .cart-rich-item-card {
  padding: 24px 26px;
  border-radius: 26px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

body[data-mode="customer"] .cart-rich-index-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
  letter-spacing: 0.01em;
}

/* 6. Per-Item Accessory & Smart Add-Ons Strip inside each Cart Card */
body[data-mode="customer"] .cart-item-addons-strip {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-mode="customer"] .cart-item-addon-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body[data-mode="customer"] .cart-item-addon-label {
  font-size: 13px;
  font-weight: 900;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

body[data-mode="customer"] .cart-item-acc-pills,
body[data-mode="customer"] .cart-item-smart-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-mode="customer"] .cart-acc-pill,
body[data-mode="customer"] .cart-smart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-mode="customer"] .cart-acc-pill:hover,
body[data-mode="customer"] .cart-smart-pill:hover {
  border-color: #6366f1;
  background: #f5f3ff;
}

body[data-mode="customer"] .cart-acc-pill.is-active {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border-color: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.24);
}

body[data-mode="customer"] .cart-smart-pill.is-active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.24);
}

body[data-mode="customer"] .cart-acc-pill em,
body[data-mode="customer"] .cart-smart-pill em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

body[data-mode="customer"] .cart-acc-pill.is-active em,
body[data-mode="customer"] .cart-smart-pill.is-active em {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

body[data-mode="customer"] .cart-smart-extra-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

body[data-mode="customer"] .cart-smart-inline-input {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
}

body[data-mode="customer"] .cart-smart-inline-input span {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

body[data-mode="customer"] .cart-smart-inline-input input {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

/* 8. Smart Thai Postal Code Auto-Complete Dropdown */
body[data-mode="customer"] .postcode-autocomplete-field {
  position: relative;
}

body[data-mode="customer"] .postcode-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

body[data-mode="customer"] .postcode-input-wrap input {
  width: 100%;
  padding-right: 110px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #1e1b4b;
}

body[data-mode="customer"] .postcode-auto-badge {
  position: absolute;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4338ca;
  border: 1px solid #c7d2fe;
  font-size: 11.5px;
  font-weight: 900;
  pointer-events: none;
}

body[data-mode="customer"] .postcode-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background: #ffffff;
  border: 2px solid #4f46e5;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}

body[data-mode="customer"] .postcode-suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease;
}

body[data-mode="customer"] .postcode-suggestion-item:hover {
  background: #eef2ff;
}

body[data-mode="customer"] .postcode-sug-code {
  padding: 4px 9px;
  border-radius: 8px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

body[data-mode="customer"] .postcode-sug-path {
  flex: 1;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}

body[data-mode="customer"] .postcode-sug-pick {
  font-size: 12px;
  font-weight: 800;
  color: #4338ca;
  flex-shrink: 0;
}

body[data-mode="customer"] .postcode-status-hint {
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

body[data-mode="customer"] .postcode-status-hint.is-ok {
  color: #059669;
  font-weight: 800;
}

/* 9. Craft.me-Inspired Payment Method Card on Checkout View */
body[data-mode="customer"] .craft-checkout-pay-method-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body[data-mode="customer"] .craft-pay-step-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-mode="customer"] .craft-pay-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
}

body[data-mode="customer"] .craft-pay-step-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

body[data-mode="customer"] .craft-pay-step-item strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 2px;
}

body[data-mode="customer"] .craft-pay-step-item small {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
}

body[data-mode="customer"] .craft-preupload-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 20px;
  border: 2px solid #4f46e5;
  background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.12);
  flex-wrap: wrap;
}

body[data-mode="customer"] .craft-preupload-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 240px;
}

body[data-mode="customer"] .craft-preupload-badge {
  font-size: 16px;
  font-weight: 800;
  color: #1e1b4b;
}

body[data-mode="customer"] .craft-preupload-info small {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

body[data-mode="customer"] .craft-preupload-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .craft-preupload-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

body[data-mode="customer"] .craft-preupload-label input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

body[data-mode="customer"] .craft-open-popup-cta {
  padding: 15px 24px;
  border-radius: 16px;
  font-size: 16.5px;
  font-weight: 900;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
  cursor: pointer;
}

body[data-mode="customer"] .craft-open-popup-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.36);
}

/* 9. Craft.me-Inspired Payment & Order Verification Popup (#reviewDialog.craft-payment-dialog) */
body[data-mode="customer"] #reviewDialog.craft-payment-dialog {
  max-width: 640px;
  width: min(640px, calc(100vw - 24px));
  padding: 0;
  border: none;
  border-radius: 26px;
  background: transparent;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.42);
}

body[data-mode="customer"] .craft-payment-dialog-card {
  width: 100%;
  max-width: 100%;
  padding: 0;
  border-radius: 26px;
  overflow: hidden;
  background: #f8fafc;
  border: 2px solid #fde047;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

body[data-mode="customer"] .craft-payment-top-banner {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid #facc15;
}

body[data-mode="customer"] .craft-payment-banner-icon {
  font-size: 20px;
}

body[data-mode="customer"] .craft-payment-top-banner strong {
  font-size: 18px;
  font-weight: 900;
  color: #713f12;
  flex: 1;
  text-align: center;
}

body[data-mode="customer"] .craft-dialog-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(113, 63, 18, 0.25);
  background: rgba(255, 255, 255, 0.8);
  color: #713f12;
  font-weight: 900;
  cursor: pointer;
}

body[data-mode="customer"] .craft-payment-scroll-body {
  padding: 16px 20px 22px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body[data-mode="customer"] .craft-order-meta-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

body[data-mode="customer"] .craft-order-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

body[data-mode="customer"] .craft-meta-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-mode="customer"] .craft-meta-item {
  font-size: 13.5px;
  line-height: 1.45;
  color: #334155;
}

body[data-mode="customer"] .craft-meta-item span {
  color: #64748b;
  font-weight: 700;
  margin-right: 4px;
}

body[data-mode="customer"] .craft-meta-item strong {
  color: #0f172a;
  font-weight: 800;
}

body[data-mode="customer"] .craft-meta-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

body[data-mode="customer"] .craft-meta-status-col > span:first-child {
  font-size: 11.5px;
  font-weight: 800;
  color: #64748b;
}

body[data-mode="customer"] .craft-status-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: #fef9c3;
  border: 1.5px solid #fde047;
  color: #854d0e;
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}

body[data-mode="customer"] .craft-status-pill.is-paid {
  background: #dcfce7;
  border-color: #4ade80;
  color: #166534;
}

body[data-mode="customer"] .craft-mini-preview-box {
  margin-top: 2px;
}

body[data-mode="customer"] .craft-mini-preview-box .review-toy {
  transform: scale(0.55);
  transform-origin: top right;
  margin-bottom: -68px;
}

body[data-mode="customer"] .craft-mini-preview-box .review-snapshot-img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
}

body[data-mode="customer"] .craft-meta-details-toggle {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

body[data-mode="customer"] .craft-meta-details-toggle summary {
  cursor: pointer;
  color: #4f46e5;
  font-weight: 800;
}

body[data-mode="customer"] .craft-meta-extra-rows {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body[data-mode="customer"] .craft-countdown-banner {
  background: #fefce8;
  border: 2px solid #fde047;
  border-radius: 14px;
  padding: 11px 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #854d0e;
}

body[data-mode="customer"] .craft-countdown-banner strong {
  font-size: 18px;
  font-weight: 900;
  color: #b45309;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

body[data-mode="customer"] .craft-qr-section-card,
body[data-mode="customer"] .craft-slip-upload-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-mode="customer"] .craft-section-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .craft-exact-amount-alert {
  background: #fff1f2;
  border: 2px solid #fecdd3;
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-mode="customer"] .craft-exact-amount-alert p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #be123c;
}

body[data-mode="customer"] .craft-alert-amount {
  font-size: 25px;
  font-weight: 900;
  color: #e11d48;
  line-height: 1.15;
}

body[data-mode="customer"] .craft-qr-frame-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 6px 0;
}

body[data-mode="customer"] .craft-qr-frame {
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

body[data-mode="customer"] .craft-qr-box {
  width: 150px;
  height: 150px;
  margin: 0 auto;
}

body[data-mode="customer"] .craft-qr-account-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

body[data-mode="customer"] .craft-qr-account-info p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

body[data-mode="customer"] .craft-qr-big-total {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
  color: #2563eb;
  line-height: 1;
}

body[data-mode="customer"] .craft-slip-dropzone {
  border: 2.5px dashed #6366f1;
  border-radius: 16px;
  background: #f5f3ff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-mode="customer"] .craft-slip-dropzone:hover {
  background: #ede9fe;
  border-color: #4338ca;
}

body[data-mode="customer"] .craft-slip-dropzone.has-file {
  background: #ecfdf5;
  border-color: #10b981;
}

body[data-mode="customer"] .craft-slip-dropzone.is-error {
  background: #fff1f2;
  border-color: #e11d48;
}

body[data-mode="customer"] .craft-slip-dropzone-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

body[data-mode="customer"] .craft-camera-icon {
  font-size: 26px;
}

body[data-mode="customer"] .craft-slip-dropzone strong {
  font-size: 14.5px;
  font-weight: 900;
  color: #1e1b4b;
}

body[data-mode="customer"] .craft-slip-dropzone small {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

body[data-mode="customer"] .craft-slip-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
}

body[data-mode="customer"] .craft-slip-preview-wrap img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid #10b981;
}

body[data-mode="customer"] .craft-slip-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body[data-mode="customer"] .craft-slip-warning-bar {
  padding: 9px 12px;
  border-radius: 11px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
}

body[data-mode="customer"] .craft-confirm-list {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body[data-mode="customer"] .craft-btn-confirm-payment {
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

body[data-mode="customer"] .craft-btn-confirm-payment:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

body[data-mode="customer"] .craft-dialog-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* 1. Simplified Custom Brief Modal Visual Pills & Messenger CTA */
body[data-mode="customer"] .brief-simple-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

body[data-mode="customer"] .brief-section-label {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .brief-simple-section textarea {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

body[data-mode="customer"] .brief-quick-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-mode="customer"] .brief-type-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-mode="customer"] .brief-pill-icon {
  font-size: 20px;
  flex-shrink: 0;
}

body[data-mode="customer"] .brief-type-pill strong {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
}

body[data-mode="customer"] .brief-type-pill small {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

body[data-mode="customer"] .brief-type-pill.is-active {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #312e81;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

body[data-mode="customer"] .brief-mood-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body[data-mode="customer"] .brief-sub-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
}

body[data-mode="customer"] .brief-mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body[data-mode="customer"] .brief-mood-chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}

body[data-mode="customer"] .brief-mood-chip.is-active {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  color: #ffffff;
  border-color: transparent;
}

body[data-mode="customer"] .brief-submit-messenger-btn {
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  background: linear-gradient(135deg, #0084ff 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 132, 255, 0.28);
}

@media (max-width: 1120px) {
  body[data-mode="customer"] .cart-view-layout,
  body[data-mode="customer"] .checkout-layout.checkout-layout-modern {
    grid-template-columns: 1fr;
  }
  body[data-mode="customer"] .craft-pay-step-cards,
  body[data-mode="customer"] .brief-quick-type-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   Visual Annotations v31 — Customer Storefront Enhancements (จุดที่ 1, 3, 4, 5, 6, 7)
   ============================================================================ */

/* จุดที่ 1: Dedicated Concierge Design Service Page (#assistDesignView) */
body[data-mode="customer"] .assist-design-page {
  padding-top: 24px;
  padding-bottom: 56px;
}

body[data-mode="customer"] .assist-page-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 26px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 52%, #eff6ff 100%);
  border: 1.5px solid #ddd6fe;
  box-shadow: 0 12px 34px rgba(124, 58, 237, 0.08);
  margin-bottom: 24px;
}

body[data-mode="customer"] .assist-page-hero-copy h1 {
  margin: 8px 0 10px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  color: #1e1b4b;
  line-height: 1.25;
}

body[data-mode="customer"] .assist-page-hero-copy p {
  margin: 0;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

body[data-mode="customer"] .assist-page-hero-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body[data-mode="customer"] .assist-hero-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

body[data-mode="customer"] .assist-hero-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body[data-mode="customer"] .assist-hero-step strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

body[data-mode="customer"] .assist-hero-step small {
  display: block;
  font-size: 12px;
  color: #64748b;
}

body[data-mode="customer"] .assist-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

body[data-mode="customer"] .assist-page-main-card {
  padding: 28px 30px;
  border-radius: 26px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body[data-mode="customer"] .assist-form-section-box {
  padding: 20px 22px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
}

body[data-mode="customer"] .assist-section-step-title {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .assist-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #4f46e5;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body[data-mode="customer"] .assist-Submit-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1.5px dashed #e2e8f0;
}

body[data-mode="customer"] .assist-page-side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 86px;
}

body[data-mode="customer"] .assist-side-card {
  padding: 22px 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

body[data-mode="customer"] .assist-side-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  color: #0f172a;
}

body[data-mode="customer"] .assist-side-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}

body[data-mode="customer"] .assist-messenger-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border-color: #bfdbfe;
}

body[data-mode="customer"] .assist-messenger-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 8px;
}

body[data-mode="customer"] .assist-messenger-direct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0084ff 0%, #4f46e5 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 132, 255, 0.22);
}

body[data-mode="customer"] .assist-guarantee-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
}

/* จุดที่ 5: Left-side Selected Upgrades Visual Stack below Product Thumbnail */
body[data-mode="customer"] .cart-rich-item-top {
  grid-template-columns: 204px minmax(0, 1fr) !important;
  gap: 18px !important;
}

body[data-mode="customer"] .cart-rich-thumb-wrap {
  width: 204px !important;
  min-width: 204px !important;
}

body[data-mode="customer"] .cart-rich-thumb-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

body[data-mode="customer"] .cart-rich-thumb-img {
  width: 100% !important;
  height: 184px !important;
  border-radius: 16px;
  object-fit: cover !important;
  border: 1.5px solid #cbd5e1;
  background: #0f172a;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

body[data-mode="customer"] .cart-left-selected-upgrades {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  width: 100%;
}

body[data-mode="customer"] .cart-left-upgrades-head,
body[data-mode="customer"] .clsu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 900;
  color: #334155;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #cbd5e1;
}

body[data-mode="customer"] .cart-left-upgrades-list,
body[data-mode="customer"] .clsu-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

body[data-mode="customer"] .cart-left-upgrade-mini-card,
body[data-mode="customer"] .left-upgrade-visual-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body[data-mode="customer"] .cart-left-upgrade-mini-card.is-smart,
body[data-mode="customer"] .left-upgrade-visual-item.is-addon {
  border-color: #c4b5fd;
  background: #faf5ff;
}

body[data-mode="customer"] .cart-left-upgrade-mini-card.is-charm,
body[data-mode="customer"] .left-upgrade-visual-item.is-charm {
  border-color: #fbcfe8;
  background: #fdf2f8;
}

body[data-mode="customer"] .cart-left-upgrade-svg,
body[data-mode="customer"] .luvi-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

body[data-mode="customer"] .cart-left-upgrade-svg svg,
body[data-mode="customer"] .luvi-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

body[data-mode="customer"] .cart-left-upgrade-meta,
body[data-mode="customer"] .luvi-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

body[data-mode="customer"] .cart-left-upgrade-meta strong,
body[data-mode="customer"] .luvi-copy strong {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-mode="customer"] .cart-left-upgrade-meta span,
body[data-mode="customer"] .luvi-copy small {
  font-size: 11px;
  font-weight: 800;
  color: #4f46e5;
}

/* จุดที่ 3: Visual Image Choice Cards for Accessory Hardware & Smart Add-ons */
body[data-mode="customer"] .cart-visual-choices-grid,
body[data-mode="customer"] .cart-acc-pills-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

body[data-mode="customer"] .cart-visual-choices-grid.cart-smart-choices-grid,
body[data-mode="customer"] .cart-smart-pills-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
}

body[data-mode="customer"] .cart-visual-choice-card {
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 11px !important;
  border-radius: 14px !important;
  border: 2px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #1e293b !important;
  text-align: left !important;
  cursor: pointer;
  transition: all 0.16s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

body[data-mode="customer"] .cart-visual-choice-card:hover {
  border-color: #818cf8 !important;
  background: #f8fafc !important;
  transform: translateY(-1px);
}

body[data-mode="customer"] .cart-visual-choice-card.is-active,
body[data-mode="customer"] .cart-visual-choice-card.is-selected {
  border-color: #4f46e5 !important;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%) !important;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.18), 0 0 0 2px rgba(79, 70, 229, 0.16) !important;
}

body[data-mode="customer"] .cart-visual-choice-svg,
body[data-mode="customer"] .cvc-thumb {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-mode="customer"] .cart-visual-choice-svg svg,
body[data-mode="customer"] .cvc-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
}

body[data-mode="customer"] .cart-visual-choice-body,
body[data-mode="customer"] .cvc-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

body[data-mode="customer"] .cart-visual-choice-title,
body[data-mode="customer"] .cvc-title {
  font-size: 12.5px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

body[data-mode="customer"] .cart-visual-choice-card.is-selected .cart-visual-choice-title,
body[data-mode="customer"] .cart-visual-choice-card.is-selected .cvc-title {
  color: #312e81;
}

body[data-mode="customer"] .cart-visual-choice-desc,
body[data-mode="customer"] .cvc-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
}

body[data-mode="customer"] .cart-visual-choice-price,
body[data-mode="customer"] .cvc-price-badge {
  display: inline-flex;
  align-self: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #334155;
  flex-shrink: 0;
}

body[data-mode="customer"] .cart-visual-choice-card.is-selected .cart-visual-choice-price,
body[data-mode="customer"] .cart-visual-choice-card.is-selected .cvc-price-badge,
body[data-mode="customer"] .cvc-price-badge.is-selected {
  background: #4f46e5 !important;
  color: #ffffff !important;
}

/* จุดที่ 4: Full-Width NFC Link & Gift Card Bar */
body[data-mode="customer"] .cart-smart-extra-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

body[data-mode="customer"] .cart-smart-inline-field.is-wide-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f3ff;
  border: 1.5px solid #c4b5fd;
}

body[data-mode="customer"] .cart-smart-inline-field.is-wide-bar span {
  font-size: 12.5px;
  font-weight: 800;
  color: #4c1d95;
}

body[data-mode="customer"] .cart-smart-inline-field.is-wide-bar input {
  width: 100% !important;
  min-width: 100% !important;
  height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid #a78bfa;
  background: #ffffff;
  font-size: 14px;
  color: #0f172a;
}

/* จุดที่ 6 & จุดที่ 7: Bottom Action Bar with Total + Quantity on the Far Right */
body[data-mode="customer"] .cart-rich-actions-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  margin-top: 16px !important;
  padding-top: 14px !important;
  border-top: 1.5px solid #e2e8f0 !important;
  width: 100% !important;
}

body[data-mode="customer"] .cart-item-edit-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-actions-right-cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
  flex-wrap: wrap;
}

body[data-mode="customer"] .cart-actions-right-cluster .cart-rich-line-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 14px;
  border-radius: 12px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}

body[data-mode="customer"] .cart-actions-right-cluster .cart-rich-line-total strong {
  font-size: 17px;
  font-weight: 900;
  color: #4f46e5;
}

body[data-mode="customer"] .cart-actions-right-cluster .cart-rich-line-total small {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

@media (max-width: 980px) {
  body[data-mode="customer"] .assist-page-hero,
  body[data-mode="customer"] .assist-page-grid,
  body[data-mode="customer"] .cart-visual-choices-grid.cart-smart-choices-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   🎨 3D Print Studio Model & Template Explorer Grid (#homeModelExplorerSection)
   ========================================================================== */
body[data-mode="customer"] .model-explorer-section {
  margin-top: 28px;
  margin-bottom: 36px;
}

body[data-mode="customer"] .model-explorer-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

body[data-mode="customer"] .model-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 320px;
  min-width: 240px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 0 14px;
  height: 44px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-mode="customer"] .model-search-box:focus-within {
  border-color: #f43f5e;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

body[data-mode="customer"] .model-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
  margin-right: 9px;
}

body[data-mode="customer"] .model-search-input {
  width: 100%;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  padding: 0;
}

body[data-mode="customer"] .model-search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

body[data-mode="customer"] .model-search-clear {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 6px;
}

body[data-mode="customer"] .model-search-clear:hover {
  background: #e2e8f0;
  color: #0f172a;
}

body[data-mode="customer"] .model-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

body[data-mode="customer"] .model-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.16s ease;
}

body[data-mode="customer"] .model-filter-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

body[data-mode="customer"] .model-filter-pill.is-active {
  background: linear-gradient(135deg, #ff2e63 0%, #f43f5e 100%);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.28);
}

body[data-mode="customer"] .filter-pill-ico {
  font-size: 13.5px;
  line-height: 1;
}

body[data-mode="customer"] .model-explorer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body[data-mode="customer"] .explorer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #e8ecf4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

body[data-mode="customer"] .explorer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

body[data-mode="customer"] .explorer-card[hidden] {
  display: none !important;
}

/* Dashed Card 1: Request a designer */
body[data-mode="customer"] .explorer-card-request {
  border: 2px dashed #b4befe;
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
}

body[data-mode="customer"] .explorer-card-request:hover {
  border-color: #6366f1;
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.12);
}

body[data-mode="customer"] .explorer-card-art {
  position: relative;
  width: 100%;
  height: 196px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

body[data-mode="customer"] .explorer-art-svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

body[data-mode="customer"] .art-request-designer {
  background: linear-gradient(145deg, #eef2ff 0%, #f3e8ff 100%);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

body[data-mode="customer"] .request-plus-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.32);
  transition: transform 0.2s ease;
}

body[data-mode="customer"] .explorer-card-request:hover .request-plus-box {
  transform: scale(1.08) rotate(90deg);
}

body[data-mode="customer"] .art-sparkle {
  position: absolute;
  top: 18px;
  left: 20px;
  font-size: 18px;
  color: #a5b4fc;
}

body[data-mode="customer"] .art-dot {
  position: absolute;
  border-radius: 50%;
}

body[data-mode="customer"] .art-dot.dot-blue {
  width: 7px;
  height: 7px;
  background: #60a5fa;
  top: 38px;
  right: 44px;
}

body[data-mode="customer"] .art-dot.dot-coral {
  width: 6px;
  height: 6px;
  background: #fb7185;
  bottom: 28px;
  right: 36px;
}

body[data-mode="customer"] .art-dot.dot-amber {
  width: 6px;
  height: 6px;
  background: #fbbf24;
  bottom: 42px;
  left: 48px;
}

/* Badges on Card Art */
body[data-mode="customer"] .explorer-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

body[data-mode="customer"] .explorer-badge.badge-new {
  left: 12px;
  background: #dcfce7;
  color: #15803d;
}

body[data-mode="customer"] .explorer-badge.badge-updated {
  left: 12px;
  background: #ede9fe;
  color: #6d28d9;
}

body[data-mode="customer"] .explorer-badge.badge-coming {
  right: 12px;
  background: #5b21b6;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(91, 33, 182, 0.25);
}

body[data-mode="customer"] .explorer-badge.badge-pro {
  right: 12px;
  background: #18181b;
  color: #ffffff;
}

/* Floating Heart / Bell Button overlapping bottom-right of art */
body[data-mode="customer"] .explorer-fab-btn {
  position: absolute;
  right: 14px;
  bottom: -18px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  transition: all 0.18s ease;
  padding: 0;
}

body[data-mode="customer"] .explorer-fab-btn:hover {
  transform: scale(1.08);
  color: #f43f5e;
  border-color: #fecdd3;
}

body[data-mode="customer"] .explorer-fab-btn.is-liked {
  background: #fff1f2;
  color: #f43f5e;
  border-color: #fda4af;
}

body[data-mode="customer"] .explorer-fab-btn.is-liked svg {
  fill: #f43f5e;
}

body[data-mode="customer"] .explorer-fab-btn.is-notified {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #c4b5fd;
}

body[data-mode="customer"] .explorer-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 18px 16px;
  gap: 8px;
}

body[data-mode="customer"] .explorer-card-body h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

body[data-mode="customer"] .explorer-card-body p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.5;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-mode="customer"] .explorer-card-footer {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body[data-mode="customer"] .explorer-export-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #f43f5e;
  font-size: 11.5px;
  font-weight: 700;
}

body[data-mode="customer"] .explorer-export-pill b {
  font-weight: 800;
}

body[data-mode="customer"] .explorer-action-hint {
  font-size: 12px;
  font-weight: 800;
  color: #4f46e5;
  opacity: 0.85;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body[data-mode="customer"] .explorer-card:hover .explorer-action-hint {
  opacity: 1;
  transform: translateX(2px);
}

body[data-mode="customer"] .explorer-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.26);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

body[data-mode="customer"] .explorer-request-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.34);
}

body[data-mode="customer"] .model-explorer-empty {
  text-align: center;
  padding: 36px 20px;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 20px;
  margin-top: 14px;
}

body[data-mode="customer"] .model-explorer-empty p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  body[data-mode="customer"] .model-explorer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-mode="customer"] .model-explorer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-mode="customer"] .model-search-box {
    flex: 1 1 100%;
  }
}

@media (max-width: 540px) {
  body[data-mode="customer"] .model-explorer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   🌐 TH / EN Language Switcher Pill in Header (#siteLangSwitch)
   ========================================================================== */
body[data-mode="customer"] .lang-switch-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

body[data-mode="customer"] .lang-switch-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.16s ease;
}

body[data-mode="customer"] .lang-switch-btn:hover {
  color: #0f172a;
}

body[data-mode="customer"] .lang-switch-btn.is-active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
}


/* ============================================================================
   Header fit fix (2026-10-20)
   เมนูหลักต้องอยู่แถวเดียวเสมอ — ถ้าที่ไม่พอให้เลื่อนซ้าย-ขวาแทนการตัดขึ้นหลายบรรทัด
   และห้ามดันปุ่มเข้าสู่ระบบหลุดขอบจอที่ 1024px
   ============================================================================ */
body[data-mode="customer"] .site-header .main-nav {
  flex-wrap: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
body[data-mode="customer"] .site-header .main-nav::-webkit-scrollbar { display: none; }
body[data-mode="customer"] .site-header .main-nav > button { flex: 0 0 auto; }
body[data-mode="customer"] .header-right-actions { flex: 0 0 auto; }

@media (max-width: 1360px) {
  body[data-mode="customer"] .site-header .main-nav > button { padding: 8px 10px; font-size: 13px; }
  body[data-mode="customer"] .site-header .main-nav {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
}
@media (max-width: 1180px) {
  /* ลิงก์ Facebook/IG ยังมีอยู่ท้ายเว็บและปุ่มแชท — ซ่อนจาก header เพื่อคืนพื้นที่ให้เมนู */
  body[data-mode="customer"] .header-social-links { display: none; }
}
@media (max-width: 760px) {
  body[data-mode="customer"] .site-header { flex-wrap: wrap; row-gap: 8px; }
  body[data-mode="customer"] .site-header .main-nav {
    order: 3;
    flex: 1 0 100%;
    width: auto;
    margin: 0 -16px;
    padding: 4px 16px;
    border-radius: 0;
    border-inline: 0;
    justify-content: flex-start;
  }
  body[data-mode="customer"] .site-header .main-nav > button { min-height: 40px; padding: 7px 12px; font-size: 12.5px; }
  body[data-mode="customer"] .header-right-actions { margin-left: auto; gap: 6px; }
  body[data-mode="customer"] .header-social-links { display: flex; }
}
@media (max-width: 400px) {
  body[data-mode="customer"] .header-social-links { display: none; }
}

/* ============================================================================
   Mobile first-screen fix (2026-10-20)
   จอแรกบนมือถือต้องเห็น: หัวข้อ → ปุ่มหลัก → ภาพสินค้า โดยไม่ต้องเลื่อน
   และปุ่มแชทลอยต้องไม่บังข้อความ
   ============================================================================ */
@media (max-width: 760px) {
  body[data-mode="customer"] #homeView .hero { padding-top: 20px; row-gap: 12px; }
  body[data-mode="customer"] #homeView .hero-copy .eyebrow { display: none; }
  body[data-mode="customer"] #homeView .hero-copy h1 { margin-top: 0; }
  body[data-mode="customer"] #homeView .hero-lead { margin-top: 10px; font-size: 14.5px; line-height: 1.6; }
  body[data-mode="customer"] #homeView .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
  }
  body[data-mode="customer"] #homeView .hero-actions > .button-primary { grid-column: 1 / -1; min-height: 52px; }
  body[data-mode="customer"] #homeView .hero-actions > .button-secondary {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: normal;
    background: #fff;
    color: #312e81;
    border: 1.5px solid #c7d2fe;
    box-shadow: none;
  }
  body[data-mode="customer"] #homeView .trust-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  body[data-mode="customer"] #homeView .trust-row::-webkit-scrollbar { display: none; }
  body[data-mode="customer"] #homeView .trust-row > span { flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
  body[data-mode="customer"] #homeView .hero-constellation {
    min-height: 0;
    height: 230px;
    margin-top: 0;
    transform: scale(.78);
    transform-origin: top center;
    margin-bottom: -50px;
  }

  /* ปุ่มแชทเหลือแค่ไอคอนวงกลมเท่าปุ่ม LINE และเว้นที่ท้ายหน้าไม่ให้บังเนื้อหา */
  body[data-mode="customer"] .website-chat-fab { width: 52px; min-width: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  body[data-mode="customer"] .website-chat-fab > span,
  body[data-mode="customer"] .website-chat-fab > i { display: none; }
  body[data-mode="customer"] main { padding-bottom: 76px; }
}
@media (max-width: 760px) {
  body[data-mode="customer"] #homeView .hero { grid-template-columns: minmax(0, 1fr); }
  body[data-mode="customer"] #homeView .hero-copy,
  body[data-mode="customer"] #homeView .hero-constellation { min-width: 0; max-width: 100%; }
  body[data-mode="customer"] #homeView .hero-actions > .button { min-width: 0; }
}
@media (max-width: 760px) {
  body[data-mode="customer"] #homeView .hero-constellation { margin-top: 44px; }
}
@media (max-width: 760px) {
  body[data-mode="customer"] #homeView #heroShippingChip { order: -1; }
}

/* ช่องส่งเป็นของขวัญในหน้าชำระเงิน (2026-10-20) */
body[data-mode="customer"] .checkout-gift-box { margin-top: 14px; padding: 12px 14px; border: 1.5px dashed #f9a8d4; border-radius: 16px; background: #fff7fb; }
body[data-mode="customer"] .checkout-gift-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 800; color: #9d174d; }
body[data-mode="customer"] .checkout-gift-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: #db2777; flex: 0 0 auto; }
body[data-mode="customer"] .checkout-gift-toggle small { font-weight: 600; color: #6b7280; }
body[data-mode="customer"] .checkout-gift-fields { display: grid; gap: 10px; margin-top: 12px; }
body[data-mode="customer"] .checkout-gift-fields[hidden] { display: none !important; }
body[data-mode="customer"] .checkout-gift-fields textarea { width: 100%; resize: vertical; font: inherit; }
body[data-mode="customer"] .track-help { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #475569; font-size: 13px; }

/* หน้าตะกร้า/ชำระเงินบนมือถือ: หัวข้อหน้าล้นจอ (คอลัมน์ 620px) และหัวการ์ดเหลือที่ 0px
   จนหัวข้อขึ้นบรรทัดละพยางค์ — มีมาก่อนบนเว็บจริง แก้ 2026-10-20 */
@media (max-width: 760px) {
  body[data-mode="customer"] #checkoutView .page-title-row,
  body[data-mode="customer"] #cartView .page-title-row { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-mode="customer"] #checkoutView .page-title-row h1,
  body[data-mode="customer"] #cartView .page-title-row h1 { font-size: clamp(24px, 7vw, 32px); line-height: 1.3; }
  body[data-mode="customer"] #checkoutView .checkout-title-actions,
  body[data-mode="customer"] #cartView .checkout-title-actions { flex-wrap: wrap; }
  body[data-mode="customer"] .checkout-card-head-modern {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    row-gap: 8px;
  }
  body[data-mode="customer"] .checkout-card-head-modern > .checkout-card-pill { grid-column: 1 / -1; justify-self: start; white-space: normal; }
  body[data-mode="customer"] #checkoutView .checkout-main,
  body[data-mode="customer"] #checkoutView .checkout-main > * { min-width: 0; max-width: 100%; }
}
@media (max-width: 760px) {
  body[data-mode="customer"] #cartView .cart-view-layout,
  body[data-mode="customer"] #checkoutView .checkout-layout { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-mode="customer"] #cartView .cart-view-layout > *,
  body[data-mode="customer"] #checkoutView .checkout-layout > * { min-width: 0; }
}
@media (max-width: 760px) {
  /* การ์ดสินค้าในตะกร้า: รูป 204px + รายละเอียดเหลือ 73px — เรียงแนวตั้งบนมือถือ */
  body[data-mode="customer"] #cartView .cart-rich-item-top { flex-direction: column !important; align-items: stretch; gap: 12px; }
  body[data-mode="customer"] #cartView .cart-rich-item-top > * { width: 100% !important; max-width: 100%; min-width: 0; flex: 0 0 auto !important; }
  body[data-mode="customer"] #cartView .cart-rich-main-info { flex-direction: column; min-width: 0; }
  body[data-mode="customer"] #cartView .cart-rich-specs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  body[data-mode="customer"] #cartView .cart-spec-cell-wide { grid-column: 1 / -1; }
  body[data-mode="customer"] #cartView .cart-item-addons-strip { flex-direction: column; min-width: 0; }
  body[data-mode="customer"] #cartView .cart-acc-pills-row {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 46%);
    overflow-x: auto;
    scrollbar-width: none;
  }
}

/* ============================================================================
   หน้าแรกกระชับขึ้น (2026-10-20)
   - ซ่อนการ์ด "Coming soon" ที่ยังสั่งไม่ได้
   - ซ่อน "รุ่นยอดนิยม" ที่ซ้ำกับแถบสินค้าด้านบน
   - การ์ดรุ่นสินค้าบนมือถือเรียง 2 คอลัมน์
   ============================================================================ */
body[data-mode="customer"] #homeModelExplorerSection .explorer-card:has(.badge-coming) { display: none !important; }
body[data-mode="customer"] #homeView .featured-block { display: none !important; }

@media (max-width: 760px) {
  body[data-mode="customer"] #homeModelExplorerGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  body[data-mode="customer"] #homeModelExplorerGrid .explorer-card { min-width: 0; }
  body[data-mode="customer"] #homeModelExplorerGrid .explorer-card-art { height: 120px !important; min-height: 0 !important; }
  body[data-mode="customer"] #homeModelExplorerGrid .explorer-card-art svg { width: 100%; height: 100%; }
  body[data-mode="customer"] #homeModelExplorerGrid .explorer-card h3 { font-size: 14px !important; line-height: 1.35; }
  body[data-mode="customer"] #homeModelExplorerGrid .explorer-card p { display: none; }
  body[data-mode="customer"] #homeModelExplorerGrid .explorer-card-request { grid-column: 1 / -1; }
  body[data-mode="customer"] #homeModelExplorerSection .model-filter-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body[data-mode="customer"] #homeModelExplorerSection .model-filter-pills::-webkit-scrollbar { display: none; }
  body[data-mode="customer"] #homeModelExplorerSection .model-filter-pill { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  /* การ์ด "ให้ร้านออกแบบให้" ไม่ต้องมีกล่องตกแต่งใหญ่ด้านบน */
  body[data-mode="customer"] #homeModelExplorerGrid .explorer-card-request .explorer-card-art { display: none !important; }
  /* "วิธีสั่ง" เหลือ 2 คอลัมน์ ตัดคำอธิบายยาวและป้ายเทคนิคออก */
  body[data-mode="customer"] #homeView .how-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  body[data-mode="customer"] #homeView .how-step-card { padding: 14px !important; min-height: 0 !important; }
  body[data-mode="customer"] #homeView .how-step-card p,
  body[data-mode="customer"] #homeView .how-step-card .step-tag-pill { display: none !important; }
  body[data-mode="customer"] #homeView .how-step-card h3 { font-size: 14.5px !important; }
  body[data-mode="customer"] #homeView .how-it-works-block .section-heading > p { display: none; }
  body[data-mode="customer"] #homeView .how-it-works-block { padding-block: 36px 24px !important; }
  /* "2 วิธีสั่ง" ซ่อนรายการย่อยยาว ๆ เหลือหัวข้อ + ปุ่ม */
  body[data-mode="customer"] #conciergeServiceSection .dual-track-card ul,
  body[data-mode="customer"] #conciergeServiceSection .dual-track-card ol { display: none !important; }
  body[data-mode="customer"] #conciergeServiceSection { padding-block: 24px !important; }
}

/* ส่วน "ห่วง/อัปเกรด" ในการ์ดตะกร้าพับเก็บได้ พร้อมภาพตัวอย่างห่วงและสายคล้องคอ (จุดที่ 16) */
body[data-mode="customer"] .cart-item-addons-summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border: 1.5px dashed #c7d2fe;
  border-radius: 14px;
  background: #f8faff;
  color: #3730a3;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
body[data-mode="customer"] .cart-item-addons-summary::-webkit-details-marker { display: none; }
body[data-mode="customer"] .cart-item-addons-summary::after { content: ' ▾'; margin-left: 4px; }
body[data-mode="customer"] details[open] > .cart-item-addons-summary::after { content: ' ▴'; margin-left: 4px; }
body[data-mode="customer"] .cart-item-addons-summary small { font-weight: 600; color: #64748b; }
body[data-mode="customer"] .cart-addons-summary-thumbs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-left: auto;
}
body[data-mode="customer"] .cast-mini-thumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 3px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  transition: all 0.15s ease;
}
body[data-mode="customer"] .cast-mini-thumb svg,
body[data-mode="customer"] .cast-mini-thumb img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}
body[data-mode="customer"] .cast-mini-thumb em {
  font-style: normal;
  white-space: nowrap;
}
body[data-mode="customer"] .cast-mini-thumb.is-selected {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #312e81;
  box-shadow: 0 0 0 1.5px rgba(79, 70, 229, 0.25);
}
body[data-mode="customer"] details.cart-item-addons-strip:not([open]) { display: block; }
body[data-mode="customer"] details.cart-item-addons-strip[open] > .cart-item-addons-summary { margin-bottom: 10px; }
body[data-mode="customer"] .admin-brief-empty { color: #64748b; padding: 16px; }

/* เมนูหลักแบบเดียวกันทุกปุ่ม + ซ่อนแท็บที่ซ้ำ/ยังไม่พร้อม (2026-10-20) */
body[data-mode="customer"] .site-header .main-nav #navCheckoutTabBtn { display: none !important; }
body[data-mode="customer"].hide-ready-made #navReadyProductsTabBtn,
body[data-mode="customer"].hide-ready-made #tabReadyMade,
body[data-mode="customer"].hide-ready-made #productGridReadyMade { display: none !important; }
body[data-mode="customer"] .site-header .main-nav .nav-assist-btn,
body[data-mode="customer"] .site-header .main-nav .nav-ready-products-btn {
  background: transparent;
  color: inherit;
  border: 0;
  box-shadow: none;
  transform: none;
}
body[data-mode="customer"] .site-header .main-nav .nav-assist-btn:hover,
body[data-mode="customer"] .site-header .main-nav .nav-ready-products-btn:hover { background: rgba(15, 23, 42, .06); color: inherit; }
body[data-mode="customer"] .site-header .main-nav .nav-assist-btn.is-active { background: linear-gradient(135deg, #0284c7, #4f46e5); color: #fff; }

/* ผลงานจริง & รีวิว (2026-10-20) */
body[data-mode="customer"] .real-work-section[hidden] { display: none !important; }
body[data-mode="customer"] .real-work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
body[data-mode="customer"] .real-work-photo { margin: 0; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; }
body[data-mode="customer"] .real-work-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
body[data-mode="customer"] .real-work-photo figcaption { padding: 10px 12px; font-size: 13.5px; color: #475569; }
body[data-mode="customer"] .real-work-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
body[data-mode="customer"] .real-work-review { margin: 0; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; }
body[data-mode="customer"] .real-work-review p { margin: 0 0 8px; color: #0f172a; }
body[data-mode="customer"] .real-work-review footer { color: #64748b; font-size: 13px; }
@media (max-width: 760px) {
  body[data-mode="customer"] .real-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* แถบขอความยินยอมคุกกี้ + ช่องรหัสวัดผลในหลังบ้าน (2026-10-20) */
body[data-mode="customer"] .cookie-consent-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 12px 14px; border-radius: 16px; background: #0f172a; color: #e2e8f0; box-shadow: 0 16px 40px rgba(15, 23, 42, .35); font-size: 14px; }
body[data-mode="customer"] .cookie-consent-bar[hidden] { display: none !important; }
body[data-mode="customer"] .cookie-consent-bar p { margin: 0; flex: 1 1 220px; }
body[data-mode="customer"] .cookie-consent-bar a { color: #a5b4fc; }
body[data-mode="customer"] .cookie-consent-bar div { display: flex; gap: 8px; }
body[data-mode="customer"] .cookie-consent-bar .button { min-height: 40px; padding: 8px 14px; }

/* ============================================================================
   Header + Hero "คู่สีตัดกัน" (2026-10-21)
   พื้นชมพูพาสเทลเต็มจอ ตัดด้วยน้ำเงินไฟฟ้า ป้ายเอียงสีมะนาว/ฟ้า/ชมพูบานเย็น
   ตัวหนังสือ condensed ใหญ่เต็มหน้า และชิ้นงาน 3D จริงลอยทับเป็นสติกเกอร์
   ภาพชิ้นงานเรนเดอร์จากหน้าออกแบบ 3D → scripts/render-hero-products.cjs
   ============================================================================ */
body[data-mode="customer"] {
  --ov-pink: #ffd0f5;
  --ov-ink: #101010;
  --ov-ink-soft: #3a3340;
  --ov-blue: #0c37e2;
  --ov-lime: #d8ffb1;
  --ov-cyan: #91f3ff;
  --ov-magenta: #fd9dff;
  --ov-peach: #ffc8b0;
  --ov-butter: #ffe991;
  --ov-display: 'Big Shoulders Display', 'Noto Sans Thai', 'IBM Plex Sans Thai', sans-serif;
  --ov-ease: cubic-bezier(.16, 1, .3, 1);
}
body[data-mode="customer"] ::selection { background: var(--ov-blue); color: #fff; }

/* ---------- Header ---------- */
body[data-mode="customer"] .site-header {
  background: var(--ov-pink);
  border-bottom: 0;
  box-shadow: none;
  color: var(--ov-ink);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body[data-mode="customer"] .site-header .brand strong {
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ov-ink);
}
body[data-mode="customer"] .site-header .brand small { color: var(--ov-ink-soft); text-transform: none; letter-spacing: 0; font-weight: 600; }
body[data-mode="customer"] .site-header .main-nav {
  background: rgba(255, 255, 255, .62);
  border: 0;
  box-shadow: none;
  padding: 5px;
  gap: 2px;
}
body[data-mode="customer"] .site-header .nav-link { color: var(--ov-ink); font-weight: 600; background: transparent; box-shadow: none; }
body[data-mode="customer"] .site-header .nav-link:hover { background: var(--ov-lime); color: var(--ov-ink); }
body[data-mode="customer"] .site-header .nav-link.is-active { background: var(--ov-ink); color: #fff; box-shadow: none; }
body[data-mode="customer"] .site-header .nav-link:focus-visible,
body[data-mode="customer"] .site-header .header-login-button:focus-visible { outline: 3px solid var(--ov-blue); outline-offset: 2px; }
body[data-mode="customer"] .site-header .nav-cart-badge { background: var(--ov-blue); color: #fff; box-shadow: none; }
body[data-mode="customer"] .site-header .nav-link.is-active .nav-cart-badge { background: var(--ov-lime); color: var(--ov-ink); }
body[data-mode="customer"] .site-header .header-login-button {
  background: var(--ov-blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(12, 55, 226, .28);
}
body[data-mode="customer"] .site-header .header-login-button:hover { background: var(--ov-ink); color: #fff; }
body[data-mode="customer"] .site-header .admin-login-btn { color: var(--ov-ink-soft); background: transparent; }

/* ---------- Hero ---------- */
body[data-mode="customer"] #homeView .ov-hero {
  background: var(--ov-pink);
  color: var(--ov-ink);
  overflow: clip;
}
body[data-mode="customer"] #homeView .ov-hero-inner {
  position: relative;
  padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px);
}
body[data-mode="customer"] #homeView .ov-title {
  margin: 0;
  font-family: var(--ov-display);
  font-stretch: 62.5%;
  font-weight: 900;
  font-size: clamp(64px, 11.6vw, 172px);
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--ov-ink);
}
body[data-mode="customer"] #homeView .ov-line { display: block; }
body[data-mode="customer"] #homeView .ov-line { white-space: nowrap; }
body[data-mode="customer"] #homeView .ov-hero .hero-lead {
  position: absolute;
  top: clamp(48px, 6.4vw, 96px);
  right: 0;
  width: min(300px, 26%);
  margin: 0;
  color: var(--ov-ink);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  font-weight: 700;
}

/* ป้ายเอียง */
body[data-mode="customer"] #homeView .ov-tags { list-style: none; margin: 0; padding: 0; }
body[data-mode="customer"] #homeView .ov-tag {
  --rot: 0deg;
  position: absolute;
  z-index: 3;
  padding: .28em .8em .32em;
  border-radius: 999px;
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.1;
  color: var(--ov-ink);
  white-space: nowrap;
  transform: rotate(var(--rot));
  box-shadow: 0 6px 14px rgba(16, 16, 16, .12);
  transition: transform .8s var(--ov-ease) .25s;
}
body[data-mode="customer"] #homeView .ov-tag-lime { --rot: -11deg; background: var(--ov-lime); left: 36%; top: 70%; }
body[data-mode="customer"] #homeView .ov-tag-cyan { --rot: 9deg; background: var(--ov-cyan); left: 58%; top: 25%; z-index: 5; }
body[data-mode="customer"] #homeView .ov-tag-magenta { --rot: -7deg; background: var(--ov-magenta); right: 9%; top: 24%; }

/* สติกเกอร์ชิ้นงาน: ขยับตามเมาส์เล็กน้อย (--px/--py ตั้งจาก app.js) */
body[data-mode="customer"] #homeView .ov-sticker {
  --rot: 0deg;
  --depth: 1;
  position: absolute;
  z-index: 2;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: none;
  cursor: pointer;
  transform:
    translate(calc(var(--px, 0) * 14px * var(--depth)), calc(var(--py, 0) * 10px * var(--depth)))
    rotate(var(--rot));
  transition: transform .9s var(--ov-ease);
}
body[data-mode="customer"] #homeView .ov-sticker img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(16, 16, 16, .28));
}
body[data-mode="customer"] #homeView .ov-sticker:hover {
  transform:
    translate(calc(var(--px, 0) * 14px * var(--depth)), calc(var(--py, 0) * 10px * var(--depth) - 8px))
    rotate(calc(var(--rot) - 4deg)) scale(1.05);
  transition-duration: .45s;
}
body[data-mode="customer"] #homeView .ov-sticker:focus-visible { outline: 3px solid var(--ov-blue); outline-offset: 6px; }

/* แถวล่าง: ปุ่ม + ตราวงกลม */
body[data-mode="customer"] #homeView .ov-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: clamp(20px, 2.6vw, 40px);
}
body[data-mode="customer"] #homeView .ov-gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ov-peach);
  color: var(--ov-ink);
  font-weight: 700;
  font-size: 15px;
  transform: rotate(-1.5deg);
}
body[data-mode="customer"] #homeView .ov-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 18px;
}
body[data-mode="customer"] #homeView .ov-hero .ov-btn-main,
body[data-mode="customer"] #homeView .ov-hero .ov-btn-soft {
  min-height: 58px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .3s var(--ov-ease), background-color .2s ease, color .2s ease;
}
body[data-mode="customer"] #homeView .ov-hero .ov-btn-main {
  gap: 14px;
  padding: 0 8px 0 26px;
  background: var(--ov-blue);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 26px rgba(12, 55, 226, .32);
}
body[data-mode="customer"] #homeView .ov-btn-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ov-lime);
  color: var(--ov-ink);
  transition: transform .3s var(--ov-ease);
}
body[data-mode="customer"] #homeView .ov-hero .ov-btn-main:hover { transform: translateY(-2px); }
body[data-mode="customer"] #homeView .ov-hero .ov-btn-main:hover .ov-btn-arrow { transform: rotate(-45deg); }
body[data-mode="customer"] #homeView .ov-hero .ov-btn-soft {
  padding: 0 24px;
  background: #fff;
  color: var(--ov-ink);
  border: 0;
  box-shadow: none;
}
body[data-mode="customer"] #homeView .ov-hero .ov-btn-soft:hover { background: var(--ov-ink); color: #fff; transform: translateY(-2px); }
body[data-mode="customer"] #homeView .ov-hero .ov-btn-link {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ov-ink);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
body[data-mode="customer"] #homeView .ov-hero .ov-btn-link:hover { background: rgba(255, 255, 255, .7); color: var(--ov-blue); }
body[data-mode="customer"] #homeView .ov-hero .hero-actions > :focus-visible { outline: 3px solid var(--ov-blue); outline-offset: 3px; }

body[data-mode="customer"] #homeView .ov-hero .ov-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}
body[data-mode="customer"] #homeView .ov-hero .ov-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ov-ink);
  font-size: 15px;
  font-weight: 600;
}
body[data-mode="customer"] #homeView .ov-hero .ov-facts svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-mode="customer"] #homeView .ov-hero .ov-facts span {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: inherit;
  font: inherit;
}
body[data-mode="customer"] #homeView .ov-hero .ov-facts span::first-letter { color: inherit; }
body[data-mode="customer"] #homeView .ov-hero #heroShippingChip { order: 0; }

body[data-mode="customer"] #homeView .ov-badge {
  position: absolute;
  right: 2%;
  top: 44%;
  z-index: 3;
  width: clamp(170px, 15vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 16, 16, .12);
}
body[data-mode="customer"] #homeView .ov-badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
body[data-mode="customer"] #homeView .ov-badge-ring text {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  font-size: 17.5px;
  letter-spacing: .14em;
  fill: var(--ov-ink);
}
body[data-mode="customer"] #homeView .ov-badge-core {
  position: absolute;
  inset: 24%;
  display: grid;
  place-content: center;
  margin: 0;
  border-radius: 50%;
  background: var(--ov-blue);
  color: #fff;
  text-align: center;
  line-height: 1;
}
body[data-mode="customer"] #homeView .ov-badge-core small { font-size: 12px; font-weight: 600; opacity: .9; }
body[data-mode="customer"] #homeView .ov-badge-core b {
  margin-top: 4px;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 3vw, 44px);
  color: var(--ov-lime);
}
body[data-mode="customer"] #homeView .ov-note { margin: 22px 0 0; color: var(--ov-ink-soft); font-size: 13px; font-weight: 500; }

/* เข้าฉาก: สติกเกอร์และป้ายหล่นลงมา (เห็นอยู่แล้วตั้งแต่ต้น ขยับแค่ตำแหน่ง) */
@starting-style {
  body[data-mode="customer"] #homeView .ov-sticker { transform: translateY(-36px) rotate(calc(var(--rot) + 10deg)) scale(.9); }
  body[data-mode="customer"] #homeView .ov-tag { transform: translateY(-20px) rotate(calc(var(--rot) * -1)); }
}

/* ---------- แถบน้ำเงิน: หมวดสินค้า ---------- */
body[data-mode="customer"] #homeView .ov-band { background: var(--ov-blue); margin-bottom: 28px; }
body[data-mode="customer"] #homeView .ov-pills { margin: 0 auto; padding: 22px 2px; gap: 10px; }
body[data-mode="customer"] #homeView .ov-pills .category-pill {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 6px 20px 6px 6px;
  gap: 10px;
  border-radius: 999px;
  background: #fff;
  border: 0;
  color: var(--ov-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
  transition: transform .3s var(--ov-ease), background-color .2s ease;
}
body[data-mode="customer"] #homeView .ov-pills .category-pill:hover { transform: translateY(-2px); background: var(--ov-cyan); box-shadow: none; }
body[data-mode="customer"] #homeView .ov-pills .category-pill.is-active { background: var(--ov-lime); color: var(--ov-ink); }
body[data-mode="customer"] #homeView .ov-pills .category-pill:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
body[data-mode="customer"] #homeView .ov-pills .cat-pill-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ov-pink);
  box-shadow: none;
  display: grid;
  place-items: center;
  overflow: hidden;
}
body[data-mode="customer"] #homeView .ov-pills .category-pill:nth-child(3) .cat-pill-icon { background: var(--ov-butter); }
body[data-mode="customer"] #homeView .ov-pills .category-pill:nth-child(4) .cat-pill-icon { background: var(--ov-cyan); }
body[data-mode="customer"] #homeView .ov-pills .category-pill:nth-child(5) .cat-pill-icon { background: var(--ov-peach); }
body[data-mode="customer"] #homeView .ov-pills .cat-pill-icon img { width: 84%; height: auto; }
body[data-mode="customer"] #homeView .ov-pills .ov-pill-all { background: #fff; }
body[data-mode="customer"] #homeView .ov-pills .ov-pill-all svg { width: 20px; height: 20px; fill: none; stroke: var(--ov-ink); stroke-width: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  body[data-mode="customer"] #homeView .ov-hero .hero-lead { position: static; width: auto; max-width: 34em; margin-top: 14px; }
}
@media (max-width: 760px) {
  body[data-mode="customer"] #homeView .ov-hero-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
      "title title title"
      "lead lead lead"
      "wall wall wall"
      ". . badge"
      "bottom bottom bottom"
      "note note note";
    align-items: center;
    padding: 20px 0 32px;
  }
  body[data-mode="customer"] #homeView .ov-title { grid-area: title; font-size: clamp(54px, 17vw, 76px); line-height: 1.16; }
  body[data-mode="customer"] #homeView .ov-line-2 { white-space: normal; }
  body[data-mode="customer"] #homeView .ov-hero .hero-lead { grid-area: lead; font-size: 16px; margin-top: 12px; }
  body[data-mode="customer"] #homeView .ov-tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  body[data-mode="customer"] #homeView .ov-tag { position: static; font-size: 17px; }
  body[data-mode="customer"] #homeView .ov-tag-lime { --rot: -4deg; }
  body[data-mode="customer"] #homeView .ov-tag-cyan { --rot: 3deg; }
  body[data-mode="customer"] #homeView .ov-tag-magenta { --rot: -2deg; }
  body[data-mode="customer"] #homeView .ov-bottom { display: contents; }
  body[data-mode="customer"] #homeView .ov-bottom-copy { grid-area: bottom; margin-top: 18px; }
  body[data-mode="customer"] #homeView .ov-note { grid-area: note; font-size: 12px; }
  body[data-mode="customer"] #homeView .ov-gift { font-size: 14px; }
  body[data-mode="customer"] #homeView .ov-hero .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
  body[data-mode="customer"] #homeView .ov-hero .ov-btn-main,
  body[data-mode="customer"] #homeView .ov-hero .ov-btn-soft { width: 100%; white-space: normal; }
  body[data-mode="customer"] #homeView .ov-hero .ov-btn-main { justify-content: space-between; }
  body[data-mode="customer"] #homeView .ov-hero .ov-btn-soft { min-height: 50px; }
  body[data-mode="customer"] #homeView .ov-hero .ov-btn-link { justify-self: center; }
  body[data-mode="customer"] #homeView .ov-hero .ov-facts { margin-top: 14px; gap: 6px 16px; }
  body[data-mode="customer"] #homeView .ov-hero .ov-facts li { font-size: 13.5px; }
  body[data-mode="customer"] #homeView .ov-badge { grid-area: badge; position: relative; right: auto; top: auto; bottom: auto; justify-self: end; width: min(112px, 100%); margin-top: 16px; transform: rotate(8deg); }
  body[data-mode="customer"] #homeView .ov-badge-core b { font-size: 24px; }
  body[data-mode="customer"] #homeView .ov-badge-core small { font-size: 8.5px; }
  body[data-mode="customer"] #homeView .ov-pills { padding: 16px 16px; margin-inline: -16px; width: auto; }
  body[data-mode="customer"] #homeView .ov-pills .category-pill { font-size: 14px; min-height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-mode="customer"] #homeView .ov-sticker,
  body[data-mode="customer"] #homeView .ov-tag { transition: none; }
  body[data-mode="customer"] #homeView .ov-sticker:hover { transform: rotate(var(--rot)); }
}

/* ---------- Hero: ข้อความซ้าย · กำแพงภาพสตูดิโอเลื่อนได้ขวา (2026-10-21) ----------
   แยกโซนชัด: ฝั่งซ้ายเป็นข้อความทั้งหมด ฝั่งขวาเป็นกำแพงภาพงานจริง 13 แบบ (hero-drift-wall.js)
   ภาพ: ไฟล์ออกแบบของร้าน เรนเดอร์บนฉากสตูดิโอสีพาสเทล → assets/gallery/designs/studio/ */
body[data-mode="customer"] #homeView .ov-hero-inner {
  /* จอกว้าง: ขยับฝั่งซ้ายไปทางซ้ายอีกนิดตามหมุดที่ 2 ส่วนกำแพงภาพยังลากถึงขอบขวา */
  --hero-gutter: max(clamp(20px, 3.2vw, 56px), calc((100vw - 1560px) / 2));
  --hero-gutter-left: max(clamp(12px, 1.8vw, 28px), calc((100vw - 1680px) / 2));
  width: auto;
  max-width: none;
  margin-left: var(--hero-gutter-left);
  margin-right: var(--hero-gutter);
  /* ฮีโร่ + แถบน้ำเงินพอดีหนึ่งหน้าจอ เนื้อหาจัดกลางแนวตั้ง */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(560px, calc(100svh - var(--site-header-height, 74px) - 86px));
  padding-block: clamp(16px, 2.6vh, 40px);
}
body[data-mode="customer"] #homeView .ov-hero-inner > :not(.ov-wall):not(.ov-badge) {
  max-width: 57%;
}
body[data-mode="customer"] #homeView .ov-bottom-copy,
body[data-mode="customer"] #homeView .ov-note {
  position: relative;
  z-index: 3;
}

/* หัวข้อ 3 จังหวะ 3 สี: ดำ · น้ำเงินไฟฟ้า · ดำบนแถบมะนาวเอียง */
body[data-mode="customer"] #homeView .ov-title {
  position: relative;
  z-index: 3;
  width: fit-content;
  /* ใหญ่ที่สุดเท่าที่ความกว้างให้ แต่ไม่เกินความสูงจอ เพื่อให้ปุ่มอยู่ในหน้าจอแรก */
  font-size: clamp(56px, min(9.4vw, calc((100svh - 430px) / 3.9)), 160px);
  line-height: 1.1;
}
body[data-mode="customer"] #homeView .ov-line-2 { color: var(--ov-blue); }
/* เว้นให้สระล่าง (ุ ู) ของบรรทัด 2 ไม่ถูกแถบมะนาวบัง */
body[data-mode="customer"] #homeView .ov-line-3 { margin-top: .22em; }
/* แถบเอียงหมุนจากมุมขวา ปลายซ้ายจึงต่ำลง เว้นที่ใต้หัวข้อไว้ไม่ให้ทับคำอธิบาย */
body[data-mode="customer"] #homeView .ov-title { padding-bottom: .24em; }
body[data-mode="customer"] #homeView .ov-mark {
  display: inline-block;
  padding: .02em .2em .1em;
  border-radius: .2em;
  background: var(--ov-lime);
  color: var(--ov-ink);
  transform: rotate(-2.5deg);
  transform-origin: right top;
  box-shadow: .035em .045em 0 var(--ov-ink);
}
body[data-mode="customer"] #homeView .ov-hero .hero-lead {
  position: relative;
  top: auto;
  right: auto;
  z-index: 3;
  width: auto;
  max-width: 28em;
  margin-top: clamp(16px, 1.8vw, 28px);
  font-size: clamp(17px, 1.35vw, 21px);
}

/* ป้ายเอียงอยู่ในโซนข้อความ */
body[data-mode="customer"] #homeView .ov-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
body[data-mode="customer"] #homeView .ov-gift { position: relative; z-index: 3; }
body[data-mode="customer"] #homeView .ov-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
body[data-mode="customer"] #homeView .ov-tag { position: static; font-size: clamp(16px, 1.3vw, 21px); }
body[data-mode="customer"] #homeView .ov-tag-lime { --rot: -5deg; }
body[data-mode="customer"] #homeView .ov-tag-cyan { --rot: 4deg; }
body[data-mode="customer"] #homeView .ov-tag-magenta { --rot: -3deg; }

/* กำแพงภาพ */

body[data-mode="customer"] #homeView .ov-wall {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: calc(var(--hero-gutter) * -1);
  /* --text-end = ปลายข้อความที่ยาวที่สุด (วัดโดย hero-drift-wall.js) */
  width: calc(100% - var(--text-end, 56%) - 24px + var(--hero-gutter));
  overflow: hidden;
  contain: layout paint;
  perspective: 1200px;
  pointer-events: none;
  user-select: none;
  --tile-w: clamp(150px, 12.5vw, 230px);
  --tile-gap: clamp(12px, 1.1vw, 18px);
}
/* ใช้เลเยอร์ไล่สีทับขอบแทน mask-composite สองชั้นที่บังคับให้เบราว์เซอร์เรนเดอร์ Alpha Mask ใหม่ทุกเฟรม */
body[data-mode="customer"] #homeView .ov-wall::before,
body[data-mode="customer"] #homeView .ov-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
body[data-mode="customer"] #homeView .ov-wall::before {
  background: linear-gradient(
    to bottom,
    var(--ov-pink) 0%,
    rgba(255, 208, 245, 0) 14%,
    rgba(255, 208, 245, 0) 86%,
    var(--ov-pink) 100%
  );
}
body[data-mode="customer"] #homeView .ov-wall::after {
  background: linear-gradient(
    to right,
    var(--ov-pink) 0%,
    rgba(255, 208, 245, 0) 12%
  );
}
body[data-mode="customer"] #homeView .ov-drift-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  transform: translate3d(-50%, -50%, -90px) scale(1.16) rotateX(14deg) rotateY(-16deg) rotateZ(4deg);
  backface-visibility: hidden;
}
body[data-mode="customer"] #homeView .ov-drift-col {
  width: calc(var(--tile-w) + var(--tile-gap));
}
body[data-mode="customer"] #homeView .ov-drift-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  backface-visibility: hidden;
  animation: ovDriftUp var(--drift-dur, 26s) linear var(--drift-delay, 0s) infinite;
}
body[data-mode="customer"] #homeView .ov-drift-track[data-direction="down"] {
  animation-name: ovDriftDown;
}
body[data-mode="customer"] #homeView .ov-wall.is-offscreen .ov-drift-track {
  animation-play-state: paused;
}
body[data-mode="customer"] #homeView .ov-tile {
  display: block;
  width: 100%;
  margin: 0;
  padding: calc(var(--tile-gap) / 2);
  border: 0;
  background: none;
  cursor: default;
  pointer-events: none;
}
body[data-mode="customer"] #homeView .ov-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 6px 14px rgba(16, 16, 16, .12);
  transform: translateZ(0);
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
/* ซ่อนกำแพงจนกว่าสคริปต์จัดคอลัมน์เสร็จ แล้วค่อยจางเข้า (กันภาพขนาดเต็มโผล่แวบแรก) */
body[data-mode="customer"] #homeView .ov-wall { transition: opacity .45s var(--ov-ease); }
@media (scripting: enabled) {
  body[data-mode="customer"] #homeView .ov-wall:not(.is-ready) { opacity: 0; }
}
/* ถ้าสคริปต์ไม่ทำงาน: เรียงเป็นตารางนิ่ง */
body[data-mode="customer"] #homeView .ov-wall:not(.is-drifting) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
}
body[data-mode="customer"] #homeView .ov-wall:not(.is-drifting)::before,
body[data-mode="customer"] #homeView .ov-wall:not(.is-drifting)::after {
  display: none;
}

/* ตราหมุน: มุมขวาล่าง ทับกำแพง */
body[data-mode="customer"] #homeView .ov-badge {
  z-index: 4;
  top: auto;
  right: 0;
  bottom: clamp(24px, 3vw, 52px);
  width: clamp(130px, 12vw, 200px);
}
body[data-mode="customer"] #homeView .ov-badge-ring {
  will-change: transform;
  animation: ovBadgeSpin 24s linear infinite;
}

@media (max-width: 1080px) {
  body[data-mode="customer"] #homeView .ov-hero-inner { min-height: 0; }
  body[data-mode="customer"] #homeView .ov-hero-inner > :not(.ov-wall):not(.ov-badge) { max-width: 56%; }
  body[data-mode="customer"] #homeView .ov-wall { width: calc(100% - var(--text-end, 56%) - 8px + var(--hero-gutter)); --tile-w: 140px; }
}
@media (max-width: 760px) {
  body[data-mode="customer"] #homeView .ov-hero-inner { display: grid; min-height: 0; margin-inline: var(--page-gutter, 20px); padding-block: 20px 32px; }
  body[data-mode="customer"] #homeView .ov-hero-inner > :not(.ov-wall):not(.ov-badge) { max-width: none; }
  body[data-mode="customer"] #homeView .ov-title { font-size: clamp(46px, 14.6vw, 80px); line-height: 1.14; }
  body[data-mode="customer"] #homeView .ov-hero .hero-lead { font-size: 16px; }
  body[data-mode="customer"] #homeView .ov-wall {
    grid-area: wall;
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    width: auto;
    height: 380px;
    margin: 22px calc(var(--page-gutter, 20px) * -1) 0;
    --tile-w: 132px;
    --tile-gap: 10px;
  }
  body[data-mode="customer"] #homeView .ov-wall::after {
    display: none;
  }
  body[data-mode="customer"] #homeView .ov-tile img { border-radius: 14px; }
  body[data-mode="customer"] #homeView .ov-chips { gap: 10px; }
  body[data-mode="customer"] #homeView .ov-badge { top: auto; right: auto; bottom: auto; width: min(112px, 100%); margin-top: -56px; z-index: 4; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-mode="customer"] #homeView .ov-tile img { transition: none; }
}

/* ============================================================================
   หน้าแรกส่วนล่าง "คู่สีตัดกัน" (2026-10-21)
   ต่อโลกสีจากฮีโร่: แต่ละส่วนเต็มจอ สลับพื้นตัดกัน
   ครีม (แม่แบบ) → น้ำเงิน (เรื่องร้าน) → มะนาว (รุ่นแนะนำ) → เนย (แถบจุดเด่น)
   → ขาว (วิธีสั่ง) → ชมพู (2 วิธีสั่ง) → ดำ (ท้ายเว็บ)
   ============================================================================ */
body[data-mode="customer"] {
  --ov-cream: #fff7ec;
  --ov-sec-pad: clamp(64px, 8vw, 128px);
  --ov-sec-inline: max(var(--page-gutter, 20px), calc((100% - var(--content-max, 1240px)) / 2));
}
body[data-mode="customer"] #homeView { background: var(--ov-cream); }
body[data-mode="customer"] #homeView .ov-band { margin-bottom: 0; }

/* ---------- เต็มจอทุกส่วน ---------- */
body[data-mode="customer"] #homeView #homeModelExplorerSection,
body[data-mode="customer"] #homeView .brand-story,
body[data-mode="customer"] #homeView .product-marquee-section,
body[data-mode="customer"] #homeView .real-work-section,
body[data-mode="customer"] #homeView .how-it-works-block,
body[data-mode="customer"] #homeView .concierge-service-section,
body[data-mode="customer"] #homeView .featured-block {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin: 0;
  padding: var(--ov-sec-pad) var(--ov-sec-inline);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: var(--ov-ink);
}
body[data-mode="customer"] #homeView .featured-block::before,
body[data-mode="customer"] #homeView .how-step-card::before { content: none; }

/* ---------- หัวข้อ: ป้ายเอียง + ตัวหนังสือ condensed ใหญ่ ---------- */
body[data-mode="customer"] #homeView .section-heading,
body[data-mode="customer"] #homeView .product-marquee-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: end;
  gap: 20px 48px;
  margin: 0 0 clamp(32px, 4vw, 56px);
}
body[data-mode="customer"] #homeView .section-heading > div,
body[data-mode="customer"] #homeView .product-marquee-heading > div { min-width: 0; }
body[data-mode="customer"] #homeView .section-heading .eyebrow,
body[data-mode="customer"] #homeView .product-marquee-heading .eyebrow,
body[data-mode="customer"] #homeView .brand-story-copy > p {
  display: inline-block;
  margin: 0 0 18px;
  padding: .26em .85em .3em;
  border-radius: 999px;
  background: var(--ov-magenta);
  color: var(--ov-ink);
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: none;
  transform: rotate(-4deg);
  transform-origin: left center;
  -webkit-text-fill-color: currentColor;
  transition: transform .8s var(--ov-ease) .15s;
}
body[data-mode="customer"] #homeView .section-heading .eyebrow span,
body[data-mode="customer"] #homeView .product-marquee-heading .eyebrow span { display: none; }
body[data-mode="customer"] #homeView .section-heading h2,
body[data-mode="customer"] #homeView .product-marquee-heading h3,
body[data-mode="customer"] #homeView .brand-story-copy h2 {
  margin: 0;
  max-width: 15ch;
  font-family: var(--ov-display);
  font-stretch: 62.5%;
  font-weight: 900;
  font-size: clamp(46px, 7vw, 112px);
  line-height: 1.12;
  letter-spacing: -.005em;
  color: var(--ov-ink);
  -webkit-text-fill-color: currentColor;
  background: none;
  text-wrap: balance;
}
body[data-mode="customer"] #homeView .section-heading > p {
  max-width: 30em;
  margin: 0;
  color: var(--ov-ink-soft);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  font-weight: 600;
}
body[data-mode="customer"] #homeView .text-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ov-ink);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .3s var(--ov-ease), background-color .2s ease, color .2s ease;
}
body[data-mode="customer"] #homeView .text-link:hover { background: var(--ov-blue); color: #fff; transform: translateY(-2px); }
body[data-mode="customer"] #homeView .text-link:focus-visible { outline: 3px solid var(--ov-blue); outline-offset: 3px; }

/* ---------- 1) คลังแม่แบบ: พื้นครีม ---------- */
body[data-mode="customer"] #homeView #homeModelExplorerSection { background: var(--ov-cream); }
body[data-mode="customer"] #homeView #homeModelExplorerSection .eyebrow { background: var(--ov-lime); }
body[data-mode="customer"] #homeView .model-explorer-toolbar { gap: 12px; margin-bottom: 28px; }
body[data-mode="customer"] #homeView .model-search-box {
  height: 52px;
  border: 0;
  background: #fff;
  box-shadow: none;
  padding: 0 18px;
}
body[data-mode="customer"] #homeView .model-search-box:focus-within { border: 0; box-shadow: 0 0 0 3px var(--ov-blue); }
body[data-mode="customer"] #homeView .model-search-icon { color: var(--ov-ink); }
body[data-mode="customer"] #homeView .model-search-input { font-size: 15px; color: var(--ov-ink); }
body[data-mode="customer"] #homeView .model-search-input::placeholder { color: #6b6470; }
body[data-mode="customer"] #homeView .model-search-clear { width: 28px; height: 28px; background: var(--ov-pink); color: var(--ov-ink); }
body[data-mode="customer"] #homeView .model-filter-pill {
  height: 48px;
  padding: 0 20px;
  border: 0;
  background: #fff;
  color: var(--ov-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
  transition: transform .3s var(--ov-ease), background-color .2s ease, color .2s ease;
}
body[data-mode="customer"] #homeView .model-filter-pill:hover { background: var(--ov-lime); border: 0; transform: translateY(-2px); }
body[data-mode="customer"] #homeView .model-filter-pill.is-active { background: var(--ov-ink); color: #fff; border: 0; box-shadow: none; }
body[data-mode="customer"] #homeView .model-filter-pill:focus-visible,
body[data-mode="customer"] #homeView .model-search-clear:focus-visible { outline: 3px solid var(--ov-blue); outline-offset: 2px; }

body[data-mode="customer"] #homeView .model-explorer-grid { gap: clamp(14px, 1.6vw, 22px); }
body[data-mode="customer"] #homeView .explorer-card {
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
  transition: transform .45s var(--ov-ease);
}
body[data-mode="customer"] #homeView .explorer-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 36px rgba(16, 16, 16, .1); border: 0; }
body[data-mode="customer"] #homeView .explorer-card:nth-child(3n + 2):hover { transform: translateY(-6px) rotate(1deg); }
body[data-mode="customer"] #homeView .explorer-card:focus-within { outline: 3px solid var(--ov-blue); outline-offset: 3px; }
body[data-mode="customer"] #homeView .explorer-card-art { border-radius: 22px; margin: 8px 8px 0; width: auto; }
body[data-mode="customer"] #homeView .explorer-card-body h3 {
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.2;
  color: var(--ov-ink);
}
body[data-mode="customer"] #homeView .explorer-card-body p { color: var(--ov-ink-soft); }
body[data-mode="customer"] #homeView .explorer-badge {
  border: 0;
  border-radius: 999px;
  background: var(--ov-lime);
  color: var(--ov-ink);
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(16, 16, 16, .12);
  transform: rotate(-6deg);
}
body[data-mode="customer"] #homeView .explorer-badge.badge-updated { background: var(--ov-butter); }
body[data-mode="customer"] #homeView .explorer-fab-btn { border: 0; background: #fff; color: var(--ov-ink); box-shadow: 0 4px 12px rgba(16, 16, 16, .14); }
body[data-mode="customer"] #homeView .explorer-fab-btn:hover { background: var(--ov-magenta); color: var(--ov-ink); }
body[data-mode="customer"] #homeView .explorer-export-pill { border: 0; background: var(--ov-cream); color: var(--ov-ink); }
body[data-mode="customer"] #homeView .explorer-export-pill strong { color: var(--ov-ink) !important; }
body[data-mode="customer"] #homeView .explorer-action-hint { color: var(--ov-blue); font-weight: 700; }

/* การ์ด "ให้ร้านออกแบบให้" เป็นการ์ดน้ำเงินตัดกับการ์ดขาว */
body[data-mode="customer"] #homeView .explorer-card-request { border: 0; background: var(--ov-blue); color: #fff; }
body[data-mode="customer"] #homeView .explorer-card-request:hover { border: 0; box-shadow: 0 18px 36px rgba(12, 55, 226, .3); }
body[data-mode="customer"] #homeView .explorer-card-request .explorer-card-art { background: rgba(255, 255, 255, .12); border: 0; }
body[data-mode="customer"] #homeView .explorer-card-request .art-sparkle { color: var(--ov-lime); }
body[data-mode="customer"] #homeView .explorer-card-request .art-dot.dot-blue { background: var(--ov-cyan); }
body[data-mode="customer"] #homeView .explorer-card-request .art-dot.dot-coral { background: var(--ov-magenta); }
body[data-mode="customer"] #homeView .explorer-card-request .art-dot.dot-amber { background: var(--ov-butter); }
body[data-mode="customer"] #homeView .explorer-card-request .request-plus-box { border: 0; background: var(--ov-lime); color: var(--ov-ink); box-shadow: none; transform: rotate(-8deg); }
body[data-mode="customer"] #homeView .explorer-card-request h3,
body[data-mode="customer"] #homeView .explorer-card-request p { color: #fff; }
body[data-mode="customer"] #homeView .explorer-card-request .explorer-price-tag { color: var(--ov-lime) !important; }
body[data-mode="customer"] #homeView .explorer-request-btn {
  border: 0;
  border-radius: 999px;
  background: var(--ov-lime);
  color: var(--ov-ink);
  box-shadow: none;
  font-weight: 700;
}
body[data-mode="customer"] #homeView .explorer-request-btn:hover { background: #fff; color: var(--ov-ink); }
body[data-mode="customer"] #homeView .explorer-request-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
body[data-mode="customer"] #homeView .model-explorer-empty { border: 0; border-radius: 28px; background: #fff; color: var(--ov-ink); }
body[data-mode="customer"] #homeView .model-explorer-empty .button { border: 0; border-radius: 999px; background: var(--ov-blue); color: #fff; box-shadow: none; }

/* ---------- 2) เรื่องร้าน: พื้นน้ำเงินไฟฟ้า ตัวหนังสือขาว ---------- */
body[data-mode="customer"] #homeView .brand-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  grid-template-areas: "copy visual";
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  background: var(--ov-blue);
  color: #fff;
}
body[data-mode="customer"] #homeView .brand-story-copy { grid-area: copy; padding: 0; }
body[data-mode="customer"] #homeView .brand-story-copy > p { background: var(--ov-lime); }
body[data-mode="customer"] #homeView .brand-story-copy h2 { color: #fff; max-width: 9ch; margin-bottom: 22px; }
body[data-mode="customer"] #homeView .brand-story-copy span {
  display: block;
  max-width: 26em;
  color: #fff;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  font-weight: 600;
}
body[data-mode="customer"] #homeView .brand-story-visual {
  grid-area: visual;
  border-radius: 28px;
  background: var(--ov-pink);
  overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
  transition: transform .9s var(--ov-ease) .2s;
}
body[data-mode="customer"] #homeView .brand-story-visual img { height: auto; aspect-ratio: 8 / 3; object-fit: cover; }

/* ---------- 3) รุ่นแนะนำ: พื้นมะนาว ---------- */
body[data-mode="customer"] #homeView .product-marquee-section { background: var(--ov-lime); overflow: clip; }
body[data-mode="customer"] #homeView .product-marquee-heading .eyebrow { background: var(--ov-cyan); }
body[data-mode="customer"] #homeView .product-marquee-heading h3 { max-width: 18ch; font-size: clamp(42px, 5.6vw, 92px); }
body[data-mode="customer"] #homeView .product-marquee-track-wrap { margin: 0 calc(var(--ov-sec-inline) * -1); padding: 16px var(--ov-sec-inline) 24px; }
body[data-mode="customer"] #homeView .marquee-card {
  flex-basis: 236px;
  padding: 10px 10px 16px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: transform .45s var(--ov-ease);
}
body[data-mode="customer"] #homeView .marquee-card:nth-child(odd) { transform: rotate(-2deg); }
body[data-mode="customer"] #homeView .marquee-card:nth-child(even) { transform: rotate(2deg); }
body[data-mode="customer"] #homeView .marquee-card:hover { transform: translateY(-8px) rotate(0deg); box-shadow: 0 18px 30px rgba(16, 16, 16, .14); border: 0; }
body[data-mode="customer"] #homeView .marquee-card:focus-visible { outline: 3px solid var(--ov-blue); outline-offset: 4px; }
body[data-mode="customer"] #homeView .marquee-card-visual { height: 150px; border-radius: 22px; background: var(--ov-pink); }
body[data-mode="customer"] #homeView .marquee-card:nth-child(6n + 2) .marquee-card-visual { background: var(--ov-cyan); }
body[data-mode="customer"] #homeView .marquee-card:nth-child(6n + 3) .marquee-card-visual { background: var(--ov-butter); }
body[data-mode="customer"] #homeView .marquee-card:nth-child(6n + 4) .marquee-card-visual { background: var(--ov-magenta); }
body[data-mode="customer"] #homeView .marquee-card:nth-child(6n + 5) .marquee-card-visual { background: var(--ov-peach); }
body[data-mode="customer"] #homeView .marquee-card:nth-child(6n) .marquee-card-visual { background: var(--ov-cream); }
body[data-mode="customer"] #homeView .marquee-card-badge,
body[data-mode="customer"] #homeView .marquee-card-badge.blue,
body[data-mode="customer"] #homeView .marquee-card-badge.lime,
body[data-mode="customer"] #homeView .marquee-card-badge.purple,
body[data-mode="customer"] #homeView .marquee-card-badge.gold,
body[data-mode="customer"] #homeView .marquee-card-badge.cyan {
  top: 18px;
  right: 18px;
  padding: 5px 11px;
  background: var(--ov-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  transform: rotate(6deg);
}
body[data-mode="customer"] #homeView .marquee-card-info { padding: 4px 8px 0; }
body[data-mode="customer"] #homeView .marquee-card-info strong {
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ov-ink);
}
body[data-mode="customer"] #homeView .marquee-card-info span { color: var(--ov-ink-soft); font-size: 14px; }

/* ---------- 4) แถบจุดเด่น: พื้นเนย ---------- */
body[data-mode="customer"] #homeView .marquee {
  padding: 18px var(--ov-sec-inline);
  border: 0;
  background: var(--ov-butter);
  color: var(--ov-ink);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  white-space: normal;
}
body[data-mode="customer"] #homeView .marquee span {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}
body[data-mode="customer"] #homeView .marquee-content-rich {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  white-space: normal;
  word-spacing: normal;
  letter-spacing: 0;
}
body[data-mode="customer"] #homeView .marquee-content-rich > :nth-child(n + 16) { display: none; }
body[data-mode="customer"] #homeView .marquee .marquee-tag {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ov-ink);
}
body[data-mode="customer"] #homeView .marquee .marquee-bullet { color: var(--ov-blue); font-size: 10px; opacity: 1; }

/* ---------- ผลงานจริง (แสดงเมื่อมีข้อมูล): พื้นครีม ---------- */
body[data-mode="customer"] #homeView .real-work-section { background: var(--ov-cream); }
body[data-mode="customer"] #homeView .real-work-section[hidden] { display: none !important; }
body[data-mode="customer"] #homeView .real-work-photo,
body[data-mode="customer"] #homeView .real-work-review { border: 0; border-radius: 28px; background: #fff; }
body[data-mode="customer"] #homeView .real-work-photo figcaption { color: var(--ov-ink-soft); }
body[data-mode="customer"] #homeView .real-work-review p { color: var(--ov-ink); font-weight: 600; }
body[data-mode="customer"] #homeView .real-work-review footer { color: var(--ov-ink-soft); }

/* ---------- 5) วิธีสั่ง: พื้นขาว การ์ดสีพาสเทล เลขใหญ่ ---------- */
body[data-mode="customer"] #homeView .how-it-works-block { background: #fff; }
body[data-mode="customer"] #homeView .how-it-works-block .eyebrow { background: var(--ov-cyan); }
body[data-mode="customer"] #homeView .how-steps-grid { gap: clamp(12px, 1.6vw, 22px); }
body[data-mode="customer"] #homeView .how-step-card {
  min-height: 0;
  padding: clamp(20px, 2vw, 30px);
  border: 0;
  border-radius: 28px;
  background: var(--ov-lime);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: transform .45s var(--ov-ease);
}
body[data-mode="customer"] #homeView .how-step-card.step-card-2 { background: var(--ov-cyan); }
body[data-mode="customer"] #homeView .how-step-card.step-card-3 { background: var(--ov-magenta); }
body[data-mode="customer"] #homeView .how-step-card.step-card-4 { background: var(--ov-butter); }
body[data-mode="customer"] #homeView .how-step-card:hover { transform: translateY(-6px) rotate(-1.5deg); box-shadow: none; }
body[data-mode="customer"] #homeView .how-step-card:nth-child(even):hover { transform: translateY(-6px) rotate(1.5deg); }
body[data-mode="customer"] #homeView .how-step-num {
  position: static;
  display: block;
  margin: 0 0 clamp(24px, 3vw, 48px);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(64px, 7vw, 112px);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--ov-ink);
}
body[data-mode="customer"] #homeView .how-step-card h3 {
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.2;
  color: var(--ov-ink);
}
body[data-mode="customer"] #homeView .how-step-card p { color: var(--ov-ink-soft); font-size: 15px; font-weight: 500; }
body[data-mode="customer"] #homeView .how-step-card .step-tag-pill {
  border: 0;
  background: #fff;
  color: var(--ov-ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  transform: rotate(-3deg);
}

/* ---------- 6) สองวิธีสั่ง: พื้นชมพู การ์ดขาว + การ์ดน้ำเงิน ---------- */
body[data-mode="customer"] #homeView .concierge-service-section { background: var(--ov-pink); }
body[data-mode="customer"] #homeView .concierge-service-section .eyebrow { background: var(--ov-butter); }
body[data-mode="customer"] #homeView .concierge-service-section .section-heading h2 { max-width: 20ch; font-size: clamp(42px, 5.6vw, 92px); }
body[data-mode="customer"] #homeView .dual-track-grid { gap: clamp(14px, 1.8vw, 24px); }
body[data-mode="customer"] #homeView .dual-track-card {
  gap: 18px;
  padding: clamp(24px, 3vw, 44px);
  border: 0;
  border-radius: 32px;
  background: #fff;
  box-shadow: none;
  transition: transform .45s var(--ov-ease);
}
body[data-mode="customer"] #homeView .dual-track-card:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: none; }
body[data-mode="customer"] #homeView .dual-track-card.track-concierge { background: var(--ov-blue); color: #fff; }
body[data-mode="customer"] #homeView .dual-track-card.track-concierge:hover { transform: translateY(-4px) rotate(.6deg); }
body[data-mode="customer"] #homeView .dual-track-badge {
  padding: 6px 14px;
  background: var(--ov-cyan);
  color: var(--ov-ink);
  font-size: 13.5px;
  font-weight: 700;
  transform: rotate(-3deg);
}
body[data-mode="customer"] #homeView .dual-track-badge.highlight { background: var(--ov-lime); color: var(--ov-ink); transform: rotate(3deg); }
body[data-mode="customer"] #homeView .dual-track-card h3 {
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 900;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.15;
  color: var(--ov-ink);
}
body[data-mode="customer"] #homeView .dual-track-card p { color: var(--ov-ink-soft); font-size: 16px; }
body[data-mode="customer"] #homeView .dual-track-perks { gap: 10px; font-size: 15px; font-weight: 600; color: var(--ov-ink); }
body[data-mode="customer"] #homeView .dual-track-perks li { position: relative; padding-left: 26px; }
body[data-mode="customer"] #homeView .dual-track-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ov-blue);
}
body[data-mode="customer"] #homeView .track-concierge h3,
body[data-mode="customer"] #homeView .track-concierge p,
body[data-mode="customer"] #homeView .track-concierge .dual-track-perks,
body[data-mode="customer"] #homeView .track-concierge .dual-track-perks strong { color: #fff; }
body[data-mode="customer"] #homeView .track-concierge .dual-track-perks li::before { background: var(--ov-lime); }
body[data-mode="customer"] #homeView .dual-track-actions .button {
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ov-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: none;
  white-space: normal;
  transition: transform .3s var(--ov-ease), background-color .2s ease, color .2s ease;
}
body[data-mode="customer"] #homeView .dual-track-actions .button:hover { background: var(--ov-blue); color: #fff; transform: translateY(-2px); }
body[data-mode="customer"] #homeView .track-concierge .dual-track-actions .button { background: var(--ov-lime); color: var(--ov-ink); }
body[data-mode="customer"] #homeView .track-concierge .dual-track-actions .button:hover { background: #fff; color: var(--ov-ink); }
body[data-mode="customer"] #homeView .dual-track-actions .button:focus-visible { outline: 3px solid var(--ov-ink); outline-offset: 3px; }
body[data-mode="customer"] #homeView .track-concierge .dual-track-actions .button:focus-visible { outline-color: #fff; }

/* ---------- รุ่นยอดนิยม (ถ้าเปิดแสดงอีกครั้ง): พื้นครีม ---------- */
body[data-mode="customer"] #homeView .featured-block { background: var(--ov-cream); }
body[data-mode="customer"] #homeView .mini-product { border: 0; border-radius: 28px; background: #fff; box-shadow: none; }
body[data-mode="customer"] #homeView .mini-product .mini-product-art { border-radius: 22px; background: var(--ov-pink); }
body[data-mode="customer"] #homeView .mini-product.blue-yellow .mini-product-art { background: var(--ov-cyan); }
body[data-mode="customer"] #homeView .mini-product.neon .mini-product-art { background: var(--ov-lime); }
body[data-mode="customer"] #homeView .mini-product > span { color: var(--ov-blue); }
body[data-mode="customer"] #homeView .mini-product h3 { font-family: var(--ov-display); font-stretch: 75%; font-weight: 800; color: var(--ov-ink); }
body[data-mode="customer"] #homeView .mini-product p { color: var(--ov-ink-soft); }

/* ---------- 7) ท้ายเว็บ: พื้นดำ ---------- */
body[data-mode="customer"] .site-footer {
  padding: clamp(56px, 7vw, 104px) 0 28px;
  border: 0;
  background: var(--ov-ink);
  color: #fff;
}
body[data-mode="customer"] .site-footer .footer-brand strong {
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 900;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  text-transform: uppercase;
  color: #fff;
}
body[data-mode="customer"] .site-footer .footer-brand small { color: var(--ov-lime); font-weight: 600; }
body[data-mode="customer"] .site-footer .brand-cube { background: var(--ov-lime); border: 0; box-shadow: none; transform: rotate(-8deg); }
body[data-mode="customer"] .site-footer .brand-cube i { color: var(--ov-ink); }
body[data-mode="customer"] .site-footer .footer-brand-block > p,
body[data-mode="customer"] .site-footer .footer-column span,
body[data-mode="customer"] .site-footer .footer-contact p { color: #c9c4cc; font-size: 14px; }
body[data-mode="customer"] .site-footer .footer-column > strong,
body[data-mode="customer"] .site-footer .footer-contact > strong {
  font-family: var(--ov-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 20px;
  color: var(--ov-lime);
}
body[data-mode="customer"] .site-footer .footer-column button,
body[data-mode="customer"] .site-footer .footer-column a { color: #fff; font-size: 14px; text-decoration: none; }
body[data-mode="customer"] .site-footer .footer-column button:hover,
body[data-mode="customer"] .site-footer .footer-column a:hover { color: var(--ov-cyan); text-decoration: underline; text-underline-offset: 4px; }
body[data-mode="customer"] .site-footer .social-btn,
body[data-mode="customer"] .site-footer .footer-contact-actions .button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ov-ink);
  font-weight: 700;
  box-shadow: none;
}
body[data-mode="customer"] .site-footer .footer-facebook-button { background: var(--ov-blue) !important; color: #fff !important; }
body[data-mode="customer"] .site-footer .footer-line-button { background: var(--ov-lime) !important; color: var(--ov-ink) !important; }
body[data-mode="customer"] .site-footer .social-btn:hover,
body[data-mode="customer"] .site-footer .footer-contact-actions .button:hover { background: var(--ov-pink); color: var(--ov-ink); transform: translateY(-2px); }
body[data-mode="customer"] .site-footer a:focus-visible,
body[data-mode="customer"] .site-footer button:focus-visible { outline: 3px solid var(--ov-lime); outline-offset: 3px; }
body[data-mode="customer"] .site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .16); color: #c9c4cc; font-size: 13px; }

/* เข้าฉาก: ป้ายเอียงและภาพเรื่องร้านเอียงเข้าที่ (เห็นตั้งแต่ต้น ขยับแค่มุม) */
@starting-style {
  body[data-mode="customer"] #homeView .section-heading .eyebrow,
  body[data-mode="customer"] #homeView .product-marquee-heading .eyebrow,
  body[data-mode="customer"] #homeView .brand-story-copy > p { transform: rotate(4deg); }
  body[data-mode="customer"] #homeView .brand-story-visual { transform: rotate(-2deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  body[data-mode="customer"] #homeView .section-heading,
  body[data-mode="customer"] #homeView .product-marquee-heading { grid-template-columns: minmax(0, 1fr); }
  body[data-mode="customer"] #homeView .text-link { justify-self: start; }
  body[data-mode="customer"] #homeView .how-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body[data-mode="customer"] { --ov-sec-pad: 56px; }
  body[data-mode="customer"] #homeView .section-heading h2,
  body[data-mode="customer"] #homeView .brand-story-copy h2 { font-size: clamp(42px, 13vw, 60px); }
  body[data-mode="customer"] #homeView .product-marquee-heading h3,
  body[data-mode="customer"] #homeView .concierge-service-section .section-heading h2 { font-size: clamp(38px, 11vw, 52px); }
  body[data-mode="customer"] #homeView .section-heading,
  body[data-mode="customer"] #homeView .product-marquee-heading { margin-bottom: 28px; }
  body[data-mode="customer"] #homeView .model-search-box { flex: 0 0 auto; width: 100%; max-width: 100%; min-width: 0; }
  body[data-mode="customer"] #homeView .model-explorer-toolbar { flex-direction: column; align-items: stretch; }
  body[data-mode="customer"] #homeView .model-filter-pills { margin-inline: calc(var(--ov-sec-inline) * -1); padding: 2px var(--ov-sec-inline); }
  body[data-mode="customer"] #homeView .model-filter-pill { height: 44px; font-size: 14px; }
  body[data-mode="customer"] #homeView .explorer-card { border-radius: 22px; }
  body[data-mode="customer"] #homeView .explorer-card-art { border-radius: 16px; margin: 6px 6px 0; }
  body[data-mode="customer"] #homeView .explorer-card-body h3 { font-size: 17px !important; }
  body[data-mode="customer"] #homeView .brand-story { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "visual"; }
  body[data-mode="customer"] #homeView .brand-story-visual { border-radius: 22px; transform: rotate(2deg); }
  body[data-mode="customer"] #homeView .marquee-card { flex-basis: 200px; }
  body[data-mode="customer"] #homeView .marquee-card-visual { height: 124px; }
  body[data-mode="customer"] #homeView .marquee { padding-block: 16px; }
  body[data-mode="customer"] #homeView .marquee-content-rich > :nth-child(n + 12) { display: none; }
  body[data-mode="customer"] #homeView .how-it-works-block { padding-block: var(--ov-sec-pad) !important; }
  body[data-mode="customer"] #homeView .how-step-card { padding: 18px !important; border-radius: 22px; }
  body[data-mode="customer"] #homeView .how-step-num { font-size: 56px; margin-bottom: 18px; }
  body[data-mode="customer"] #homeView .how-step-card h3 { font-size: 19px !important; }
  body[data-mode="customer"] #conciergeServiceSection { padding-block: var(--ov-sec-pad) !important; }
  body[data-mode="customer"] #homeView .dual-track-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-mode="customer"] #homeView .dual-track-card { border-radius: 26px; }
  body[data-mode="customer"] #homeView .dual-track-actions .button { width: 100%; }
}
/* โซเชียลท้ายเว็บ: ปุ่มเม็ดยาคู่สีแทนสีแบรนด์ (ฟ้า Facebook ตัวขาวต่ำกว่า 4.5:1) */
body[data-mode="customer"] .site-footer .footer-social-links .social-btn.facebook-btn { background: var(--ov-blue); color: #fff; border: 0; }
body[data-mode="customer"] .site-footer .footer-social-links .social-btn.instagram-btn { background: var(--ov-magenta); color: var(--ov-ink); border: 0; }
body[data-mode="customer"] .site-footer .footer-social-links .social-btn:hover { background: var(--ov-lime); color: var(--ov-ink); }

/* ภาพ Clicker บนการ์ดรุ่นแนะนำ: ตัวเรือนน้ำเงิน + ปุ่มสีพาสเทล (เดิมไม่มีสไตล์ จึงเห็นแค่ตัวหนังสือ) */
body[data-mode="customer"] #homeView .marquee-card-visual .mini-toy {
  display: grid;
  grid-auto-flow: column;
  justify-items: center;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  border-radius: 22px;
  background: var(--ov-blue);
  box-shadow: 0 8px 0 #0a2aae, 0 16px 22px rgba(16, 16, 16, .2);
  transform: rotate(-6deg) scale(.9);
}
body[data-mode="customer"] #homeView .marquee-card-visual .mini-toy i {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--ov-lime);
  box-shadow: inset 0 -5px 0 rgba(16, 16, 16, .18);
}
body[data-mode="customer"] #homeView .marquee-card-visual .mini-toy i:nth-of-type(2) { background: var(--ov-magenta); }
body[data-mode="customer"] #homeView .marquee-card-visual .mini-toy i:nth-of-type(3) { background: var(--ov-butter); }
body[data-mode="customer"] #homeView .marquee-card-visual .mini-toy strong {
  grid-row: 2;
  grid-column: 1 / -1;
  color: #fff;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .12em;
}

@media (prefers-reduced-motion: reduce) {
  body[data-mode="customer"] #homeView .explorer-card,
  body[data-mode="customer"] #homeView .marquee-card,
  body[data-mode="customer"] #homeView .how-step-card,
  body[data-mode="customer"] #homeView .dual-track-card,
  body[data-mode="customer"] #homeView .brand-story-visual,
  body[data-mode="customer"] #homeView .section-heading .eyebrow { transition: none; }
}

/* Studio เต็มจอ (2026-10-21): ซ่อนเมนูเว็บหลักเฉพาะหน้า Studio — กลับร้านด้วยปุ่ม ← ในแถบซ้ายของ Studio */
body[data-mode="customer"][data-view="studioView"] .site-header{display:none}
body[data-mode="customer"][data-view="studioView"] main{padding-top:0}
body[data-mode="customer"][data-view="studioView"] .studio-embed-wrapper{height:100vh;height:100dvh;min-height:560px}

/* กำแพงภาพฮีโร่ลื่นขึ้น (2026-10-21): เดิมทุกภาพ (~109 รวมโคลน) เป็นเลเยอร์ 3 มิติของตัวเอง = ~270 เลเยอร์
   ต้องจัด/วาดใหม่ทุกเฟรม เครื่องการ์ดจอเบา ๆ หน่วงจนคลิก/เลื่อนหน้าไม่ได้
   → ระนาบเอียงยังเป็น 3 มิติชั้นเดียว แต่คอลัมน์/ภาพข้างในแบน · ชี้ภาพแล้วขยายแทนการลอยขึ้นแกน Z */
body[data-mode="customer"] #homeView .ov-drift-col,
body[data-mode="customer"] #homeView .ov-drift-track,
body[data-mode="customer"] #homeView .ov-tile { transform-style: flat; }
body[data-mode="customer"] #homeView .ov-tile img { transform: none; box-shadow: 0 6px 14px rgba(16, 16, 16, .12); }

/* ============================================================================
   ปุ่มสลับภาษา TH / EN (2026-10-21) — ปิดทั้งเว็บได้ที่ I18N_ENABLED ใน src/i18n.js
   ============================================================================ */
body[data-mode="customer"] .site-lang-pill{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:2px;
  padding:3px;
  border:1px solid rgba(22,16,21,.12);
  border-radius:999px;
  background:#fffdf8;
}
body[data-mode="customer"] .site-lang-pill[hidden]{display:none}
body[data-mode="customer"] .site-lang-pill button{
  min-width:34px;
  min-height:30px;
  padding:0 8px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:var(--shop-muted);
  font:800 12px/1 'DM Sans',sans-serif;
  letter-spacing:.04em;
  cursor:pointer;
}
body[data-mode="customer"] .site-lang-pill button:hover{color:var(--shop-ink)}
body[data-mode="customer"] .site-lang-pill button.is-active{background:var(--shop-ink);color:#fff}
@media (max-width: 760px) {
  body[data-mode="customer"] .site-lang-pill button{min-width:36px;min-height:34px}
}

/* TH/EN: English hero lines are longer than the Thai ones — scale the display title down so it never runs into the photo wall or past the screen */
body[data-mode="customer"][data-lang="en"] #homeView .ov-title { font-size: clamp(48px, 7vw, 108px); }
@media (max-width: 760px) {
  body[data-mode="customer"][data-lang="en"] #homeView .ov-title { font-size: clamp(36px, 10.4vw, 60px); }
}


/* ============================================================================
   1:1 Idea Reference Catalog & Multi-Select Brief Integration (2026-10-27)
   ============================================================================ */
body[data-mode="customer"] #homeView .catalog-howto-banner {
  background: #ffffff;
  border-radius: 20px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border: 1.5px solid rgba(16, 16, 16, 0.08);
}

body[data-mode="customer"] #homeView .catalog-howto-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13.5px;
  color: var(--ov-ink);
}

body[data-mode="customer"] #homeView .catalog-howto-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ov-cream);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

body[data-mode="customer"] #homeView .catalog-howto-arrow {
  color: var(--ov-ink-soft);
  font-weight: 800;
}

body[data-mode="customer"] #homeView .catalog-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.08);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}

body[data-mode="customer"] #homeView .model-filter-pill.is-active .catalog-pill-count {
  background: var(--ov-lime);
  color: var(--ov-ink);
}

body[data-mode="customer"] #homeView .catalog-selected-filter-pill.has-selection {
  background: #eef2ff;
  color: var(--ov-blue);
  border: 1.5px solid var(--ov-blue);
}

body[data-mode="customer"] #homeView .catalog-1x1-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

@media (max-width: 1180px) {
  body[data-mode="customer"] #homeView .catalog-1x1-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body[data-mode="customer"] #homeView .catalog-1x1-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body[data-mode="customer"] #homeView .explorer-card.catalog-idea-card {
  border: 2px solid transparent;
  transition: transform 0.28s var(--ov-ease), box-shadow 0.25s ease, border-color 0.2s ease;
}

body[data-mode="customer"] #homeView .explorer-card.catalog-idea-card.is-selected {
  border-color: var(--ov-blue);
  box-shadow: 0 14px 32px rgba(12, 55, 226, 0.18);
  background: #f8faff;
}

body[data-mode="customer"] #homeView #homeModelExplorerGrid .explorer-card-art.is-square-photo {
  aspect-ratio: 1 / 1;
  height: auto !important;
  overflow: hidden;
  border-radius: 22px;
  margin: 8px 8px 0;
  background: #f3efe6;
  position: relative;
}

body[data-mode="customer"] #homeView .catalog-idea-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-mode="customer"] #homeView .explorer-card.catalog-idea-card:hover .catalog-idea-img {
  transform: scale(1.04);
}

body[data-mode="customer"] #homeView .explorer-badge.catalog-cat-badge {
  left: 10px;
  top: 10px;
  right: auto;
  transform: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--ov-ink);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  box-shadow: 0 4px 12px rgba(16, 16, 16, 0.12);
  max-width: calc(100% - 125px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-mode="customer"] #homeView .catalog-select-check-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid rgba(16, 16, 16, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--ov-ink);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 16, 16, 0.12);
  transition: all 0.18s ease;
}

body[data-mode="customer"] #homeView .catalog-select-check-btn:hover {
  background: var(--ov-lime);
  border-color: var(--ov-ink);
  transform: scale(1.04);
}

body[data-mode="customer"] #homeView .catalog-select-check-btn[aria-pressed="true"] {
  background: var(--ov-blue);
  border-color: var(--ov-blue);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(12, 55, 226, 0.32);
}

body[data-mode="customer"] #homeView .catalog-sample-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  background: rgba(16, 16, 16, 0.76);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  max-width: calc(100% - 62px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-mode="customer"] #homeView .catalog-sample-chip b {
  color: var(--ov-lime);
  font-weight: 800;
}

body[data-mode="customer"] #homeView .catalog-zoom-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ov-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 16, 16, 0.15);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

body[data-mode="customer"] #homeView .catalog-zoom-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
}

body[data-mode="customer"] #homeView .catalog-card-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

body[data-mode="customer"] #homeView .explorer-card.catalog-idea-card .explorer-card-body {
  padding: 14px 16px 16px;
  gap: 6px;
}

body[data-mode="customer"] #homeView .explorer-card.catalog-idea-card .explorer-card-body h3 {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.25;
}

body[data-mode="customer"] #homeView .catalog-inline-sample {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ov-blue);
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

body[data-mode="customer"] #homeView .catalog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

body[data-mode="customer"] #homeView .catalog-tag-chip {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

body[data-mode="customer"] #homeView .catalog-card-footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-mode="customer"] #homeView .catalog-footer-tick-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--ov-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

body[data-mode="customer"] #homeView .catalog-footer-tick-btn:hover {
  border-color: var(--ov-ink);
  background: var(--ov-cream);
}

body[data-mode="customer"] #homeView .catalog-footer-tick-btn[aria-pressed="true"] {
  background: var(--ov-lime);
  border-color: var(--ov-ink);
  color: var(--ov-ink);
}

body[data-mode="customer"] #homeView .catalog-footer-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: var(--ov-ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, transform 0.16s ease;
}

body[data-mode="customer"] #homeView .catalog-footer-order-btn:hover {
  background: var(--ov-blue);
  transform: translateY(-1px);
}

/* Sticky Selection Bar */
body[data-mode="customer"] #homeView .catalog-selection-bar {
  position: sticky;
  bottom: 78px;
  z-index: 40;
  margin-top: 22px;
  background: rgba(16, 16, 16, 0.95);
  backdrop-filter: blur(12px);
  color: #ffffff;
  border-radius: 24px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 20px 44px rgba(16, 16, 16, 0.28);
}

body[data-mode="customer"] #homeView .catalog-selection-bar[hidden] {
  display: none !important;
}

body[data-mode="customer"] #homeView .catalog-selection-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 320px;
  min-width: 0;
}

body[data-mode="customer"] #homeView .catalog-selection-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 240px;
  padding: 2px 0;
}

body[data-mode="customer"] #homeView .catalog-mini-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--ov-lime);
  flex-shrink: 0;
  background: #fff;
}

body[data-mode="customer"] #homeView .catalog-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-mode="customer"] #homeView .catalog-Selection-info,
body[data-mode="customer"] #homeView .catalog-selection-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body[data-mode="customer"] #homeView .catalog-selection-info strong {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ov-lime);
}

body[data-mode="customer"] #homeView .catalog-selection-info span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

body[data-mode="customer"] #homeView .catalog-selection-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body[data-mode="customer"] #homeView #catalogSendToBriefBtn {
  background: var(--ov-lime);
  color: var(--ov-ink);
  font-weight: 800;
  border: 0;
}

body[data-mode="customer"] #homeView #catalogSendToBriefBtn:hover {
  background: #ffffff;
}

/* 1:1 Lightbox Dialog */
body[data-mode="customer"] .catalog-lightbox-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  border-radius: 28px;
  padding: 0;
  max-width: min(860px, calc(100vw - 28px));
  max-height: calc(100vh - 32px);
  width: min(860px, calc(100vw - 28px));
  height: fit-content;
  background: #ffffff;
  color: var(--ov-ink);
  box-shadow: 0 28px 70px rgba(16, 16, 16, 0.35);
  overflow-x: hidden;
  overflow-y: auto;
}

body[data-mode="customer"] .catalog-lightbox-dialog::backdrop {
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(5px);
}

body[data-mode="customer"] .catalog-lightbox-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
}

@media (max-width: 720px) {
  body[data-mode="customer"] .catalog-lightbox-inner {
    grid-template-columns: 1fr;
  }
}

body[data-mode="customer"] .catalog-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(16, 16, 16, 0.75);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

body[data-mode="customer"] .catalog-lightbox-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #f3efe6;
}

body[data-mode="customer"] .catalog-lightbox-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-mode="customer"] .catalog-lightbox-details {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body[data-mode="customer"] .catalog-lightbox-badge {
  align-self: flex-start;
  background: var(--ov-lime);
  color: var(--ov-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
}

body[data-mode="customer"] .catalog-lightbox-details h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

body[data-mode="customer"] .catalog-lightbox-sample {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ov-blue);
}

body[data-mode="customer"] .catalog-lightbox-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #475569;
}

body[data-mode="customer"] .catalog-lightbox-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* Selected Catalog References Box & Inline 1:1 Catalog Browser inside #assistDesignView */
body[data-mode="customer"] .brief-catalog-refs-box {
  background: #ffffff;
  border: 2px solid #c7d2fe;
  border-radius: 22px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

body[data-mode="customer"] .brief-catalog-refs-box[hidden] {
  display: none !important;
}

body[data-mode="customer"] .brief-catalog-refs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body[data-mode="customer"] .brief-catalog-head-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .brief-catalog-refs-head strong {
  display: block;
  font-size: 15.5px;
  color: #1e1b4b;
}

body[data-mode="customer"] .brief-catalog-count-pill {
  font-size: 11.5px;
  font-weight: 800;
  background: #eef2ff;
  color: #3730a3;
  padding: 3px 10px;
  border-radius: 999px;
}

body[data-mode="customer"] .brief-catalog-count-pill.has-items {
  background: var(--ov-lime, #d9ff5b);
  color: var(--ov-ink, #101010);
}

body[data-mode="customer"] .brief-catalog-refs-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #475569;
}

body[data-mode="customer"] .brief-catalog-refs-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .brief-selected-strip-wrap {
  background: #f8faff;
  border: 1.5px dashed #a5b4fc;
  border-radius: 16px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

body[data-mode="customer"] .brief-selected-strip-wrap[hidden] {
  display: none !important;
}

body[data-mode="customer"] .brief-selected-strip-label {
  font-size: 12px;
  font-weight: 800;
  color: #312e81;
  margin-bottom: 8px;
}

body[data-mode="customer"] .brief-catalog-refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
}

body[data-mode="customer"] .brief-ref-item-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 7px 9px;
}

body[data-mode="customer"] .brief-ref-item-card img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: zoom-in;
}

body[data-mode="customer"] .brief-ref-item-meta {
  min-width: 0;
  flex: 1;
}

body[data-mode="customer"] .brief-ref-item-meta strong {
  display: block;
  font-size: 12.5px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-mode="customer"] .brief-ref-item-meta span {
  display: block;
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-mode="customer"] .brief-ref-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

/* Inline 1:1 Catalog Browser inside #assistDesignView */
body[data-mode="customer"] .brief-inline-catalog-browser {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

body[data-mode="customer"] .brief-inline-catalog-browser[hidden] {
  display: none !important;
}

body[data-mode="customer"] .brief-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

body[data-mode="customer"] .brief-catalog-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body[data-mode="customer"] .brief-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

body[data-mode="customer"] .brief-cat-pill b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 800;
}

body[data-mode="customer"] .brief-cat-pill.is-active {
  background: var(--ov-ink, #101010);
  border-color: var(--ov-ink, #101010);
  color: #ffffff;
}

body[data-mode="customer"] .brief-cat-pill.is-active b {
  background: var(--ov-lime, #d9ff5b);
  color: var(--ov-ink, #101010);
}

body[data-mode="customer"] .brief-cat-pill-selected.has-selection {
  border-color: var(--ov-blue, #1d35df);
  background: #eff6ff;
  color: var(--ov-blue, #1d35df);
}

body[data-mode="customer"] .brief-catalog-search-wrap {
  flex: 1 1 220px;
  max-width: 300px;
}

body[data-mode="customer"] .brief-catalog-search-input {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 12.5px;
  color: #0f172a;
}

body[data-mode="customer"] .brief-catalog-inline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
  max-height: 430px;
  overflow-y: auto;
  padding: 4px 4px 8px;
}

body[data-mode="customer"] .brief-catalog-inline-grid.is-expanded {
  max-height: none;
  overflow-y: visible;
}

body[data-mode="customer"] .brief-catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body[data-mode="customer"] .brief-catalog-card[hidden] {
  display: none !important;
}

body[data-mode="customer"] .brief-catalog-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
}

body[data-mode="customer"] .brief-catalog-card.is-selected {
  border-color: var(--ov-blue, #1d35df);
  background: #f5f7ff;
  box-shadow: 0 0 0 2px var(--ov-blue, #1d35df), 0 10px 22px rgba(29, 53, 223, 0.14);
}

body[data-mode="customer"] .brief-catalog-card-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 13px;
  overflow: hidden;
  background: #f3efe6;
}

body[data-mode="customer"] .brief-catalog-card-art .brief-catalog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body[data-mode="customer"] .brief-catalog-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  max-width: calc(100% - 92px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
}

body[data-mode="customer"] .brief-catalog-card-art .catalog-select-check-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(16, 16, 16, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

body[data-mode="customer"] .brief-catalog-card-art .catalog-select-check-btn[aria-pressed="true"] {
  background: var(--ov-blue, #1d35df);
  border-color: var(--ov-blue, #1d35df);
  color: #ffffff;
}

body[data-mode="customer"] .brief-catalog-card-art .catalog-sample-chip {
  position: absolute;
  bottom: 7px;
  left: 7px;
  z-index: 3;
  max-width: calc(100% - 44px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.78);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
}

body[data-mode="customer"] .brief-catalog-card-art .catalog-sample-chip b {
  color: var(--ov-lime, #d9ff5b);
  font-weight: 800;
}

body[data-mode="customer"] .brief-catalog-card-art .catalog-zoom-btn {
  position: absolute;
  bottom: 7px;
  right: 7px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body[data-mode="customer"] .brief-catalog-card-body {
  padding: 8px 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

body[data-mode="customer"] .brief-catalog-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

body[data-mode="customer"] .brief-catalog-title-row strong {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

body[data-mode="customer"] .brief-catalog-sample-inline {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ov-blue, #1d35df);
  background: rgba(29, 53, 223, 0.08);
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

body[data-mode="customer"] .brief-catalog-card-body p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body[data-mode="customer"] .brief-catalog-pick-btn {
  margin-top: auto;
  width: 100%;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

body[data-mode="customer"] .brief-catalog-pick-btn[aria-pressed="true"] {
  background: var(--ov-lime, #d9ff5b);
  border-color: var(--ov-ink, #101010);
  color: var(--ov-ink, #101010);
}

body[data-mode="customer"] .brief-catalog-empty {
  text-align: center;
  padding: 18px;
  font-size: 13px;
  color: #64748b;
}

body[data-mode="customer"] #assistDesignView .brief-quick-type-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body[data-mode="customer"] #assistDesignView .brief-type-pill-catalog {
  border-color: #a5b4fc;
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

body[data-mode="customer"] #assistDesignView .brief-type-pill-catalog.is-active {
  border-color: var(--ov-blue, #1d35df);
  background: #eef2ff;
}

body[data-mode="customer"] #assistDesignView .brief-pill-ref-count {
  display: inline-block;
  margin-left: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ov-lime, #d9ff5b);
  color: var(--ov-ink, #101010);
  font-size: 11px;
  font-weight: 800;
}

body[data-mode="customer"] #assistDesignView .brief-simple-section .brief-catalog-refs-box {
  margin-top: 8px;
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  body[data-mode="customer"] #assistDesignView .brief-quick-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body[data-mode="customer"] #assistDesignView .brief-quick-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body[data-mode="customer"] #homeModelExplorerGrid .explorer-card-art.is-square-photo {
    aspect-ratio: 1 / 1;
    height: auto !important;
  }
  body[data-mode="customer"] #homeView .catalog-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  body[data-mode="customer"] .brief-catalog-inline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================================
   Balanced Homepage Headings, Marquee Studio Cutouts & Slim Brand Story
   ============================================================================ */
body[data-mode="customer"] #homeView .product-marquee-section {
  padding: 26px var(--ov-sec-inline) 20px !important;
}

body[data-mode="customer"] #homeView #homeModelExplorerSection {
  padding: 32px var(--ov-sec-inline) 40px !important;
}

body[data-mode="customer"] #homeView .how-it-works-block,
body[data-mode="customer"] #homeView .concierge-service-section {
  padding: 36px var(--ov-sec-inline) 42px !important;
}

body[data-mode="customer"] #homeView .product-marquee-heading {
  margin: 0 0 14px !important;
  gap: 12px 24px !important;
  align-items: flex-end !important;
}

body[data-mode="customer"] #homeView .section-heading {
  margin: 0 0 20px !important;
  gap: 12px 32px !important;
  align-items: flex-end !important;
}

body[data-mode="customer"] #homeView .product-marquee-heading > div,
body[data-mode="customer"] #homeView .section-heading > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

body[data-mode="customer"] #homeView .section-heading .eyebrow,
body[data-mode="customer"] #homeView .product-marquee-heading .eyebrow,
body[data-mode="customer"] #homeView .brand-story-copy > p {
  margin: 0 !important;
  padding: 5px 14px !important;
  font-size: clamp(14px, 1.2vw, 16.5px) !important;
  line-height: 1.2 !important;
  transform: rotate(-2deg) !important;
}

body[data-mode="customer"] #homeView .section-heading h2,
body[data-mode="customer"] #homeView .product-marquee-heading h3,
body[data-mode="customer"] #homeView .concierge-service-section .section-heading h2,
body[data-mode="customer"] #homeView .brand-story-copy h2 {
  font-size: clamp(32px, 3.6vw, 48px) !important;
  line-height: 1.14 !important;
  max-width: none !important;
  margin: 0 !important;
}

body[data-mode="customer"] #homeView .section-heading > p {
  font-size: clamp(14px, 1.05vw, 15.5px) !important;
  line-height: 1.55 !important;
  max-width: 38em !important;
}

body[data-mode="customer"] #homeView .product-marquee-track-wrap {
  padding: 10px var(--ov-sec-inline) 14px !important;
}

body[data-mode="customer"] #homeView .marquee-card-visual .marquee-custom-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.14));
}

body[data-mode="customer"] #homeView .brand-story {
  padding: 26px var(--ov-sec-inline) !important;
  gap: 20px 32px !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 360px) !important;
}

body[data-mode="customer"] #homeView .brand-story-copy {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

body[data-mode="customer"] #homeView .brand-story-copy span {
  font-size: clamp(14.5px, 1.1vw, 16px) !important;
  line-height: 1.55 !important;
  max-width: none !important;
}

body[data-mode="customer"] #homeView .brand-story-visual {
  border-radius: 18px !important;
  transform: rotate(1.5deg) !important;
  max-height: 128px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
}

body[data-mode="customer"] #homeView .brand-story-visual img {
  height: 128px !important;
  width: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

body[data-mode="customer"] #homeView .how-step-card {
  padding: 18px 20px !important;
  border-radius: 24px !important;
}

body[data-mode="customer"] #homeView .how-step-num {
  font-size: clamp(40px, 4vw, 54px) !important;
  margin: 0 0 10px !important;
}

body[data-mode="customer"] #homeView .how-step-card h3 {
  font-size: clamp(19px, 1.6vw, 22px) !important;
}

body[data-mode="customer"] #homeView .how-step-card p {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

@media (max-width: 760px) {
  body[data-mode="customer"] #homeView .brand-story {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
