:root{--bg:#f6f7fb;--card:#fff;--text:#151820;--muted:#687082;--brand:#ee4d2d;--brand2:#ff8a00;--line:#e8eaf0;--green:#12a150;--shadow:0 14px 40px rgba(20,28,45,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(1200px,calc(100% - 32px));margin:auto}.topbar{background:#111827;color:#fff;font-size:13px}.topbar-inner{height:36px;display:flex;justify-content:space-between;align-items:center;gap:12px}.site-header{background:#fff;position:sticky;top:0;z-index:20;box-shadow:0 1px 0 var(--line)}.header-main{height:78px;display:grid;grid-template-columns:240px 1fr 140px;align-items:center;gap:18px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px}.brand img{height:42px;width:42px;object-fit:contain}.brand-mark{height:42px;width:42px;border-radius:14px;background:linear-gradient(135deg,var(--brand),var(--brand2));display:grid;place-items:center;color:#fff}.search-box{display:flex;background:#fff;border:2px solid var(--brand);border-radius:12px;overflow:hidden}.search-box input{border:0;outline:0;padding:13px 16px;flex:1;font-size:15px}.search-box button,.btn{border:0;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border-radius:10px;padding:12px 18px;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.search-box button{border-radius:0;padding:0 24px}.btn.outline{background:#fff;color:var(--brand);border:1px solid var(--brand)}.btn.small{padding:9px 12px;font-size:13px;width:100%}.cart-link{background:#fff7f4;border:1px solid #ffd8cb;padding:12px;border-radius:12px;text-align:center;color:var(--brand);font-weight:750}.cart-link b{background:var(--brand);color:#fff;border-radius:99px;padding:2px 7px;margin-left:4px}.category-nav{border-top:1px solid var(--line)}.nav-scroll{display:flex;gap:16px;overflow:auto;white-space:nowrap;padding:12px 0}.nav-scroll a{color:#313847;font-weight:650;font-size:14px}.alert{margin:16px 0;padding:12px 14px;border-radius:12px;background:#e8f5ee;color:#11753e;border:1px solid #bfe7ce}.alert.error{background:#fff1f0;color:#b42318;border-color:#ffccc7}.hero-section{padding:22px 0}.hero-grid{display:grid;grid-template-columns:1fr 300px;gap:18px}.hero-main{height:360px;border-radius:24px;overflow:hidden;box-shadow:var(--shadow);position:relative;background:#ddd}.hero-slide{display:none;height:100%;position:relative}.hero-slide.active{display:block}.hero-slide img{height:100%;width:100%;object-fit:cover}.hero-copy{position:absolute;left:34px;top:50%;transform:translateY(-50%);max-width:430px;color:#fff;text-shadow:0 4px 18px rgba(0,0,0,.35)}.hero-copy span{display:inline-block;padding:6px 10px;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);border-radius:99px}.hero-copy h1{font-size:42px;line-height:1.05;margin:14px 0}.hero-side{display:grid;gap:18px}.voucher-card,.policy-card{border-radius:22px;background:#fff;padding:22px;box-shadow:var(--shadow)}.voucher-card{background:linear-gradient(135deg,#fff,#fff3e8);border:1px dashed #ff9c5b}.voucher-card b{display:block;font-size:30px;color:var(--brand);margin:8px 0}.section{padding:24px 0}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-head h2,.page-title h1{margin:0;font-size:28px}.section-head a{color:var(--brand);font-weight:750}.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.cat-card{background:#fff;border-radius:18px;padding:16px;text-align:center;box-shadow:var(--shadow);font-weight:700}.cat-card img{height:88px;margin:auto;object-fit:contain}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 8px 30px rgba(20,28,45,.06);border:1px solid #f0f1f5;transition:.2s}.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.product-image{position:relative;aspect-ratio:1/1;background:#fafafa;display:block}.product-image img{width:100%;height:100%;object-fit:cover}.sale-badge{position:absolute;right:10px;top:10px;background:var(--brand);color:#fff;font-weight:800;border-radius:10px;padding:5px 8px;z-index:2}.product-info{padding:13px}.product-name{font-weight:750;min-height:44px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-cat,.rating-row,.muted{color:var(--muted);font-size:13px}.price-row{display:flex;align-items:center;gap:8px;margin:8px 0}.price-row b,.detail-price b{color:var(--brand);font-size:20px}.price-row del,.detail-price del{color:#9aa1ad}.rating-row{display:flex;justify-content:space-between;color:#ffb020}.rating-row span{color:var(--muted)}.flash-box{background:#fff;border-radius:24px;padding:22px;box-shadow:var(--shadow)}.countdown{background:#111827;color:#fff;border-radius:99px;padding:8px 12px;font-size:13px}.page-title{padding:28px 0 18px}.page-title p{color:var(--muted);margin:8px 0 0}.shop-layout{display:grid;grid-template-columns:260px 1fr;gap:20px}.filter-panel,.summary-box,.card-box{background:#fff;border-radius:18px;padding:18px;box-shadow:var(--shadow);align-self:start}.filter-panel form{display:grid;gap:10px}.filter-panel label,.checkout-form label,.summary-box label,.lookup-layout label{font-weight:700;font-size:14px}.filter-panel input,.filter-panel select,.checkout-form input,.checkout-form textarea,.checkout-form select,.summary-box input,.lookup-layout input{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px;margin-top:6px;background:#fff}.range-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.result-bar{background:#fff;border-radius:14px;padding:14px;margin-bottom:14px}.pagination{display:flex;gap:8px;margin-top:18px}.pagination a{background:#fff;border:1px solid var(--line);padding:8px 12px;border-radius:10px}.pagination a.active{background:var(--brand);color:#fff}.empty{background:#fff;border-radius:18px;padding:28px;text-align:center}.breadcrumb{font-size:14px;color:var(--muted);padding-top:18px}.product-detail{display:grid;grid-template-columns:520px 1fr;gap:28px;background:#fff;border-radius:24px;padding:24px;box-shadow:var(--shadow)}.gallery .main-img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:18px;background:#f7f7f7}.thumbs{display:flex;gap:10px;margin-top:12px;overflow:auto}.thumbs button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:4px;cursor:pointer}.thumbs img{width:72px;height:72px;object-fit:cover;border-radius:8px}.sku{color:var(--muted);font-size:13px}.product-summary h1{font-size:32px;line-height:1.15;margin:8px 0}.summary-rating{color:#ffb020}.summary-rating span{color:var(--muted)}.detail-price{display:flex;align-items:center;gap:12px;background:#fff7f4;border-radius:16px;padding:16px;margin:18px 0}.detail-price b{font-size:32px}.short-desc{color:#454b57}.stock.in{color:var(--green);font-weight:800}.stock.out{color:#b42318}.buy-box{display:grid;grid-template-columns:120px 1fr 1fr;gap:12px;align-items:end;margin-top:18px}.buy-box label{grid-column:1/-1;font-weight:800}.buy-box input{border:1px solid var(--line);border-radius:12px;padding:12px}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.trust-grid span{background:#f8fafc;border-radius:12px;padding:12px;font-size:13px}.content-body{background:#fff;border-radius:18px;padding:20px;box-shadow:var(--shadow)}.cart-layout,.checkout-layout,.lookup-layout{display:grid;grid-template-columns:1fr 330px;gap:20px;margin-bottom:36px}.cart-table-wrap{background:#fff;border-radius:18px;padding:18px;box-shadow:var(--shadow);overflow:auto}.cart-table{width:100%;border-collapse:collapse}.cart-table th,.cart-table td{border-bottom:1px solid var(--line);padding:12px;text-align:left}.cart-product{display:flex;gap:12px;min-width:260px}.cart-product img{width:68px;height:68px;object-fit:cover;border-radius:12px}.cart-product small{display:block;color:var(--muted)}.cart-table input{width:78px;border:1px solid var(--line);border-radius:10px;padding:9px}.text-btn{border:0;background:none;color:var(--brand);font-weight:750;cursor:pointer}.summary-box{display:grid;gap:12px}.summary-box>div,.mini-item,.total{display:flex;justify-content:space-between;gap:12px}.summary-box .total,.total{border-top:1px solid var(--line);padding-top:12px;font-size:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.span-2{grid-column:1/-1}.checkout-form textarea{min-height:90px}.success-box{background:#fff;border-radius:24px;padding:46px;text-align:center;box-shadow:var(--shadow);margin-top:30px}.success-actions{display:flex;gap:12px;justify-content:center}.error-text{color:#b42318}.footer{background:#111827;color:#d7dce6;margin-top:36px;padding:36px 0}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.3fr;gap:24px}.footer a{display:block;color:#d7dce6;margin:8px 0}.footer h3,.footer h4{color:#fff}@media(max-width:900px){.topbar-inner{height:auto;padding:8px 0;align-items:flex-start;flex-direction:column}.header-main{grid-template-columns:1fr;gap:10px;height:auto;padding:14px 0}.cart-link{text-align:left}.hero-grid,.shop-layout,.product-detail,.cart-layout,.checkout-layout,.lookup-layout{grid-template-columns:1fr}.hero-main{height:300px}.hero-side{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:repeat(2,1fr)}.category-grid{grid-template-columns:repeat(3,1fr)}.product-summary h1{font-size:26px}.buy-box{grid-template-columns:1fr}.trust-grid,.footer-grid,.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}}@media(max-width:560px){.container{width:min(100% - 22px,1200px)}.hero-main{height:260px}.hero-copy{left:20px;right:20px}.hero-copy h1{font-size:28px}.hero-side{grid-template-columns:1fr}.product-grid{gap:10px}.product-info{padding:10px}.category-grid{grid-template-columns:repeat(2,1fr)}.flash-box{padding:14px}.cart-table th:nth-child(2),.cart-table td:nth-child(2){display:none}.success-actions{flex-direction:column}}
/* V02 upgrades */
.corner-badge{position:absolute;left:10px;top:10px;background:#111827;color:#fff;font-weight:800;border-radius:10px;padding:5px 8px;z-index:2;font-size:12px}.card-badges{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.card-badges span{background:#f3f4f6;color:#4b5563;border-radius:99px;padding:3px 8px;font-size:12px;font-weight:700}.mobile-filter-bar{display:none}.check-filter{display:flex!important;align-items:center;gap:8px}.check-filter input{width:auto!important;margin:0!important}.result-bar{display:flex;justify-content:space-between;align-items:center}.result-bar a{color:var(--brand);font-weight:700}.span-all{grid-column:1/-1}.variant-picker{display:grid;gap:10px}.variant-picker strong{font-size:14px}.variant-options{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.variant-option{border:1px solid var(--line);border-radius:14px;padding:11px;display:grid;gap:3px;cursor:pointer;background:#fff}.variant-option.active{border-color:var(--brand);box-shadow:0 0 0 3px rgba(238,77,45,.12)}.variant-option input{display:none}.variant-option span{font-weight:800}.variant-option small{color:var(--muted)}.mini-note{font-size:13px;color:var(--muted);display:block!important}.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.post-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);border:1px solid #f0f1f5}.post-card img{width:100%;aspect-ratio:16/10;object-fit:cover;background:#f8fafc}.post-card div{padding:16px}.post-card span{font-size:13px;color:var(--muted)}.post-card h3{margin:6px 0;font-size:19px}.post-card p{margin:0;color:var(--muted)}.article-layout{max-width:900px}.article-head{padding:28px 0 18px}.article-head span{color:var(--brand);font-weight:800}.article-head h1{font-size:42px;line-height:1.1;margin:10px 0}.article-head p{font-size:18px;color:var(--muted)}.article-cover{width:100%;border-radius:24px;max-height:460px;object-fit:cover;margin-bottom:20px}.article-content{font-size:17px;line-height:1.75}.mobile-bottom-nav{display:none}.buy-box button[disabled]{opacity:.55;cursor:not-allowed}.footer{padding-bottom:76px}@media(max-width:900px){.mobile-filter-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.mobile-filter-bar button{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;font-weight:800}.filter-panel{display:none}.filter-panel.open{display:block}.variant-options{grid-template-columns:1fr}.post-grid{grid-template-columns:1fr 1fr}.article-head h1{font-size:32px}.mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:30;box-shadow:0 -10px 30px rgba(15,23,42,.08)}.mobile-bottom-nav a{display:grid;place-items:center;gap:2px;padding:8px 4px;color:#374151;font-size:18px}.mobile-bottom-nav span{font-size:11px;font-weight:750}.footer{padding-bottom:96px}}@media(max-width:560px){.search-box{border-width:1px}.search-box button{padding:0 14px}.product-card{border-radius:14px}.product-name{font-size:14px}.price-row b{font-size:16px}.post-grid{grid-template-columns:1fr}.article-head h1{font-size:28px}.product-detail{padding:14px}.detail-price b{font-size:24px}}

/* V03 dark mode, language/member UX */
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.icon-btn,.mini-link,.account-link{border:1px solid var(--line);background:var(--card);border-radius:12px;padding:10px 12px;font-weight:800;color:var(--text);white-space:nowrap}.icon-btn{cursor:pointer}.account-link{max-width:160px;overflow:hidden;text-overflow:ellipsis}.wishlist-form{position:absolute;left:10px;bottom:10px;z-index:3}.wishlist-btn{width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 6px 20px rgba(0,0,0,.12);font-size:19px;cursor:pointer}.wishlist-btn.active{color:var(--brand)}.account-grid{display:grid;grid-template-columns:280px 1fr;gap:20px;margin-bottom:36px}.account-sidebar,.account-panel{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow)}.account-sidebar nav{display:grid;gap:8px}.account-sidebar a{padding:10px 12px;border-radius:12px;background:rgba(127,127,127,.06);font-weight:750}.auth-wrap{min-height:60vh;display:grid;place-items:center;padding:32px 0}.auth-card{width:min(460px,100%);background:var(--card);border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow)}.auth-card form{display:grid;gap:13px}.auth-card label{display:grid;gap:6px;font-weight:750}.auth-card input,.account-panel input,.account-panel select,.account-panel textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--card);color:var(--text)}.order-list{display:grid;gap:12px}.order-mini{border:1px solid var(--line);border-radius:16px;padding:14px;background:rgba(127,127,127,.04)}.order-mini-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.small-muted{color:var(--muted);font-size:13px}.settings-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lang-pill{display:inline-flex;gap:6px;align-items:center}.mobile-bottom-nav{grid-template-columns:repeat(5,1fr)}
html[data-theme="dark"]{--bg:#0b1220;--card:#111827;--text:#eef2f7;--muted:#9aa4b2;--line:#263244;--shadow:0 18px 48px rgba(0,0,0,.35);--brand:#ff7048;--brand2:#ff9d2f;--green:#45d483}html[data-theme="dark"] .site-header,html[data-theme="dark"] .mobile-bottom-nav,html[data-theme="dark"] .result-bar,html[data-theme="dark"] .product-card,html[data-theme="dark"] .cat-card,html[data-theme="dark"] .filter-panel,html[data-theme="dark"] .summary-box,html[data-theme="dark"] .card-box,html[data-theme="dark"] .content-body,html[data-theme="dark"] .post-card,html[data-theme="dark"] .voucher-card,html[data-theme="dark"] .policy-card{background:var(--card);border-color:var(--line)}html[data-theme="dark"] .search-box,html[data-theme="dark"] .search-box input,html[data-theme="dark"] .filter-panel input,html[data-theme="dark"] .filter-panel select,html[data-theme="dark"] .checkout-form input,html[data-theme="dark"] .checkout-form textarea,html[data-theme="dark"] .checkout-form select,html[data-theme="dark"] .summary-box input,html[data-theme="dark"] .lookup-layout input,html[data-theme="dark"] .variant-option{background:#0f172a;color:var(--text);border-color:var(--line)}html[data-theme="dark"] .product-image,html[data-theme="dark"] .thumbs button{background:#0f172a;border-color:var(--line)}html[data-theme="dark"] .card-badges span,html[data-theme="dark"] .trust-grid span{background:#1f2937;color:#d1d5db}html[data-theme="dark"] .btn.outline{background:transparent;color:var(--brand);border-color:var(--brand)}html[data-theme="dark"] .detail-price{background:#1f2937}html[data-theme="dark"] .topbar,html[data-theme="dark"] .footer{background:#050816}html[data-theme="dark"] .cart-link{background:#1f2937;border-color:var(--line);color:var(--brand)}
@media(max-width:900px){.header-main{grid-template-columns:1fr}.header-actions{justify-content:space-between;flex-wrap:wrap}.account-grid{grid-template-columns:1fr}.account-link{max-width:none}.mobile-bottom-nav a{font-size:17px}}
@media(max-width:560px){.header-actions{display:grid;grid-template-columns:auto auto 1fr auto;width:100%}.account-link{font-size:13px}.settings-row{grid-template-columns:1fr}.auth-card{padding:18px}}

/* V03 hotfix: header/layout/images/language switch */
.site-header{background:var(--card)}
.header-main{height:auto;min-height:78px;grid-template-columns:minmax(210px,260px) minmax(300px,1fr) max-content;padding:12px 0;gap:16px}
.brand{min-width:0}.brand>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand-mark{flex:0 0 42px}
.search-box{min-width:0}.search-box input{min-width:0;background:var(--card);color:var(--text)}.search-box button{white-space:nowrap;min-width:112px}
.header-actions{min-width:max-content;flex-wrap:nowrap}.icon-btn,.mini-link,.account-link,.cart-link{height:44px;display:inline-flex;align-items:center;justify-content:center}.account-link{max-width:170px}.cart-link{min-width:104px;padding:10px 12px}
.lang-switch{min-width:46px}.topbar-inner{min-height:34px;height:auto;padding:7px 0}.nav-scroll{scrollbar-width:none}.nav-scroll::-webkit-scrollbar{display:none}
.hero-main{background:linear-gradient(135deg,var(--brand),var(--brand2));border:1px solid var(--line)}.hero-main img,.cat-card img,.post-card img,.product-image img{background:linear-gradient(135deg,#f8fafc,#e5e7eb)}
.cat-card{display:grid;place-items:center;gap:10px;min-height:130px}.cat-card img{width:88px;height:72px;border-radius:14px;padding:8px;object-fit:contain}.cat-card span{line-height:1.25}
.product-card{position:relative}.product-image img{object-fit:contain;padding:18px}.product-info{background:var(--card)}
.post-card img{object-fit:cover}.section{padding:22px 0}.hero-section{padding:20px 0 10px}.footer{background:#111827;color:#d1d5db;margin-top:30px}.footer a{display:block;color:#d1d5db;margin:6px 0}.footer h3,.footer h4{color:#fff}
html[data-theme="dark"] .hero-main img,html[data-theme="dark"] .cat-card img,html[data-theme="dark"] .post-card img,html[data-theme="dark"] .product-image img{background:linear-gradient(135deg,#111827,#1f2937)}
@media(max-width:1100px){.header-main{grid-template-columns:220px 1fr}.header-actions{grid-column:1/-1;justify-content:flex-end}.hero-grid{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr 1fr}.category-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.topbar-inner{font-size:12px}.header-main{grid-template-columns:1fr;padding:10px 0}.brand{font-size:18px}.search-box{order:2;width:100%}.header-actions{order:3;width:100%;display:grid;grid-template-columns:46px 46px minmax(0,1fr) auto;gap:8px}.account-link{max-width:none;justify-content:center}.cart-link{min-width:90px}.category-grid{grid-template-columns:repeat(3,1fr)}.hero-side{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.container{width:min(100% - 22px,1200px)}.topbar-inner{display:grid;grid-template-columns:1fr;gap:2px;text-align:center}.brand-mark{width:38px;height:38px;border-radius:12px}.search-box input{padding:11px 12px;font-size:14px}.search-box button{min-width:82px;padding:0 12px}.header-actions{grid-template-columns:42px 42px minmax(0,1fr) 86px}.icon-btn,.mini-link,.account-link,.cart-link{height:40px;padding:8px}.cart-link b{margin-left:3px}.hero-main{height:230px;border-radius:18px}.hero-copy{left:18px;right:18px}.hero-copy h1{font-size:25px}.hero-copy p{font-size:14px}.hero-side{grid-template-columns:1fr}.voucher-card,.policy-card{padding:16px;border-radius:18px}.voucher-card b{font-size:24px}.category-grid{grid-template-columns:repeat(2,1fr);gap:10px}.cat-card{min-height:116px;padding:12px}.cat-card img{height:60px;width:76px}.section-head h2,.page-title h1{font-size:24px}.product-grid{gap:10px}.product-image img{padding:12px}.product-name{min-height:40px}.price-row{display:block}.mobile-bottom-nav{grid-template-columns:repeat(5,1fr)}}


/* V03 header hotfix 02: marketplace-style orange header */
.market-header{position:sticky;top:0;z-index:50;background:linear-gradient(180deg,#ff3f2f 0%,#ff572d 58%,#ff6533 100%);color:#fff;box-shadow:0 2px 10px rgba(160,45,20,.16)}
.market-header a{color:#fff}.market-top{font-size:14px}.market-top-inner{height:38px;display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0}.market-top-left,.market-top-right{display:flex;align-items:center;gap:0;min-width:0}.market-top-left a,.market-top-left span,.market-top-right>a,.market-top-right .language-current,.market-theme{position:relative;padding:0 10px;line-height:1;color:#fff;font-weight:650;white-space:nowrap;text-shadow:0 1px 1px rgba(0,0,0,.08)}.market-top-left a:not(:last-child)::after,.market-top-left span::after,.market-top-right>a:not(:last-child)::after{content:"";position:absolute;right:0;top:50%;width:1px;height:14px;background:rgba(255,255,255,.38);transform:translateY(-50%)}.market-top-left a:first-child{padding-left:0}.market-top-right>a:last-child{padding-right:0}.market-top-right span{display:inline-flex;align-items:center}.market-theme{height:auto;border:0;background:transparent;border-radius:0;cursor:pointer;font-size:15px;padding:0 10px}.language-menu{position:relative}.language-current{border:0;background:transparent;cursor:pointer;font-size:14px;display:flex;align-items:center;gap:5px}.language-dropdown{position:absolute;top:calc(100% + 12px);right:0;min-width:150px;background:#fff;color:#111827;border-radius:3px;box-shadow:0 10px 28px rgba(0,0,0,.18);padding:6px 0;display:none;z-index:80}.language-dropdown::before{content:"";position:absolute;top:-8px;right:24px;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #fff}.language-dropdown a{display:block;color:#111827;padding:9px 14px;font-weight:650}.language-dropdown a:hover{background:#fff3ef;color:var(--brand)}.language-menu:hover .language-dropdown,.language-menu:focus-within .language-dropdown{display:block}.market-account{max-width:150px;overflow:hidden;text-overflow:ellipsis}
.market-main{display:grid;grid-template-columns:220px minmax(280px,1fr) 92px;align-items:start;gap:28px;padding:20px 0 12px}.market-brand{display:flex;align-items:center;gap:12px;min-width:0;padding-top:2px}.market-brand img{width:74px;height:58px;object-fit:contain;filter:drop-shadow(0 1px 2px rgba(0,0,0,.12))}.market-logo-mark{width:74px;height:58px;border-radius:4px;background:#fff;color:var(--brand);display:grid;place-items:center;font-size:25px;font-weight:950;letter-spacing:-1px;box-shadow:0 4px 12px rgba(0,0,0,.12)}.market-brand-text{font-size:21px;font-weight:850;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 1px rgba(0,0,0,.1)}.market-search-wrap{display:grid;gap:10px;min-width:0}.market-search{height:48px;background:#fff;border-radius:3px;display:flex;align-items:center;padding:4px;box-shadow:0 2px 5px rgba(0,0,0,.08)}.market-search input{height:100%;flex:1;min-width:0;border:0;outline:0;background:#fff;color:#333;padding:0 16px;font-size:16px}.market-search input::placeholder{color:#6b7280}.market-search button{height:40px;width:74px;border:0;border-radius:3px;background:var(--brand);color:#fff;font-size:30px;line-height:1;display:grid;place-items:center;cursor:pointer}.market-keywords{display:flex;align-items:center;gap:18px;overflow:auto;white-space:nowrap;scrollbar-width:none;padding-left:0}.market-keywords::-webkit-scrollbar{display:none}.market-keywords a{font-size:14px;font-weight:650;color:rgba(255,255,255,.96)}.market-keywords a:hover{text-decoration:underline}.market-cart{position:relative;height:64px;display:flex;align-items:center;justify-content:center;color:#fff}.market-cart span{font-size:38px;line-height:1}.market-cart b{position:absolute;top:1px;right:15px;min-width:24px;height:24px;border-radius:99px;background:#fff;color:var(--brand);border:2px solid var(--brand);display:grid;place-items:center;font-size:13px;font-weight:900;padding:0 5px}
html[data-theme="dark"] .market-header{background:linear-gradient(180deg,#df351f 0%,var(--brand) 58%,#f05c2d 100%)}html[data-theme="dark"] .market-search,html[data-theme="dark"] .market-search input{background:#fff;color:#111827}html[data-theme="dark"] .language-dropdown{background:#fff;color:#111827}html[data-theme="dark"] .language-dropdown a{color:#111827}
@media(max-width:1050px){.market-top-inner{overflow:auto;scrollbar-width:none}.market-top-inner::-webkit-scrollbar{display:none}.market-top-left{display:none}.market-main{grid-template-columns:190px 1fr 76px;gap:16px}.market-brand-text{font-size:18px}.market-logo-mark{width:58px;height:48px;font-size:20px}.market-brand img{width:58px;height:48px}.market-keywords{gap:14px}.market-keywords a{font-size:13px}}
@media(max-width:720px){.market-top-inner{height:auto;padding:8px 0;justify-content:flex-start}.market-top-right{overflow:auto;scrollbar-width:none;width:100%;justify-content:flex-start}.market-top-right::-webkit-scrollbar{display:none}.market-top-right>a,.market-top-right .language-current,.market-theme{font-size:13px;padding:0 8px}.market-main{grid-template-columns:1fr auto;align-items:center;gap:10px;padding:12px 0 10px}.market-brand{grid-column:1/2;max-width:calc(100vw - 92px)}.market-logo-mark{width:46px;height:38px;font-size:16px}.market-brand img{width:46px;height:38px}.market-brand-text{font-size:17px}.market-cart{grid-column:2/3;grid-row:1/2;height:42px;width:54px}.market-cart span{font-size:30px}.market-cart b{top:-5px;right:0}.market-search-wrap{grid-column:1/-1;width:100%}.market-search{height:44px}.market-search button{height:36px;width:54px;font-size:25px}.market-keywords{gap:12px;padding-bottom:2px}.market-keywords a{font-size:12.5px}.language-dropdown{right:auto;left:0}}
@media(max-width:420px){.market-top-right>a:nth-of-type(1),.market-top-right>a:nth-of-type(2){display:none}.market-main{padding-top:10px}.market-brand-text{max-width:210px}.market-search input{font-size:14px;padding:0 10px}.market-keywords{gap:10px}.market-keywords a{font-size:12px}}


/* V03.1 cart icon + cleaner product cards */
.market-cart{position:relative;height:64px;display:flex;align-items:center;justify-content:center;color:#fff}
.market-cart-icon{display:grid;place-items:center;width:40px;height:40px}
.market-cart-icon svg{width:36px;height:36px;display:block}
.market-cart b{top:0;right:14px}
.mobile-cart-link{position:relative}
.mobile-cart-icon{position:relative;display:grid;place-items:center}
.mobile-cart-icon svg{width:22px;height:22px;display:block}
.mobile-cart-icon b{position:absolute;top:-8px;right:-14px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--brand);color:#fff;border:2px solid var(--card);font-size:10px;display:grid;place-items:center;font-weight:900}

.product-grid{align-items:stretch}
.product-card{display:flex;flex-direction:column;height:100%;border-radius:18px;overflow:hidden}
.product-card:hover{transform:translateY(-4px)}
.product-image{overflow:hidden}
.product-info{display:flex;flex-direction:column;gap:8px;flex:1;padding:14px 14px 16px}
.product-cat{line-height:1.2;min-height:16px}
.product-name{line-height:1.4;min-height:44px;margin:0}
.price-row{margin:2px 0 0;min-height:32px;flex-wrap:wrap}
.rating-row{margin-top:auto;padding-top:2px}
.card-badges{margin:0 0 2px}
.card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px}
.card-actions .btn{width:100%;min-height:40px;padding:10px 10px;border-radius:12px;font-size:13px;font-weight:800}
.btn-card-cart{box-shadow:0 10px 22px rgba(238,77,45,.18)}
.btn-card-buy{background:#fff7f4;color:var(--brand);border:1px solid #ffc8b6}
.btn-card-buy:hover{background:#fff1eb}
html[data-theme="dark"] .btn-card-buy{background:#1f2937;border-color:#384457;color:#ff8c69}
html[data-theme="dark"] .mobile-cart-icon b{border-color:#111827}

@media(max-width:720px){
  .market-cart-icon svg{width:30px;height:30px}
  .market-cart b{right:4px}
}
@media(max-width:560px){
  .card-actions{grid-template-columns:1fr}
  .card-actions .btn{min-height:38px;font-size:12.5px}
  .product-info{padding:12px}
  .product-name{min-height:40px}
}


/* V03.1 account avatar + coupon UX */
.account-avatar{width:96px;height:96px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;display:grid;place-items:center;font-size:36px;font-weight:900;margin:0 0 14px;box-shadow:0 12px 28px rgba(238,77,45,.18)}
.account-avatar img{width:100%;height:100%;object-fit:cover}
.account-panel input[type="file"]{padding:10px;background:rgba(127,127,127,.04)}
.coupon-row{display:grid;grid-template-columns:1fr 112px;gap:8px;align-items:end;margin-top:6px}
.coupon-row input{margin-top:0!important}
.coupon-row .btn{height:44px;padding:0 12px}
.success-text{color:var(--green);font-size:13px;font-weight:750;margin:8px 0 0}
@media(max-width:560px){.coupon-row{grid-template-columns:1fr}.coupon-row .btn{width:100%}.account-avatar{width:82px;height:82px;font-size:30px}}

/* V03.2 cart selection, ajax toast and address book */
.site-toast{position:fixed;right:22px;bottom:86px;z-index:999;background:#111827;color:#fff;border-radius:14px;padding:12px 16px;box-shadow:0 16px 40px rgba(15,23,42,.22);font-weight:800;transform:translateY(18px);opacity:0;pointer-events:none;transition:.18s ease}.site-toast.show{transform:translateY(0);opacity:1}.site-toast.error{background:#b42318}.cart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px 14px;margin-bottom:12px}.cart-select-all{display:flex;align-items:center;gap:8px;font-weight:850}.cart-check-cell{width:44px;text-align:center}.cart-item-check,#selectAllCart{width:18px;height:18px;accent-color:var(--brand)}.selectable-cart-table tr.selected{background:rgba(238,77,45,.045)}.auto-width{width:auto!important}.cart-selected-summary .btn{width:100%;margin-top:10px}.cart-selected-summary .btn[disabled],.buy-box button[disabled],.card-actions button[disabled]{opacity:.55;cursor:not-allowed}.address-book-box{border:1px solid var(--line);background:rgba(127,127,127,.035);border-radius:18px;padding:14px;margin:8px 0 18px}.address-book-box h4{margin:0 0 10px}.address-option{display:flex!important;grid-template-columns:auto 1fr;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:14px;padding:12px;margin:8px 0;background:var(--card);cursor:pointer}.address-option input{width:auto!important;margin-top:4px!important}.address-option span{display:block}.address-option em{font-style:normal;background:#fff1eb;color:var(--brand);border:1px solid #ffc8b6;border-radius:99px;padding:2px 8px;font-size:12px;font-weight:850;margin-left:6px}.shipping-address-fields{margin-top:12px}.coupon-row{display:grid;grid-template-columns:1fr auto;gap:8px}.coupon-row input{margin-top:0!important}.success-text{color:var(--green);font-weight:800}.mini-item{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:9px 0}.mini-item span{font-size:13px;color:var(--muted)}
html[data-theme="dark"] .address-option,html[data-theme="dark"] .cart-toolbar,html[data-theme="dark"] .address-book-box{background:var(--card);border-color:var(--line)}html[data-theme="dark"] .selectable-cart-table tr.selected{background:rgba(255,112,72,.10)}html[data-theme="dark"] .address-option em{background:#1f2937;border-color:#384457;color:#ff8c69}
@media(max-width:760px){.cart-toolbar{align-items:stretch;flex-direction:column}.selectable-cart-table th:nth-child(3),.selectable-cart-table td:nth-child(3){display:none}.coupon-row{grid-template-columns:1fr}.site-toast{left:12px;right:12px;bottom:86px;text-align:center}.address-option{padding:10px}.cart-check-cell{width:34px}}
.address-list{display:grid;gap:10px;margin:12px 0 18px}.address-card{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:16px;padding:14px;background:rgba(127,127,127,.035)}.address-card small,.address-card span{color:var(--muted)}.address-default-badge{display:inline-flex!important;background:#fff1eb;color:var(--brand)!important;border:1px solid #ffc8b6;border-radius:99px;padding:2px 8px;font-size:12px;font-weight:850;margin-left:6px}.address-card-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.address-save-form{border-top:1px solid var(--line);padding-top:16px;margin-top:12px}html[data-theme="dark"] .address-card{background:#0f172a;border-color:var(--line)}html[data-theme="dark"] .address-default-badge{background:#1f2937;border-color:#384457;color:#ff8c69!important}@media(max-width:720px){.address-card{display:grid}.address-card-actions{justify-content:flex-start}}

/* V03.3 cart selection clarity */
.cart-count-note{margin-top:6px;font-weight:750;color:var(--brand)!important}
.cart-line-total-text{white-space:nowrap}
.cart-row.selected{background:rgba(238,77,45,.035)}
.site-toast{position:fixed;left:50%;bottom:86px;transform:translateX(-50%) translateY(20px);z-index:9999;background:#111827;color:#fff;padding:12px 16px;border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.18);font-weight:800;opacity:0;pointer-events:none;transition:.18s ease;max-width:min(92vw,420px);text-align:center}.site-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.site-toast.error{background:#b42318}
html[data-theme="dark"] .cart-row.selected{background:rgba(255,112,72,.08)}

/* V03.6 toast fixed position */
.site-toast{position:fixed;right:18px;bottom:22px;z-index:9999;max-width:min(360px,calc(100vw - 36px));padding:12px 16px;border-radius:14px;background:#111827;color:#fff;box-shadow:0 16px 44px rgba(15,23,42,.22);font-weight:800;transform:translateY(18px);opacity:0;pointer-events:none;transition:.18s ease}
.site-toast.show{transform:translateY(0);opacity:1}
.site-toast.error{background:#b42318}
@media(max-width:560px){.site-toast{left:12px;right:12px;bottom:82px;max-width:none;text-align:center}}


/* V03.8 toast: green success, no scroll jank */
.site-toast{
  position:fixed;
  right:22px;
  bottom:24px;
  z-index:9999;
  max-width:min(390px,calc(100vw - 44px));
  padding:13px 18px;
  border-radius:14px;
  background:#16a34a;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 18px 44px rgba(22,163,74,.26);
  font-weight:850;
  line-height:1.35;
  transform:translateY(18px);
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}
.site-toast.show{transform:translateY(0);opacity:1}
.site-toast.success{background:#16a34a;box-shadow:0 18px 44px rgba(22,163,74,.28)}
.site-toast.error{background:#b42318;box-shadow:0 18px 44px rgba(180,35,24,.24)}
@media(max-width:560px){
  .site-toast{left:12px;right:12px;bottom:82px;max-width:none;text-align:center}
}


/* V04 storefront additions */
.no-scroll{overflow:hidden}
.quick-view-btn{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:4;
  border:0;
  border-radius:999px;
  padding:8px 12px;
  background:rgba(17,24,39,.88);
  color:#fff;
  font-weight:850;
  font-size:12px;
  cursor:pointer;
  box-shadow:0 10px 28px rgba(15,23,42,.18);
  opacity:0;
  transform:translateY(6px);
  transition:.18s ease;
}
.product-card:hover .quick-view-btn{opacity:1;transform:translateY(0)}
.quick-view-modal{position:fixed;inset:0;z-index:9998;display:none}
.quick-view-modal.open{display:block}
.quick-view-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(6px)}
.quick-view-panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(920px,calc(100vw - 28px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  background:var(--card);
  color:var(--text);
  border-radius:26px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
}
.quick-view-close{
  position:absolute;
  right:14px;
  top:14px;
  z-index:2;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:rgba(15,23,42,.08);
  color:var(--text);
  font-size:26px;
  cursor:pointer;
}
.quick-view-layout{display:grid;grid-template-columns:380px 1fr;gap:22px;padding:24px}
.quick-view-image{background:#f8fafc;border-radius:22px;display:grid;place-items:center;min-height:360px;overflow:hidden}
.quick-view-image img{width:100%;height:100%;object-fit:contain;padding:22px}
.quick-view-info h2{font-size:30px;line-height:1.12;margin:8px 0}
.quick-buy-box{grid-template-columns:96px 1fr 1fr}
.quick-detail-link{display:inline-flex;margin-top:12px;color:var(--brand);font-weight:850}
.quick-loading{padding:60px 24px;text-align:center;font-weight:850}.quick-loading.error{color:#b42318}
.variant-options.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
.review-section .section-head p{margin:4px 0 0;color:var(--muted)}
.review-score{min-width:150px;background:var(--card);border:1px solid var(--line);border-radius:18px;padding:12px;text-align:center;box-shadow:var(--shadow)}
.review-score b{font-size:32px;color:var(--brand);display:block}
.review-score span{color:#ffb020;display:block}
.review-score small{color:var(--muted)}
.review-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}
.review-list{display:grid;gap:12px}
.review-item{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 8px 28px rgba(15,23,42,.05)}
.review-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.review-head span{color:#ffb020}
.review-item p{margin:10px 0;color:var(--text)}
.review-item small{color:var(--muted)}
.review-form form{display:grid;gap:12px}
.review-form label{display:grid;gap:7px;font-weight:750}
.review-form select,.review-form textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px;background:var(--card);color:var(--text)}
.review-form textarea{min-height:120px}
.order-timeline{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:16px 0}
.timeline-step{position:relative;display:grid;gap:6px;place-items:center;text-align:center;color:var(--muted);font-size:12px;font-weight:750}
.timeline-step i{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eef2f7;color:#64748b;font-style:normal;font-weight:950}
.timeline-step.done i{background:#16a34a;color:#fff}
.timeline-step.done span{color:#16a34a}
.order-timeline.cancelled .timeline-step i{background:#fee2e2;color:#b42318}
.tracking-box{background:#ecfdf3;border:1px solid #86efac;border-radius:16px;padding:14px;margin:14px 0;color:#166534}
.tracking-box p{margin:5px 0 10px}
@media(max-width:900px){
  .quick-view-layout,.review-layout{grid-template-columns:1fr}
  .quick-view-image{min-height:260px}
  .quick-buy-box{grid-template-columns:1fr}
  .quick-view-info h2{font-size:24px}
}
@media(max-width:560px){
  .quick-view-btn{opacity:1;transform:none;right:8px;bottom:8px}
  .order-timeline{grid-template-columns:1fr;align-items:start}
  .timeline-step{display:flex;text-align:left;justify-content:flex-start}
}


/* V04.1 UI layout hotfix */
main{display:block;padding-top:14px}
.market-header{z-index:60}
.market-main{align-items:center}
.market-search-wrap{min-width:0}
.market-search{width:100%}
.market-keywords{overflow:auto;white-space:nowrap;scrollbar-width:none}
.market-keywords::-webkit-scrollbar{display:none}

/* Product card cleanup */
.product-card{
  position:relative;
  display:flex;
  flex-direction:column;
  height:100%;
}
.product-image{overflow:hidden}
.wishlist-form{
  position:absolute;
  left:12px;
  top:12px;
  bottom:auto !important;
  z-index:6;
  margin:0;
}
.wishlist-btn{
  width:40px;
  height:40px;
  border-radius:999px;
  box-shadow:0 10px 24px rgba(15,23,42,.10);
}
.product-info{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.product-name{
  min-height:52px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.price-row{
  align-items:flex-end;
  gap:8px;
}
.price-row b{
  font-size:16px;
  line-height:1.35;
  word-break:break-word;
}
.price-row del{
  font-size:12px;
}
.rating-row{
  gap:8px;
  font-size:12px;
}
.card-badges{
  min-height:28px;
}
.card-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.card-actions .btn{
  min-height:42px;
  font-size:14px;
  white-space:nowrap;
}
.card-actions .quick-view-btn{
  position:static;
  inset:auto;
  z-index:auto;
  grid-column:1 / -1;
  width:100%;
  opacity:1;
  transform:none;
  pointer-events:auto;
  border:1px solid #dbe2ea;
  border-radius:12px;
  padding:10px 12px;
  background:#f8fafc;
  color:#1f2937;
  font-size:13px;
  font-weight:800;
  box-shadow:none;
}
.card-actions .quick-view-btn:hover{
  background:#eef2f7;
}
html[data-theme="dark"] .card-actions .quick-view-btn{
  background:#0f172a;
  color:#e5e7eb;
  border-color:#334155;
}
.btn-card-cart,
.btn-card-buy{
  width:100%;
  justify-content:center;
}

/* Desktop and tablet header */
@media(max-width:1100px){
  .market-main{
    grid-template-columns:170px minmax(0,1fr) 62px;
    gap:14px;
  }
  .market-brand-text{
    font-size:17px;
  }
  .market-keywords{
    gap:12px;
  }
}

/* Mobile header + cards */
@media(max-width:720px){
  main{padding-top:10px}
  .market-top-inner{
    height:auto;
    min-height:34px;
    padding:7px 0;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
  }
  .market-top-left{
    display:none !important;
  }
  .market-top-right{
    width:100%;
    justify-content:flex-end;
    gap:10px;
    font-size:13px;
  }
  .market-main{
    grid-template-columns:minmax(0,1fr) 52px;
    grid-template-areas:
      "brand cart"
      "search search";
    gap:12px;
    padding:12px 0 10px;
  }
  .market-brand{
    grid-area:brand;
    min-width:0;
  }
  .market-brand-text{
    font-size:16px;
    line-height:1.2;
  }
  .market-logo-mark{
    width:42px;
    height:42px;
  }
  .market-search-wrap{
    grid-area:search;
    min-width:0;
  }
  .market-search input{
    height:48px;
    font-size:14px;
  }
  .market-search button{
    width:72px;
  }
  .market-cart{
    grid-area:cart;
    align-self:start;
    justify-self:end;
    width:48px;
    min-width:48px;
    padding-top:2px;
  }
  .market-keywords{
    gap:12px;
    padding:0 0 2px;
  }
  .market-keywords a{
    font-size:13px;
  }

  .product-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:12px;
  }
  .product-card{
    border-radius:16px;
  }
  .product-info{
    padding:12px;
  }
  .product-cat{
    font-size:12px;
  }
  .product-name{
    min-height:48px;
    font-size:15px;
  }
  .price-row b{
    font-size:15px;
  }
  .rating-row{
    font-size:11.5px;
  }
  .card-actions{
    grid-template-columns:1fr;
  }
  .card-actions .btn,
  .card-actions .quick-view-btn{
    min-height:40px;
    font-size:13px;
  }
  .wishlist-form{
    left:10px;
    top:10px;
  }
  .wishlist-btn{
    width:36px;
    height:36px;
  }
}

@media(max-width:420px){
  .container{
    width:min(100% - 16px, 1280px);
  }
  .market-brand-text{
    font-size:15px;
  }
  .market-top-right{
    font-size:12px;
    gap:8px;
  }
  .product-grid{
    gap:10px;
  }
  .product-info{
    padding:11px;
  }
  .product-name{
    font-size:14px;
    min-height:44px;
  }
  .price-row b{
    font-size:14px;
  }
}


/* V04.2 Marketplace UI - Shopee/Lazada-inspired layout, original styling */
:root{
  --market-orange:var(--brand);
  --market-orange-2:var(--brand2);
  --market-bg:#f5f5f5;
  --market-card:#ffffff;
  --market-line:#ececec;
}
body{
  background:var(--market-bg);
}
.container{
  width:min(1280px, calc(100% - 32px));
}
.market-header{
  background:linear-gradient(180deg,var(--market-orange) 0%,#f4512c 62%,var(--market-orange-2) 100%);
  box-shadow:0 2px 12px rgba(164,49,23,.16);
}
.market-top{
  font-size:13px;
}
.market-top-inner{
  height:34px;
}
.market-top-left a,
.market-top-left span,
.market-top-right>a,
.market-top-right .language-current,
.market-theme{
  font-size:13px;
  font-weight:700;
}
.market-main{
  grid-template-columns:230px minmax(0,1fr) 78px;
  gap:24px;
  padding:14px 0 10px;
  align-items:start;
}
.market-brand{
  padding-top:0;
}
.market-brand img,
.market-logo-mark{
  width:64px;
  height:54px;
  border-radius:7px;
}
.market-logo-mark{
  color:var(--market-orange);
}
.market-brand-text{
  max-width:150px;
  font-size:20px;
  line-height:1.1;
}
.market-search-wrap{
  gap:8px;
}
.market-search{
  height:46px;
  border-radius:4px;
  box-shadow:0 3px 10px rgba(112,32,15,.13);
}
.market-search input{
  font-size:15px;
}
.market-search button{
  width:76px;
  border-radius:4px;
  background:linear-gradient(135deg,var(--brand2),var(--brand));
  font-size:27px;
}
.market-keywords{
  gap:18px;
  padding-bottom:2px;
}
.market-keywords a{
  font-size:13px;
  font-weight:750;
  opacity:.96;
}
.market-cart{
  height:54px;
}
.market-cart-icon svg{
  width:36px;
  height:36px;
}
.market-cart b{
  top:-4px;
  right:4px;
}

/* homepage marketplace rhythm */
main{
  padding-top:0;
}
.hero-section.marketplace-hero{
  padding:18px 0 10px;
}
.marketplace-hero-grid{
  grid-template-columns:minmax(0,1fr) 310px;
  gap:14px;
}
.hero-main{
  height:330px;
  border-radius:12px;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.hero-copy h1{
  font-size:36px;
}
.hero-side{
  gap:14px;
}
.voucher-card,
.policy-card{
  border-radius:12px;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.voucher-card{
  background:#fff7f2;
  border:1px dashed #ffb38c;
}
.policy-card.market-mini-card{
  background:#fff;
}

/* service buttons similar marketplace shortcut icons */
.marketplace-service-strip{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:10px;
  margin-bottom:12px;
}
.marketplace-service-strip a{
  background:#fff;
  border:1px solid var(--market-line);
  border-radius:12px;
  padding:13px 8px;
  display:grid;
  place-items:center;
  gap:6px;
  min-height:82px;
  box-shadow:0 1px 3px rgba(0,0,0,.04);
  transition:.16s ease;
  text-align:center;
  font-weight:800;
}
.marketplace-service-strip a:hover{
  transform:translateY(-2px);
  color:var(--market-orange);
  box-shadow:0 8px 22px rgba(238,77,45,.10);
}
.marketplace-service-strip i{
  width:36px;
  height:36px;
  border-radius:50%;
  background:#fff1ec;
  display:grid;
  place-items:center;
  font-style:normal;
  font-size:20px;
}

/* voucher row */
.marketplace-voucher-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:12px;
}
.marketplace-voucher-strip>div{
  position:relative;
  overflow:hidden;
  background:#fff;
  border:1px solid #ffd6c7;
  border-radius:12px;
  padding:14px 16px 14px 18px;
  box-shadow:0 1px 4px rgba(0,0,0,.04);
}
.marketplace-voucher-strip>div:before,
.marketplace-voucher-strip>div:after{
  content:"";
  position:absolute;
  top:50%;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--market-bg);
  transform:translateY(-50%);
}
.marketplace-voucher-strip>div:before{left:-8px}
.marketplace-voucher-strip>div:after{right:-8px}
.marketplace-voucher-strip b{
  display:block;
  color:var(--market-orange);
  font-size:18px;
  letter-spacing:.03em;
}
.marketplace-voucher-strip span{
  color:#6b7280;
  font-size:13px;
}

/* categories */
.marketplace-categories-section{
  padding-top:10px;
}
.marketplace-category-grid{
  grid-template-columns:repeat(8,1fr);
  gap:1px;
  background:var(--market-line);
  border:1px solid var(--market-line);
  border-radius:12px;
  overflow:hidden;
}
.marketplace-category-grid .cat-card{
  border-radius:0;
  box-shadow:none;
  padding:14px 8px;
  background:#fff;
  min-height:128px;
  display:grid;
  align-content:center;
  gap:8px;
}
.marketplace-category-grid .cat-card:hover{
  color:var(--market-orange);
  background:#fffaf7;
}
.marketplace-category-grid .cat-card img{
  height:62px;
}

/* product sections */
.section{
  padding:18px 0;
}
.marketplace-section,
.marketplace-flash-box{
  background:#fff;
  border-radius:12px;
  border:1px solid var(--market-line);
  box-shadow:0 1px 4px rgba(0,0,0,.04);
  padding:0;
  overflow:hidden;
}
.marketplace-flash-box{
  padding:0;
}
.marketplace-section>.section-head,
.marketplace-flash-box>.section-head{
  padding:16px 18px;
  margin:0;
  border-bottom:1px solid var(--market-line);
}
.marketplace-flash-box>.section-head h2{
  color:var(--market-orange);
  text-transform:uppercase;
  letter-spacing:.02em;
}
.marketplace-tabs h2{
  font-size:22px;
}
.marketplace-tabs a,
.section-head a{
  color:var(--market-orange);
}
.marketplace-product-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:0;
  padding:12px;
  background:#fff;
}
.marketplace-product-grid .product-card{
  border-radius:4px;
  border:1px solid transparent;
  box-shadow:none;
}
.marketplace-product-grid .product-card:hover{
  border-color:var(--market-orange);
  box-shadow:0 2px 10px rgba(0,0,0,.12);
  transform:translateY(-1px);
}

/* Product card like marketplace tiles */
.marketplace-card{
  background:#fff;
  border-radius:4px;
  overflow:hidden;
  min-width:0;
}
.marketplace-image{
  background:#f6f7f8;
}
.marketplace-image img{
  object-fit:cover;
}
.market-sale-badge{
  right:8px;
  top:8px;
  border-radius:2px;
  background:#ffd839;
  color:var(--brand);
  font-size:13px;
  padding:4px 6px;
}
.market-sale-badge:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-5px;
  margin:auto;
  width:0;
  height:0;
  border-left:17px solid transparent;
  border-right:17px solid transparent;
  border-top:5px solid #ffd839;
}
.market-badge-dark{
  left:8px;
  top:8px;
  border-radius:3px;
  background:#0f172a;
  font-size:12px;
}
.marketplace-wishlist{
  left:auto;
  right:8px;
  top:auto;
  bottom:8px !important;
}
.marketplace-wishlist .wishlist-btn{
  width:34px;
  height:34px;
  font-size:17px;
}
.marketplace-quick{
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  opacity:0;
  transform:translateY(8px);
  border:0;
  border-radius:4px;
  background:rgba(238,77,45,.94);
  color:#fff;
  height:34px;
  font-weight:850;
  box-shadow:0 8px 18px rgba(238,77,45,.20);
}
.marketplace-card:hover .marketplace-quick{
  opacity:1;
  transform:translateY(0);
}
.marketplace-info{
  padding:10px 10px 12px;
  gap:7px;
}
.marketplace-line{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  color:#6b7280;
  font-size:12px;
}
.mall-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:2px;
  background:var(--brand);
  color:#fff;
  padding:1px 4px;
  font-size:11px;
  font-weight:900;
  line-height:1.35;
}
.marketplace-name{
  min-height:38px;
  font-size:14px;
  line-height:1.35;
  font-weight:650;
}
.marketplace-price{
  min-height:auto;
  margin:2px 0 0;
  display:flex;
  align-items:flex-end;
  flex-wrap:wrap;
}
.marketplace-price b{
  color:var(--brand);
  font-size:18px;
  font-weight:900;
  line-height:1.25;
}
.marketplace-price del{
  color:#9ca3af;
  font-size:12px;
}
.marketplace-vouchers{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  min-height:24px;
}
.marketplace-vouchers span{
  border:1px solid #ffbca9;
  color:var(--brand);
  border-radius:2px;
  padding:1px 4px;
  font-size:11px;
  font-weight:750;
  line-height:1.5;
}
.marketplace-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  color:#6b7280;
  font-size:12px;
}
.marketplace-stars{
  color:#f59e0b;
}
.marketplace-actions{
  grid-template-columns:1fr 1fr;
  gap:6px;
  margin-top:4px;
}
.marketplace-actions .btn{
  min-height:34px;
  border-radius:4px;
  padding:7px 8px;
  font-size:12px;
}
.marketplace-actions .quick-view-btn{
  display:none;
}
.btn-card-cart{
  background:linear-gradient(135deg,var(--brand2),var(--brand));
  box-shadow:none;
}
.btn-card-buy{
  background:#fff;
  color:var(--brand);
  border:1px solid var(--brand);
}
.btn-card-buy:hover{
  background:#fff6f2;
}

/* responsive marketplace */
@media(max-width:1180px){
  .marketplace-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .marketplace-category-grid{
    grid-template-columns:repeat(6,1fr);
  }
}
@media(max-width:900px){
  .marketplace-hero-grid{
    grid-template-columns:1fr;
  }
  .hero-main{
    height:280px;
  }
  .hero-side{
    grid-template-columns:1fr 1fr;
  }
  .marketplace-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .marketplace-service-strip{
    grid-template-columns:repeat(5, minmax(90px, 1fr));
    overflow:auto;
    scrollbar-width:none;
  }
  .marketplace-service-strip::-webkit-scrollbar{display:none}
  .marketplace-voucher-strip{
    grid-template-columns:repeat(3, minmax(220px, 1fr));
    overflow:auto;
    scrollbar-width:none;
  }
  .marketplace-voucher-strip::-webkit-scrollbar{display:none}
}
@media(max-width:720px){
  .container{
    width:min(100% - 16px,1280px);
  }
  .market-top-inner{
    min-height:32px;
    padding:6px 0;
  }
  .market-top-right{
    justify-content:flex-start;
    overflow:auto;
    scrollbar-width:none;
    flex-wrap:nowrap;
  }
  .market-top-right::-webkit-scrollbar{display:none}
  .market-top-right>a,
  .market-top-right .language-current,
  .market-theme{
    font-size:12px;
    padding:0 8px;
  }
  .market-main{
    grid-template-columns:1fr 50px;
    grid-template-areas:"brand cart" "search search";
    padding:10px 0 9px;
    gap:10px;
  }
  .market-brand{grid-area:brand}
  .market-logo-mark,
  .market-brand img{
    width:44px;
    height:44px;
  }
  .market-brand-text{
    max-width:230px;
    font-size:17px;
  }
  .market-cart{
    grid-area:cart;
    height:44px;
    width:48px;
    justify-self:end;
  }
  .market-cart-icon svg{
    width:30px;
    height:30px;
  }
  .market-search-wrap{grid-area:search}
  .market-search{
    height:44px;
  }
  .market-search button{
    height:36px;
    width:58px;
  }
  .market-keywords{
    gap:12px;
  }
  .market-keywords a{
    font-size:12.5px;
  }

  .hero-section.marketplace-hero{
    padding:10px 0 8px;
  }
  .hero-main{
    height:210px;
    border-radius:10px;
  }
  .hero-copy{
    left:18px;
    right:18px;
  }
  .hero-copy h1{
    font-size:25px;
  }
  .hero-side{
    display:none;
  }
  .marketplace-service-strip{
    grid-template-columns:repeat(5, 86px);
    gap:8px;
    margin-top:8px;
  }
  .marketplace-service-strip a{
    min-height:74px;
    padding:10px 6px;
    font-size:12px;
  }
  .marketplace-service-strip i{
    width:32px;
    height:32px;
    font-size:18px;
  }
  .marketplace-category-grid{
    grid-template-columns:repeat(4,1fr);
    border-radius:10px;
  }
  .marketplace-category-grid .cat-card{
    min-height:104px;
    padding:10px 6px;
    font-size:12px;
  }
  .marketplace-category-grid .cat-card img{
    height:50px;
  }
  .marketplace-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:8px;
    gap:8px;
  }
  .marketplace-section>.section-head,
  .marketplace-flash-box>.section-head{
    padding:12px 14px;
  }
  .marketplace-tabs h2,
  .marketplace-flash-box>.section-head h2{
    font-size:19px;
  }
  .marketplace-info{
    padding:9px;
  }
  .marketplace-name{
    font-size:13.5px;
    min-height:37px;
  }
  .marketplace-price b{
    font-size:16px;
  }
  .marketplace-vouchers span{
    font-size:10.5px;
  }
  .marketplace-actions{
    grid-template-columns:1fr;
  }
  .marketplace-actions .btn{
    min-height:35px;
    font-size:12px;
  }
  .marketplace-quick{
    opacity:1;
    transform:none;
    height:30px;
    font-size:12px;
    left:7px;
    right:7px;
    bottom:7px;
  }
}
@media(max-width:420px){
  .market-top-right>a:nth-of-type(1),
  .market-top-right>a:nth-of-type(2){
    display:none;
  }
  .market-brand-text{
    font-size:16px;
    max-width:190px;
  }
  .marketplace-category-grid{
    grid-template-columns:repeat(4,1fr);
  }
  .marketplace-product-grid{
    gap:7px;
  }
  .marketplace-info{
    padding:8px;
  }
  .marketplace-name{
    font-size:13px;
  }
  .marketplace-price b{
    font-size:15px;
  }
  .marketplace-actions .btn{
    font-size:11.5px;
  }
}


/* V04.6 Shopee-style product detail gallery */
.product-gallery-v46{
  align-self:start;
}
.main-img-wrap-v46{
  width:100%;
  aspect-ratio:1/1;
  border-radius:18px;
  background:#fff;
  border:1px solid #eef2f7;
  display:grid;
  place-items:center;
  overflow:hidden;
}
.product-gallery-v46 .main-img{
  width:100%;
  height:100%;
  aspect-ratio:auto;
  object-fit:contain;
  border-radius:0;
  background:#fff;
  padding:8px;
}
.product-thumbs-v46{
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr));
  gap:10px;
  margin-top:14px;
  overflow:visible;
}
.product-thumbs-v46 button{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  border:2px solid transparent;
  border-radius:4px;
  padding:0;
  background:#fff;
  cursor:pointer;
  overflow:hidden;
}
.product-thumbs-v46 button.active,
.product-thumbs-v46 button:hover{
  border-color:var(--brand);
}
.product-thumbs-v46 button.active:after{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid var(--brand);
  pointer-events:none;
}
.product-thumbs-v46 img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:0;
}
@media(max-width:900px){
  .product-thumbs-v46{
    grid-template-columns:repeat(6, minmax(0,1fr));
    gap:8px;
  }
}
@media(max-width:560px){
  .product-thumbs-v46{
    display:flex;
    gap:8px;
    overflow:auto;
    scrollbar-width:none;
  }
  .product-thumbs-v46::-webkit-scrollbar{display:none}
  .product-thumbs-v46 button{
    flex:0 0 64px;
  }
}


/* V04.7 UX fixes */
.market-top-left a:first-child,
.market-top-left a:nth-child(2){
  display:inline-flex;
}
.language-menu{
  position:relative;
  padding:6px 0;
}
.language-current{
  pointer-events:auto;
}
.language-dropdown{
  top:100%;
}
.language-dropdown:before{
  content:"";
  position:absolute;
  top:-10px;
  left:0;
  right:0;
  height:10px;
  border:0;
  background:transparent;
}
.language-menu:hover .language-dropdown{
  display:block;
}

/* Header hidden on cart/checkout; compact back header only */
.compact-commerce-page .market-header,
.compact-commerce-page .footer,
.compact-commerce-page .mobile-bottom-nav{
  display:none !important;
}
.compact-commerce-header{
  position:sticky;
  top:0;
  z-index:120;
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 1px 8px rgba(15,23,42,.06);
}
.compact-commerce-inner{
  height:58px;
  display:grid;
  grid-template-columns:44px 1fr auto;
  align-items:center;
  gap:10px;
}
.compact-back-btn{
  width:38px;
  height:38px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#f3f4f6;
  color:#111827;
  font-size:32px;
  line-height:1;
  font-weight:400;
}
.compact-commerce-inner strong{
  font-size:18px;
  font-weight:900;
}
.compact-home-link{
  color:var(--brand);
  font-weight:800;
  font-size:13px;
}

/* More breathing room between marketplace blocks */
.marketplace-section,
.marketplace-flash-box{
  margin-top:24px;
  margin-bottom:28px;
}
.marketplace-product-grid{
  gap:12px;
  padding:14px;
}
.marketplace-voucher-strip{
  margin-bottom:28px;
}
.marketplace-service-strip{
  margin-bottom:16px;
}
.section + .section,
.marketplace-section + .marketplace-section,
.marketplace-flash-box + .marketplace-section{
  margin-top:28px;
}

/* Variant classification is clearly clickable */
.variant-option{
  cursor:pointer;
  user-select:none;
}
.variant-option input{
  pointer-events:auto;
}
.variant-option.active,
.variant-option:has(input:checked){
  border-color:var(--brand) !important;
  box-shadow:0 0 0 2px rgba(238,77,45,.12);
}
.quick-view-modal .variant-option{
  position:relative;
  z-index:2;
}
.quick-view-modal .variant-options{
  position:relative;
  z-index:3;
}

/* Dark mode search/header fixes */
html[data-theme="dark"] body{
  background:#0b1220;
}
html[data-theme="dark"] .market-header{
  background:linear-gradient(180deg,#e84325 0%,var(--brand) 58%,#ff6500 100%);
}
html[data-theme="dark"] .market-search{
  background:#fff !important;
  border:2px solid rgba(255,255,255,.92);
  box-shadow:0 4px 12px rgba(0,0,0,.24);
}
html[data-theme="dark"] .market-search input{
  background:#fff !important;
  color:#111827 !important;
}
html[data-theme="dark"] .market-search input::placeholder{
  color:#6b7280 !important;
}
html[data-theme="dark"] .market-search button{
  background:var(--brand) !important;
  color:#fff !important;
}
html[data-theme="dark"] .market-keywords a,
html[data-theme="dark"] .market-top-right a,
html[data-theme="dark"] .market-top-left a,
html[data-theme="dark"] .market-top-left span,
html[data-theme="dark"] .language-current,
html[data-theme="dark"] .market-theme{
  color:#fff !important;
}
html[data-theme="dark"] .compact-commerce-header{
  background:#111827;
  border-color:#263244;
}
html[data-theme="dark"] .compact-back-btn{
  background:#1f2937;
  color:#fff;
}

/* Sticky checkout/cart main payment buttons on mobile */
@media(max-width:720px){
  .market-top-left{
    display:none !important;
  }
  .market-top-right{
    gap:12px;
  }
  .market-top-right>a:nth-of-type(1){
    display:inline-flex !important;
  }
  .market-top-right>a:nth-of-type(2){
    display:inline-flex !important;
  }
  .market-top-right .market-account{
    max-width:95px;
  }
  .language-dropdown{
    left:auto;
    right:0;
  }
  .marketplace-section,
  .marketplace-flash-box{
    margin-top:22px;
    margin-bottom:30px;
  }
  .marketplace-product-grid{
    gap:12px;
    padding:10px;
  }

  body.cart-page,
  body.checkout-page{
    padding-bottom:88px;
  }
  .cart-page .cart-selected-summary,
  .checkout-page .order-summary{
    position:static;
  }
  .cart-page .cart-selected-summary button[name="redirect"],
  .checkout-page .order-summary button[name="checkout_action"][value="place_order"]{
    position:fixed;
    left:16px;
    right:16px;
    bottom:14px;
    z-index:100;
    width:calc(100% - 32px);
    min-height:52px;
    border-radius:14px;
    box-shadow:0 16px 34px rgba(238,77,45,.30);
  }
  .cart-page .cart-selected-summary a.btn.outline{
    display:none;
  }
}

@media(max-width:420px){
  .market-top-right{
    gap:10px;
  }
  .market-top-right>a:nth-of-type(1),
  .market-top-right>a:nth-of-type(2){
    display:inline-flex !important;
  }
}


/* V04.8 Shopee-like font tuning */
body,
input,
button,
select,
textarea{
  font-family:Arial,"Helvetica Neue",Helvetica,sans-serif !important;
  letter-spacing:0;
}
body{
  font-size:14px;
}
.product-name,
.marketplace-name{
  font-weight:500;
}
.marketplace-price b,
.price-row b{
  font-weight:500;
}
.market-brand-text,
.section-head h2,
.page-title h1{
  font-weight:700;
}


/* V04.9 configured colors + side banners */
.side-banner-card{
  position:relative;
  display:block;
  min-height:155px;
  overflow:hidden;
  border-radius:12px;
  background:#fff;
  border:1px solid #f0d5ca;
  box-shadow:0 1px 5px rgba(0,0,0,.06);
}
.side-banner-card img{
  width:100%;
  height:100%;
  min-height:155px;
  object-fit:cover;
}
.side-banner-card>div{
  position:absolute;
  inset:0;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  color:#fff;
  background:linear-gradient(90deg,rgba(15,23,42,.62),rgba(15,23,42,.15));
  text-shadow:0 2px 12px rgba(0,0,0,.35);
}
.side-banner-card span{
  width:max-content;
  padding:4px 9px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.24);
  font-size:12px;
  margin-bottom:8px;
}
.side-banner-card b{
  font-size:22px;
  line-height:1.1;
  max-width:230px;
}
.side-banner-card small{
  margin-top:8px;
  max-width:240px;
}
.side-banner-card.is-placeholder{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
}
.side-banner-card.is-placeholder img{
  opacity:.24;
}
.market-header,
.btn,
.search-box button,
.market-search button,
.btn-card-cart{
  background:linear-gradient(135deg,var(--brand),var(--brand2));
}
.marketplace-price b,
.marketplace-tabs a,
.section-head a,
.marketplace-flash-box>.section-head h2,
.voucher-card b,
.marketplace-voucher-strip b,
.marketplace-service-strip a:hover{
  color:var(--brand);
}
.marketplace-vouchers span,
.btn-card-buy{
  color:var(--brand);
  border-color:var(--brand);
}
.marketplace-product-grid .product-card:hover,
.product-thumbs-v46 button.active,
.product-thumbs-v46 button:hover{
  border-color:var(--brand);
}
@media(max-width:900px){
  .side-banner-card{min-height:120px}
  .side-banner-card img{min-height:120px}
}


/* V04.10 Frontend layout hotfix */
.container{
  width:min(1280px, calc(100% - 32px));
}
.marketplace-hero{
  padding-top:18px;
}
.marketplace-hero-grid{
  grid-template-columns:minmax(0,1fr) 330px;
  gap:16px;
}
.hero-main{
  height:330px;
  border-radius:12px;
}
.hero-copy{
  left:28px;
  max-width:540px;
}
.hero-copy h1{
  font-size:38px;
  line-height:1.05;
}
.hero-side-banners{
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:12px;
}
.side-banner-card{
  min-height:159px;
}
.side-banner-card img{
  min-height:159px;
}
.marketplace-service-strip,
.marketplace-voucher-strip,
.marketplace-category-grid,
.marketplace-section,
.marketplace-flash-box{
  max-width:1280px;
}
.marketplace-section,
.marketplace-flash-box{
  margin-top:22px;
  margin-bottom:30px;
  overflow:visible;
}
.marketplace-product-grid{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
  padding:16px;
}
.marketplace-product-grid .marketplace-card{
  border:1px solid #eef0f4;
  border-radius:6px;
  overflow:hidden;
  display:flex;
  min-height:420px;
  height:100%;
}
.marketplace-card:hover{
  z-index:3;
}
.marketplace-image{
  flex:0 0 auto;
  width:100%;
  aspect-ratio:1/1;
}
.marketplace-info{
  flex:1;
  display:flex;
  flex-direction:column;
  padding:10px 12px 12px;
}
.marketplace-name{
  min-height:40px;
}
.marketplace-price{
  min-height:44px;
}
.marketplace-vouchers{
  min-height:24px;
}
.marketplace-meta{
  margin-top:auto;
  min-height:22px;
}
.marketplace-actions{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
  padding-right:0;
  z-index:2;
}
.marketplace-actions .btn{
  min-height:38px;
  height:38px;
  border-radius:4px;
  line-height:1;
  padding:0 8px;
}
.marketplace-wishlist{
  left:auto!important;
  right:10px!important;
  top:46px!important;
  bottom:auto!important;
  z-index:5;
}
.marketplace-wishlist .wishlist-btn{
  width:32px;
  height:32px;
  background:rgba(255,255,255,.96);
  box-shadow:0 6px 18px rgba(15,23,42,.12);
}
.marketplace-quick{
  left:10px;
  right:10px;
  bottom:10px;
}
.post-grid .post-card{
  overflow:hidden;
}
@media(max-width:1180px){
  .marketplace-product-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:900px){
  .marketplace-hero-grid{
    grid-template-columns:1fr;
  }
  .hero-side-banners{
    grid-template-columns:1fr 1fr;
    grid-template-rows:auto;
  }
  .marketplace-product-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:720px){
  .container{
    width:min(100% - 16px, 1280px);
  }
  .marketplace-product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:10px;
  }
  .marketplace-product-grid .marketplace-card{
    min-height:390px;
  }
  .hero-main{
    height:210px;
  }
  .hero-side-banners{
    display:none;
  }
  .marketplace-actions{
    grid-template-columns:1fr;
  }
  .marketplace-actions .btn{
    min-height:36px;
    height:36px;
  }
  .marketplace-wishlist{
    top:42px!important;
    right:8px!important;
  }
}


/* V04.12 Gallery carousel + product card price alignment */
.product-thumbs-shell-v412{
  position:relative;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 34px;
  align-items:center;
  gap:8px;
  margin-top:14px;
}
.product-thumbs-shell-v412 .product-thumbs-v46{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-behavior:smooth;
  scrollbar-width:none;
  margin-top:0 !important;
  padding:2px 0;
}
.product-thumbs-shell-v412 .product-thumbs-v46::-webkit-scrollbar{
  display:none;
}
.product-thumbs-shell-v412 .product-thumbs-v46 button{
  flex:0 0 78px;
  width:78px;
  height:78px;
  aspect-ratio:1/1;
}
.thumb-arrow{
  width:34px;
  height:54px;
  border:0;
  border-radius:10px;
  background:rgba(17,24,39,.12);
  color:#111827;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.thumb-arrow:hover{
  background:var(--brand);
  color:#fff;
}
.marketplace-card .marketplace-price,
.marketplace-card .price-row.marketplace-price{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:2px !important;
  min-height:48px;
  margin:4px 0 0;
}
.marketplace-card .marketplace-price b{
  display:block;
  width:100%;
  color:var(--brand);
  font-size:18px;
  line-height:1.22;
  font-weight:500;
}
.marketplace-card .marketplace-price del{
  display:block;
  width:max-content;
  max-width:100%;
  color:#9ca3af;
  font-size:12px;
  line-height:1.2;
  margin-top:2px;
}
.marketplace-card .marketplace-info{
  min-height:214px;
}
.marketplace-card .marketplace-vouchers{
  min-height:26px;
}
.marketplace-card .marketplace-meta{
  margin-top:auto;
}
@media(max-width:720px){
  .product-thumbs-shell-v412{
    grid-template-columns:30px minmax(0,1fr) 30px;
    gap:6px;
  }
  .product-thumbs-shell-v412 .product-thumbs-v46 button{
    flex-basis:64px;
    width:64px;
    height:64px;
  }
  .thumb-arrow{
    width:30px;
    height:46px;
    font-size:26px;
  }
  .marketplace-card .marketplace-price b{
    font-size:15px;
  }
}


/* V04.13 account fixed layout + mobile header clean */
.account-avatar-uploader{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px;
  border:1px dashed var(--line);
  border-radius:18px;
  background:#fafafa;
}
.account-avatar-edit{
  position:relative;
  width:86px;
  height:86px;
  border-radius:999px;
  overflow:hidden;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  display:grid;
  place-items:center;
  color:#fff;
  font-size:32px;
  font-weight:900;
  flex:0 0 auto;
}
.account-avatar-edit img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.avatar-update-btn{
  position:absolute;
  left:6px;
  right:6px;
  bottom:6px;
  height:26px;
  border-radius:999px;
  background:rgba(17,24,39,.78);
  color:#fff!important;
  display:grid!important;
  place-items:center;
  cursor:pointer;
  font-size:11px!important;
  font-weight:800!important;
  gap:0!important;
}
.avatar-update-btn input{
  display:none;
}
.account-avatar-uploader b,
.account-avatar-uploader small{
  display:block;
}
.account-page .account-panel{
  overflow:auto;
  scrollbar-width:thin;
}
@media(min-width:901px){
  body.account-page{
    height:100vh;
    overflow:hidden;
  }
  body.account-page .market-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:100;
  }
  body.account-page main{
    height:calc(100vh - 86px);
    padding-top:106px;
    padding-bottom:104px;
    overflow:hidden;
  }
  body.account-page .page-title{
    padding:0 0 14px;
  }
  body.account-page .account-grid{
    height:calc(100vh - 250px);
    overflow:hidden;
    align-items:stretch;
  }
  body.account-page .account-sidebar{
    height:100%;
    overflow:auto;
  }
  body.account-page .account-panel{
    height:100%;
    overflow:auto;
  }
  body.account-page .footer{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:90;
    padding:16px 0;
    max-height:88px;
    overflow:hidden;
  }
  body.account-page .footer-grid{
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:18px;
  }
  body.account-page .footer h3,
  body.account-page .footer h4{
    margin:0 0 4px;
  }
  body.account-page .footer p,
  body.account-page .footer a{
    font-size:12px;
    margin:2px 0;
  }
}
@media(max-width:720px){
  .market-top,
  .market-brand,
  .market-keywords{
    display:none!important;
  }
  .market-header .market-main{
    grid-template-columns:minmax(0,1fr) 48px!important;
    grid-template-areas:"search cart"!important;
    gap:8px!important;
    padding:8px 0!important;
  }
  .market-search-wrap{
    grid-area:search!important;
  }
  .market-cart{
    grid-area:cart!important;
    width:48px!important;
    height:44px!important;
  }
  .market-search{
    height:44px!important;
  }
  .market-search button{
    width:54px!important;
  }
  .account-avatar-uploader{
    align-items:flex-start;
  }
}


/* V04.13 account fixed frame offset tuning */
@media(min-width:901px){
  body.account-page main{
    padding-top:132px;
    padding-bottom:98px;
    height:100vh;
  }
  body.account-page .account-grid{
    height:calc(100vh - 312px);
  }
}


/* V04.17 Frontend polish: gallery arrows, language, article images, account camera */
.language-current{
  gap:4px;
}
.language-current:after{
  display:none!important;
}
.product-thumbs-shell-v412{
  grid-template-columns:38px minmax(0,1fr) 38px!important;
  gap:10px!important;
}
.thumb-arrow{
  width:38px!important;
  height:58px!important;
  border:1px solid #e5e7eb!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#111827!important;
  font-size:28px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.10);
  transition:.16s ease;
}
.thumb-arrow:hover{
  background:var(--brand)!important;
  color:#fff!important;
  border-color:var(--brand)!important;
  transform:translateY(-1px);
}
.product-thumbs-shell-v412 .product-thumbs-v46 button{
  border-radius:8px!important;
  background:#fff;
}
.article-layout{
  max-width:980px;
}
.article-cover,
.article-content img,
.article-image img{
  width:100%;
  border-radius:22px;
  object-fit:cover;
  box-shadow:0 16px 44px rgba(15,23,42,.08);
}
.article-cover{
  max-height:none;
  aspect-ratio:16/8.2;
}
.article-content{
  overflow:hidden;
}
.article-content .article-image,
.article-content figure{
  margin:26px 0;
}
.article-content img{
  margin:22px 0;
}
.article-content p img{
  margin:18px 0;
}
.account-avatar-sidebar-edit{
  position:relative;
  overflow:hidden;
}
.avatar-camera-btn{
  position:absolute;
  right:10px;
  bottom:10px;
  width:38px;
  height:38px;
  border-radius:999px;
  background:rgba(17,24,39,.84);
  color:#fff;
  display:grid!important;
  place-items:center;
  cursor:pointer;
  border:2px solid rgba(255,255,255,.9);
  box-shadow:0 10px 22px rgba(15,23,42,.22);
}
.avatar-camera-btn input{
  display:none;
}
.avatar-camera-btn span{
  display:grid;
  place-items:center;
  font-size:17px;
  line-height:1;
}
.account-avatar-uploader{
  display:none!important;
}
@media(max-width:720px){
  .product-thumbs-shell-v412{
    grid-template-columns:32px minmax(0,1fr) 32px!important;
  }
  .thumb-arrow{
    width:32px!important;
    height:48px!important;
    font-size:24px!important;
  }
  .article-cover{
    aspect-ratio:16/9;
    border-radius:16px;
  }
  .article-content img,
  .article-image img{
    border-radius:16px;
  }
}


/* V04.22 Blog uploaded image gallery */
.article-uploaded-gallery{
  margin-top:26px;
  display:grid;
  gap:22px;
}
.article-uploaded-image{
  margin:0;
}
.article-uploaded-image img{
  display:block;
  width:100%;
  border-radius:22px;
  object-fit:cover;
  box-shadow:0 16px 44px rgba(15,23,42,.08);
  background:#eef2f7;
}
@media(max-width:720px){
  .article-uploaded-gallery{
    gap:16px;
  }
  .article-uploaded-image img{
    border-radius:16px;
  }
}


/* V04.25 customer hover menu + Shopee-style purchase list */
.market-user-menu{
  position:relative;
  display:inline-flex;
  align-items:center;
}
.market-user-trigger{
  border:0;
  background:transparent;
  color:#fff;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:0 10px;
  cursor:pointer;
  font:inherit;
  font-weight:650;
  text-shadow:0 1px 1px rgba(0,0,0,.08);
}
.market-user-avatar{
  width:24px;
  height:24px;
  border-radius:999px;
  overflow:hidden;
  background:#fff;
  color:var(--brand);
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  box-shadow:0 0 0 1px rgba(255,255,255,.45);
}
.market-user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.market-user-name{
  max-width:132px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.market-user-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:190px;
  background:#fff;
  color:#111827;
  border:1px solid rgba(15,23,42,.08);
  border-radius:4px;
  box-shadow:0 12px 32px rgba(15,23,42,.18);
  padding:6px 0;
  display:none;
  z-index:100;
}
.market-user-dropdown:before{
  content:"";
  position:absolute;
  top:-8px;
  right:28px;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:8px solid #fff;
}
.market-user-dropdown a{
  display:block;
  color:#111827!important;
  padding:10px 14px;
  font-weight:650;
  text-shadow:none;
  white-space:nowrap;
}
.market-user-dropdown a:hover{
  color:var(--brand)!important;
  background:#fff3ef;
}
.market-user-menu:hover .market-user-dropdown,
.market-user-menu:focus-within .market-user-dropdown{
  display:block;
}

/* Purchase center */
.purchase-panel{
  margin-top:30px;
}
.purchase-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.purchase-head h2{
  margin:0;
  font-size:26px;
}
.purchase-head p{
  margin:4px 0 0;
  color:var(--muted);
}
.purchase-tabs{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px 16px 0 0;
  overflow:hidden;
}
.purchase-tabs a{
  min-height:54px;
  display:grid;
  place-items:center;
  text-align:center;
  padding:0 10px;
  font-weight:700;
  color:#2f3643;
  border-bottom:2px solid transparent;
  background:var(--card);
}
.purchase-tabs a:hover{
  color:var(--brand);
}
.purchase-tabs a.active{
  color:var(--brand);
  border-bottom-color:var(--brand);
}
.purchase-search{
  display:grid;
  grid-template-columns:38px 1fr auto;
  align-items:center;
  height:54px;
  background:#f1f2f4;
  border:1px solid var(--line);
  border-top:0;
  padding:0 14px;
  margin-bottom:12px;
}
.purchase-search span{
  color:#9aa1ad;
  font-size:28px;
  line-height:1;
}
.purchase-search input{
  border:0!important;
  background:transparent!important;
  outline:0;
  height:100%;
  padding:0!important;
  color:var(--text);
  font-size:14px;
}
.purchase-search button{
  border:0;
  background:transparent;
  color:var(--brand);
  font-weight:800;
  cursor:pointer;
  padding:0 8px;
}
.purchase-list{
  display:grid;
  gap:12px;
}
.purchase-empty{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:28px;
  color:var(--muted);
  text-align:center;
}
.purchase-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:3px;
  box-shadow:0 4px 18px rgba(15,23,42,.04);
  overflow:hidden;
}
.purchase-store-row{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 20px;
  border-bottom:1px solid var(--line);
}
.purchase-store{
  min-width:0;
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.mall-badge{
  display:inline-flex;
  align-items:center;
  height:20px;
  padding:0 5px;
  background:#d0011b;
  color:#fff;
  border-radius:2px;
  font-size:12px;
  font-weight:850;
}
.purchase-store b{
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.purchase-store small{
  color:var(--muted);
  flex-basis:100%;
  font-size:12px;
  margin-left:0;
}
.purchase-status{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  color:#009b86;
}
.purchase-status i{
  width:1px;
  height:18px;
  background:var(--line);
}
.purchase-status b{
  color:var(--brand);
  font-weight:700;
  letter-spacing:.02em;
}
.purchase-status b.is-muted{
  color:#6b7280;
}
.ship-ok{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:14px;
}
.purchase-item{
  display:grid;
  grid-template-columns:92px minmax(0,1fr) 150px;
  gap:14px;
  padding:16px 20px;
  border-bottom:1px solid var(--line);
}
.purchase-thumb{
  width:82px;
  height:82px;
  border:1px solid var(--line);
  background:#f8fafc;
  display:block;
}
.purchase-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.purchase-item-info{
  min-width:0;
}
.purchase-title{
  display:block;
  color:var(--text);
  font-size:16px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.purchase-title:hover{
  color:var(--brand);
}
.purchase-variant{
  margin-top:6px;
  color:var(--muted);
  font-size:14px;
}
.purchase-qty{
  margin-top:4px;
  font-weight:700;
}
.purchase-price{
  text-align:right;
  display:grid;
  align-content:center;
  gap:3px;
}
.purchase-price b{
  color:var(--brand);
  font-size:15px;
}
.purchase-price span{
  color:var(--muted);
  font-size:13px;
}
.purchase-total{
  display:flex;
  justify-content:flex-end;
  align-items:baseline;
  gap:12px;
  padding:14px 20px 8px;
  background:#fffdfc;
}
.purchase-total b{
  color:var(--brand);
  font-size:26px;
  font-weight:500;
}
.purchase-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:8px 20px 18px;
  background:#fffdfc;
}
.purchase-review-note{
  margin-right:auto;
  color:var(--muted);
  font-size:13px;
}
.purchase-btn{
  min-width:150px;
  height:40px;
  border:1px solid var(--line);
  background:#fff;
  color:#374151;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:3px;
  font-weight:700;
  padding:0 14px;
}
.purchase-btn.primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.purchase-btn:hover{
  border-color:var(--brand);
  color:var(--brand);
}
.purchase-btn.primary:hover{
  color:#fff;
  filter:brightness(.98);
}

html[data-theme="dark"] .market-user-dropdown{
  background:#111827;
  border-color:#263244;
}
html[data-theme="dark"] .market-user-dropdown:before{
  border-bottom-color:#111827;
}
html[data-theme="dark"] .market-user-dropdown a{
  color:#e5e7eb!important;
}
html[data-theme="dark"] .purchase-tabs a,
html[data-theme="dark"] .purchase-card,
html[data-theme="dark"] .purchase-total,
html[data-theme="dark"] .purchase-actions{
  background:var(--card);
}
html[data-theme="dark"] .purchase-search{
  background:#0f172a;
}
html[data-theme="dark"] .purchase-btn{
  background:#0f172a;
  color:#e5e7eb;
  border-color:#263244;
}
html[data-theme="dark"] .purchase-btn.primary{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}

@media(max-width:900px){
  .purchase-tabs{
    display:flex;
    overflow:auto;
    scrollbar-width:none;
  }
  .purchase-tabs::-webkit-scrollbar{
    display:none;
  }
  .purchase-tabs a{
    min-width:132px;
  }
  .purchase-store-row{
    align-items:flex-start;
    flex-direction:column;
  }
  .purchase-item{
    grid-template-columns:76px minmax(0,1fr);
  }
  .purchase-thumb{
    width:70px;
    height:70px;
  }
  .purchase-price{
    grid-column:2;
    text-align:left;
  }
  .purchase-actions{
    flex-wrap:wrap;
  }
  .purchase-review-note{
    flex-basis:100%;
  }
  .purchase-btn{
    flex:1 1 160px;
    min-width:0;
  }
}
@media(max-width:560px){
  .market-user-name{
    max-width:90px;
  }
  .purchase-search{
    grid-template-columns:30px 1fr;
  }
  .purchase-search button{
    grid-column:1 / -1;
    height:34px;
    background:#fff;
    border-radius:8px;
    margin-bottom:8px;
  }
  .purchase-total b{
    font-size:22px;
  }
  .purchase-store-row,
  .purchase-item,
  .purchase-actions,
  .purchase-total{
    padding-left:12px;
    padding-right:12px;
  }
}


/* V04.26 hover-only user menu + independent account tabs */
.market-user-menu{
  padding-bottom:10px;
  margin-bottom:-10px;
}
.market-user-trigger{
  user-select:none;
  cursor:default!important;
}
.market-user-dropdown{
  top:100%!important;
  margin-top:8px;
}
.market-user-dropdown:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-12px;
  height:12px;
}
.market-user-menu:hover .market-user-dropdown,
.market-user-menu:focus-within .market-user-dropdown{
  display:block!important;
}
.account-tabbar{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  margin:-4px 0 22px;
  background:rgba(127,127,127,.06);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
}
.account-tabbar a{
  min-height:48px;
  display:grid;
  place-items:center;
  font-weight:850;
  color:var(--muted);
  border-bottom:2px solid transparent;
  background:var(--card);
}
.account-tabbar a + a{
  border-left:1px solid var(--line);
}
.account-tabbar a.active{
  color:var(--brand);
  border-bottom-color:var(--brand);
  background:#fff7f4;
}
.account-sidebar nav a.active{
  background:#fff3ef;
  color:var(--brand);
}
.purchase-panel.is-standalone{
  margin-top:0;
}
.purchase-panel.is-standalone .purchase-head h2{
  font-size:28px;
}
html[data-theme="dark"] .account-tabbar a.active,
html[data-theme="dark"] .account-sidebar nav a.active{
  background:#1f2937;
}
@media(max-width:720px){
  .account-tabbar{
    margin-top:0;
    border-radius:14px;
  }
  .account-tabbar a{
    min-height:44px;
  }
  .market-user-menu{
    padding-bottom:0;
    margin-bottom:0;
  }
}


/* V04.27 Shopee-style order detail page */
.order-detail-page{
  padding:18px 0 44px;
  background:#f5f5f5;
}
.order-detail-shell{
  max-width:1200px;
}
.order-detail-topbar{
  min-height:62px;
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 28px;
}
.order-back{
  color:#6b7280;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.order-back:hover{
  color:var(--brand);
}
.order-code-line{
  display:flex;
  align-items:center;
  gap:14px;
  color:#1f2937;
  text-transform:uppercase;
  font-size:14px;
  letter-spacing:.04em;
}
.order-code-line i{
  width:1px;
  height:18px;
  background:#d1d5db;
}
.order-code-line b{
  color:var(--brand);
  font-weight:700;
}
.order-code-line b.is-muted{
  color:#6b7280;
}
.order-progress-card{
  position:relative;
  background:#fff;
  padding:48px 58px 54px;
  overflow:hidden;
}
.order-progress-line{
  position:absolute;
  top:84px;
  left:96px;
  right:96px;
  height:4px;
  background:#22b455;
  z-index:1;
}
.order-progress-card.is-cancelled .order-progress-line{
  background:#cbd5e1;
}
.order-progress-steps{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
}
.order-progress-step{
  text-align:center;
  color:#6b7280;
}
.progress-icon{
  width:70px;
  height:70px;
  margin:0 auto 18px;
  border-radius:999px;
  border:4px solid #d1d5db;
  background:#fff;
  display:grid;
  place-items:center;
  color:#9ca3af;
  font-size:28px;
  font-weight:900;
}
.order-progress-step.done .progress-icon{
  border-color:#22b455;
  background:#fff;
  color:#22b455;
}
.order-progress-step:last-child.done .progress-icon{
  background:#22b455;
  color:#fff;
}
.order-progress-step strong{
  display:block;
  color:#303746;
  font-size:16px;
  font-weight:600;
}
.order-progress-step span{
  display:block;
  margin-top:5px;
  color:#9ca3af;
  font-size:13px;
}
.order-action-strip{
  min-height:92px;
  background:#fffdf7;
  border-top:1px solid #f0e8d7;
  border-bottom:1px solid #eee2c8;
  display:grid;
  grid-template-columns:1fr 270px;
  gap:22px;
  align-items:center;
  padding:18px 28px;
  color:#6b7280;
}
.order-action-strip u{
  color:#374151;
  text-underline-offset:3px;
}
.order-action-buttons{
  display:grid;
  gap:12px;
}
.order-detail-btn{
  height:46px;
  border:1px solid #d9dee8;
  background:#fff;
  color:#374151;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  border-radius:3px;
}
.order-detail-btn.primary{
  background:var(--brand);
  color:#fff;
  border-color:var(--brand);
}
.order-detail-btn:hover{
  border-color:var(--brand);
  color:var(--brand);
}
.order-detail-btn.primary:hover{
  color:#fff;
  filter:brightness(.98);
}
.order-tracking-card{
  position:relative;
  margin-top:0;
  background:#fff;
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  gap:30px;
  padding:42px 28px 30px;
  border-top:1px solid #edf0f4;
}
.order-tracking-card:before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:repeating-linear-gradient(135deg,#ef4444 0 48px,#fff 48px 66px,#3b82f6 66px 114px,#fff 114px 132px);
  opacity:.78;
}
.tracking-address{
  padding-right:24px;
  border-right:1px solid #e5e7eb;
}
.tracking-address h2{
  margin:0 0 24px;
  font-size:24px;
  font-weight:500;
}
.tracking-address b{
  display:block;
  margin-bottom:10px;
  font-size:16px;
}
.tracking-address p{
  margin:6px 0;
  color:#4b5563;
}
.carrier-info{
  text-align:right;
  color:#6b7280;
  margin-bottom:18px;
}
.carrier-info b{
  display:block;
  font-weight:500;
}
.carrier-info span{
  font-size:13px;
}
.tracking-list{
  display:grid;
  gap:0;
}
.tracking-event{
  position:relative;
  display:grid;
  grid-template-columns:132px 22px minmax(0,1fr);
  gap:16px;
  min-height:52px;
}
.tracking-event:before{
  content:"";
  position:absolute;
  left:142px;
  top:18px;
  bottom:-18px;
  width:2px;
  background:#d1d5db;
}
.tracking-event:last-child:before{
  display:none;
}
.tracking-event > i{
  grid-column:2;
  width:14px;
  height:14px;
  margin-top:4px;
  border-radius:999px;
  background:#c7ccd4;
  position:relative;
  z-index:2;
}
.tracking-event.active > i{
  width:28px;
  height:28px;
  margin-left:-7px;
  margin-top:-3px;
  background:#26aa99;
  box-shadow:0 0 0 4px #e4f7f4;
}
.tracking-event.active > i:after{
  content:"✓";
  color:#fff;
  font-size:16px;
  display:grid;
  place-items:center;
  height:100%;
}
.tracking-event time{
  grid-column:1;
  text-align:right;
  color:#4b5563;
  white-space:nowrap;
}
.tracking-event div{
  grid-column:3;
  padding-bottom:14px;
}
.tracking-event b{
  display:block;
  color:#4b5563;
  font-size:15px;
}
.tracking-event.active b{
  color:#26aa99;
}
.tracking-event p{
  margin:3px 0;
  color:#6b7280;
  line-height:1.4;
}
.tracking-event a{
  color:#0b66c3;
  font-weight:700;
}
.order-detail-products{
  background:#fff;
  margin-top:0;
  border-top:1px solid #eef2f7;
}
.order-shop-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 28px 12px;
  border-bottom:1px solid #e8eaf0;
}
.order-shop-row > div:first-child{
  display:flex;
  align-items:center;
  gap:8px;
}
.seller-actions a{
  height:32px;
  padding:0 12px;
  border:1px solid #d9dee8;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#374151;
  border-radius:3px;
}
.order-product-line{
  display:grid;
  grid-template-columns:100px minmax(0,1fr) 160px;
  gap:16px;
  align-items:center;
  padding:16px 28px;
  border-bottom:1px solid #eef2f7;
}
.order-product-img{
  width:92px;
  height:92px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
}
.order-product-img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.order-product-info a{
  display:block;
  color:#111827;
  font-size:16px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-product-info span{
  display:block;
  color:#6b7280;
  margin-top:5px;
}
.order-product-info b{
  display:block;
  margin-top:4px;
}
.order-product-price{
  text-align:right;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
}
.order-product-price del{
  color:#9ca3af;
}
.order-product-price strong{
  color:var(--brand);
  font-weight:500;
}
.order-detail-summary{
  width:min(420px,100%);
  margin-left:auto;
  padding:10px 28px 24px;
}
.order-detail-summary div{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:7px 0;
  color:#6b7280;
}
.order-detail-summary b{
  color:#111827;
}
.order-detail-summary .grand{
  border-top:1px solid #e5e7eb;
  margin-top:8px;
  padding-top:14px;
}
.order-detail-summary .grand b{
  color:var(--brand);
  font-size:28px;
  font-weight:500;
}
html[data-theme="dark"] .order-detail-page{
  background:#0b1220;
}
html[data-theme="dark"] .order-detail-topbar,
html[data-theme="dark"] .order-progress-card,
html[data-theme="dark"] .order-action-strip,
html[data-theme="dark"] .order-tracking-card,
html[data-theme="dark"] .order-detail-products{
  background:var(--card);
  border-color:#263244;
}
html[data-theme="dark"] .order-action-strip{
  background:#171c27;
}
html[data-theme="dark"] .progress-icon,
html[data-theme="dark"] .order-detail-btn,
html[data-theme="dark"] .seller-actions a{
  background:#111827;
  border-color:#263244;
  color:#e5e7eb;
}
html[data-theme="dark"] .order-progress-step strong,
html[data-theme="dark"] .order-product-info a,
html[data-theme="dark"] .order-detail-summary b{
  color:#e5e7eb;
}

@media(max-width:900px){
  .order-detail-topbar{
    align-items:flex-start;
    flex-direction:column;
    padding:14px 16px;
  }
  .order-code-line{
    flex-wrap:wrap;
  }
  .order-progress-card{
    padding:30px 12px;
  }
  .order-progress-line{
    display:none;
  }
  .order-progress-steps{
    grid-template-columns:1fr;
    gap:12px;
  }
  .order-progress-step{
    display:grid;
    grid-template-columns:58px 1fr;
    text-align:left;
    align-items:center;
    column-gap:12px;
  }
  .progress-icon{
    width:52px;
    height:52px;
    margin:0;
    font-size:22px;
    grid-row:span 2;
  }
  .order-progress-step span{
    margin:0;
  }
  .order-action-strip{
    grid-template-columns:1fr;
    padding:16px;
  }
  .order-tracking-card{
    grid-template-columns:1fr;
    padding:34px 16px 22px;
  }
  .tracking-address{
    border-right:0;
    padding-right:0;
    border-bottom:1px solid #e5e7eb;
    padding-bottom:18px;
  }
  .carrier-info{
    text-align:left;
  }
  .tracking-event{
    grid-template-columns:98px 22px minmax(0,1fr);
    gap:10px;
  }
  .tracking-event:before{
    left:108px;
  }
  .tracking-event time{
    font-size:13px;
  }
  .order-product-line{
    grid-template-columns:76px minmax(0,1fr);
    padding:14px 16px;
  }
  .order-product-img{
    width:70px;
    height:70px;
  }
  .order-product-price{
    grid-column:2;
    text-align:left;
    justify-content:flex-start;
  }
  .order-shop-row{
    padding-left:16px;
    padding-right:16px;
  }
  .order-detail-summary{
    padding-left:16px;
    padding-right:16px;
  }
}


/* V04.28 Notifications + return/refund */
.market-notice-link{
  position:relative;
}
.market-notice-link b{
  min-width:16px;
  height:16px;
  padding:0 5px;
  margin-left:3px;
  border-radius:999px;
  background:#fff;
  color:var(--brand);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:900;
}
.account-tabbar-3{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.account-tabbar a span,
.nav-count{
  min-width:18px;
  height:18px;
  padding:0 6px;
  margin-left:6px;
  border-radius:999px;
  background:var(--brand);
  color:#fff;
  font-size:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.account-sidebar nav a{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.notification-page-title{
  padding-bottom:10px;
}
.notification-page,
.account-notification-panel{
  padding-bottom:34px;
}
.notification-toolbar{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  box-shadow:var(--shadow);
}
.notification-toolbar b{
  color:var(--brand);
  font-size:24px;
}
.notification-list{
  display:grid;
  gap:12px;
}
.notification-list.compact{
  margin-top:12px;
}
.notification-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:14px;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
}
.notification-card.unread{
  border-color:#fecaca;
  background:#fffafa;
}
.notification-icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#f1f5f9;
  font-size:22px;
}
.notification-icon.type-order{background:#eff6ff}
.notification-icon.type-promo{background:#fff7ed}
.notification-icon.type-return{background:#f0fdf4}
.notification-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:12px;
}
.notification-meta span{
  color:var(--brand);
  font-weight:850;
}
.notification-body h3{
  margin:4px 0 4px;
  font-size:17px;
}
.notification-body p{
  margin:0;
  color:#4b5563;
}
.notification-actions{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:10px;
}
.notification-actions a,
.notification-actions button,
.notification-body > a{
  border:0;
  background:transparent;
  color:var(--brand);
  font-weight:850;
  cursor:pointer;
  padding:0;
}
.notification-empty{
  padding:34px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  text-align:center;
  color:var(--muted);
}
.return-page{
  padding-bottom:40px;
}
.return-form-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
}
.return-form-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
}
.return-form-head span,
.return-status-card span{
  color:var(--brand);
  font-weight:850;
  letter-spacing:.04em;
}
.return-form-head h2,
.return-status-card h2{
  margin:4px 0 0;
}
.return-form-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:18px;
}
.return-select-item{
  display:grid!important;
  grid-template-columns:24px 72px minmax(0,1fr) 120px;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-weight:400!important;
}
.return-select-item img,
.return-item-line img{
  width:66px;
  height:66px;
  border:1px solid var(--line);
  object-fit:cover;
  background:#f8fafc;
}
.return-select-item b,
.return-item-line b{
  display:block;
  font-size:14px;
}
.return-select-item span,
.return-item-line span{
  color:var(--muted);
}
.return-select-item strong{
  text-align:right;
  color:var(--brand);
}
.return-reason-card{
  display:grid;
  gap:12px;
}
.return-reason-card textarea,
.return-reason-card select,
.return-reason-card input[type=file]{
  width:100%;
  margin-top:6px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  background:#fff;
}
.return-status-card{
  background:linear-gradient(135deg,#fff7ed,#fff);
  border:1px solid #fed7aa;
  border-radius:22px;
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:18px;
  box-shadow:var(--shadow);
}
.return-status-card > b{
  color:var(--brand);
  font-size:26px;
}
.return-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.return-item-line{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 120px;
  gap:12px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.return-item-line strong{
  text-align:right;
  color:var(--brand);
}
.return-image-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
  gap:10px;
  margin-top:12px;
}
.return-image-grid img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
}
html[data-theme="dark"] .notification-card,
html[data-theme="dark"] .notification-empty,
html[data-theme="dark"] .notification-toolbar,
html[data-theme="dark"] .return-form-card,
html[data-theme="dark"] .return-status-card{
  background:var(--card);
  border-color:#263244;
}
html[data-theme="dark"] .notification-card.unread{
  background:#1f1720;
}
html[data-theme="dark"] .notification-body p,
html[data-theme="dark"] .return-select-item span,
html[data-theme="dark"] .return-item-line span{
  color:#cbd5e1;
}
html[data-theme="dark"] .return-reason-card textarea,
html[data-theme="dark"] .return-reason-card select,
html[data-theme="dark"] .return-reason-card input[type=file]{
  background:#0f172a;
  color:#e5e7eb;
  border-color:#263244;
}
@media(max-width:900px){
  .account-tabbar-3{
    grid-template-columns:1fr!important;
  }
  .notification-toolbar,
  .return-form-head,
  .return-status-card{
    flex-direction:column;
    align-items:flex-start;
  }
  .return-form-grid,
  .return-detail-grid{
    grid-template-columns:1fr;
  }
  .return-select-item,
  .return-item-line{
    grid-template-columns:24px 60px minmax(0,1fr);
  }
  .return-select-item strong,
  .return-item-line strong{
    grid-column:3;
    text-align:left;
  }
}


/* V04.35 Fixed homepage side banners */
.marketplace-hero-grid{
  align-items:start!important;
}
.hero-side-banners{
  display:grid!important;
  grid-template-rows:156px 156px!important;
  gap:12px!important;
  height:324px!important;
  max-height:324px!important;
  overflow:hidden!important;
}
.side-banner-card{
  height:156px!important;
  min-height:0!important;
  max-height:156px!important;
  border-radius:12px!important;
  overflow:hidden!important;
  display:block!important;
}
.side-banner-card img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  object-fit:cover!important;
}
.side-banner-card>div{
  padding:14px!important;
  justify-content:center!important;
}
.side-banner-card span{
  font-size:11px!important;
  margin-bottom:6px!important;
}
.side-banner-card b{
  font-size:18px!important;
  line-height:1.15!important;
  max-width:240px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.side-banner-card small{
  margin-top:6px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
@media(max-width:900px){
  .hero-side-banners{
    grid-template-columns:1fr 1fr!important;
    grid-template-rows:120px!important;
    height:120px!important;
    max-height:120px!important;
  }
  .side-banner-card{
    height:120px!important;
    max-height:120px!important;
  }
}
@media(max-width:720px){
  .hero-side-banners,
  .hero-side{
    display:none!important;
  }
}


/* V04.36 home product board: 5x2 filled grid */
.home-section-more{
  color:var(--market-orange);
  font-weight:800;
  margin-left:auto;
}
.marketplace-section>.section-head,
.marketplace-flash-box>.section-head{
  display:flex;
  align-items:center;
  gap:12px;
}
.marketplace-flash-box>.section-head .countdown{
  margin-left:0;
}
.marketplace-product-grid{
  grid-auto-flow:row;
}
@media(min-width:1181px){
  .marketplace-product-grid .product-card:nth-child(n+11){
    display:none;
  }
}


/* V04.38 cart scope + product detail old price */
.detail-price del.is-hidden{
  display:none!important;
}
.variant-option small del{
  margin-left:4px;
  color:#9aa1ad;
  font-size:12px;
}


/* V05.01 mobile search/header polish */
@media(max-width:720px){
  body{
    overflow-x:hidden;
  }
  .market-header{
    background:linear-gradient(180deg,#f0442f 0%,#f04a2e 60%,#f4511e 100%)!important;
  }
  .market-header .container{
    width:100%!important;
    max-width:none!important;
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .market-top,
  .market-brand,
  .market-keywords{
    display:none!important;
  }
  .market-header .market-main{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 52px!important;
    grid-template-areas:"search cart"!important;
    align-items:center!important;
    gap:10px!important;
    padding:10px 0!important;
    min-height:64px!important;
  }
  .market-search-wrap{
    grid-area:search!important;
    width:100%!important;
    min-width:0!important;
    display:block!important;
  }
  .market-search{
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    display:flex!important;
    align-items:center!important;
    background:#fff!important;
    border:0!important;
    border-radius:12px!important;
    padding:4px!important;
    overflow:hidden!important;
    box-shadow:0 2px 8px rgba(0,0,0,.10)!important;
  }
  .market-search input{
    flex:1 1 auto!important;
    min-width:0!important;
    height:100%!important;
    border:0!important;
    outline:0!important;
    background:#fff!important;
    color:#111827!important;
    padding:0 12px!important;
    font-size:16px!important;
    line-height:1!important;
    border-radius:10px 0 0 10px!important;
  }
  .market-search input::placeholder{
    color:#6b7280!important;
    opacity:.95!important;
  }
  .market-search button{
    position:relative!important;
    flex:0 0 54px!important;
    width:54px!important;
    height:42px!important;
    min-width:54px!important;
    border:0!important;
    border-radius:9px!important;
    background:var(--brand)!important;
    color:#fff!important;
    font-size:0!important;
    line-height:0!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    box-shadow:none!important;
  }
  .market-search button::before{
    content:""!important;
    width:15px!important;
    height:15px!important;
    border:2px solid #fff!important;
    border-radius:999px!important;
    display:block!important;
    transform:translate(-2px,-2px)!important;
  }
  .market-search button::after{
    content:""!important;
    position:absolute!important;
    width:10px!important;
    height:2px!important;
    background:#fff!important;
    border-radius:99px!important;
    transform:translate(8px,8px) rotate(45deg)!important;
  }
  .market-cart{
    grid-area:cart!important;
    width:52px!important;
    height:50px!important;
    min-width:52px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    align-self:center!important;
  }
  .market-cart-icon{
    width:42px!important;
    height:42px!important;
    display:grid!important;
    place-items:center!important;
  }
  .market-cart-icon svg{
    width:32px!important;
    height:32px!important;
  }
  .market-cart span{
    font-size:30px!important;
  }
  .market-cart b{
    top:-5px!important;
    right:0!important;
    min-width:22px!important;
    height:22px!important;
    padding:0 6px!important;
    border-width:2px!important;
    font-size:12px!important;
    line-height:1!important;
  }
}

@media(max-width:420px){
  .market-header .container{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .market-header .market-main{
    grid-template-columns:minmax(0,1fr) 48px!important;
    gap:8px!important;
    min-height:60px!important;
    padding:8px 0!important;
  }
  .market-search{
    height:48px!important;
    min-height:48px!important;
    border-radius:11px!important;
  }
  .market-search input{
    font-size:15px!important;
    padding:0 10px!important;
  }
  .market-search button{
    flex-basis:50px!important;
    width:50px!important;
    min-width:50px!important;
    height:40px!important;
  }
  .market-cart{
    width:48px!important;
    min-width:48px!important;
    height:48px!important;
  }
}


/* V05.02 Fashion standardization */
.market-logo-mark,.admin-logo-mark{letter-spacing:.04em;background:linear-gradient(135deg,#111827,#d4a373)!important;}
.market-top{background:#111827;color:#fff;}
.market-top a,.market-top span,.market-top button{color:#fff;}
.market-search{border-color:#111827;}
.market-keywords a:hover{color:#111827;}
.marketplace-voucher-strip div{background:linear-gradient(135deg,#fff7ed,#ffffff);border-color:#ead7c0;}
.mall-badge{background:#111827!important;color:#fff!important;border-color:#d4a373!important;}
.product-card .product-name{letter-spacing:-.01em;}
.footer{background:#111827;}

/* V05.13 storefront product filter standardization */
@media (min-width: 901px){
  .shop-layout{align-items:start;grid-template-columns:280px minmax(0,1fr)}
  .filter-panel{position:sticky;top:112px;max-height:calc(100vh - 128px);overflow:auto;scrollbar-width:thin}
}
.filter-panel{border:1px solid rgba(15,23,42,.06)}
.price-filter{display:grid;gap:10px;margin-top:6px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;--price-left:0%;--price-right:0%}
.price-filter-head,.price-scale{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;font-weight:750}
.price-filter-head b{color:var(--text);font-size:13px}
.price-range-wrap{position:relative;height:30px;margin:2px 2px 0}
.price-range-wrap:before{content:"";position:absolute;left:0;right:0;top:14px;height:5px;border-radius:999px;background:linear-gradient(to right,#e5e7eb 0,#e5e7eb var(--price-left),#111827 var(--price-left),#111827 calc(100% - var(--price-right)),#e5e7eb calc(100% - var(--price-right)),#e5e7eb 100%)}
.price-range-wrap input[type="range"]{position:absolute;left:0;top:0;width:100%;height:30px;margin:0;padding:0;border:0;background:transparent;pointer-events:none;-webkit-appearance:none;appearance:none}
.price-range-wrap input[type="range"]::-webkit-slider-thumb{width:18px;height:18px;border-radius:50%;background:#111827;border:3px solid #fff;box-shadow:0 2px 10px rgba(15,23,42,.24);cursor:pointer;pointer-events:auto;-webkit-appearance:none;appearance:none}
.price-range-wrap input[type="range"]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#111827;border:3px solid #fff;box-shadow:0 2px 10px rgba(15,23,42,.24);cursor:pointer;pointer-events:auto}
.price-range-wrap input[type="range"]::-webkit-slider-runnable-track{height:5px;background:transparent}
.price-range-wrap input[type="range"]::-moz-range-track{height:5px;background:transparent}
.price-scale{font-size:11px}.filter-panel .btn{width:100%;background:#050505;color:#fff}.filter-panel select[name="sort"] option[value="price_desc"]{font-weight:700}
html[data-theme="dark"] .price-filter{background:#0f172a;border-color:var(--line)}
html[data-theme="dark"] .price-range-wrap:before{background:linear-gradient(to right,#263244 0,#263244 var(--price-left),#eef2f7 var(--price-left),#eef2f7 calc(100% - var(--price-right)),#263244 calc(100% - var(--price-right)),#263244 100%)}
html[data-theme="dark"] .price-range-wrap input[type="range"]::-webkit-slider-thumb{background:#eef2f7;border-color:#111827}
html[data-theme="dark"] .price-range-wrap input[type="range"]::-moz-range-thumb{background:#eef2f7;border-color:#111827}
@media(max-width:900px){.price-filter{padding:11px}.shop-layout{gap:14px}}


/* V05.14 Mobile Product Card Compact
   Mobile-only product card cleanup based on compact marketplace-style layout. */
@media(max-width:720px){
  .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:stretch;
  }
  .product-card.marketplace-card{
    border-radius:8px!important;
    border:1px solid #e5e7eb!important;
    box-shadow:none!important;
    overflow:hidden!important;
    background:#fff!important;
  }
  .product-card.marketplace-card:hover{
    transform:none!important;
    box-shadow:none!important;
  }
  .product-card.marketplace-card .marketplace-image,
  .product-card.marketplace-card .product-image{
    aspect-ratio:1/1!important;
    background:#f3f4f6!important;
    overflow:hidden!important;
  }
  .product-card.marketplace-card .marketplace-image img,
  .product-card.marketplace-card .product-image img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    padding:0!important;
  }
  .product-card.marketplace-card .market-badge-dark,
  .product-card.marketplace-card .corner-badge{
    left:6px!important;
    top:6px!important;
    border-radius:3px!important;
    padding:3px 6px!important;
    font-size:10.5px!important;
    line-height:1.2!important;
    font-weight:850!important;
    background:#111827!important;
    color:#fff!important;
  }
  .product-card.marketplace-card .market-sale-badge,
  .product-card.marketplace-card .sale-badge{
    top:0!important;
    right:0!important;
    border-radius:0 8px 0 8px!important;
    padding:5px 6px 8px!important;
    min-width:38px!important;
    text-align:center!important;
    background:#ffd83d!important;
    color:#ef4444!important;
    font-size:11px!important;
    font-weight:900!important;
    line-height:1!important;
  }
  .product-card.marketplace-card .market-sale-badge:after{
    display:none!important;
  }
  .product-card.marketplace-card .marketplace-wishlist{
    left:auto!important;
    right:6px!important;
    top:auto!important;
    bottom:6px!important;
    z-index:8!important;
  }
  .product-card.marketplace-card .marketplace-wishlist .wishlist-btn{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    font-size:15px!important;
    background:rgba(255,255,255,.92)!important;
    border:1px solid rgba(15,23,42,.08)!important;
    color:#111827!important;
    box-shadow:0 4px 12px rgba(15,23,42,.12)!important;
  }
  .product-card.marketplace-card .marketplace-quick{
    display:none!important;
  }
  .product-card.marketplace-card .marketplace-info,
  .product-card.marketplace-card .product-info{
    padding:7px 8px 8px!important;
    gap:4px!important;
    background:#fff!important;
  }
  .product-card.marketplace-card .marketplace-line{
    gap:4px!important;
    font-size:11px!important;
    line-height:1.25!important;
    color:#4b5563!important;
    min-height:17px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }
  .product-card.marketplace-card .mall-tag{
    border-radius:3px!important;
    padding:2px 4px!important;
    background:#ef4444!important;
    color:#fff!important;
    font-size:10px!important;
    line-height:1.15!important;
    flex:0 0 auto!important;
  }
  .product-card.marketplace-card .marketplace-line span:last-child{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    min-width:0!important;
  }
  .product-card.marketplace-card .marketplace-name,
  .product-card.marketplace-card .product-name{
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    min-height:34px!important;
    padding:0!important;
    background:transparent!important;
    font-size:13px!important;
    line-height:1.28!important;
    font-weight:500!important;
    color:#111827!important;
    letter-spacing:-.01em!important;
  }
  .product-card.marketplace-card .marketplace-vouchers{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:4px!important;
    min-height:18px!important;
    overflow:hidden!important;
  }
  .product-card.marketplace-card .marketplace-vouchers span{
    font-size:10px!important;
    line-height:1.15!important;
    padding:2px 4px!important;
    border-radius:3px!important;
    border:1px solid #ef4444!important;
    color:#ef4444!important;
    background:#fff!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }
  .product-card.marketplace-card .marketplace-vouchers span:nth-child(n+3){
    display:none!important;
  }
  .product-card.marketplace-card .marketplace-price,
  .product-card.marketplace-card .price-row{
    display:flex!important;
    align-items:baseline!important;
    gap:5px!important;
    margin:1px 0 0!important;
    min-height:22px!important;
  }
  .product-card.marketplace-card .marketplace-price b,
  .product-card.marketplace-card .price-row b{
    font-size:16px!important;
    line-height:1.15!important;
    color:#ef4444!important;
    font-weight:850!important;
  }
  .product-card.marketplace-card .marketplace-price del,
  .product-card.marketplace-card .price-row del{
    font-size:10.5px!important;
    line-height:1!important;
    color:#9ca3af!important;
  }
  .product-card.marketplace-card .marketplace-meta{
    margin-top:1px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:6px!important;
    min-height:16px!important;
    font-size:11px!important;
    color:#6b7280!important;
  }
  .product-card.marketplace-card .marketplace-stars{
    color:#f59e0b!important;
    white-space:nowrap!important;
  }
  .product-card.marketplace-card .marketplace-meta small{
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    min-width:0!important;
    color:#4b5563!important;
  }
  .product-card.marketplace-card .marketplace-actions,
  .product-card.marketplace-card .card-actions{
    display:none!important;
  }
  html[data-theme="dark"] .product-card.marketplace-card,
  html[data-theme="dark"] .product-card.marketplace-card .marketplace-info,
  html[data-theme="dark"] .product-card.marketplace-card .product-info{
    background:#111827!important;
    border-color:#263244!important;
  }
  html[data-theme="dark"] .product-card.marketplace-card .marketplace-name,
  html[data-theme="dark"] .product-card.marketplace-card .product-name{
    color:#eef2f7!important;
  }
  html[data-theme="dark"] .product-card.marketplace-card .marketplace-image,
  html[data-theme="dark"] .product-card.marketplace-card .product-image{
    background:#0f172a!important;
  }
}
@media(max-width:420px){
  .product-grid{gap:7px!important}
  .product-card.marketplace-card .marketplace-info,
  .product-card.marketplace-card .product-info{padding:6px 7px 7px!important}
  .product-card.marketplace-card .marketplace-name,
  .product-card.marketplace-card .product-name{font-size:12.5px!important;min-height:32px!important}
  .product-card.marketplace-card .marketplace-price b,
  .product-card.marketplace-card .price-row b{font-size:15px!important}
}

/* V05.15 mobile search/cart polish */
@media(max-width:720px){
  .market-header .market-main{
    grid-template-columns:minmax(0,1fr) 48px!important;
    gap:12px!important;
    min-height:62px!important;
  }
  .market-search{
    display:grid!important;
    grid-template-columns:44px minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px!important;
    height:52px!important;
    min-height:52px!important;
    padding:6px!important;
    border-radius:14px!important;
    box-shadow:0 8px 18px rgba(17,24,39,.10)!important;
  }
  .market-search-submit,
  .market-search button{
    order:-1!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    border-radius:12px!important;
    background:#111827!important;
    color:#fff!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    margin:0!important;
    box-shadow:0 6px 14px rgba(17,24,39,.18)!important;
  }
  .market-search-submit::before,
  .market-search-submit::after,
  .market-search button::before,
  .market-search button::after{
    content:none!important;
    display:none!important;
  }
  .market-search-submit svg,
  .market-search button svg{
    width:20px!important;
    height:20px!important;
    display:block!important;
    color:#fff!important;
  }
  .market-search input{
    padding:0 12px 0 0!important;
    border-radius:0 12px 12px 0!important;
    font-size:15px!important;
  }
  .market-cart{
    width:48px!important;
    height:48px!important;
    min-width:48px!important;
    border-radius:14px!important;
    background:rgba(255,255,255,.18)!important;
    border:1px solid rgba(255,255,255,.34)!important;
    box-shadow:0 8px 18px rgba(17,24,39,.08)!important;
    backdrop-filter:blur(6px)!important;
    -webkit-backdrop-filter:blur(6px)!important;
  }
  .market-cart-icon{
    width:100%!important;
    height:100%!important;
  }
  .market-cart-icon svg{
    width:27px!important;
    height:27px!important;
    filter:drop-shadow(0 1px 0 rgba(0,0,0,.08));
  }
  .market-cart b{
    top:-6px!important;
    right:-4px!important;
    min-width:21px!important;
    height:21px!important;
    padding:0 5px!important;
    border:2px solid #fff!important;
    background:#111827!important;
    color:#fff!important;
    border-radius:999px!important;
    font-size:11px!important;
    font-weight:800!important;
    box-shadow:0 6px 12px rgba(17,24,39,.18)!important;
  }
}

@media(max-width:420px){
  .market-header .market-main{
    grid-template-columns:minmax(0,1fr) 46px!important;
    gap:10px!important;
  }
  .market-search{
    height:50px!important;
    min-height:50px!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    gap:6px!important;
    padding:5px!important;
  }
  .market-search-submit,
  .market-search button{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    border-radius:11px!important;
  }
  .market-search input{
    font-size:14px!important;
  }
  .market-cart{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
  }
}

/* keep desktop search button on the right */
.market-search input{order:1}
.market-search button,.market-search-submit{order:2}

/* V05.17 Mobile overflow + header/card polish */
html,
body{
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}
.market-header,
.market-main,
.market-search-wrap,
.market-search,
.product-grid,
.marketplace-product-grid,
.product-card.marketplace-card{
  min-width:0;
  max-width:100%;
}
.market-search-submit svg,
.market-search button svg{
  width:22px;
  height:22px;
  display:block;
  color:currentColor;
}
@media(min-width:721px){
  .market-search{
    height:44px;
    border-radius:8px;
    padding:4px;
  }
  .market-search input{
    order:1!important;
    font-size:14px;
    padding:0 14px;
  }
  .market-search-submit,
  .market-search button{
    order:2!important;
    width:50px!important;
    min-width:50px!important;
    height:36px!important;
    border-radius:7px!important;
    background:#050505!important;
    color:#fff!important;
    font-size:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
  }
  .market-search-submit:before,
  .market-search-submit:after,
  .market-search button:before,
  .market-search button:after{
    content:none!important;
    display:none!important;
  }
  .market-search-submit svg,
  .market-search button svg{
    width:22px!important;
    height:22px!important;
  }
  .market-cart{
    width:66px;
    height:48px;
    min-width:66px;
  }
  .market-cart-icon svg{
    width:28px!important;
    height:28px!important;
  }
  .market-cart b{
    top:3px!important;
    right:12px!important;
    min-width:20px!important;
    height:20px!important;
    font-size:11px!important;
    border-width:2px!important;
  }
}
@media(max-width:720px){
  .market-header{
    overflow:hidden!important;
  }
  .market-header .container{
    width:100%!important;
    max-width:100%!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .market-header .market-main{
    grid-template-columns:minmax(0,1fr) 42px!important;
    grid-template-areas:"search cart"!important;
    gap:8px!important;
    min-height:52px!important;
    padding:7px 0!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .market-search-wrap{
    grid-area:search!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .market-search{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:44px!important;
    min-height:44px!important;
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr)!important;
    gap:7px!important;
    align-items:center!important;
    padding:5px!important;
    border-radius:12px!important;
    overflow:hidden!important;
    box-shadow:0 6px 14px rgba(17,24,39,.10)!important;
  }
  .market-search-submit,
  .market-search button{
    order:0!important;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    border-radius:10px!important;
    background:#111827!important;
    color:#fff!important;
    box-shadow:none!important;
    display:grid!important;
    place-items:center!important;
    padding:0!important;
    margin:0!important;
  }
  .market-search-submit svg,
  .market-search button svg{
    width:17px!important;
    height:17px!important;
  }
  .market-search input{
    order:1!important;
    min-width:0!important;
    width:100%!important;
    height:100%!important;
    padding:0 6px!important;
    font-size:14px!important;
    border-radius:0!important;
  }
  .market-cart{
    grid-area:cart!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    border-radius:12px!important;
    margin:0!important;
    padding:0!important;
    background:rgba(255,255,255,.16)!important;
    border:1px solid rgba(255,255,255,.34)!important;
    overflow:visible!important;
  }
  .market-cart-icon svg{
    width:23px!important;
    height:23px!important;
  }
  .market-cart b{
    top:1px!important;
    right:1px!important;
    min-width:17px!important;
    height:17px!important;
    padding:0 4px!important;
    font-size:10px!important;
    line-height:1!important;
    border:2px solid #fff!important;
    background:#111827!important;
    color:#fff!important;
    box-shadow:0 3px 8px rgba(17,24,39,.18)!important;
  }
  .product-grid,
  .marketplace-product-grid{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    align-items:start!important;
    overflow:visible!important;
  }
  .product-card.marketplace-card{
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    align-self:start!important;
  }
  .product-card.marketplace-card .marketplace-info,
  .product-card.marketplace-card .product-info{
    padding:6px 7px 7px!important;
    gap:2px!important;
    flex:0 0 auto!important;
  }
  .product-card.marketplace-card .marketplace-line,
  .product-card.marketplace-card .marketplace-vouchers,
  .product-card.marketplace-card .marketplace-meta{
    min-height:0!important;
  }
  .product-card.marketplace-card .marketplace-name,
  .product-card.marketplace-card .product-name{
    min-height:31px!important;
    font-size:12.8px!important;
    line-height:1.22!important;
  }
  .product-card.marketplace-card .marketplace-price,
  .product-card.marketplace-card .price-row{
    margin:0!important;
    min-height:19px!important;
  }
  .product-card.marketplace-card .marketplace-price b,
  .product-card.marketplace-card .price-row b{
    font-size:15.5px!important;
  }
  .product-card.marketplace-card .marketplace-vouchers{
    margin-top:1px!important;
  }
  .product-card.marketplace-card .marketplace-meta{
    margin-top:0!important;
    font-size:10.5px!important;
  }
}
@media(max-width:380px){
  .market-header .container{
    padding-left:6px!important;
    padding-right:6px!important;
  }
  .market-header .market-main{
    grid-template-columns:minmax(0,1fr) 40px!important;
    gap:7px!important;
  }
  .market-search{
    height:42px!important;
    min-height:42px!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    gap:6px!important;
  }
  .market-search-submit,
  .market-search button{
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
  }
  .market-cart{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
  }
}


/* V05.18 Mobile header neutral color + inset width fix */
@media(min-width:721px){
  .market-header{
    background:#050505!important;
  }
  .market-search{
    height:42px!important;
    border-radius:7px!important;
    padding:4px!important;
    box-shadow:0 1px 0 rgba(255,255,255,.08)!important;
  }
  .market-search input{
    font-size:14px!important;
    padding:0 13px!important;
  }
  .market-search-submit,
  .market-search button{
    width:44px!important;
    min-width:44px!important;
    height:34px!important;
    border-radius:6px!important;
    background:#050505!important;
    color:#fff!important;
  }
  .market-search-submit svg,
  .market-search button svg{
    width:18px!important;
    height:18px!important;
  }
  .market-cart{
    width:58px!important;
    min-width:58px!important;
    height:44px!important;
  }
  .market-cart-icon svg{
    width:25px!important;
    height:25px!important;
  }
}

@media(max-width:720px){
  .market-header{
    background:#050505!important;
    background-image:none!important;
    box-shadow:0 1px 0 rgba(255,255,255,.06)!important;
    overflow:hidden!important;
  }
  .market-header .container{
    width:100%!important;
    max-width:100%!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .market-header .market-main{
    width:100%!important;
    max-width:100%!important;
    margin:0 auto!important;
    grid-template-columns:minmax(0,1fr) 40px!important;
    grid-template-areas:"search cart"!important;
    gap:8px!important;
    padding:8px 0!important;
    min-height:56px!important;
    overflow:visible!important;
  }
  .market-search-wrap{
    grid-area:search!important;
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  .market-search{
    width:100%!important;
    max-width:100%!important;
    height:40px!important;
    min-height:40px!important;
    display:grid!important;
    grid-template-columns:31px minmax(0,1fr)!important;
    gap:7px!important;
    align-items:center!important;
    padding:4px!important;
    border-radius:12px!important;
    background:#fff!important;
    border:1px solid rgba(255,255,255,.18)!important;
    box-shadow:0 8px 18px rgba(0,0,0,.18)!important;
    overflow:hidden!important;
  }
  .market-search-submit,
  .market-search button{
    order:0!important;
    width:31px!important;
    min-width:31px!important;
    height:31px!important;
    border-radius:10px!important;
    background:#111827!important;
    color:#fff!important;
    box-shadow:none!important;
    padding:0!important;
    margin:0!important;
  }
  .market-search-submit svg,
  .market-search button svg{
    width:15.5px!important;
    height:15.5px!important;
  }
  .market-search input{
    order:1!important;
    min-width:0!important;
    height:100%!important;
    padding:0 5px!important;
    font-size:13.5px!important;
    border-radius:0!important;
    color:#111827!important;
  }
  .market-cart{
    grid-area:cart!important;
    width:40px!important;
    min-width:40px!important;
    max-width:40px!important;
    height:40px!important;
    border-radius:12px!important;
    background:rgba(255,255,255,.08)!important;
    border:1px solid rgba(255,255,255,.24)!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    overflow:visible!important;
  }
  .market-cart-icon svg{
    width:22px!important;
    height:22px!important;
    color:#fff!important;
  }
  .market-cart b{
    top:-4px!important;
    right:-3px!important;
    min-width:18px!important;
    height:18px!important;
    padding:0 4px!important;
    border:2px solid #050505!important;
    background:#fff!important;
    color:#111827!important;
    font-size:10px!important;
    font-weight:900!important;
    box-shadow:0 2px 7px rgba(0,0,0,.22)!important;
  }
}

@media(max-width:420px){
  .market-header .container{
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .market-header .market-main{
    grid-template-columns:minmax(0,1fr) 38px!important;
    gap:8px!important;
    min-height:54px!important;
    padding:7px 0!important;
  }
  .market-search{
    height:38px!important;
    min-height:38px!important;
    grid-template-columns:30px minmax(0,1fr)!important;
    gap:6px!important;
    padding:4px!important;
  }
  .market-search-submit,
  .market-search button{
    width:30px!important;
    min-width:30px!important;
    height:30px!important;
  }
  .market-search input{
    font-size:13px!important;
  }
  .market-cart{
    width:38px!important;
    min-width:38px!important;
    max-width:38px!important;
    height:38px!important;
  }
  .market-cart-icon svg{
    width:21px!important;
    height:21px!important;
  }
}

@media(max-width:360px){
  .market-header .container{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .market-search input{
    font-size:12.5px!important;
  }
}

/* V05.21 sticky frontend header + back to top */
.market-header{
  position:sticky!important;
  top:0!important;
  z-index:1000!important;
  transform:translateZ(0);
  backface-visibility:hidden;
}
.compact-commerce-header{
  position:sticky!important;
  top:0!important;
  z-index:1000!important;
}
.back-to-top{
  position:fixed;
  right:22px;
  bottom:24px;
  width:46px;
  height:46px;
  border:0;
  border-radius:999px;
  background:#050505;
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:900;
  box-shadow:0 14px 34px rgba(15,23,42,.24);
  opacity:0;
  visibility:hidden;
  transform:translateY(12px) scale(.96);
  transition:opacity .18s ease, visibility .18s ease, transform .18s ease, background .18s ease;
}
.back-to-top svg{
  width:22px;
  height:22px;
  display:block;
}
.back-to-top.is-visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.back-to-top:hover{
  background:#111827;
}
@media(max-width:720px){
  .market-header{
    position:sticky!important;
    top:0!important;
    z-index:1000!important;
  }
  .back-to-top{
    right:14px;
    bottom:82px;
    width:42px;
    height:42px;
    box-shadow:0 10px 24px rgba(15,23,42,.22);
  }
  .back-to-top svg{
    width:20px;
    height:20px;
  }
}
@media(max-width:420px){
  .back-to-top{
    right:12px;
    bottom:78px;
    width:40px;
    height:40px;
  }
}

/* V05.24 frontend fixed header + natural footer fix */
:root{
  --market-header-height:88px;
  --compact-header-height:58px;
}
body:not(.compact-commerce-page){
  padding-top:var(--market-header-height)!important;
}
body.compact-commerce-page{
  padding-top:var(--compact-header-height)!important;
}
.market-header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:3000!important;
  transform:translateZ(0);
  backface-visibility:hidden;
}
.compact-commerce-header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:3000!important;
}
@media(min-width:901px){
  body.account-page{
    height:auto!important;
    min-height:100vh!important;
    overflow:auto!important;
  }
  body.account-page main{
    height:auto!important;
    min-height:calc(100vh - var(--market-header-height))!important;
    padding-top:42px!important;
    padding-bottom:32px!important;
    overflow:visible!important;
  }
  body.account-page .page-title{
    padding:28px 0 18px!important;
  }
  body.account-page .account-grid{
    height:auto!important;
    min-height:520px!important;
    overflow:visible!important;
    align-items:start!important;
  }
  body.account-page .account-sidebar{
    height:auto!important;
    max-height:calc(100vh - var(--market-header-height) - 48px)!important;
    overflow:auto!important;
    position:sticky!important;
    top:calc(var(--market-header-height) + 22px)!important;
  }
  body.account-page .account-panel{
    height:auto!important;
    min-height:480px!important;
    overflow:visible!important;
  }
  body.account-page .footer{
    position:static!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    z-index:auto!important;
    max-height:none!important;
    overflow:visible!important;
    padding:36px 0!important;
  }
  body.account-page .footer-grid{
    grid-template-columns:2fr 1fr 1fr 1.3fr!important;
    gap:24px!important;
  }
  body.account-page .footer h3,
  body.account-page .footer h4{
    margin:0 0 10px!important;
  }
  body.account-page .footer p,
  body.account-page .footer a{
    font-size:14px!important;
    margin:6px 0!important;
  }
}
@media(max-width:720px){
  :root{
    --market-header-height:62px;
    --compact-header-height:56px;
  }
  body:not(.compact-commerce-page){
    padding-top:var(--market-header-height)!important;
  }
  body.compact-commerce-page{
    padding-top:var(--compact-header-height)!important;
  }
}

/* V05.26 Unified Icon System */
.ui-icon{display:inline-grid;place-items:center;width:1.15em;height:1.15em;line-height:1;flex:0 0 auto;color:currentColor;vertical-align:-.18em}
.ui-icon svg{width:100%;height:100%;display:block;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none}
.ui-icon-heart-fill svg{fill:currentColor}.ui-icon-heart-fill svg path{fill:currentColor;stroke:currentColor}
.market-top-left a,.market-top-right a,.language-current,.market-theme{display:inline-flex;align-items:center;gap:6px}
.market-top-left .ui-icon,.market-top-right .ui-icon,.language-current .ui-icon,.market-theme .ui-icon{width:15px;height:15px}
.market-search-submit .ui-icon{width:20px;height:20px}.market-cart-icon .ui-icon{width:30px;height:30px}.mobile-cart-icon .ui-icon{width:22px;height:22px}
.mobile-bottom-nav>a>.ui-icon{width:20px;height:20px;margin:0 auto 2px}.back-to-top .ui-icon{width:22px;height:22px}.wishlist-btn .ui-icon{width:17px;height:17px}.marketplace-stars{display:inline-flex;align-items:center;gap:4px}.marketplace-stars .ui-icon{width:13px;height:13px;color:#ffb020}
.quick-entry i{display:grid;place-items:center}.quick-entry i .ui-icon{width:22px;height:22px}.ship-ok{display:inline-flex;align-items:center;gap:5px}.ship-ok .ui-icon{width:14px;height:14px}.notification-icon .ui-icon{width:18px;height:18px}.lookup-method-icon .ui-icon{width:20px;height:20px}
@media(max-width:720px){.market-search-submit .ui-icon{width:18px;height:18px}.market-cart-icon .ui-icon{width:26px;height:26px}.mobile-bottom-nav>a>.ui-icon{width:19px;height:19px}}


/* V05.27 Fashion Premium Palette
   Store thời trang riêng: black/white base, warm neutral background, champagne accent, red only for sale/errors. */
:root{
  --bg:#F6F4F1;
  --card:#FFFFFF;
  --text:#151515;
  --muted:#6F6F6F;
  --line:#E6E1DC;
  --green:#16803C;
  --sale:#D92D20;
  --accent:#C8A96A;
  --accent-soft:#EFE6D8;
  --premium-black:#111111;
  --premium-black-2:#2A2A2A;
  --market-orange:#111111;
  --market-orange-2:#C8A96A;
  --shadow:0 14px 38px rgba(17,17,17,.075);
}
body{background:var(--bg)!important;color:var(--text)!important}
.market-header,
html[data-theme="dark"] .market-header{
  background:#111111!important;
  color:#fff!important;
}
.market-top{background:#111111!important}
.market-main{background:#111111!important}
.market-keywords a{color:rgba(255,255,255,.82)!important}
.market-keywords a:hover{color:#fff!important;text-decoration:none!important}
.market-search{background:#fff!important;border:1px solid rgba(200,169,106,.24)!important;box-shadow:0 10px 28px rgba(0,0,0,.12)!important}
.market-search input{background:#fff!important;color:#151515!important}
.market-search input::placeholder{color:#777!important}
.market-search button,
.market-search-submit{
  background:#111111!important;
  color:#fff!important;
  border:1px solid #111111!important;
  box-shadow:none!important;
}
.market-search button:hover,
.market-search-submit:hover{background:#2A2A2A!important;border-color:#2A2A2A!important}
.market-cart{color:#fff!important;border-color:rgba(255,255,255,.22)!important;background:rgba(255,255,255,.08)!important}
.market-cart b,.mobile-cart-badge,.js-cart-count{
  background:#C8A96A!important;
  color:#111111!important;
  border-color:#111111!important;
}
.market-brand-text,.market-top a,.market-top span,.market-top button{color:#fff!important}
.market-logo-mark{background:#fff!important;color:#111111!important;border:1px solid rgba(200,169,106,.35)!important}
.btn,.search-box button,.pagination a.active,.admin-public-cta,.back-to-top{
  background:#111111!important;
  border-color:#111111!important;
  color:#fff!important;
}
.btn:hover,.back-to-top:hover{background:#2A2A2A!important;border-color:#2A2A2A!important}
.btn.outline{background:#fff!important;color:#111111!important;border-color:#111111!important}
.btn.outline:hover{background:#F6F4F1!important}
.sale-badge,.discount-badge,.product-badge-sale{background:#D92D20!important;color:#fff!important}
.price-row b,.detail-price b,.cart-count-note,.review-score b{color:#D92D20!important}
.section-head a,.quick-detail-link,.product-card a:hover{color:#111111!important}
.product-card,.filter-panel,.summary-box,.card-box,.flash-box,.voucher-card,.policy-card,.content-body,.cart-table-wrap,.account-panel,.account-sidebar,.lookup-layout .card-box{
  background:#fff!important;
  border:1px solid #E6E1DC!important;
  box-shadow:0 10px 30px rgba(17,17,17,.055)!important;
}
.product-card:hover{box-shadow:0 16px 42px rgba(17,17,17,.10)!important}
.product-image{background:#F6F4F1!important}
.product-cat,.rating-row span,.muted,.sku,.short-desc{color:#6F6F6F!important}
.voucher-card{background:linear-gradient(135deg,#fff,#EFE6D8)!important;border-color:#C8A96A!important}
.voucher-card b{color:#111111!important}
.detail-price{background:#F6F4F1!important;border:1px solid #E6E1DC!important}
.trust-grid span,.ship-ok,.mobile-product-chip,.marketplace-chip,.address-default-badge{
  background:#EFE6D8!important;
  color:#111111!important;
  border-color:#E2D2B8!important;
}
.alert{background:#F0FDF4!important;color:#166534!important;border-color:#BBF7D0!important}
.alert.error{background:#FEF2F2!important;color:#991B1B!important;border-color:#FECACA!important}
.footer{background:#111111!important;color:#d9d5cc!important}
.footer h3,.footer h4{color:#fff!important}.footer a{color:#d9d5cc!important}.footer a:hover{color:#C8A96A!important}
.mobile-bottom-nav{background:#fff!important;border-top:1px solid #E6E1DC!important;box-shadow:0 -10px 30px rgba(17,17,17,.08)!important}
.mobile-bottom-nav a{color:#6F6F6F!important}.mobile-bottom-nav a.active,.mobile-bottom-nav a:hover{color:#111111!important}
.wishlist-btn{background:rgba(255,255,255,.94)!important;color:#111111!important;border:1px solid #E6E1DC!important}
.wishlist-btn.active,.wishlist-btn.is-active{background:#111111!important;color:#fff!important;border-color:#111111!important}
.marketplace-stars .ui-icon{color:#C8A96A!important}
@media(max-width:720px){
  .market-header,.market-header .market-main{background:#111111!important}
  .market-header .container{padding-left:18px!important;padding-right:18px!important}
  .market-search{border-radius:14px!important;box-shadow:0 10px 24px rgba(0,0,0,.16)!important}
  .market-cart{background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.22)!important}
}

/* V05.31 Mobile UI standardization: prevent horizontal body overflow and keep mobile sections inside viewport */
html,
body{
  max-width:100%;
  overflow-x:hidden!important;
}
body{
  position:relative;
}
main,
section,
.container,
.market-header,
.footer,
.mobile-bottom-nav,
.account-panel,
.account-sidebar,
.card-box,
.summary-box,
.filter-panel,
.product-card,
.product-detail,
.cart-table-wrap,
.content-body{
  min-width:0;
}
img,video,svg,canvas,iframe{
  max-width:100%;
}
input,select,textarea,button{
  max-width:100%;
}
.table-scroll,
.cart-table-wrap,
.order-table-wrap,
.account-table-wrap,
.admin-table-wrap{
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

@media(max-width:720px){
  html,
  body{
    width:100%;
  }
  body{
    overflow-x:hidden!important;
    touch-action:pan-y;
  }
  .container,
  .market-header .container,
  .footer .container{
    width:100%!important;
    max-width:100%!important;
    padding-left:14px!important;
    padding-right:14px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  /* Header: compact, aligned, no edge overflow */
  .market-header{
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100vw!important;
    overflow:hidden!important;
  }
  .market-header .market-main{
    width:100%!important;
    max-width:100%!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    gap:8px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
    min-height:58px!important;
  }
  .market-search-wrap,
  .market-search,
  .market-search input{
    min-width:0!important;
    max-width:100%!important;
  }
  .market-search{
    height:44px!important;
    min-height:44px!important;
    grid-template-columns:36px minmax(0,1fr)!important;
    gap:6px!important;
    padding:4px!important;
    border-radius:13px!important;
  }
  .market-search-submit,
  .market-search button{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    border-radius:10px!important;
  }
  .market-search-submit .ui-icon,
  .market-search button .ui-icon{
    width:17px!important;
    height:17px!important;
  }
  .market-search input{
    height:36px!important;
    padding:0 8px 0 2px!important;
    font-size:14px!important;
    line-height:1.2!important;
  }
  .market-cart{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    border-radius:13px!important;
    overflow:visible!important;
  }
  .market-cart-icon svg,
  .market-cart-icon .ui-icon{
    width:23px!important;
    height:23px!important;
  }
  .market-cart b,
  .market-cart .js-cart-count{
    top:-5px!important;
    right:-3px!important;
    min-width:18px!important;
    height:18px!important;
    padding:0 4px!important;
    font-size:10px!important;
    line-height:18px!important;
  }

  /* Common mobile blocks */
  .page-title,
  .section{
    padding-left:0!important;
    padding-right:0!important;
  }
  .section-head{
    gap:10px!important;
    min-width:0!important;
  }
  .section-head h2,
  .page-title h1{
    font-size:22px!important;
    line-height:1.22!important;
    min-width:0!important;
  }
  .section-head a{
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
  .hero-grid,
  .shop-layout,
  .product-detail,
  .cart-layout,
  .checkout-layout,
  .lookup-layout,
  .account-grid,
  .blog-layout,
  .form-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
    gap:14px!important;
  }
  .hero-main,
  .hero-slide,
  .hero-slide img,
  .marketplace-hero-main{
    width:100%!important;
    max-width:100%!important;
  }
  .hero-main,
  .marketplace-hero-main{
    border-radius:16px!important;
    overflow:hidden!important;
  }
  .hero-copy{
    max-width:calc(100% - 28px)!important;
  }
  .hero-copy h1{
    overflow-wrap:anywhere!important;
  }
  .quick-entry-row,
  .voucher-row,
  .marketplace-voucher-row,
  .marketplace-category-grid,
  .category-grid{
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    padding-bottom:2px!important;
  }
  .quick-entry-row::-webkit-scrollbar,
  .voucher-row::-webkit-scrollbar,
  .marketplace-voucher-row::-webkit-scrollbar,
  .marketplace-category-grid::-webkit-scrollbar,
  .category-grid::-webkit-scrollbar{
    display:none!important;
  }
  .quick-entry-row > *,
  .voucher-row > *,
  .marketplace-voucher-row > *{
    flex:0 0 auto!important;
    max-width:calc(100vw - 42px)!important;
  }
  .category-grid,
  .marketplace-category-grid{
    grid-auto-flow:column!important;
    grid-auto-columns:minmax(92px, 112px)!important;
    grid-template-columns:none!important;
    gap:8px!important;
  }
  .cat-card,
  .marketplace-category-grid .cat-card{
    min-width:0!important;
    width:100%!important;
    padding:10px 8px!important;
    border-radius:12px!important;
    overflow:hidden!important;
  }
  .cat-card img,
  .marketplace-category-grid .cat-card img{
    width:56px!important;
    height:48px!important;
    object-fit:contain!important;
  }
  .cat-card span,
  .cat-card b,
  .marketplace-category-grid .cat-card span,
  .marketplace-category-grid .cat-card b{
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
    overflow-wrap:anywhere!important;
    line-height:1.15!important;
  }

  /* Product list: two stable columns, no right spill */
  .product-grid,
  .marketplace-product-grid{
    display:grid!important;
    grid-template-columns:repeat(2, minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  .product-grid > *,
  .marketplace-product-grid > *,
  .product-card,
  .marketplace-card{
    min-width:0!important;
    max-width:100%!important;
  }
  .product-card,
  .marketplace-card{
    border-radius:12px!important;
    overflow:hidden!important;
    transform:none!important;
  }
  .product-card:hover,
  .marketplace-card:hover{
    transform:none!important;
  }
  .product-image,
  .marketplace-image{
    width:100%!important;
    aspect-ratio:1/1!important;
    overflow:hidden!important;
  }
  .product-image img,
  .marketplace-image img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    padding:0!important;
  }
  .product-info,
  .marketplace-info{
    padding:8px!important;
    min-width:0!important;
  }
  .product-name,
  .marketplace-title{
    min-height:0!important;
    font-size:13px!important;
    line-height:1.25!important;
    -webkit-line-clamp:2!important;
    overflow-wrap:anywhere!important;
  }
  .product-cat,
  .marketplace-meta,
  .rating-row,
  .sold-row{
    font-size:11px!important;
    min-width:0!important;
  }
  .price-row,
  .marketplace-price-row{
    min-width:0!important;
    gap:4px!important;
    margin:6px 0!important;
  }
  .price-row b,
  .marketplace-price-row b{
    font-size:15px!important;
    white-space:nowrap!important;
  }
  .price-row del,
  .marketplace-price-row del{
    font-size:11px!important;
  }
  .rating-row,
  .marketplace-footer-line{
    display:flex!important;
    align-items:center!important;
    gap:4px!important;
    min-width:0!important;
  }
  .rating-row span,
  .marketplace-footer-line span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .sale-badge,
  .discount-badge{
    right:6px!important;
    top:6px!important;
    font-size:11px!important;
    padding:3px 5px!important;
    border-radius:7px!important;
  }
  .wishlist-btn{
    width:30px!important;
    height:30px!important;
  }

  /* Forms and filters */
  .filter-panel,
  .summary-box,
  .card-box,
  .content-body,
  .account-panel,
  .account-sidebar,
  .product-detail,
  .cart-table-wrap{
    width:100%!important;
    max-width:100%!important;
    border-radius:14px!important;
    padding:14px!important;
  }
  .filter-panel{
    position:static!important;
    top:auto!important;
  }
  .filter-panel form,
  .checkout-form,
  .lookup-layout form,
  .account-panel form{
    min-width:0!important;
  }
  .range-row,
  .buy-box,
  .trust-grid,
  .summary-box > div,
  .mini-item,
  .total{
    grid-template-columns:minmax(0,1fr)!important;
    min-width:0!important;
  }
  .filter-panel input,
  .filter-panel select,
  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select,
  .summary-box input,
  .lookup-layout input,
  .account-panel input,
  .account-panel select,
  .account-panel textarea{
    width:100%!important;
    min-width:0!important;
    font-size:16px!important;
  }

  /* Tables must scroll inside their own card, never the whole page */
  table{
    max-width:none;
  }
  .cart-table-wrap,
  .account-panel:has(table),
  .content-body:has(table),
  .card-box:has(table){
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .cart-table,
  .account-panel table,
  .content-body table,
  .card-box table{
    min-width:620px;
  }
  .cart-product{
    min-width:220px!important;
  }

  /* Footer and bottom nav */
  .footer{
    overflow:hidden!important;
    padding-bottom:86px!important;
  }
  .footer-grid{
    grid-template-columns:minmax(0,1fr)!important;
    gap:18px!important;
  }
  .mobile-bottom-nav{
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100vw!important;
    overflow:hidden!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
  .mobile-bottom-nav a{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:11px!important;
  }
  .back-to-top{
    right:14px!important;
  }
}

@media(max-width:390px){
  .container,
  .market-header .container,
  .footer .container{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .market-header .market-main{
    grid-template-columns:minmax(0,1fr) 40px!important;
    gap:7px!important;
  }
  .market-search{
    height:42px!important;
    min-height:42px!important;
    grid-template-columns:34px minmax(0,1fr)!important;
  }
  .market-search-submit,
  .market-search button{
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
  }
  .market-cart{
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
  }
  .product-grid,
  .marketplace-product-grid{
    gap:7px!important;
  }
  .product-info,
  .marketplace-info{
    padding:7px!important;
  }
  .product-name,
  .marketplace-title{
    font-size:12.5px!important;
  }
  .price-row b,
  .marketplace-price-row b{
    font-size:14px!important;
  }
}


/* V05.34 BeautiWeb footer credit */
.footer-credit{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:rgba(255,255,255,.62);
  font-size:13px;
}
.footer-credit span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  white-space:nowrap;
}
.footer-credit span:last-child{
  justify-content:flex-end;
  text-align:right;
}
.footer-credit a{
  display:inline-flex!important;
  width:auto!important;
  margin:0!important;
  color:#ffffff;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}
.footer-credit a:hover{
  text-decoration:underline;
}
@media(max-width:720px){
  .footer-credit{
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    flex-wrap:nowrap;
    gap:10px;
    font-size:11.5px;
    padding-bottom:78px;
  }
  .footer-credit span:first-child{
    flex:0 1 auto;
  }
  .footer-credit span:last-child{
    flex:0 0 auto;
  }
}
