﻿/* Blue futuristic material for Market modals and the guided product editor. */
:root{--market-modal-art:url('/assets/market-future/modal-pearl-v1.webp');--market-future-line:#afd1e947;--market-future-ink:#e9f1f7;--market-future-muted:#90bfe1;--market-future-glass:#0a263ac4;--market-future-accent:#b7d5eb}
:is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog)::backdrop{background:linear-gradient(#05141e9e,#041019eb),var(--market-modal-art) center/cover no-repeat;backdrop-filter:blur(3px)}
body[data-market-journey="shops"] :is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog){background:linear-gradient(110deg,#071925d9,#092234ec),var(--market-modal-art) center/cover;border:.5px solid #b7d5eb77;color:var(--market-future-ink);box-shadow:0 0 40px #abcfe819,inset 0 0 28px #a9cde712}
body[data-market-journey="shops"] #market-product-dialog .market-immersive-preview .model-product-right{background:linear-gradient(135deg,#081f2fdb,#071b29eb),var(--market-modal-art) right/cover;color:var(--market-future-ink);border-color:var(--market-future-line)}
body[data-market-journey="shops"] #market-product-dialog :is(.model-product-left,.preview-publication-stage,.preview-media-mosaic,.preview-media-dialog,.preview-zoom-stage,.preview-zoom-foot,.preview-zoom-head){background-color:#071b2a;background-image:none;border-color:var(--market-future-line)}
body[data-market-journey="shops"] #market-product-dialog :is(.model-product-price,.model-wholesale,.model-product-vendor,.preview-category-search,.preview-related-card,.model-product-details){background:linear-gradient(115deg,#b0d1e914,#c4ddef0a),#092336c2;border:.5px solid var(--market-future-line);border-radius:16px;box-shadow:inset 0 0 24px #c1dbee0c,0 7px 20px #0002;color:var(--market-future-ink)}
body[data-market-journey="shops"] #market-product-dialog .model-product-details{overflow:visible;padding:12px;position:relative}
body[data-market-journey="shops"] #market-product-dialog .model-product-tabs{border:0;gap:7px;padding:4px 0 12px;scrollbar-width:thin}
body[data-market-journey="shops"] #market-product-dialog .model-product-tabs button{padding:10px 12px;min-height:42px;flex:0 0 auto;border:1px solid #a6cce733;border-radius:11px;color:#a9cde7;background:#0c2c43c7;letter-spacing:.015em;font-size:11px}
body[data-market-journey="shops"] #market-product-dialog .model-product-tabs button[aria-selected="true"]{background:linear-gradient(135deg,#bcd9ed2b,#a7cce724);border-color:#b8d6eb94;color:#e7f0f6;box-shadow:0 0 18px #c2dcee20,inset 0 0 17px #a1c9e516}
body[data-market-journey="shops"] #market-product-dialog .model-tab-panel{padding:15px 5px;color:#b9d7ec;font-size:13px;line-height:1.8;border-top:1px solid #a6cbe62a}
body[data-market-journey="shops"] #market-product-dialog .model-tab-panel p{margin:0 0 12px;white-space:pre-wrap}
body[data-market-journey="shops"] #market-product-dialog .model-tab-panel :is(dt,dd){padding:8px 10px;border-bottom:1px solid #a8cde722;background:#adcfe807;border-radius:5px}
body[data-market-journey="shops"] :is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog) :is(button,.button,.preview-entry,select,input,textarea,summary),.article-shell :is(button,a,select,input,textarea,summary){color:var(--market-future-ink);border:.5px solid #b1d2ea66;border-radius:11px;background:radial-gradient(ellipse at 0 120%,#aacee826,transparent 75%),#0b293eb8;box-shadow:inset 0 0 18px #b9d7ec14,0 0 16px #a8cde70a;transition:box-shadow .2s,border-color .2s;font-family:inherit}
body[data-market-journey="shops"] :is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog) :is(button,.button,.preview-entry):hover,.article-shell :is(button,a):hover{border-color:#c5deefab;box-shadow:inset 0 0 21px #b8d6ec28,0 0 24px #b2d3ea21}
body[data-market-journey="shops"] #market-product-dialog :is(.model-primary,.model-sale-modes button[aria-pressed="true"]),body[data-market-journey="shops"] #market-cart-checkout,.article-shell .article-actions button:last-child{background:linear-gradient(115deg,#b8d6eb,#adcfe8);color:#0a273b;border-color:#d8e8f4;box-shadow:0 0 21px #b1d2ea22}
body[data-market-journey="shops"] #market-product-dialog :is(.preview-media-thumb[aria-pressed="true"],.preview-media-toolbar,.preview-zoom-close,.dialog-close){border-color:#b4d4ea88;background-color:#092233dc;color:#deecf6;box-shadow:0 0 15px #b0d1e92a}
body[data-market-journey="shops"] #market-product-dialog :is(.model-stock,.model-secondary){background:#0b293eaa;color:#cbe1f1;border-color:#a1c9e555}
body[data-market-journey="shops"] #market-product-dialog :is(.model-contact,.model-view-cart,.preview-related-card span){color:#a4cbe6}
body[data-market-journey="shops"] #market-product-dialog :is(.model-short-description,.model-tab-panel,.preview-related-status,.model-product-status,.model-product-total){color:#a6cbe6}
body[data-market-journey="shops"] #market-product-dialog .preview-category-search :is(input,select){background:#092233c9;border-color:#a6cbe655;color:#e2eef7}
body[data-market-journey="shops"] #market-product-dialog .model-quantity{background:#092132;border-color:#a6cce755}body[data-market-journey="shops"] #market-product-dialog .model-quantity input{color:#e3eff7!important}
body[data-market-journey="shops"] #market-cart-dialog{width:min(970px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:26px;overflow-y:auto}
.market-checkout-steps,.market-order-trail{display:flex;gap:8px;overflow:auto;margin:16px 0 20px;padding:3px;scrollbar-width:thin}
.market-checkout-steps button,.market-order-trail span{flex:1;min-width:95px;min-height:45px;padding:10px 13px;font-size:12px;white-space:nowrap}
.market-checkout-steps button[aria-current="step"]{border-color:#bed9ed!important;background:#a6cbe626!important;box-shadow:inset 0 0 23px #bfdaed29!important}
.market-checkout-steps button:disabled{opacity:.5;cursor:not-allowed}
.market-checkout-controls{display:flex;justify-content:space-between;gap:12px;margin:20px 0}.market-checkout-controls button{min-height:44px;padding:10px 19px;cursor:pointer}
.checkout-step{padding:18px;border:1px solid var(--market-future-line);border-radius:18px;background:#092233a3}
.checkout-step[hidden],.market-checkout-flow [hidden]{display:none!important}
.checkout-step>label{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;font-size:12px}.checkout-step :is(input,textarea){padding:11px}
.market-delivery-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.market-delivery-option{display:flex;flex-direction:column;gap:8px;text-align:left;padding:17px;cursor:pointer;min-width:0}.market-delivery-option strong{font-size:15px}.market-delivery-option span,.market-delivery-option small{color:#9cc6e4;font-size:11px}.market-delivery-option b{font-size:20px;color:#bbd8ec}
.market-delivery-option[aria-pressed="true"]{border-color:#bfdaee!important;box-shadow:inset 0 0 28px #aacee825,0 0 20px #a8cde718!important}
.market-delivery-review{display:flex;flex-direction:column;gap:8px}.market-delivery-review h3{margin:0 0 10px}.market-delivery-review strong{font-size:21px;color:#bfdaed}.market-delivery-review small{color:#8fbee0;font-size:11px}.market-delivery-review p{margin:0;line-height:1.7}
.checkout-step .market-delivery-accept{display:flex;flex-direction:row;align-items:flex-start;margin:22px 0 0;gap:11px;line-height:1.6}.market-delivery-accept input{width:20px;height:20px;flex-shrink:0;accent-color:#add0e9}
.market-checkout-status{font-size:12px;color:#afd1e9;line-height:1.6}
.market-order-delivery-snapshot,.market-receipt-form,.market-seller-transit-form{padding:17px;margin-top:15px;border:1px solid #a2cae64d;border-radius:15px;background:#0b273cb8;display:flex;flex-direction:column;gap:10px}
.market-order-delivery-snapshot h3{font-size:15px;margin:0}.market-order-delivery-snapshot p{margin:0;font-size:12px}.market-receipt-form :is(button,textarea),.market-seller-transit-form :is(button,textarea,select){padding:11px;font-size:12px}.market-receipt-form label{font-size:12px;display:flex;gap:10px}
.market-order-trail span{border:1px solid #9ec7e53b;border-radius:11px;font-size:11px;background:#0a2437}.market-order-trail .is-complete{border-color:#b3d3ea88;color:#d7e8f4;background:#154e7733}
.article-shell{--boutique-accent:#b4d4ea;background:linear-gradient(135deg,#071926da,#0a263aeb),var(--market-modal-art) center/cover!important;border:1px solid #accfe849!important;border-radius:22px!important;color:#e6eff5;box-shadow:inset 0 0 35px #a6cce717!important}
.article-shell .article-steps{padding:8px;gap:8px;scrollbar-width:thin}.article-shell .article-steps button{min-height:44px;font-size:11px;padding:11px 15px}.article-shell .article-steps button[aria-current="step"]{color:#ddecf6;border-color:#b0d1e9;background:#b3d3ea27;box-shadow:0 0 20px #b7d5eb19}
.article-shell [data-step]{padding:22px;border:1px solid #a7cce744;border-radius:18px;background:linear-gradient(120deg,#a4cbe614,#0b293e88);box-shadow:inset 0 0 26px #a2c9e50f}
.article-shell fieldset,.logistics-editor-list>section,.article-shell details{border:1px solid #a7cce744;border-radius:15px;padding:16px;background:#0a243735}
.article-shell :is(input,textarea,select){padding:11px;accent-color:#adcfe8}.article-shell select{appearance:auto;background-color:#0a263a;color:#e6eff5}.article-shell option{background:#0a2539;color:#e1eef7}
.article-shell :is(label,legend){color:#bcd9ed}.article-shell :is(p,small){color:#89bbdf}.article-shell h1{color:#d8e8f4}.article-shell #article-step-title{color:#c7dff0}
.logistics-editor-list{display:grid;gap:14px;margin-top:18px}.logistics-editor-list h4{margin:0 0 15px;font-size:15px}.logistics-option-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.logistics-option-fields label{display:flex;flex-direction:column;gap:8px;font-size:12px;min-width:0}.logistics-option-fields input{min-width:0;width:100%}.logistics-editor-list small{font-size:11px;display:block;margin-top:13px}
@media(max-width:760px){body[data-market-journey="shops"] #market-cart-dialog{padding:18px 12px;border-radius:16px}.checkout-step{padding:13px}.market-checkout-steps button{font-size:10px;min-width:82px;padding:10px}.market-delivery-choices{grid-template-columns:1fr}.article-shell [data-step]{padding:16px}.article-shell .article-steps button{font-size:10px;padding:10px}.logistics-option-fields{grid-template-columns:1fr}.market-order-trail span{min-width:90px}}
@media(prefers-reduced-motion:reduce){:is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog,.article-shell) *{transition:none!important;animation:none!important}}

body[data-market-journey="shops"] #market-cart-dialog .market-order-result{background:#081f30d4;border-color:#a5cbe64d;color:#d5e7f4}

body[data-market-journey="shops"] #market-cart-dialog :is(.market-order-terminal,.market-order-card-actions a){color:#daeaf5;border:.5px solid #b1d2ea66;border-radius:11px;background:radial-gradient(ellipse at 0 120%,#aacee826,transparent 75%),#0b293eb8;box-shadow:inset 0 0 18px #b9d7ec14,0 0 16px #a8cde70a;transition:box-shadow .2s,border-color .2s}
body[data-market-journey="shops"] #market-cart-dialog :is(.market-order-history,.market-order-card){background:#071b2aa8;border-color:var(--market-future-line)}
body[data-market-journey="shops"] #market-cart-dialog :is(h3,h4){color:#c7dff0}
body[data-market-journey="shops"] :is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog) :is(button,.button,.preview-entry,.market-order-terminal),.article-shell :is(button,.pro-action){position:relative;isolation:isolate;overflow:hidden}
body[data-market-journey="shops"] :is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog) :is(button,.button,.preview-entry,.market-order-terminal)::after,.article-shell :is(button,.pro-action)::after{content:'';position:absolute;inset:-25%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 25% 80%,#afd1e921,transparent 60%),radial-gradient(ellipse at 75% 15%,#afd1e91c,transparent 65%);filter:blur(9px);animation:market-neutral-smoke 8s ease-in-out infinite alternate}
@keyframes market-neutral-smoke{from{transform:translateX(-12%) rotate(-5deg);opacity:.4}to{transform:translateX(12%) rotate(5deg);opacity:.85}}
@media(prefers-reduced-motion:reduce){:is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog,.article-shell) *::after{animation:none!important}}

/* Keep the decorative image, tinted blue beneath translucent panels. */
:is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog)::backdrop{background-color:#04172d;background-blend-mode:normal,luminosity}
body[data-market-journey="shops"] :is(#market-product-dialog,#market-cart-dialog,#market-seller-dialog),body[data-market-journey="shops"] #market-product-dialog .market-immersive-preview .model-product-right,.article-shell{background-color:#061c32;background-blend-mode:normal,luminosity}
/* These offsets come from the visible general bars; gallery inherits the same frame. */
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"],body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .preview-media-dialog{position:fixed;inset:auto;left:var(--market-preview-frame-left,6px);top:var(--market-preview-frame-top,78px);width:var(--market-preview-frame-width,calc(100vw - 12px));max-width:none;height:var(--market-preview-frame-height,calc(100dvh - 156px));max-height:var(--market-preview-frame-height,calc(100dvh - 156px));min-height:0;margin:0;box-sizing:border-box}
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .market-immersive-preview .model-product-grid{display:flex;flex-direction:column}
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .market-immersive-preview .model-product-left{flex:0 0 var(--market-preview-frame-media-height);height:var(--market-preview-frame-media-height);width:100%;min-height:0}
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .market-immersive-preview .model-product-right{flex:1;height:auto;min-height:0;padding:16px;border-left:0;border-top:1px solid #8fcfff33}
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .preview-media-mosaic{flex-basis:62px;padding:5px;gap:6px}
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .preview-media-mosaic .preview-media-thumb{flex-basis:58px;width:58px;min-width:58px;max-width:58px;min-height:48px}
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .preview-zoom-head{padding:7px 10px}
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .preview-zoom-foot{flex-basis:74px}
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .preview-zoom-mosaic{height:64px}

/* Native modal backdrops must leave the reserved general bars visible. */
body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"]::backdrop,body[data-market-journey="shops"] #market-product-dialog[data-market-preview-framed="true"] .preview-media-dialog::backdrop{background:transparent;backdrop-filter:none}

/* Photos fill the whole left half; gallery controls float above the photo. */
body[data-market-journey="shops"] #market-product-dialog .model-product-left:has(.preview-publication-stage[data-media-kind="image"]){padding:0;border:0;background:transparent}
body[data-market-journey="shops"] #market-product-dialog .model-product-left>.preview-publication-stage[data-media-kind="image"]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent}
body[data-market-journey="shops"] #market-product-dialog .preview-publication-stage[data-media-kind="image"]>[data-publication-media="image"]{inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center;margin:0;padding:0;border:0;border-radius:0}
body[data-market-journey="shops"] #market-product-dialog .model-product-left:has(.preview-publication-stage[data-media-kind="image"])>.preview-media-mosaic{position:absolute;inset:auto 0 0;z-index:2;height:106px;background:transparent;backdrop-filter:none}
body[data-market-journey="shops"] #market-product-dialog .model-product-left[data-media-count="1"]>.preview-media-mosaic{display:none}
@media(max-width:760px){body[data-market-journey="shops"] #market-product-dialog .model-product-left:has(.preview-publication-stage[data-media-kind="image"])>.preview-media-mosaic{height:70px}}

/* Cart: compact articles, controls disclosed one article at a time. */
#market-cart-items .dialog-item{display:block;padding:0;min-width:0}
.market-cart-article-details{width:100%;min-width:0;border:1px solid var(--market-future-line);border-radius:14px;overflow:hidden}
.market-cart-article-details>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 16px;cursor:pointer;padding:16px;list-style:none;min-height:70px}
.market-cart-article-details>summary::-webkit-details-marker{display:none}
.market-cart-article-details>summary strong{overflow-wrap:anywhere;font-size:14px}
.market-cart-article-details>summary span{font-size:13px;white-space:nowrap}
.market-cart-article-details>summary small{grid-column:1/-1;color:var(--market-future-muted);font-size:11px}
.market-cart-article-details[open]>summary{border-bottom:1px solid var(--market-future-line)}
.market-cart-article-body{display:grid;gap:12px;padding:16px;min-width:0}
.market-cart-article-body .cart-quantity-label{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.market-cart-article-body input{max-width:110px;min-height:44px}
.market-cart-article-body button{justify-self:start;min-height:44px;padding:10px 16px}
.market-cart-history-disclosure{margin-top:20px;border-top:1px solid var(--market-future-line);padding-top:12px}
.market-cart-history-disclosure>summary{padding:13px;cursor:pointer;font-size:13px}
@media(max-width:480px){.market-cart-article-details>summary{grid-template-columns:1fr}.market-cart-article-details>summary span{white-space:normal}}

#market-cart-items .dialog-item[hidden],#market-cart-items[hidden]{display:none!important}.market-cart-shops{display:grid;gap:12px;margin-bottom:16px}.market-cart-shops h3,.market-cart-shops p{margin:0}.market-cart-shop-card{display:grid;gap:9px;text-align:left;padding:18px;cursor:pointer}.market-cart-shop-card small{color:var(--market-future-muted)}
