
/* Merqado Studio UI — handcrafted retail system */
:root{
  --ink:#171613; --paper:#f7f5f0; --panel:#fffdf8; --line:#ded8cd;
  --brand:#9d2f2b; --brand-2:#6f1f1d; --gold:#b98237;
  --green:#2e6b4f; --blue:#315b74; --radius-lg:18px;
  --radius-md:10px; --container:1320px; --shadow-soft:0 10px 35px rgba(29,25,20,.08);
}
body{background:var(--paper);color:var(--ink);letter-spacing:-.01em}
body.dark{--paper:#151513;--panel:#1d1c19;--ink:#f4f0e8;--line:#3a3730;--brand:#d15a51;--brand-2:#a63c36;--gold:#d4a05a;--shadow-soft:0 14px 45px rgba(0,0,0,.28)}
.container{width:min(calc(100% - 40px),var(--container))}
.header{background:color-mix(in srgb,var(--panel) 96%,transparent);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.topbar{background:var(--ink);color:var(--paper)}
.logo{font-size:28px!important;font-weight:900!important;letter-spacing:-.07em}
.logo:after{content:" / retail";font-size:10px;font-weight:600;letter-spacing:.08em;color:var(--gold);margin-right:8px}
.main-head{min-height:82px!important}
.search{border:1px solid var(--line)!important;border-radius:999px!important;background:var(--paper)!important;box-shadow:none!important}
.search input{height:48px!important}
.head-actions{gap:8px}
.icon-btn{border:1px solid var(--line)!important;background:var(--panel)!important;border-radius:10px!important}
.icon-btn:hover{border-color:var(--brand)!important;transform:translateY(-1px)}
.nav{border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent);background:var(--panel)}
.nav .inner{min-height:48px}
.nav a,.nav button{font-size:13px;font-weight:700}
.nav a.active,.nav a:hover,.nav button:hover{color:var(--brand)}
.hero{padding:34px 0 12px}
.hero-card{min-height:410px!important;border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:var(--shadow-soft)!important;overflow:hidden;position:relative;background:var(--panel)!important}
.hero-content{max-width:670px!important;padding:70px!important;position:relative;z-index:2}
.hero-content h1{font-size:clamp(38px,5vw,68px)!important;line-height:1.15!important;letter-spacing:-.055em!important;margin:18px 0!important}
.hero-content p{font-size:17px!important;max-width:570px;color:var(--muted)}
.hero:after{content:"";display:block}
.hero-card:before,.hero-card:after{content:"";position:absolute;inset:auto;pointer-events:none}
.hero-card:before{width:420px;height:420px;border-radius:50%;left:-80px;top:-120px;background:radial-gradient(circle at 35% 35%,color-mix(in srgb,var(--brand) 28%,transparent),transparent 65%);filter:blur(4px)}
.hero-card:after{width:360px;height:360px;right:-100px;bottom:-140px;border:70px solid color-mix(in srgb,var(--gold) 14%,transparent);border-radius:50%}
.btn{border-radius:8px;padding:12px 19px}
.btn-primary{background:var(--brand)!important;box-shadow:0 6px 16px color-mix(in srgb,var(--brand) 22%,transparent)}
.btn-primary:hover{background:var(--brand-2)!important;transform:translateY(-1px)}
.section{padding:66px 0!important}
.section-head{border:0!important;padding:0!important;margin-bottom:26px!important}
.section-head h2{font-size:29px!important;letter-spacing:-.04em}
.section-head:after{content:"";flex:1;height:1px;background:var(--line);margin-right:22px}
.card{border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:none!important;padding:22px}
.card:hover{box-shadow:var(--shadow-soft)!important}
.product-card:hover,.blog-card:hover{transform:translateY(-3px)}
.product-card,.blog-card,.compare-wrap{padding:0!important}
.sidebar{padding:18px}.summary{padding:20px}.stat{padding:18px}.testimonial{padding:22px}.auth-card{padding:30px}.account-nav{padding:12px}.card>.empty{border:0!important;background:transparent!important}
.product-grid{gap:18px!important}
.product-card{overflow:hidden;transition:.22s ease}
.product-img{background:var(--panel)!important;min-height:280px!important}
.product-img img{transition:transform .35s ease!important}
.product-card:hover .product-img img{transform:scale(1.045)}
.product-tools button{border:1px solid var(--line)!important;background:var(--panel)!important;border-radius:8px!important}
.product-body{padding:18px!important}
.product-brand{font-size:11px!important;letter-spacing:.06em;text-transform:uppercase}
.product-title{font-size:15px!important;line-height:1.7!important}
.product-actions{gap:8px!important}
.promo{border-radius:16px!important;border:1px solid var(--line)!important;box-shadow:none!important}
.banner-grid{gap:18px!important}
footer{margin-top:30px!important;background:#171613!important;color:#f3eee5!important}
footer .logo{color:#fff!important}
footer .muted,footer p{color:#bcb5aa}
footer a:hover{color:#d4a05a!important}
.copyright{border-top:1px solid #3a3730!important}

/* distinctive home directions */
.home-digital .hero-card{background:linear-gradient(100deg,#eaf0f3 0%,#f9f7f1 52%,#dfe8ed 100%)!important}
.home-digital.dark .hero-card{background:linear-gradient(100deg,#172329,#1d1c19 55%,#202b31)!important}
.home-digital .hero-card:before{width:520px;height:520px;border-radius:28px;transform:rotate(18deg);background:linear-gradient(135deg,rgba(49,91,116,.18),transparent)}
.home-digital .hero-card:after{width:260px;height:260px;border:1px solid var(--blue);border-radius:18px;right:90px;bottom:70px;transform:rotate(18deg);opacity:.35}
.home-digital .hero-content:after{content:"TECH / 01";position:absolute;right:70px;top:55px;font:700 11px/1 Arial;letter-spacing:.22em;color:var(--blue)}
.home-fashion .hero-card{background:linear-gradient(110deg,#f1e9e2,#fbf7f1 55%,#e6d8ce)!important}
.home-fashion .hero-card:before{left:auto;right:-70px;top:-120px;width:500px;height:500px;background:linear-gradient(145deg,rgba(157,47,43,.12),transparent 60%);border-radius:50%}
.home-fashion .hero-card:after{right:105px;bottom:55px;width:230px;height:300px;border:1px solid #9d6b61;border-radius:115px 115px 16px 16px;transform:rotate(10deg);opacity:.35}
.home-fashion .hero-content h1{font-weight:700!important}
.home-fashion .hero-content:after{content:"COLLECTION / 2026";position:absolute;right:70px;bottom:52px;font-size:10px;letter-spacing:.18em;color:#7b625a}
.home-homeware .hero-card{background:linear-gradient(120deg,#e9e2d7,#f8f5ee 58%,#ddd1bf)!important}
.home-homeware .hero-card:before{left:auto;right:55px;top:60px;width:260px;height:260px;border-radius:12px;background:linear-gradient(145deg,rgba(107,87,62,.14),transparent);box-shadow:70px 50px 0 -20px rgba(107,87,62,.08),140px 95px 0 -45px rgba(107,87,62,.08)}
.home-homeware .hero-card:after{right:330px;bottom:50px;width:170px;height:110px;border:1px solid #9d8c76;border-radius:90px 90px 12px 12px;opacity:.5}
.home-homeware .hero-content h1{max-width:560px}
.home-market .hero-card{background:linear-gradient(120deg,#20211f,#2b2924 55%,#3b3027)!important;color:#fff}
.home-market .hero-card .muted,.home-market .hero-card p{color:#d1cbc0}
.home-market .hero-card:before{left:auto;right:8%;top:15%;width:420px;height:260px;border-radius:16px;background:linear-gradient(135deg,rgba(255,255,255,.1),transparent);transform:skew(-12deg)}
.home-market .hero-card:after{right:8%;bottom:60px;width:320px;height:1px;border:0;background:#b98237;box-shadow:0 -12px 0 rgba(185,130,55,.35),0 12px 0 rgba(185,130,55,.2)}
.home-market .hero-content h1{color:#fff}
.home-market .market-strip{position:relative;z-index:3;margin-top:-55px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-soft);display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden}
.market-strip>div{padding:20px;border-left:1px solid var(--line)}
.market-strip>div:last-child{border-left:0}
.market-strip b{font-size:14px}.market-strip small{color:var(--muted)}
/* default home: editorial retail */
body:not(.home-digital):not(.home-fashion):not(.home-homeware):not(.home-market) .hero-card{
 background:linear-gradient(100deg,#fffdf8,#f2ece1)!important
}
body:not(.home-digital):not(.home-fashion):not(.home-homeware):not(.home-market) .hero-content:before{
 content:"MERQADO / SELECTED GOODS";display:block;font:800 10px/1 Arial;letter-spacing:.2em;color:var(--brand)
}

/* tables/forms */
.table-wrap{border:1px solid var(--line)!important;border-radius:12px!important;background:var(--panel);overflow:auto}
.table-wrap table,.orders,.compare{min-width:720px}
table{min-width:0}
th{background:var(--ink)!important;color:var(--paper)!important}
input,select,textarea,.input{border:1px solid var(--line)!important;border-radius:8px!important;background:var(--panel)!important;color:var(--ink)!important}
input:focus,select:focus,textarea:focus{outline:3px solid color-mix(in srgb,var(--brand) 16%,transparent)!important;border-color:var(--brand)!important}
input:disabled,textarea:disabled,select:disabled{opacity:.6;cursor:not-allowed}
input[type=checkbox],input[type=radio]{accent-color:var(--brand)!important;width:16px;height:16px;flex:none;cursor:pointer}
input[type=range]{border:0!important;background:transparent!important;border-radius:0!important;padding:0!important;height:30px;appearance:none;-webkit-appearance:none;cursor:pointer}
input[type=range]:focus{outline:none!important}
input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line)}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:var(--brand);border:3px solid var(--panel);box-shadow:0 1px 5px rgba(0,0,0,.28);margin-top:-7px}
input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line)}
input[type=range]::-moz-range-thumb{width:13px;height:13px;border-radius:50%;background:var(--brand);border:3px solid var(--panel);box-shadow:0 1px 5px rgba(0,0,0,.28)}
:where(a,button,.btn,.icon-btn,.thumb,.choice,.tab-btn,.faq-q,.pagination a,.pagination button,.mobile-bar a):focus-visible{outline:3px solid color-mix(in srgb,var(--brand) 32%,transparent);outline-offset:2px}
.form-label{font-weight:700}
.modal{backdrop-filter:blur(8px)}
.modal-card,.mini-cart,.mobile-panel{background:var(--panel)!important;border:1px solid var(--line)!important}
.toast{border-radius:10px!important;box-shadow:var(--shadow-soft)!important}
.breadcrumb{font-size:12px!important;color:var(--muted)!important}
.empty{border:1px dashed var(--line)!important;border-radius:14px!important;background:var(--panel)!important}

/* design showcase */
.showcase-hero{padding:70px 0 35px;background:var(--ink);color:var(--paper)}
.showcase-hero .eyebrow{color:var(--gold);font-size:11px;letter-spacing:.2em;font-weight:800}
.showcase-hero h1{font-size:clamp(40px,6vw,78px);line-height:1.05;letter-spacing:-.06em;max-width:850px}
.showcase-card{padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.token-row{display:flex;flex-wrap:wrap;gap:10px}
.token{height:48px;min-width:130px;border:1px solid var(--line);border-radius:8px;padding:12px 14px}
.token strong{display:block;font-size:12px}.token small{color:var(--muted)}
@media(max-width:768px){
 .container{width:min(calc(100% - 28px),var(--container))}
 .hero{padding-top:18px}
 .hero-card{min-height:500px!important}
 .hero-content{padding:34px 25px!important}
 .hero-content h1{font-size:38px!important}
 .section{padding:44px 0!important}
 .section-head h2{font-size:23px!important}
 .section-head:after{display:none}
 .market-strip{grid-template-columns:1fr 1fr!important;margin-top:-30px!important}
 .market-strip>div{border-bottom:1px solid var(--line)}
}
@media(max-width:480px){
 .hero-card{border-radius:16px!important}
 .hero-content h1{font-size:32px!important}
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .product-img{min-height:185px!important}
 .product-body{padding:12px!important}
 .product-actions .btn-outline{display:none}
 .market-strip{grid-template-columns:1fr!important}
 .market-strip>div{border-left:0!important}
}

.home-showcase{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:18px}
.home-showcase .tile{min-height:230px;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:28px;position:relative;overflow:hidden}
.home-showcase .tile h3{font-size:25px;margin:0 0 8px;letter-spacing:-.04em}
.home-showcase .tile small{color:var(--muted)}
.home-showcase .tile.dark-tile{background:var(--ink);color:var(--paper)}
.home-showcase .tile.accent-tile{background:var(--brand);color:#fff}
.editorial-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}
.editorial-card{min-height:310px;padding:26px;border:1px solid var(--line);border-radius:14px;background:var(--panel);display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}
.editorial-card:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.55));opacity:.75}
.editorial-card>*{position:relative;z-index:1;color:#fff}
.editorial-card:nth-child(1){background:linear-gradient(135deg,#314d5e,#91a7af)}
.editorial-card:nth-child(2){background:linear-gradient(135deg,#6f4036,#c7a38d)}
.editorial-card:nth-child(3){background:linear-gradient(135deg,#5d624f,#b5ad91)}
.stat-band{display:grid;grid-template-columns:repeat(4,1fr);border-block:1px solid var(--line);margin:20px 0}
.stat{padding:25px;border-left:1px solid var(--line)}.stat:last-child{border-left:0}
.stat b{display:block;font-size:25px}.stat span{font-size:12px;color:var(--muted)}
.quote-card{padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.vendor-row{display:flex;gap:12px;overflow:auto;padding-bottom:5px}.vendor{min-width:190px;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.vendor b{display:block}.vendor span{font-size:12px;color:var(--muted)}
.category-rail{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.category-rail a{padding:18px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-align:center;font-weight:700;font-size:13px}.category-rail a:hover{border-color:var(--brand);transform:translateY(-2px)}
@media(max-width:768px){.home-showcase,.editorial-grid{grid-template-columns:1fr}.stat-band{grid-template-columns:1fr 1fr}.stat{border-bottom:1px solid var(--line)}.category-rail{grid-template-columns:repeat(3,1fr)}}

.mini-cart-action{width:100%}.mini-remove{padding:5px 9px!important;margin-top:6px}.mobile-theme{margin-top:10px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font-weight:700}.mobile-theme:hover{border-color:var(--brand)}

/* hero readability on light art-direction gradients */
.home-digital .hero-content,.home-fashion .hero-content,.home-market .hero-content{color:var(--ink)}
.home-digital .hero-content h1,.home-fashion .hero-content h1,.home-market .hero-content h1{color:var(--ink)}
.home-market .hero-content .muted,.home-market .hero-content p{color:var(--muted)}
.home-digital.dark .hero-content,.home-fashion.dark .hero-content,.home-market.dark .hero-content{color:var(--ink)}

/* sidebar filter polish */
.sidebar .full-width{margin-top:16px}
@media(min-width:801px){.sidebar .mini-head .icon-btn{display:none}}
@media(max-width:800px){
 .sidebar.static-mobile{position:static;width:auto;transform:none;overflow:visible;z-index:auto;border-radius:14px}
 .sidebar:not(.static-mobile) .mini-head{margin-bottom:6px}
 .toast{bottom:78px;right:16px;left:16px;text-align:center}
}
.filter-group:last-of-type{border-bottom:0}

/* blog / widget side links */
.side-links{display:flex;flex-direction:column;margin:4px 0 0;padding:0;list-style:none}
.side-links a{display:block;padding:9px 2px;border-bottom:1px dashed var(--line);color:var(--muted);font-size:13.5px;transition:.15s}
.side-links a:hover{color:var(--brand);padding-right:8px}
.side-links a:last-child{border-bottom:0}

/* product page: buy benefits & reviews */
.benefit-list{display:flex;flex-direction:column;gap:10px;margin:12px 0 0;padding:0;list-style:none}
.benefit-list li{display:flex;gap:10px;align-items:center;font-size:13.5px;color:var(--muted)}
.benefit-list li:before{content:'✓';display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e1eee6;color:var(--success);font-size:11px;font-weight:800;flex:none}
body.dark .benefit-list li:before{background:#24473a}
.benefit-list li b{color:var(--ink);font-weight:700}
.review-item+.review-item{margin-top:14px;padding-top:16px;border-top:1px dashed var(--line)}
.review-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.review-head b{font-size:14px}
.review-date{font-size:11px;color:var(--muted)}
.review-item p{margin:8px 0 0;font-size:13.5px}
.review-item .verified{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--success)}
.rate-summary{display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:18px;margin-bottom:18px;border:1px dashed var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 60%,transparent)}
.rate-summary .avg{text-align:center;min-width:86px}
.rate-summary .avg b{display:block;font-size:34px;line-height:1.2;color:var(--ink)}
.rate-summary .avg span{font-size:11px;color:var(--muted)}
.rate-rows{flex:1;min-width:220px;display:grid;gap:6px}
.rate-row{display:grid;grid-template-columns:52px 1fr 34px;align-items:center;gap:10px;font-size:11px;color:var(--muted)}
.rate-bar{height:7px;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);overflow:hidden}
.rate-bar i{display:block;height:100%;background:var(--gold);border-radius:999px}

/* CTA band (reusable) */
.cta-band{background:linear-gradient(120deg,var(--brand),var(--brand-2));color:#fff;border-radius:18px;padding:38px 34px;display:flex;align-items:center;justify-content:space-between;gap:22px;flex-wrap:wrap;position:relative;overflow:hidden}
.cta-band:before{content:"";position:absolute;inset:auto;left:-60px;top:-90px;width:230px;height:230px;border-radius:50%;border:34px solid rgba(255,255,255,.12)}
.cta-band h2{margin:0 0 6px;font-size:24px;letter-spacing:-.03em}
.cta-band p{margin:0;opacity:.92;font-size:14px}
.cta-band .btn{background:#fff;color:var(--brand);box-shadow:0 8px 20px rgba(0,0,0,.18);position:relative;z-index:1}
.cta-band .btn:hover{transform:translateY(-1px);background:#fff}
.benefits.cols-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:800px){.benefits.cols-3{grid-template-columns:1fr}.cta-band{padding:28px 22px}}

/* checkout stepper: distinguish done vs active */
.step.done:before{content:'✓';color:var(--surface);box-shadow:none;display:grid;place-items:center;font-size:13px;font-weight:800}

/* outline buttons on dark/accent tiles */
.dark-tile .btn-outline,.accent-tile .btn-outline{color:currentColor;border-color:color-mix(in srgb,currentColor 45%,transparent)}
.dark-tile .btn-outline:hover,.accent-tile .btn-outline:hover{border-color:currentColor}

/* wide tables inside cards scroll instead of breaking layout */
.dashboard>section,.cart-layout>section{min-width:0}
.card.table-card{overflow:auto}




