/*
Theme Name: Quackar 2.0
Theme URI: https://quackar.com/
Author: Quackar
Description: Quackar premium dark WooCommerce storefront with manual seasonal styling.
Version: 0.2.0
Requires PHP: 8.0
Text Domain: quackar-v2
*/
/* OWNER-APPROVED V2 DARK RETAIL SYSTEM — STAGING ONLY.
   WooCommerce owns checkout, cart, product forms and payment handlers.
   Seasonal palette is applied to :root by inc/seasonal.php. */
:root{
  --qv-ink:#f4f7f8;--qv-brand:#d18a42;--qv-accent-text:#171c1e;
  --qv-soft:#252e34;--qv-warm:#302c29;--qv-border:#38444c;
  --qv-bg:#12171b;--qv-panel:#1d252a;--qv-panel-raised:#283138;
  --qv-subtle:#aebdc5;--qv-radius:12px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--qv-bg);color:var(--qv-ink);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
img{max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
a{color:var(--qv-ink)}
a:hover,a:focus-visible{color:var(--qv-brand)}
:focus-visible{outline:3px solid var(--qv-brand);outline-offset:3px}
.qv-wrap{width:min(1260px,calc(100% - 40px));margin-inline:auto}
.qv-skip{position:absolute;left:-9999px}.qv-skip:focus{left:12px;top:12px;padding:12px;background:white;color:#111;z-index:999}
.qv-notice{padding:9px 15px;text-align:center;background:var(--qv-brand);color:var(--qv-accent-text);font-size:12px;font-weight:800;letter-spacing:.075em}
.qv-header{background:#171d21;border-bottom:2px solid var(--qv-brand);position:relative;z-index:5}
.qv-header-inner{min-height:86px;display:flex;gap:22px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.qv-brand{flex:0 0 auto}
.qv-logo{display:flex;align-items:center;gap:9px;min-width:0;font-size:30px;line-height:1.1;font-weight:900;letter-spacing:-.055em;color:#fff;text-decoration:none}
.qv-logo:hover{color:#fff}
.qv-logo img{display:block;max-height:54px;max-width:70px;width:auto;object-fit:contain;flex:0 0 auto}\n.qv-brand-wordmark{min-width:0;overflow-wrap:anywhere}
.qv-header form{display:flex;flex:1 1 300px;max-width:510px;min-width:210px;margin:0}
.qv-header input[type=search]{min-width:0;flex:1;background:#2a3339;color:#fff;border:1px solid #51616a;border-right:0;border-radius:8px 0 0 8px;padding:12px 14px}
.qv-header input[type=search]::placeholder{color:#c0cbd0}
.qv-header button,.qv-btn{display:inline-flex;align-items:center;justify-content:center;background:var(--qv-brand);color:var(--qv-accent-text);border:0;padding:12px 19px;border-radius:8px;text-decoration:none;font-weight:800;cursor:pointer}
.qv-header button{border-radius:0 8px 8px 0}
.qv-nav{display:flex;gap:21px;flex-wrap:wrap;font-weight:700;font-size:14px}
.qv-nav a{text-decoration:none}
.qv-season-label{display:inline-flex;align-items:center;color:var(--qv-subtle);font-size:11px;letter-spacing:.055em;text-transform:uppercase;padding:2px 0 10px}
.qv-hero{margin-block:28px 16px;padding:clamp(26px,5vw,64px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:24px;min-height:310px;border:1px solid var(--qv-border);border-radius:var(--qv-radius);background:linear-gradient(110deg,var(--qv-panel),var(--qv-warm));overflow:hidden}
.qv-hero h1{font-size:clamp(32px,4vw,56px);letter-spacing:-.045em;line-height:1.08;margin:10px 0 15px}
.qv-hero p{color:#c5d0d5;max-width:56ch;margin:0 0 24px}
.qv-hero-label{font-size:12px;letter-spacing:.11em;text-transform:uppercase;font-weight:850;color:var(--qv-brand)}
.qv-hero-art{display:grid;place-items:center;overflow:hidden;min-height:205px;border-radius:10px;background:#2a3338}
.qv-hero-art img{width:100%;height:100%;object-fit:cover}
.qv-season-motif{display:grid;place-items:center;text-align:center;padding:18px;min-height:205px}
.qv-season-motif__mark{font-size:clamp(50px,9vw,100px);line-height:1;color:var(--qv-brand)}
.qv-season-motif__brand{font-size:clamp(24px,4vw,42px);color:#fff;font-weight:900}
.qv-section{padding:24px 0}
.qv-section h2{font-size:clamp(23px,3vw,32px);margin:0 0 20px}
.qv-categories,.qv-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.qv-cat{padding:22px 15px;border-radius:8px;border:1px solid var(--qv-border);background:var(--qv-panel-raised);text-decoration:none;text-align:center;font-weight:750}
.qv-cat:hover{border-color:var(--qv-brand);color:#fff}
.qv-card{background:var(--qv-panel);border:1px solid var(--qv-border);border-radius:9px;overflow:hidden}
.qv-card a{text-decoration:none}
.qv-card-media{aspect-ratio:1;background:#fff;display:grid;place-items:center}
.qv-card-media img{width:100%;height:100%;object-fit:contain}
.qv-card-info{padding:14px}
.qv-card h3{font-size:15px;line-height:1.4;min-height:44px;margin:0 0 12px}
.qv-price{font-weight:800;color:var(--qv-brand)}
.qv-footer{margin-top:48px;padding:38px 0;background:#101417;border-top:2px solid var(--qv-border);color:var(--qv-subtle);font-size:14px}
.qv-footer-grid{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,2fr);gap:30px}
.qv-footer-name{font-size:22px;color:#fff;letter-spacing:-.04em}
.qv-footer-links{display:flex;flex-wrap:wrap;gap:12px 24px;align-content:start}
.qv-footer-links a{color:#c7d3d9;text-decoration:none;font-size:13px}
.qv-footer-links a:hover{color:var(--qv-brand)}
.qv-commerce{min-height:55vh;padding:32px 0}
.qv-commerce h1,.qv-commerce h2,.entry-title{color:#fff}
.qv-commerce .woocommerce{width:100%}

/* Classic WooCommerce shop/archive/product/cart/account/checkout */
.woocommerce .woocommerce-breadcrumb{color:var(--qv-subtle)}
.woocommerce .woocommerce-breadcrumb a,.woocommerce a:not(.button){color:var(--qv-brand)}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{
  background:var(--qv-panel);border:1px solid var(--qv-border);border-radius:9px;overflow:hidden;padding:0 0 15px}
.woocommerce ul.products li.product img{background:#fff}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button{margin-left:12px;margin-right:12px}
.woocommerce .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--qv-brand)}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:var(--qv-panel);border-color:var(--qv-border)}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{color:var(--qv-ink)}
.woocommerce table.shop_table,.woocommerce form.checkout,.woocommerce form.login,
.woocommerce form.register,.woocommerce .woocommerce-MyAccount-content,
.woocommerce .woocommerce-cart-form,.woocommerce .cart-collaterals .cart_totals,
.woocommerce .woocommerce-checkout-review-order,
.woocommerce .woocommerce-order{background:var(--qv-panel);border-color:var(--qv-border);border-radius:10px;padding:18px;color:var(--qv-ink)}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border-color:var(--qv-border)}
.woocommerce .woocommerce-MyAccount-navigation a{display:block;padding:8px 12px;text-decoration:none}
.woocommerce .woocommerce-MyAccount-navigation li.is-active{border-left:3px solid var(--qv-brand)}
.woocommerce .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
.woocommerce form .form-row select,.woocommerce .select2-container .select2-selection--single,
.woocommerce input.input-text,.woocommerce textarea,.woocommerce select,
.wc-block-components-text-input input,.wc-block-components-combobox input{
  color:#172126;background:#fff;border:1px solid #8fa0a9;border-radius:7px;min-height:43px}
.woocommerce form .form-row label{color:var(--qv-ink)}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,
.wc-block-components-button:not(.is-link){
  background:var(--qv-brand);color:var(--qv-accent-text);border:0;border-radius:7px;font-weight:850}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,
.wc-block-components-button:not(.is-link):hover{background:var(--qv-brand);filter:brightness(1.1);color:var(--qv-accent-text)}
.woocommerce-message,.woocommerce-info{background:var(--qv-panel-raised);color:#fff;border-top-color:var(--qv-brand)}
.woocommerce-error{background:#39242a;color:#fff}
.woocommerce-checkout #payment{background:var(--qv-panel-raised);color:var(--qv-ink);border-radius:8px}
.woocommerce-checkout #payment div.payment_box{background:#e8edf0;color:#172126}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:#e8edf0}
.woocommerce-checkout #payment ul.payment_methods{border-bottom-color:var(--qv-border)}
.woocommerce .quantity .qty{min-width:75px}
.woocommerce .product img{border-radius:6px}

/* WooCommerce Cart/Checkout BLOCKS: scope to widget containers, never intercept form events. */
.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{
  color:var(--qv-ink);background:var(--qv-panel);padding:clamp(12px,3vw,28px);border-radius:10px;border:1px solid var(--qv-border)}
.wc-block-components-main,.wc-block-components-sidebar,.wc-block-components-order-summary,
.wc-block-cart-items,.wc-block-checkout__form{color:var(--qv-ink)}
.wc-block-components-title,.wc-block-components-form .wc-block-components-title,
.wc-block-components-order-summary-item__description{color:var(--qv-ink)}
.wc-block-components-text-input input,.wc-block-components-combobox input,
.wc-block-components-address-form input,.wc-block-components-address-form select{
  color:#142028!important;background:#fff!important;border-color:#9caab1!important}
.wc-block-components-totals-wrapper,.wc-block-components-sidebar-layout,
.wc-block-cart-items__row{border-color:var(--qv-border)}
.wc-block-components-button:not(.is-link){min-height:46px}
.wc-block-components-checkbox label,.wc-block-components-radio-control label{color:var(--qv-ink)}
/* WooCommerce block fields have light input surfaces. Floating labels and placeholders
   must stay dark and legible, even though the page shell uses white typography. */
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-address-form .wc-block-components-text-input label,
.wc-block-components-form .wc-block-components-text-input label{color:#35434c!important}
.wc-block-components-text-input input::placeholder,
.wc-block-components-combobox input::placeholder,
.wc-block-components-address-form input::placeholder{color:#566a76!important;opacity:1}
/* Neutralize hard-coded light text when accessible light surfaces appear in WC blocks */
.wc-block-components-notice-banner{color:#182126}
.qv-season-original{--qv-accent-text:#0f1b21}
@media (max-width:940px){
  .qv-header-inner{padding:16px 0}.qv-header form{order:3;flex:1 1 100%;max-width:none}
  .qv-hero{grid-template-columns:1fr}.qv-categories,.qv-products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Keep long site names, WooCommerce form controls and promotional text inside narrow screens. */
.qv-header-inner,.qv-hero,.qv-hero>div,.qv-products,.qv-card,.qv-commerce{min-width:0}
.qv-logo{display:flex;align-items:center;max-width:100%;overflow-wrap:anywhere}
.qv-hero h1,.qv-hero p,.qv-card h3{overflow-wrap:anywhere}
.qv-header form input[type=search]{width:auto;flex:1 1 auto;min-width:0}
.qv-commerce .woocommerce,.qv-commerce .wp-block-woocommerce-cart,
.qv-commerce .wp-block-woocommerce-checkout{max-width:100%;min-width:0}
@media (max-width:600px){
  .qv-wrap{width:min(100% - 24px,1260px)}
  .qv-header-inner{gap:12px;align-items:flex-start}.qv-brand{width:100%;min-width:0}.qv-logo{font-size:25px;line-height:1.15}.qv-nav{width:100%;gap:13px;font-size:13px;overflow-wrap:anywhere}\n  .qv-header form{width:100%;flex-basis:100%;min-width:0;max-width:100%}.qv-header button{flex:0 0 auto;padding-inline:12px}
  .qv-hero{min-height:0;padding:24px;grid-template-columns:minmax(0,1fr)}.qv-hero h1{font-size:clamp(28px,8vw,40px)}.qv-hero-art{min-height:150px}
  .qv-categories,.qv-products{gap:10px}.qv-card-info{padding:10px}
  .qv-cat{padding:15px 9px}\n  .qv-footer-grid{grid-template-columns:1fr}
  .woocommerce table.shop_table,.woocommerce form.checkout,.woocommerce form.login,
  .woocommerce form.register,.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{padding:10px}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Official Quackar duck fallback; no generated or supplier artwork */
.qv-official-duck{display:block;width:44px;height:44px;object-fit:contain;margin-right:10px;flex:none}
.qv-official-hero{width:min(100%,270px);max-height:245px;object-fit:contain;display:block;margin:auto}
@media(max-width:600px){.qv-official-duck{width:38px;height:38px}}
