/*
Theme Name: Via Dealz Child
Template: storefront
Description: Premium B2B wholesale marketplace skin for Via Dealz (black / gold).
Version: 1.0.8
Text Domain: viadealz-child
*/

:root{
  --vd-ink:#0e0e0f; --vd-ink-2:#17171a; --vd-line:#26262b;
  --vd-gold:#c9a227; --vd-gold-2:#e2c45a; --vd-ivory:#f6f3ec; --vd-paper:#fff;
  --vd-muted:#6b6b72; --vd-radius:10px;
  --vd-display:'Fraunces','Cormorant Garamond',Georgia,serif;
  --vd-ui:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}
body{font-family:var(--vd-ui);color:var(--vd-ink);background:var(--vd-paper);}
h1,h2,h3,h4,.vd-display{font-family:var(--vd-display);letter-spacing:-.01em;font-weight:500;color:inherit}
body.rtl{font-family:'Cairo','Inter',system-ui,sans-serif}
body.rtl h1,body.rtl h2,body.rtl h3{font-family:'Cairo',serif;letter-spacing:0}

/* ---------- global chrome ---------- */
.vd-announce{background:var(--vd-gold);color:var(--vd-ink);text-align:center;font-size:13px;font-weight:600;padding:8px 12px;letter-spacing:.02em}
.vd-announce a{color:var(--vd-ink);text-decoration:underline}
.site-header{background:var(--vd-ink)!important;border-bottom:1px solid var(--vd-line)!important;padding-top:14px;padding-bottom:0}
.site-header .site-branding img{max-height:56px}
.storefront-primary-navigation{background:var(--vd-ink)!important;border-top:1px solid var(--vd-line)}
.main-navigation ul.menu>li>a,.main-navigation ul.nav-menu>li>a{color:#e9e6dd!important;font-size:14px;font-weight:500;letter-spacing:.02em;padding:14px 16px}
.main-navigation ul.menu>li>a:hover{color:var(--vd-gold)!important}
.site-search .widget_product_search input[type=search]{background:var(--vd-ink-2);border:1px solid var(--vd-line);color:#fff;border-radius:999px;padding:10px 16px}
.site-header-cart .cart-contents,.site-header-cart .amount{color:#fff!important}
.site-footer{background:var(--vd-ink)!important;color:#b9b6ad;border-top:3px solid var(--vd-gold)}
.site-footer a,.site-footer h3{color:#e9e6dd!important}

/* buttons */
.vd-btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,#primary .button{
  border-radius:999px;font-weight:600;letter-spacing:.02em;transition:.2s}
.vd-btn{display:inline-flex;align-items:center;gap:8px;padding:14px 26px;font-size:15px;text-decoration:none;border:1.5px solid transparent;cursor:pointer}
.vd-btn--gold{background:var(--vd-gold);color:var(--vd-ink)!important}
.vd-btn--gold:hover{background:var(--vd-gold-2);transform:translateY(-1px)}
.vd-btn--ghost{border-color:rgba(255,255,255,.35);color:#fff!important}
.vd-btn--ghost:hover{border-color:var(--vd-gold);color:var(--vd-gold)!important}
.vd-btn--dark{background:var(--vd-ink);color:var(--vd-gold)!important}
.vd-btn--dark:hover{background:var(--vd-gold);color:var(--vd-ink)!important}

/* ---------- homepage ---------- */
.vd-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.vd-section{padding:88px 0}
.vd-eyebrow{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--vd-gold);margin-bottom:12px}
.vd-h2{font-size:clamp(30px,4vw,46px);line-height:1.1;margin:0 0 14px}
.vd-sub{color:var(--vd-muted);max-width:620px;font-size:17px;line-height:1.6;margin:0}
.vd-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:40px;flex-wrap:wrap}
.vd-link{font-weight:600;color:var(--vd-ink);text-decoration:none;border-bottom:2px solid var(--vd-gold);padding-bottom:2px}

.vd-hero{position:relative;background:radial-gradient(1200px 500px at 80% -10%,rgba(201,162,39,.22),transparent 60%),var(--vd-ink);color:#fff;padding:96px 0 0;overflow:hidden}
.vd-hero__grid{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:center;padding-bottom:72px}
.vd-hero h1{font-size:clamp(40px,5.6vw,72px);line-height:1.02;margin:0 0 22px;color:#fff}
.vd-hero h1 em{font-style:italic;color:var(--vd-gold)}
.vd-hero p.lead{font-size:19px;line-height:1.6;color:#cfccc2;max-width:560px;margin:0 0 32px}
.vd-search{display:flex;background:#fff;border-radius:999px;padding:6px;max-width:580px;margin-bottom:26px;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.vd-search select,.vd-search input{border:0;background:transparent;font:inherit;padding:0 16px;color:var(--vd-ink);outline:0}
.vd-search select{border-right:1px solid #e5e2d8;max-width:170px;font-size:14px}
.vd-search input{flex:1;min-width:0}
.vd-search button{background:var(--vd-ink);color:var(--vd-gold);border:0;border-radius:999px;padding:14px 26px;font-weight:700;cursor:pointer}
.vd-hero__cta{display:flex;gap:12px;flex-wrap:wrap}
.vd-panel{background:linear-gradient(160deg,#1c1c20,#121214);border:1px solid var(--vd-line);border-radius:18px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.45)}
.vd-panel h3{font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:var(--vd-gold);margin:0 0 18px;font-family:var(--vd-ui);font-weight:700}
.vd-panel ul{list-style:none;margin:0;padding:0}
.vd-panel li{display:flex;gap:14px;padding:14px 0;border-top:1px solid var(--vd-line);color:#e9e6dd;font-size:15px;line-height:1.5}
.vd-panel li:first-child{border-top:0}
.vd-panel li b{display:block;color:#fff;font-weight:600}
.vd-ico{flex:0 0 36px;height:36px;border-radius:50%;background:rgba(201,162,39,.14);color:var(--vd-gold);display:grid;place-items:center}
.vd-ico svg{width:18px;height:18px}
.vd-stats{border-top:1px solid var(--vd-line);background:rgba(255,255,255,.02)}
.vd-stats__row{display:grid;grid-template-columns:repeat(4,1fr)}
.vd-stat{padding:26px 24px;border-left:1px solid var(--vd-line)}
.vd-stat:first-child{border-left:0}
.vd-stat b{display:block;font-family:var(--vd-display);font-size:28px;color:#fff;font-weight:500}
.vd-stat span{color:#a8a59b;font-size:13px}

.vd-cats{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.vd-cat{position:relative;aspect-ratio:3/4;border-radius:var(--vd-radius);overflow:hidden;background:var(--vd-ink-2) center/cover;display:flex;align-items:flex-end;text-decoration:none;color:#fff!important;isolation:isolate}
.vd-cat::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,rgba(0,0,0,.85));z-index:-1}
.vd-cat span{padding:16px;font-weight:600;font-size:15px}
.vd-cat small{display:block;font-weight:400;color:var(--vd-gold-2);font-size:12px;margin-top:2px}
.vd-cat:hover{transform:translateY(-3px);box-shadow:0 14px 40px rgba(0,0,0,.25)}
.vd-cat{transition:.25s}

.vd-lots{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.vd-lot{background:#fff;border:1px solid #e9e6dd;border-radius:var(--vd-radius);overflow:hidden;transition:.25s;display:flex;flex-direction:column}
.vd-lot:hover{box-shadow:0 18px 50px rgba(14,14,15,.12);transform:translateY(-3px)}
.vd-lot__img{aspect-ratio:4/3;background:var(--vd-ivory) center/cover;position:relative}
.vd-lot__tag{position:absolute;top:12px;left:12px;background:var(--vd-ink);color:var(--vd-gold);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:5px 10px;border-radius:999px}
.vd-lot__body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.vd-lot__cat{font-size:12px;color:var(--vd-muted);text-transform:uppercase;letter-spacing:.1em}
.vd-lot__title{font-family:var(--vd-ui);font-weight:600;font-size:16px;line-height:1.35;margin:0;color:var(--vd-ink)}
.vd-lot__meta{display:flex;justify-content:space-between;align-items:baseline;margin-top:auto;padding-top:12px;border-top:1px dashed #e0dcd0}
.vd-lot__price{font-family:var(--vd-display);font-size:22px;font-weight:600}
.vd-lot__lock{font-size:12px;color:var(--vd-muted)}
.vd-lot a.stretch{position:absolute;inset:0}

.vd-auction{background:var(--vd-ink);color:#fff;border-radius:22px;padding:56px;display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center;position:relative;overflow:hidden}
.vd-auction::before{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(201,162,39,.35),transparent 65%)}
.vd-auction h2{color:#fff;font-size:clamp(30px,3.6vw,44px);margin:0 0 14px}
.vd-auction p{color:#cfccc2;font-size:17px;line-height:1.6;margin:0 0 26px}
.vd-count{display:flex;gap:12px;position:relative}
.vd-count div{flex:1;background:#1c1c20;border:1px solid var(--vd-line);border-radius:14px;padding:20px 8px;text-align:center}
.vd-count b{display:block;font-family:var(--vd-display);font-size:38px;color:var(--vd-gold)}
.vd-count span{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#a8a59b}

.vd-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border:1px solid #e9e6dd;border-radius:var(--vd-radius);overflow:hidden}
.vd-step{padding:32px 28px;border-left:1px solid #e9e6dd;background:#fff}
.vd-step:first-child{border-left:0}
.vd-step i{font-style:normal;font-family:var(--vd-display);font-size:44px;color:var(--vd-gold);line-height:1}
.vd-step h3{font-family:var(--vd-ui);font-size:17px;font-weight:700;margin:16px 0 8px}
.vd-step p{margin:0;color:var(--vd-muted);font-size:15px;line-height:1.55}

.vd-plans{background:var(--vd-ivory)}
.vd-plangrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:stretch}
.vd-plan{background:#fff;border:1px solid #e3dfd2;border-radius:16px;padding:36px 32px;display:flex;flex-direction:column;position:relative}
.vd-plan--hot{background:var(--vd-ink);color:#fff;border-color:var(--vd-ink);transform:translateY(-10px);box-shadow:0 30px 70px rgba(14,14,15,.3)}
.vd-plan--hot h3,.vd-plan--hot .vd-price{color:#fff}
.vd-plan__badge{position:absolute;top:-13px;left:32px;background:var(--vd-gold);color:var(--vd-ink);font-size:11px;font-weight:800;letter-spacing:.12em;padding:6px 12px;border-radius:999px}
.vd-plan h3{font-size:24px;margin:0 0 6px}
.vd-plan .cap{color:var(--vd-muted);font-size:14px;margin-bottom:22px}
.vd-plan--hot .cap{color:#a8a59b}
.vd-price{font-family:var(--vd-display);font-size:46px;line-height:1}
.vd-price small{font-family:var(--vd-ui);font-size:14px;color:var(--vd-muted);margin-left:6px}
.vd-plan ul{list-style:none;margin:24px 0 30px;padding:0;display:grid;gap:12px;font-size:15px}
.vd-plan li::before{content:"✓";color:var(--vd-gold);font-weight:800;margin-right:10px}
.vd-plan .vd-btn{margin-top:auto;justify-content:center}

.vd-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.vd-trust div{padding:28px;border:1px solid #e9e6dd;border-radius:var(--vd-radius)}
.vd-trust h3{font-family:var(--vd-ui);font-size:17px;font-weight:700;margin:0 0 8px}
.vd-trust p{margin:0;color:var(--vd-muted);font-size:15px;line-height:1.55}

.vd-cta{background:var(--vd-gold);text-align:center;padding:72px 24px}
.vd-cta h2{font-size:clamp(28px,3.6vw,42px);margin:0 0 20px;color:var(--vd-ink)}

body.home .site-content>.col-full{max-width:none;padding:0}
body.home .content-area,body.home #primary{float:none;width:100%;margin:0;padding:0}
body.home .site-main{margin:0}
body.home .hentry{margin:0}

/* RTL */
body.rtl .vd-search select{border-right:0;border-left:1px solid #e5e2d8}
body.rtl .vd-stat{border-left:0;border-right:1px solid var(--vd-line)}
body.rtl .vd-stat:first-child{border-right:0}
body.rtl .vd-step{border-left:0;border-right:1px solid #e9e6dd}
body.rtl .vd-step:first-child{border-right:0}
body.rtl .vd-plan li::before{margin-right:0;margin-left:10px}
body.rtl .vd-plan__badge{left:auto;right:32px}
body.rtl .vd-lot__tag{left:auto;right:12px}

/* responsive */
@media(max-width:1000px){
  .vd-hero__grid,.vd-auction{grid-template-columns:1fr}
  .vd-cats{grid-template-columns:repeat(3,1fr)}
  .vd-lots{grid-template-columns:repeat(2,1fr)}
  .vd-steps,.vd-stats__row{grid-template-columns:repeat(2,1fr)}
  .vd-plangrid,.vd-trust{grid-template-columns:1fr}
  .vd-plan--hot{transform:none}
  .vd-section{padding:60px 0}
  .vd-auction{padding:36px 26px}
}
@media(max-width:560px){
  .vd-cats{grid-template-columns:repeat(2,1fr)}
  .vd-lots{grid-template-columns:1fr}
  .vd-search{flex-direction:column;border-radius:18px;gap:6px}
  .vd-search select{max-width:none;border:0;padding:10px 16px}
  .vd-count b{font-size:28px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* fixes + icon tiles + empty-lots state */
.site-header{margin-bottom:0!important}
.site-content{padding-top:0!important}
.storefront-breadcrumb{display:none}
.site-header .site-branding img{background:#fff;border-radius:6px;padding:3px}
.vd-cat{background-image:linear-gradient(160deg,#26262c,#0e0e0f)}
.vd-cat svg{position:absolute;top:22px;left:22px;width:40px;height:40px;color:var(--vd-gold)}
body.rtl .vd-cat svg{left:auto;right:22px}
.vd-cat:hover svg{color:var(--vd-gold-2)}
.vd-soon{background:#fff;border:1px dashed #d8d3c2;border-radius:var(--vd-radius);padding:48px 32px;text-align:center}
.vd-soon h3{margin:0 0 8px;font-size:26px}
.vd-soon p{color:var(--vd-muted);max-width:520px;margin:0 auto 22px}

/* logo aspect ratio (old Customizer CSS was per-theme) */
.site-header .custom-logo,.site-header .site-branding img{width:auto!important;height:auto!important;max-height:56px}

/* ---------- v1.0.4: catalog, product, plans page, account ---------- */
.vd-hero--slim{padding:72px 0 64px}
.vd-hero--slim h1{font-size:clamp(34px,4.6vw,56px)}
.vd-hero--slim p.lead{margin:0}
.vd-faq{max-width:780px}
.vd-faq details{border-bottom:1px solid #e3dfd2;padding:18px 0}
.vd-faq summary{cursor:pointer;font-weight:600;font-size:17px;list-style:none;display:flex;justify-content:space-between;gap:16px}
.vd-faq summary::after{content:"+";color:var(--vd-gold);font-size:22px;line-height:1}
.vd-faq details[open] summary::after{content:"–"}
.vd-faq p{color:var(--vd-muted);margin:12px 0 0;line-height:1.65}
.vd-plans-page .vd-plan{margin-top:14px}

/* shop grid */
.woocommerce-products-header{padding:40px 0 8px}
.woocommerce-products-header__title{font-size:clamp(30px,4vw,44px)}
.storefront-sorting{margin:0 0 20px}
.woocommerce-result-count,.woocommerce-ordering select{font-size:13px;color:var(--vd-muted)}
.vd-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.vd-pills a{padding:8px 16px;border:1px solid #d9d4c4;border-radius:999px;font-size:13px;font-weight:600;color:var(--vd-ink);background:#fff}
.vd-pills a:hover{border-color:var(--vd-gold)}
.vd-pills a.is-on{background:var(--vd-ink);border-color:var(--vd-ink);color:#fff}
ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:22px;margin:0!important;padding:0}
ul.products::before,ul.products::after{display:none!important}
ul.products li.product{width:auto!important;float:none!important;margin:0!important;background:#fff;border:1px solid #e3dfd2;border-radius:14px;padding:0 0 18px!important;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}
ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(14,14,15,.12)}
ul.products li.product img{margin:0!important;aspect-ratio:4/3;object-fit:cover;width:100%}
ul.products li.product .woocommerce-loop-product__title{font-family:var(--vd-display);font-size:17px;padding:16px 18px 6px}
ul.products li.product .price{padding:0 18px;color:var(--vd-ink);font-weight:700;font-size:18px;display:block}
ul.products li.product .button{margin:14px 18px 0;background:var(--vd-gold);color:var(--vd-ink);border-radius:8px;font-weight:700;text-align:center}
ul.products li.product .button:hover{background:var(--vd-gold-2)}
.vd-specs{display:grid;gap:4px;margin:6px 18px 12px;font-size:12.5px}
.vd-specs div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed #e3dfd2;padding:3px 0}
.vd-specs dt{color:var(--vd-muted)}
.vd-specs dd{margin:0;font-weight:600}
.onsale{background:var(--vd-gold)!important;color:var(--vd-ink)!important;border-radius:999px!important;min-height:0!important;line-height:1!important;padding:7px 12px!important}

/* lot detail */
.single-product div.product{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:start}
.single-product div.product .woocommerce-product-gallery{width:auto!important;float:none!important;margin:0!important;border:1px solid #e3dfd2;border-radius:16px;overflow:hidden}
.single-product div.product .summary{width:auto!important;float:none!important;margin:0!important;position:sticky;top:24px}
.single-product .product_title{font-size:clamp(28px,3.4vw,40px);line-height:1.1}
.single-product .summary .price{font-size:30px;font-weight:700;color:var(--vd-ink)}
.single-product .single_add_to_cart_button{background:var(--vd-gold)!important;color:var(--vd-ink)!important;border-radius:10px;font-weight:800;padding:16px 28px}
.single-product .single_add_to_cart_button:hover{background:var(--vd-gold-2)!important}
.single-product .quantity .qty{border-radius:10px;padding:14px 8px}
.vd-lotbox{background:var(--vd-ivory);border:1px solid #e3dfd2;border-radius:14px;padding:20px 22px;margin:18px 0}
.vd-specs--row{margin:0 0 14px;font-size:14px}
.vd-assure{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:14px}
.vd-assure li::before{content:"✓";color:var(--vd-gold);font-weight:800;margin-right:10px}
.single-product .woocommerce-tabs,.single-product .related,.single-product .upsells{grid-column:1/-1}
.woocommerce-tabs ul.tabs li.active{border-bottom:2px solid var(--vd-gold)}

/* forms, cart, checkout, account */
.woocommerce form .input-text,.woocommerce form select,.woocommerce form textarea{border:1px solid #d9d4c4;border-radius:8px;padding:12px 14px;background:#fff}
.woocommerce form .input-text:focus,.woocommerce form select:focus,.woocommerce form textarea:focus{border-color:var(--vd-gold);outline:2px solid rgba(201,162,39,.25)}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce #respond input#submit.alt,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{background:var(--vd-ink);color:#fff;border-radius:10px;font-weight:700}
.woocommerce a.button.alt,.woocommerce button.button.alt,#place_order{background:var(--vd-gold)!important;color:var(--vd-ink)!important}
.woocommerce table.shop_table{border:1px solid #e3dfd2;border-radius:12px;border-collapse:separate;overflow:hidden}
.woocommerce-info,.woocommerce-message{border-top-color:var(--vd-gold)!important;background:var(--vd-ivory)}
.woocommerce-info::before,.woocommerce-message::before{color:var(--vd-gold)!important}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.woocommerce-MyAccount-navigation a{display:block;padding:11px 16px;border-radius:8px;font-weight:600;color:var(--vd-ink)}
.woocommerce-MyAccount-navigation .is-active a,.woocommerce-MyAccount-navigation a:hover{background:var(--vd-ink);color:#fff}
.woocommerce-account .woocommerce-MyAccount-content{background:#fff;border:1px solid #e3dfd2;border-radius:14px;padding:28px}
.woocommerce-page .entry-title,.page .entry-title{font-size:clamp(28px,3.4vw,42px)}

@media(max-width:1000px){
  ul.products{grid-template-columns:repeat(2,1fr)}
  .single-product div.product{grid-template-columns:1fr}
  .single-product div.product .summary{position:static}
}
@media(max-width:560px){ul.products{gap:12px}.vd-specs{margin:6px 12px 10px}}
body.rtl .vd-plan__badge{left:auto;right:32px}
body.rtl .vd-price small{margin:0 6px 0 0}
body.rtl .vd-assure li::before,body.rtl .vd-plan li::before{margin:0 0 0 10px}
.single-product div.product .woocommerce-product-gallery{grid-column:1;grid-row:1}
.single-product div.product .summary{grid-column:2;grid-row:1}
.single-product .storefront-product-pagination{display:none}
@media(max-width:1000px){.single-product div.product .summary{grid-column:1;grid-row:auto}}
.woocommerce-product-gallery__image img,.woocommerce-product-gallery .flex-viewport{width:100%!important}
.woocommerce-products-header,.woocommerce-page .entry-header{margin-bottom:12px}
