/* Factory storefront design system. Only active when the factory manifest enables it. */
html[data-storefront] {--brand:#b52d38;--brand-strong:#8e1928;--brand-soft:#f9ebed;--brand-rgb:181,45,56;--page:#f7f6f3;--surface:#fff;--ink:#263039;--muted:#70777d;--line:#e7e7e2;--radius:14px;--shadow:0 8px 32px rgba(24,34,44,.045);color-scheme:light;}
html[data-brand-theme=blue]{--brand:#235f9f;--brand-strong:#17436f;--brand-soft:#eaf1f9;--brand-rgb:35,95,159;--page:#f3f6f9;--line:#e1e7ed;}
html[data-brand-theme=green]{--brand:#21695d;--brand-strong:#174b42;--brand-soft:#e9f2ee;--brand-rgb:33,105,93;--page:#f3f6f3;--line:#e1e8e2;}
html[data-brand-theme=gold]{--brand:#886531;--brand-strong:#62471e;--brand-soft:#f5efe3;--brand-rgb:136,101,49;--page:#f8f6f0;--line:#e9e3d6;}
html[data-brand-theme=orange]{--brand:#b95616;--brand-strong:#8e3d0c;--brand-soft:#fff0e1;--brand-rgb:185,86,22;--page:#faf6ef;--ink:#392f28;--line:#eae1d6;}
html[data-storefront] body{background:var(--page);color:var(--ink);font-family:Inter,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased;}
html[data-storefront] a{color:inherit;}html[data-storefront] a:hover{color:var(--brand);}html[data-storefront] button{white-space:nowrap;}
html[data-storefront] :focus-visible{outline:3px solid var(--brand);outline-offset:3px;}
html[data-storefront] h1,html[data-storefront] h2,html[data-storefront] h3{color:var(--ink);letter-spacing:-.025em;font-weight:650;}
html[data-storefront] .container-v2,html[data-storefront] .container{max-width:1320px;width:calc(100% - 64px);margin-inline:auto;}
html[data-storefront] .header-v2{background:var(--surface);border-bottom:1px solid var(--line);}
html[data-storefront] .header-v2 .header-bar1{background:#263039;color:#f5f6f7;height:auto;min-height:34px;font-size:12px;}
html[data-storefront] .header-v2 .header-bar1 a{color:#f5f6f7;}
html[data-storefront] .header-v2 .header-bar2{height:84px;margin-top:0;align-items:center;gap:32px;}
html[data-storefront] .header-v2 .header-bar2 .header-logo{width:228px;flex-shrink:0;height:60px;}
html[data-storefront] .header-v2 .header-bar2 .header-logo img{width:100%;height:100%;object-fit:contain;}
html[data-storefront] .header-v2 .header-bar3{border-top:1px solid var(--line);}
html[data-storefront] .header-v2 .header-bar3 a{font-size:14px;font-weight:550;}
html[data-storefront] .header-v2 .header-bar3 a:hover{color:var(--brand);}
html[data-storefront] input,html[data-storefront] textarea{color:var(--ink);}
html[data-storefront] .ivu-input,html[data-storefront] .el-input__inner,html[data-storefront] .el-textarea__inner{border-color:var(--line);border-radius:7px;background:var(--surface);font-size:14px;}
html[data-storefront] .ivu-input:focus,html[data-storefront] .el-input__inner:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft);}
html[data-storefront] .ivu-btn-primary,html[data-storefront] .ivu-btn-error,html[data-storefront] .el-button--primary,html[data-storefront] .studio-button{border:1px solid var(--brand);background:var(--brand);color:#fff;border-radius:7px;box-shadow:none;}
html[data-storefront] .ivu-btn-primary:hover,html[data-storefront] .el-button--primary:hover,html[data-storefront] .studio-button:hover{background:var(--brand-strong);border-color:var(--brand-strong);color:#fff;}
html[data-storefront] .el-button.is-disabled{opacity:.5;cursor:not-allowed;}
html[data-storefront] .ivu-btn,html[data-storefront] .el-button{border-radius:7px;font-weight:550;}
html[data-storefront] .el-checkbox__input.is-checked .el-checkbox__inner,html[data-storefront] .el-radio__input.is-checked .el-radio__inner{background:var(--brand);border-color:var(--brand);}
html[data-storefront] .el-checkbox__input.is-checked+.el-checkbox__label,html[data-storefront] .el-radio__input.is-checked+.el-radio__label{color:var(--brand);}
html[data-storefront] .el-radio__inner{border-radius:3px;}
html[data-storefront] .el-dialog,html[data-storefront] .ivu-modal-content{border-radius:var(--radius);box-shadow:0 24px 100px #1a28332b;}
html[data-storefront] .el-dialog__header,html[data-storefront] .ivu-modal-header{padding:20px 24px;border-bottom:1px solid var(--line);}
html[data-storefront] .el-dialog__body{padding:20px 24px;}
html[data-storefront] table th,html[data-storefront] .ivu-table th{background:var(--page);font-weight:600;color:var(--muted);}
html[data-storefront] table td{border-color:var(--line);}
html[data-storefront] .el-table tr:hover>td,html[data-storefront] .ivu-table-row-hover td{background:var(--brand-soft);}
html[data-storefront] .product-bar{padding-top:24px;}
html[data-storefront] .product-bar-container{gap:18px;}
html[data-storefront] .product-list{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;box-shadow:var(--shadow);}
html[data-storefront] .product-list .title{background:var(--brand)!important;color:white;box-shadow:none!important;letter-spacing:.06em;font-size:16px;}
html[data-storefront] .product-list li a{padding-block:8px;}
html[data-storefront] .product-list li:hover,html[data-storefront] .product-list li.active{background:var(--brand-soft);color:var(--brand);}
html[data-storefront] .product-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 20px 50px #26303918;}
html[data-storefront] .product-panel .product img{object-fit:contain;border-radius:10px;}
html[data-storefront] .carouselParent{overflow:hidden;border-radius:var(--radius);border:1px solid var(--line);background:#f5eee3;}
html[data-storefront] .product-carousel img{width:100%;height:100%;object-fit:cover;}
html[data-storefront] .product-bar-quick{margin-top:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)!important;padding:16px 8px;}
html[data-storefront] .quick-menu .icon{background:var(--brand-soft);color:var(--brand);border:0;border-radius:12px;}
html[data-storefront] .quick-menu .title{color:var(--ink);font-weight:600;}html[data-storefront] .quick-menu .desc{color:var(--muted);font-size:12px;}
html[data-storefront] .studio-eyebrow{font-size:11px;font-weight:650;letter-spacing:.18em;color:var(--brand);text-transform:uppercase;}
html[data-storefront] .studio-heading{display:flex;align-items:end;justify-content:space-between;margin:36px 0 18px;gap:20px;}
html[data-storefront] .studio-heading h2{font-size:26px;margin:4px 0;}
html[data-storefront] .studio-heading p{margin:0;color:var(--muted);}
html[data-storefront] .studio-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:32px;}
html[data-storefront] .studio-product{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;transition:transform .18s,box-shadow .18s;}
html[data-storefront] .studio-product:hover{transform:translateY(-3px);box-shadow:0 14px 32px #26303912;}
html[data-storefront] .studio-product img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;}
html[data-storefront] .studio-product-copy{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
html[data-storefront] .studio-product-copy strong{font-size:16px;font-weight:600;}
html[data-storefront] .studio-product-copy span{font-size:12px;color:var(--brand);}
/* Compact quote workspace: keep the original Vue form, validation and ordering handlers. */
html[data-storefront] .header-top{background:#263039;color:white;}
html[data-storefront] .header-middle{background:var(--surface);padding:14px 0!important;}
html[data-storefront] .layou_logo img{max-width:220px!important;max-height:62px!important;width:auto!important;height:auto!important;}
html[data-storefront] .header-bottom{background:var(--surface);border-block:1px solid var(--line);}
html[data-storefront] .product-bar.list-container{padding:12px 0;display:flex;flex-wrap:wrap;gap:6px;}
html[data-storefront] .product-item{padding:6px 13px!important;border:1px solid transparent!important;border-radius:6px;font-size:13px;color:var(--muted);margin:0!important;}
html[data-storefront] .product-item.cur{background:var(--brand-soft)!important;color:var(--brand)!important;border-color:var(--brand)!important;font-weight:650;}
html[data-storefront] .product-name{font-size:24px;margin:8px 0!important;}
html[data-storefront] .product-name+hr{margin:12px 0!important;border-color:var(--line);}
html[data-storefront] .studio-quote-grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;align-items:start;gap:20px;margin:12px 0 0!important;}
html[data-storefront] .studio-quote-main{width:100%;max-width:none;flex:none;padding:0;z-index:auto!important;}
html[data-storefront] .studio-quote-grid>.product-imglist{display:none;}
html[data-storefront] .quotation-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 20px 12px;box-shadow:var(--shadow);}
html[data-storefront] .quotation-form .el-form-item{margin-bottom:12px;}
html[data-storefront] .quotation-form .el-form-item__label{font-size:13px;font-weight:550;color:var(--muted);line-height:30px;}
html[data-storefront] .quotation-form .quotation-btn{border:1px solid var(--line);border-radius:5px;padding:4px 10px;margin:2px 6px 3px 0;line-height:20px;font-size:13px;background:white;transition:border-color .12s;}
html[data-storefront] .quotation-form .quotation-btn:hover{border-color:var(--brand);}
html[data-storefront] .quotation-form .quotation-btn.active{background:var(--brand-soft);border-color:var(--brand);color:var(--brand);}
html[data-storefront] .quotation-form .quotation-btn.disabled{background:#f3f4f4;color:#92999e;opacity:.6;cursor:not-allowed;}
html[data-storefront] .quotation-form .el-divider--horizontal{margin:15px 0;}
html[data-storefront] .quotation-calculate{border-radius:7px!important;border-color:var(--line)!important;}
html[data-storefront] .quotation-calculate.active{border-color:var(--brand)!important;background:var(--brand-soft)!important;}
html[data-storefront] .quotation-price,html[data-storefront] .quotation-activity{color:var(--brand)!important;}
html[data-storefront] .studio-quote-summary{position:sticky;top:16px;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);}
html[data-storefront] .studio-quote-summary h3{font-size:19px;margin:8px 0 18px;}
html[data-storefront] .studio-quote-summary dl{display:grid;grid-template-columns:65px minmax(0,1fr);gap:10px 6px;font-size:13px;margin:0 0 20px;}
html[data-storefront] .studio-quote-summary dt{font-weight:400;color:var(--muted);}html[data-storefront] .studio-quote-summary dd{margin:0;overflow-wrap:anywhere;}
html[data-storefront] .studio-total{padding:18px 0;border-top:1px solid var(--line);font-size:34px;font-weight:650;letter-spacing:-.03em;color:var(--brand);}
html[data-storefront] .studio-total small{font-size:15px;margin-right:4px;}
html[data-storefront] .studio-quote-summary .el-button{width:100%;margin:8px 0 0!important;min-height:38px;}
html[data-storefront] .studio-quote-summary .studio-note{color:var(--muted);font-size:12px;line-height:1.7;margin:10px 0 0;}
html[data-storefront] .studio-detail{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:24px;display:grid;grid-template-columns:40% 60%;}
html[data-storefront] .studio-detail img{width:100%;height:100%;max-height:420px;object-fit:cover;}
html[data-storefront] .studio-detail-copy{padding:30px;}html[data-storefront] .studio-detail-copy h2{font-size:28px;margin:12px 0;}
html[data-storefront] .studio-detail-copy p{color:var(--muted);line-height:1.9;}
html[data-storefront] .studio-detail-points{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0;}
html[data-storefront] .studio-detail-points span{background:var(--page);padding:12px;border-radius:8px;font-size:13px;}
html[data-storefront] .thumnail-desc{padding:28px 0 44px;}
html[data-storefront] .tabs-area{border-bottom:1px solid var(--line);gap:24px;}
html[data-storefront] .tabs-area a{padding:12px 0!important;border:0!important;color:var(--muted);}
html[data-storefront] .tabs-area a.active{color:var(--brand)!important;border-bottom:2px solid var(--brand)!important;}
html[data-storefront] .tab-content{padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:0 0 var(--radius) var(--radius);}
html[data-storefront] .tab-content img{max-width:100%!important;height:auto!important;}
html[data-storefront] .studio-original{border-top:1px solid var(--line);margin-top:20px;padding-top:14px;}
html[data-storefront] .studio-original summary{cursor:pointer;color:var(--brand);font-weight:550;margin-bottom:12px;}
html[data-storefront] .login .main,html[data-storefront] .login{border-radius:var(--radius);}
html[data-storefront] .login .logo img{width:220px;max-height:85px;object-fit:contain;}
html[data-storefront] #canvas{opacity:.1;}
/* Operational feedback is scoped to the quote, never a global alert(). */
.quote-load-error{background:#fff4f1;border:1px solid #c86548;border-radius:10px;padding:18px;margin:16px auto;max-width:100%;color:#842b1d;}
.quote-load-error button{margin:8px 10px 0 0;padding:7px 14px;border:1px solid currentColor;border-radius:6px;background:white;color:inherit;cursor:pointer;}
.quote-load-step{font-size:14px;color:#46535f;text-align:center;margin:12px;}
.brand-console{padding:48px 0 72px!important;}.brand-console h1{font-size:32px;margin:10px 0;}.brand-console>p{color:var(--muted);}
.brand-choices{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:28px 0;}.brand-choice{display:flex;flex-wrap:wrap;align-items:center;gap:12px;border:1px solid var(--line);background:var(--surface);padding:18px;border-radius:12px;cursor:pointer;}.brand-choice:has(input:checked){border-color:var(--brand);box-shadow:0 0 0 2px var(--brand-soft);}.brand-choice>span:last-child{width:100%;font-size:12px;color:var(--muted);}.brand-choice input{accent-color:var(--brand);}.brand-swatch{width:24px;height:24px;border-radius:50%;background:#b52d38;}.brand-swatch[data-color=blue]{background:#235f9f}.brand-swatch[data-color=green]{background:#21695d}.brand-swatch[data-color=gold]{background:#886531}.brand-swatch[data-color=orange]{background:#b95616}
.brand-preview{padding:42px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);border-left:5px solid var(--brand);}.brand-preview h2{font-size:34px;margin:14px 0;}.studio-button{padding:10px 20px;cursor:pointer;}.studio-tag{display:inline-block;background:var(--brand-soft);color:var(--brand);padding:8px 14px;border-radius:6px;margin-right:14px;}.brand-actions{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:24px;}.brand-actions button:not(.studio-button){padding:10px 20px;border:1px solid var(--line);border-radius:7px;background:var(--surface);}.brand-actions #brand-status{font-size:13px;color:var(--brand);cursor:pointer;}
@media(min-width:1450px){html[data-storefront] .studio-quote-grid{grid-template-columns:minmax(0,1fr) 310px;}}
@media(max-width:1100px){html[data-storefront] .container,html[data-storefront] .container-v2{width:calc(100% - 32px);}html[data-storefront] .studio-quote-grid{grid-template-columns:minmax(0,1fr) 250px;gap:14px;}html[data-storefront] .quotation-form{padding:14px 12px;}html[data-storefront] .studio-quote-summary{padding:16px;}.brand-choices{grid-template-columns:repeat(3,1fr);}}
@media(max-width:767px){html[data-storefront] .container,html[data-storefront] .container-v2{width:calc(100% - 24px);}html[data-storefront] .header-v2 .header-bar2{gap:10px;height:72px;}html[data-storefront] .header-v2 .header-bar2 .header-logo{width:155px;height:52px;}html[data-storefront] .studio-catalog{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}html[data-storefront] .studio-product-copy{padding:12px;font-size:12px;}html[data-storefront] .studio-product-copy strong{font-size:14px;}html[data-storefront] .studio-heading{align-items:start;}html[data-storefront] .studio-heading h2{font-size:22px;}html[data-storefront] .studio-quote-grid{grid-template-columns:minmax(0,1fr);}html[data-storefront] .studio-quote-summary{position:static;}html[data-storefront] .studio-detail{grid-template-columns:1fr;}html[data-storefront] .studio-detail img{height:240px;}html[data-storefront] .studio-detail-copy{padding:22px;}html[data-storefront] .tab-content{padding:14px;}html[data-storefront] .quotation-form .el-form-item__label{width:90px!important;}html[data-storefront] .quotation-form .el-form-item__content{margin-left:90px!important;}.brand-choices{grid-template-columns:repeat(2,1fr);}.brand-preview{padding:24px;}.brand-preview h2{font-size:24px;}}
@media(prefers-reduced-motion:reduce){html[data-storefront] *{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;}}

[data-storefront] .studio-footer{max-width:1320px;margin:44px auto 0;padding:30px 24px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:24px;color:var(--muted);font-size:13px;background:var(--surface)}
[data-storefront] .studio-footer img{width:190px;height:auto;display:block;margin-bottom:14px}
[data-storefront] .studio-footer strong{color:var(--ink);font-weight:600}
[data-storefront] .studio-footer p{margin:10px 0}
[data-storefront] .ivu-btn-error{background:#a92f3d!important;border-color:#a92f3d!important}
@media(max-width:767px){[data-storefront] .studio-footer{flex-direction:column;padding:24px 16px}}

/* Branded storefront uses its own footer instead of legacy factory claims. */
html[data-storefront] .publicity{display:none;}

/* Match the reference storefront's open typography and control rhythm. */
.studio-material-options .el-select-dropdown__item{height:auto;min-height:34px;max-width:min(620px,90vw);padding-top:7px;padding-bottom:7px;overflow-wrap:anywhere;white-space:normal;line-height:1.6;}
.studio-print-options{display:flex;flex-wrap:wrap;align-items:flex-start;gap:0 24px;}
.studio-print-options>.el-form-item{flex:0 1 auto;max-width:100%;}
html[data-storefront] .header-v2 .header-bar2{height:104px;}
html[data-storefront] .header-v2 .header-bar3{padding-block:5px;}
html[data-storefront] .header-logo{width:260px!important;min-height:70px;}
html[data-storefront] .header-logo img{width:100%;height:70px;object-fit:contain;object-position:left center;}
html[data-storefront] .studio-heading h2{font-size:30px;line-height:1.4;}
html[data-storefront] .product-panel{max-width:760px!important;}
html[data-storefront] .quotation-form{box-shadow:0 10px 36px rgba(32,39,44,.035);}
html[data-storefront] .studio-quote-summary{border-top-width:3px;}
html[data-storefront] .quotation-form .el-form-item__label{color:#59636b;}
@media(max-width:767px){html[data-storefront] .header-v2 .header-bar2{height:auto;min-height:80px;}html[data-storefront] .header-logo{width:180px!important;min-height:55px;}html[data-storefront] .header-logo img{height:55px;}html[data-storefront] .studio-heading h2{font-size:23px;}}
