/*
Theme Name: YSDBBC Global
Theme URI: https://ysdbbcglobal.com
Description: Premium standalone theme for YSDBBC Global — mobile accessories wholesale (catalog & quotation, no checkout selling). Fully custom design system with animated sections and scroll effects. Designed and developed by Sohail WEB Expert.
Author: Sohail WEB Expert
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: ysdbbc-global
*/

/* ================= Design tokens ================= */
:root{
  --ys-navy:#101010;
  --ys-navy-2:#1B1B1B;
  --ys-blue:#111111;
  --ys-peri:#FF6A00;
  --ys-sky:#F4F4F4;
  --ys-bg:#FFFFFF;
  --ys-card:#FFFFFF;
  --ys-ink:#141414;
  --ys-muted:#5B6B82;
  --ys-gold:#FF6A00;
  --ys-line:#E6E9F0;
  --ys-radius:18px;
  --ys-shadow:0 18px 40px rgba(10,22,51,.10);
  --ys-header-h:76px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ys-ink);background:var(--ys-bg);-webkit-font-smoothing:antialiased;overflow-x:clip}
h1,h2,h3,h4,h5,h6{font-family:'Poppins','Inter',sans-serif;color:var(--ys-navy);letter-spacing:-.01em;margin:0 0 .5em;line-height:1.15}
p{margin:0 0 1em;line-height:1.65}
a{color:var(--ys-blue);text-decoration:none}
img{max-width:100%;height:auto}
.ys-container{width:min(1240px,100% - 40px);margin-inline:auto}
.ys-main{min-height:60vh}

/* ================= Buttons ================= */
.ys-btn{display:inline-flex;align-items:center;gap:.55rem;background:var(--ys-navy);color:#fff!important;
  padding:.9rem 2rem;border-radius:999px;font-weight:600;font-size:.95rem;line-height:1;border:0;cursor:pointer;
  transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.ys-btn:hover{background:var(--ys-blue);transform:translateY(-2px);box-shadow:var(--ys-shadow)}
.ys-btn--blue{background:var(--ys-blue)}
.ys-btn--blue:hover{background:var(--ys-navy)}
.ys-btn--light{background:#fff;color:var(--ys-navy)!important}
.ys-btn--light:hover{background:var(--ys-sky)}

/* ================= Top bar ================= */
.ys-topbar{background:var(--ys-navy);color:#C9D4EA;font-size:.82rem}
.ys-topbar .ys-container{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.45rem 0}
.ys-topbar a{color:#fff;font-weight:600}
.ys-topbar__right{display:flex;gap:1.25rem;align-items:center}
@media(max-width:640px){.ys-topbar__left{display:none}.ys-topbar .ys-container{justify-content:center}}

/* ================= Header ================= */
.ys-header{position:sticky;top:0;z-index:900;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;transition:box-shadow .3s ease,border-color .3s ease}
.ys-header.is-scrolled{border-color:var(--ys-line);box-shadow:0 10px 30px rgba(10,22,51,.08)}
.ys-header .ys-container{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:var(--ys-header-h)}
.ys-logo{font-family:'Poppins',sans-serif;font-weight:700;font-size:1.45rem;color:var(--ys-navy);letter-spacing:-.02em;display:flex;align-items:center;gap:.6rem}
.ys-logo img{max-height:46px;width:auto}
.ys-logo .ys-logo__accent{color:var(--ys-blue)}
.ys-nav ul{display:flex;gap:2rem;list-style:none;margin:0;padding:0}
.ys-nav a{color:var(--ys-ink);font-weight:500;font-size:.95rem;position:relative;padding:.4rem 0}
.ys-nav a::after{content:"";position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--ys-blue);border-radius:2px;transition:width .3s ease}
.ys-nav a:hover::after,.ys-nav .current-menu-item>a::after{width:100%}
.ys-nav .current-menu-item>a{color:var(--ys-navy);font-weight:600}
.ys-header__actions{display:flex;align-items:center;gap:.9rem}
.ys-icon-btn{background:none;border:0;cursor:pointer;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:var(--ys-navy);transition:background .25s}
.ys-icon-btn:hover{background:var(--ys-sky)}
.ys-icon-btn svg{width:20px;height:20px}
.ys-burger{display:none}
@media(max-width:960px){.ys-nav{display:none}.ys-burger{display:grid}.ys-header__quote{display:none}}

/* Mobile drawer + search overlay */
.ys-drawer{position:fixed;inset:0 auto 0 0;width:min(320px,85vw);background:#fff;z-index:1200;padding:1.4rem;
  transform:translateX(-105%);transition:transform .35s ease;box-shadow:var(--ys-shadow);overflow:auto}
.ys-drawer.open{transform:none}
.ys-drawer ul{list-style:none;margin:1rem 0;padding:0;display:grid;gap:.35rem}
.ys-drawer a{display:block;padding:.7rem .8rem;border-radius:12px;color:var(--ys-ink);font-weight:500}
.ys-drawer a:hover{background:var(--ys-sky)}
.ys-scrim{position:fixed;inset:0;background:rgba(10,22,51,.45);z-index:1100;opacity:0;pointer-events:none;transition:opacity .3s}
.ys-scrim.show{opacity:1;pointer-events:auto}
.ys-search{position:fixed;inset:0 0 auto 0;background:#fff;z-index:1200;padding:2.2rem 1rem;transform:translateY(-105%);transition:transform .35s ease;box-shadow:var(--ys-shadow)}
.ys-search.open{transform:none}
.ys-search form{display:flex;gap:.6rem;max-width:720px;margin:0 auto}
.ys-search input[type=search]{flex:1;padding:.95rem 1.2rem;border:1.5px solid var(--ys-line);border-radius:999px;font-size:1rem}

/* ================= Footer ================= */
.ys-footer{background:var(--ys-navy);color:#C9D4EA;margin-top:0}
.ys-footer a{color:#C9D4EA;transition:color .25s}
.ys-footer a:hover{color:#fff}
.ys-footer__grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2.5rem;padding:4rem 0 2.5rem}
.ys-footer h4{color:#fff;font-size:1rem;margin-bottom:1.1rem}
.ys-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:.6rem;font-size:.93rem}
.ys-footer__brand .ys-logo{color:#fff}
.ys-footer__brand p{font-size:.93rem;max-width:34ch}
.ys-footer__bar{border-top:1px solid rgba(255,255,255,.14);padding:1.15rem 0;font-size:.86rem}
.ys-footer__bar .ys-container{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.ys-credit strong{color:#fff}
@media(max-width:960px){.ys-footer__grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.ys-footer__grid{grid-template-columns:1fr}}

/* Back to top */
.ys-top{position:fixed;right:18px;bottom:18px;z-index:950;width:46px;height:46px;border-radius:50%;border:0;cursor:pointer;
  background:var(--ys-navy);color:#fff;font-size:1.1rem;display:grid;place-items:center;opacity:0;pointer-events:none;transform:translateY(8px);transition:.3s}
.ys-top.show{opacity:1;pointer-events:auto;transform:none}
.ys-top:hover{background:var(--ys-blue)}

/* ================= Scroll animations ================= */
.ys-reveal,[data-reveal]{opacity:0;transform:translateY(34px);transition:opacity .8s cubic-bezier(.22,.61,.36,1),transform .8s cubic-bezier(.22,.61,.36,1)}
[data-reveal="left"]{transform:translateX(-44px)}
[data-reveal="right"]{transform:translateX(44px)}
[data-reveal="zoom"]{transform:scale(.92)}
.ys-reveal.ys-in,[data-reveal].ys-in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.ys-reveal,[data-reveal]{opacity:1;transform:none;transition:none}html{scroll-behavior:auto}}

/* Marquee */
.ys-marquee{overflow:hidden;white-space:nowrap}
.ys-marquee__track{display:inline-flex;gap:3rem;padding-right:3rem;animation:ys-marquee 26s linear infinite;will-change:transform}
@keyframes ys-marquee{to{transform:translateX(-100%)}}
.ys-marquee:hover .ys-marquee__track{animation-play-state:paused}

/* Hero helpers */
.ys-hero{position:relative;border-radius:0 0 28px 28px;overflow:hidden;background:var(--ys-navy);color:#fff}
.ys-hero h1,.ys-hero h2{color:#fff}
.ys-hero__glow{position:absolute;inset:auto -10% -40% -10%;height:70%;background:radial-gradient(50% 100% at 50% 0,rgba(30,81,238,.5),transparent 70%);pointer-events:none}

/* Section rhythm */
.ys-section{padding:clamp(3.5rem,8vw,6.5rem) 0}
.ys-section--white{background:#fff}
.ys-kicker{text-transform:uppercase;letter-spacing:.22em;font-size:.75rem;font-weight:700;color:var(--ys-blue)}
.ys-title{font-size:clamp(1.8rem,3.4vw,2.6rem)}

/* Cards */
.ys-card{background:var(--ys-card);border:1px solid var(--ys-line);border-radius:var(--ys-radius);padding:1.6rem;transition:transform .35s ease,box-shadow .35s ease}
.ys-card:hover{transform:translateY(-6px);box-shadow:var(--ys-shadow)}

/* ================= WooCommerce (catalog) ================= */
.woocommerce .ys-container{padding-top:2.5rem;padding-bottom:3.5rem}
.woocommerce ul.products li.product{background:#fff;border:1px solid var(--ys-line);border-radius:var(--ys-radius);
  padding:1.1rem;box-shadow:0 2px 10px rgba(10,22,51,.04);transition:transform .3s ease,box-shadow .3s ease;text-align:left}
.woocommerce ul.products li.product:hover{transform:translateY(-5px);box-shadow:var(--ys-shadow)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1rem;font-weight:600;color:var(--ys-navy)}
.woocommerce ul.products li.product .price{color:var(--ys-navy);font-weight:700}
.woocommerce ul.products li.product .button{border-radius:999px;background:var(--ys-navy);color:#fff;font-weight:600;padding:.7rem 1.4rem}
.woocommerce ul.products li.product .button:hover{background:var(--ys-blue)}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:.4rem;justify-content:center}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{
  border:1px solid var(--ys-line);border-radius:999px;padding:.55rem 1rem;background:#fff;color:var(--ys-navy)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--ys-navy);color:#fff;border-color:var(--ys-navy)}

/* Forms */
input[type=text],input[type=email],input[type=tel],input[type=number],select,textarea{
  border:1.5px solid var(--ys-line);border-radius:12px;padding:.8rem 1rem;font:inherit;background:#fff;width:100%}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(30,81,238,.35);border-color:var(--ys-blue)}

/* Blog / archive */
.ys-post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.6rem}
.ys-post-card{background:#fff;border:1px solid var(--ys-line);border-radius:var(--ys-radius);overflow:hidden;transition:transform .3s,box-shadow .3s}
.ys-post-card:hover{transform:translateY(-5px);box-shadow:var(--ys-shadow)}
.ys-post-card__body{padding:1.3rem 1.4rem 1.5rem}
.ys-page-head{padding:3.2rem 0 1.6rem}
.ys-404{text-align:center;padding:6rem 0}
.ys-404 h1{font-size:clamp(3rem,8vw,5.5rem)}

/* ================= Header v1.0.1 — reference-style ================= */
.ys-header__main{display:flex;align-items:center;gap:1.6rem;min-height:var(--ys-header-h)}
.ys-searchbar{flex:1;max-width:620px;display:flex;align-items:center;background:#fff;border:1.5px solid var(--ys-line);
  border-radius:999px;padding:.3rem .3rem .3rem 1.2rem;transition:border-color .25s,box-shadow .25s}
.ys-searchbar:focus-within{border-color:var(--ys-blue);box-shadow:0 0 0 4px rgba(30,81,238,.12)}
.ys-searchbar input[type=search]{flex:1;border:0!important;padding:.45rem 0;font-size:.95rem;background:transparent;width:auto}
.ys-searchbar input[type=search]:focus{outline:none}
.ys-searchbar button{flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--ys-navy);color:#fff;cursor:pointer;display:grid;place-items:center;transition:background .25s}
.ys-searchbar button:hover{background:var(--ys-blue)}
.ys-searchbar button svg{width:19px;height:19px}
.ys-search-toggle{display:none}
.ys-catnav{border-top:1px solid var(--ys-line);background:rgba(255,255,255,.65)}
.ys-catnav .ys-container{display:flex;align-items:center;gap:2.2rem;overflow-x:auto;scrollbar-width:none}
.ys-catnav .ys-container::-webkit-scrollbar{display:none}
.ys-catnav ul{display:flex;gap:1.9rem;list-style:none;margin:0;padding:0;white-space:nowrap}
.ys-catnav a{display:block;padding:.68rem 0;color:var(--ys-ink);font-weight:500;font-size:.92rem;position:relative}
.ys-catnav a::after{content:"";position:absolute;left:0;bottom:-1px;height:2px;width:0;background:var(--ys-blue);border-radius:2px;transition:width .3s ease}
.ys-catnav a:hover::after,.ys-catnav .current-menu-item>a::after{width:100%}
.ys-catnav .current-menu-item>a{color:var(--ys-navy);font-weight:600}
.ys-catnav__cats a{color:var(--ys-muted)}
.ys-catnav__cats a:hover{color:var(--ys-navy)}
@media(max-width:960px){
  .ys-searchbar{display:none}
  .ys-search-toggle{display:grid}
  .ys-catnav{display:none}
}

/* ================= v1.1.0 — orange accent touches ================= */
.ys-topbar{background:#0d0d0d}
.ys-topbar a:hover{color:var(--ys-gold)}
.ys-header__quote{background:var(--ys-gold)}
.ys-header__quote:hover{background:#e55f00;box-shadow:0 10px 24px rgba(255,106,0,.35)}
.ys-catnav a:hover{color:var(--ys-gold)}
.ys-catnav a::after{background:var(--ys-gold)}
.ys-nav a:hover{color:var(--ys-gold)}
.ys-searchbar:focus-within{border-color:var(--ys-gold);box-shadow:0 0 0 4px rgba(255,106,0,.14)}
.ys-searchbar button:hover{background:var(--ys-gold)}
.woocommerce span.onsale{background:var(--ys-gold)!important}

/* ================= v1.1.0 — dark / light mode ================= */
.ys-theme-toggle .ys-ic-sun{display:none}
html[data-theme="dark"] .ys-theme-toggle .ys-ic-sun{display:block}
html[data-theme="dark"] .ys-theme-toggle .ys-ic-moon{display:none}
html[data-theme="dark"]{
  --ys-bg:#0C0C0C; --ys-card:#161616; --ys-ink:#F2F2F2; --ys-muted:#A8A8A8;
  --ys-line:#2A2A2A; --ys-sky:#161616; --ys-navy:#F5F5F5; --ys-blue:#FF8A2A;
}
html[data-theme="dark"] body{background:#0C0C0C;color:var(--ys-ink)}
html[data-theme="dark"] .ys-header{background:rgba(12,12,12,.88)}
html[data-theme="dark"] .ys-catnav{background:rgba(12,12,12,.6)}
html[data-theme="dark"] .ys-catnav a,html[data-theme="dark"] .ys-nav a{color:#EDEDED}
html[data-theme="dark"] .ys-searchbar{background:#161616;border-color:#2c2c2c}
html[data-theme="dark"] .ys-searchbar input{color:#fff}
html[data-theme="dark"] .ys-icon-btn{color:#F2F2F2}
html[data-theme="dark"] .ys-drawer{background:#121212;color:#F2F2F2}
html[data-theme="dark"] .ys-logo{color:#fff}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#161616;color:#F2F2F2;border-color:#2c2c2c}
/* Product areas ALWAYS stay white (per owner), in both modes */
.woocommerce ul.products li.product,
.woocommerce .product .summary,
.single-product .product,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce{background:#fff!important;color:#141414!important}
.woocommerce ul.products li.product a,
.single-product .product a{color:inherit}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.single-product .product .product_title{color:#111!important}
.woocommerce ul.products li.product img{background:#fff}
html[data-theme="dark"] .woocommerce ul.products li.product .button{background:#111;color:#fff!important}

/* ================= Shop catalog: wholesale rebuild ================= */
.ys-shop-band{margin:10px 0 2px}
.ys-shop-crumb{font-size:13px;color:var(--ys-muted);display:flex;gap:8px;align-items:center}
.ys-shop-crumb a{color:var(--ys-muted)}
.ys-shop-crumb a:hover{color:var(--ys-peri)}
.ys-shop-eyebrow{margin:14px 0 0;color:var(--ys-peri);font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.woocommerce .woocommerce-products-header__title{font-size:clamp(30px,4vw,44px);margin:8px 0 10px;color:var(--ys-navy)}
.ys-shop-sub{color:var(--ys-muted);font-size:16px;max-width:660px;margin:0 0 6px}
.ys-shop-filters{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 22px;clear:both}
.ys-shop-filters a{padding:9px 18px;border:1px solid var(--ys-line);border-radius:999px;background:#fff;color:var(--ys-ink);font-weight:600;font-size:13.5px;line-height:1;text-decoration:none;transition:all .2s ease}
.ys-shop-filters a:hover{border-color:var(--ys-peri);color:var(--ys-peri)}
.ys-shop-filters a.is-active{background:var(--ys-peri);border-color:var(--ys-peri);color:#fff}
html[data-theme="dark"] .ys-shop-filters a{background:#161616;color:#F2F2F2;border-color:#2A2A2A}
html[data-theme="dark"] .ys-shop-filters a.is-active{background:var(--ys-peri);border-color:var(--ys-peri);color:#fff}
.woocommerce .woocommerce-result-count{color:var(--ys-muted);font-size:14px;margin:6px 0 20px}
.woocommerce .woocommerce-ordering{margin:0 0 20px}
.woocommerce .woocommerce-ordering select{border:1px solid var(--ys-line);border-radius:10px;padding:9px 12px;background:#fff;color:var(--ys-ink);font-family:'Inter',sans-serif;font-size:14px;max-width:100%}
.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;margin:0;padding:0}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:0 0 20px;display:flex;flex-direction:column;background:#fff!important;border:1px solid var(--ys-line);border-radius:var(--ys-radius);overflow:hidden;color:#141414!important;text-align:left}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block}
.woocommerce ul.products li.product img{width:100%;height:auto;display:block;margin:0;background:#fff}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:16px 18px 0;font-size:16.5px;line-height:1.35;color:#111!important;font-family:'Poppins','Inter',sans-serif;font-weight:600}
.woocommerce ul.products li.product .ys-shop-cat{display:block;color:var(--ys-peri);font-family:'Inter',sans-serif;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin:0 0 7px}
.woocommerce ul.products li.product .price{display:none!important}
.woocommerce ul.products li.product .star-rating{display:none!important}
.woocommerce ul.products li.product a.button.ys-quote-btn{margin:auto 18px 0;background:#FF6A00!important;color:#fff!important;border:0;border-radius:999px;padding:12px 20px;font-weight:600;font-size:14px;text-align:center;display:inline-block;align-self:flex-start;transition:background .2s ease,transform .2s ease}
.woocommerce ul.products li.product a.button.ys-quote-btn:hover{background:#E55F00!important;transform:translateY(-1px)}
html[data-theme="dark"] .woocommerce ul.products li.product a.button.ys-quote-btn{background:#FF6A00!important;color:#fff!important}
.woocommerce ul.products li.product .onsale{background:var(--ys-peri)}
.woocommerce nav.woocommerce-pagination ul{border:0}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0 4px}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border:1px solid var(--ys-line);border-radius:10px;padding:9px 14px;background:#fff;color:var(--ys-ink)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--ys-peri);border-color:var(--ys-peri);color:#fff}
@media(max-width:1024px){
.woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
.woocommerce ul.products{grid-template-columns:1fr;gap:20px}
.ys-shop-filters{gap:8px}
.ys-shop-filters a{padding:8px 14px;font-size:13px}
.woocommerce .woocommerce-ordering{float:none}
.woocommerce .woocommerce-ordering select{width:100%}
}
/* Shop archives: apply the site container width (1240px) to the catalog
   blocks, since the theme's wrapper markup does not run on Woo pages. */
body.post-type-archive-product .woocommerce-products-header__title,
body.tax-product_cat .woocommerce-products-header__title,
body.post-type-archive-product .ys-shop-band,
body.tax-product_cat .ys-shop-band,
body.post-type-archive-product .ys-shop-sub,
body.tax-product_cat .ys-shop-sub,
body.post-type-archive-product .term-description,
body.tax-product_cat .term-description,
body.post-type-archive-product .ys-shop-filters,
body.tax-product_cat .ys-shop-filters,
body.post-type-archive-product ul.products,

/* ================= v1.2.0 - Black & White UI/UX pass (2026-10-22) ================= */
/* 1. Kill the orange: remap accent tokens to black. Photos & banner artwork untouched. */
:root{--ys-peri:#141414;--ys-gold:#141414;}

/* 2. Product card quote buttons: black pills, white text */
.woocommerce ul.products li.product a.button.ys-quote-btn{background:#141414!important;color:#fff!important;}
.woocommerce ul.products li.product a.button.ys-quote-btn:hover{background:#000!important;transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.20);}
html[data-theme="dark"] .woocommerce ul.products li.product a.button.ys-quote-btn{background:#f4f4f4!important;color:#111!important;}
html[data-theme="dark"] .woocommerce ul.products li.product a.button.ys-quote-btn:hover{background:#ffffff!important;}

/* 3. Product cards: light-black border (light + dark) */
.woocommerce ul.products li.product{border:1px solid rgba(0,0,0,.55);}
html[data-theme="dark"] .woocommerce ul.products li.product{border-color:rgba(255,255,255,.35);}

/* 4. Pagination current page: black */
.woocommerce nav.woocommerce-pagination ul li span.current{background:#141414!important;border-color:#141414!important;}

/* 5. Footer: black bg, white text, rounded top corners */
.ys-footer{background:#0b0b0b;color:#f2f2f2;border-radius:28px 28px 0 0;}
.ys-footer h4{color:#fff;}
.ys-footer a{color:#e8e8e8;}
.ys-footer a:hover{color:#fff;}
.ys-footer__bar{border-top:1px solid rgba(255,255,255,.14);}

/* 6. Single product redesign */
.single-product div.product{display:grid;grid-template-columns:minmax(0,11fr) minmax(0,10fr);gap:clamp(28px,4vw,56px);align-items:start;}
.single-product div.product .woocommerce-product-gallery{max-width:640px;width:100%;border:1px solid rgba(0,0,0,.55);border-radius:22px;background:#fff;padding:16px;}
html[data-theme="dark"] .single-product div.product .woocommerce-product-gallery{border-color:rgba(255,255,255,.35);background:#141414;}
.single-product div.product .woocommerce-product-gallery .flex-viewport{border-radius:14px;overflow:hidden;}
.single-product div.product .woocommerce-product-gallery__image img{border-radius:14px;}
.single-product div.product .flex-control-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0 0;padding:0;}
.single-product div.product .flex-control-thumbs li{float:none!important;width:auto!important;margin:0!important;border:1px solid rgba(0,0,0,.28);border-radius:12px;overflow:hidden;list-style:none;}
.single-product div.product .flex-control-thumbs li img{border-radius:10px;}
.single-product div.product .flex-control-thumbs li img.flex-active{outline:2px solid #111;outline-offset:-2px;}
.single-product div.product .product_title{font-size:clamp(1.7rem,3vw,2.4rem);letter-spacing:-.02em;}
.single-product div.product .posted_in a{display:inline-block;background:#111;color:#fff!important;font-size:11px;letter-spacing:.14em;text-transform:uppercase;padding:6px 14px;border-radius:999px;}
html[data-theme="dark"] .single-product div.product .posted_in a{background:#f4f4f4;color:#111!important;}
.ys-wholesale-info{list-style:none;margin:22px 0;padding:18px 20px;border:1px solid rgba(0,0,0,.28);border-radius:16px;background:#fafafa;display:grid;gap:10px;}
html[data-theme="dark"] .ys-wholesale-info{background:#151515;border-color:rgba(255,255,255,.22);}
.ys-wholesale-info li{margin:0;font-size:.95rem;}
.ys-wholesale-info li strong{color:#111;}
html[data-theme="dark"] .ys-wholesale-info li strong{color:#fff;}
.ys-quote-big{display:inline-flex;align-items:center;justify-content:center;background:#111;color:#fff!important;font-weight:700;font-size:1.05rem;padding:1rem 2.6rem;border-radius:999px;margin:6px 0 22px;transition:transform .2s ease,box-shadow .2s ease,background .2s ease;}
.ys-quote-big:hover{background:#000;color:#fff!important;transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.22);}
html[data-theme="dark"] .ys-quote-big{background:#f4f4f4;color:#111!important;}
.single-product div.product .product_meta{border:1px solid rgba(0,0,0,.28);border-radius:16px;padding:16px 20px;display:grid;gap:6px;font-size:.92rem;}
html[data-theme="dark"] .single-product div.product .product_meta{border-color:rgba(255,255,255,.22);}
.single-product .woocommerce-tabs ul.tabs li{border-radius:12px 12px 0 0;}
.single-product .woocommerce-tabs ul.tabs li.active{background:#111!important;color:#fff!important;}
.single-product .woocommerce-tabs ul.tabs li.active a{color:#fff!important;}
.single-product .woocommerce-tabs .panel{border:1px solid rgba(0,0,0,.28);border-radius:0 16px 16px 16px;padding:26px 28px;}
@media(max-width:860px){.single-product div.product{grid-template-columns:1fr;}.single-product div.product .woocommerce-product-gallery{max-width:100%;}}

/* 7. Contact Form 7: rounded black & white */
.wpcf7-form input:not([type=submit]),.wpcf7-form select,.wpcf7-form textarea{border:1px solid rgba(0,0,0,.3);border-radius:14px;padding:12px 16px;width:100%;background:#fff;}
.wpcf7-form input[type=submit]{background:#111;color:#fff;border:0;border-radius:999px;padding:14px 42px;font-weight:700;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;}
.wpcf7-form input[type=submit]:hover{background:#000;transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.20);}
html[data-theme="dark"] .wpcf7-form input[type=submit]{background:#f4f4f4;color:#111;}

body.tax-product_cat ul.products,
body.post-type-archive-product .woocommerce-pagination,
body.tax-product_cat .woocommerce-pagination,
body.post-type-archive-product .woocommerce-info,
body.tax-product_cat .woocommerce-info,
body.post-type-archive-product .woocommerce-message,
body.tax-product_cat .woocommerce-message{width:min(1240px,100% - 40px);margin-inline:auto}
body.post-type-archive-product .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count{margin-left:max(20px,calc((100% - 1240px)/2))}
body.post-type-archive-product .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering{margin-right:max(20px,calc((100% - 1240px)/2))}

/* Sub-line stays left-aligned with the catalog container */
body.post-type-archive-product .ys-shop-sub,
body.tax-product_cat .ys-shop-sub{margin-left:max(20px,calc((100% - 1240px)/2));margin-right:auto}
/* Dark mode: keep the sorting select legible */
html[data-theme="dark"] .woocommerce .woocommerce-ordering select{background:#161616;color:#F2F2F2;border-color:#2A2A2A}
