/* =====================================================================
   DriveMood — tmavé téma CELÉHO webu (0.17.0)
   Princip: pod body.dm-dark přemapujeme designové proměnné (tokeny) — tím se
   přebarví vše, co je psané přes var(--…). Níže jen opravy míst, kde má
   theme.css / checkout.css barvu natvrdo (#fff, #0d0d0d…) nebo kde by
   prosté převrácení (světlý text na tmavém) nedávalo smysl.
   Vypnutí: add_filter( 'drivemood_dark_theme', '__return_false' );
   Písmo Russo One = nadpisy (self-hosted, assets/fonts).
   ===================================================================== */
@font-face{font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;
  src:url(../fonts/RussoOne-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Russo One';font-style:normal;font-weight:400;font-display:swap;
  src:url(../fonts/RussoOne-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- tokeny ---------- */
body.dm-dark{
  --black:#f3f4f5;            /* „inkoust" – text, ikony, aktivní pilulky */
  --white:#121417;            /* plocha stránky, hlavička, panely */
  --surface:#1a1d21;
  --surface-2:#22262b;
  --border:#2a2f35;
  --border-btn:#3a4048;
  --text-2:#c3c8cd;
  --text-2b:#d0d4d8;
  --text-3:#9aa1a7;
  --muted:#5c636a;
  --price-old:#7d848a;
  --hover-pill:#22262b;
  --bundle-bg:#22262b;
  --gray-dark:#22262b;
  --red:#d92a1f;
  --red-hover:#ef3a2e;
  --red-surface:rgba(217,42,31,.16);
  --red-on-surface:#ff8a80;
  --green:#4fcf82;
  --sh-card:0 10px 30px rgba(0,0,0,.45);
  --sh-menu:0 30px 60px rgba(0,0,0,.6);
  --sh-toast:0 16px 40px rgba(0,0,0,.6);
  --d-ink:#f3f4f5;--d-bg:#121417;--d-s1:#1a1d21;--d-s2:#22262b;--d-line:#2a2f35;
  --d-disp:'Russo One',var(--font-head),sans-serif;
  background:var(--d-bg);color:var(--d-ink);color-scheme:dark}

/* ---------- typografie: Russo One pro nadpisy (logo zůstává Saira) ---------- */
body.dm-dark h1,body.dm-dark h2{font-family:var(--d-disp);font-weight:400;letter-spacing:.02em;line-height:1.08}
body.dm-dark .dm-hero h1{font-size:clamp(32px,4.4vw,56px);line-height:1.05}
body.dm-dark .dm-section-head h2{font-size:clamp(22px,2.4vw,30px)}
body.dm-dark .dm-summary-head h1{font-size:clamp(26px,2.4vw,34px)}
body.dm-dark .dm-price-now,body.dm-dark .dm-price-now .amount,body.dm-dark .dm-price-now bdi,body.dm-dark .dm-price-now .woocommerce-Price-amount{font-family:var(--d-disp);font-weight:400}
body.dm-dark .dm-price-now del,body.dm-dark .dm-price-now del .amount,body.dm-dark .dm-price-now del bdi{font-family:var(--font-body)}
body.dm-dark.woocommerce .related > h2,body.dm-dark.woocommerce .upsells > h2,body.dm-dark.woocommerce .cross-sells > h2{font-size:24px}
body.dm-dark h3{font-family:var(--font-head)}
body.dm-dark .dm-drawer-head h3{font-family:var(--font-body);text-transform:none;letter-spacing:0;font-weight:600}

/* ---------- lišta, hlavička, menu ---------- */
body.dm-dark .dm-topbar{background:#0c0e10;color:var(--text-3);border-bottom:1px solid var(--d-line)}
body.dm-dark .dm-header,body.dm-dark .dm-checkout-min .dm-header{background:var(--d-bg);border-bottom-color:var(--d-line)}
body.dm-dark .dm-nav .is-active{background:var(--d-ink);color:var(--d-bg)}
body.dm-dark .dm-nav .is-active .caret{color:rgba(18,20,23,.6)}
body.dm-dark .dm-menuhost:hover > .dm-navitem{background:var(--d-ink);color:var(--d-bg)}
body.dm-dark .dm-menuhost:hover > .dm-navitem .caret{color:rgba(18,20,23,.6)}
body.dm-dark .dm-mega,body.dm-dark .dm-dropdown{background:var(--d-s1)}
body.dm-dark .dm-drop-link:hover{background:var(--d-s2)}
body.dm-dark .dm-iconbtn:hover{background:var(--d-s2)}
body.dm-dark .dm-cart-badge{color:#fff}

/* ---------- tlačítka, toast, panely ---------- */
body.dm-dark .dm-btn--primary,body.dm-dark .dm-pcard-add,body.dm-dark .dm-qv-cross-add{color:#fff}
body.dm-dark .dm-toast{background:var(--d-ink);color:var(--d-bg)}
body.dm-dark .dm-toast .check{background:var(--red);color:#fff}
body.dm-dark .dm-drawer-close svg,body.dm-dark .dm-filter-x svg{stroke:var(--d-ink)}
body.dm-dark .dm-drawer-overlay,body.dm-dark .dm-qv-overlay{background:rgba(0,0,0,.6)}
body.dm-dark .dm-di-remove{background:var(--d-s2)}
body.dm-dark .dm-di-remove:hover{background:var(--d-s2)}
body.dm-dark .dm-rev-form input,body.dm-dark .dm-rev-form textarea,body.dm-dark .dm-rev-form select{background:var(--d-s1);color:var(--d-ink)}

/* ---------- karty produktů (fotky mají bílé pozadí – dlaždice zůstává bílá jako fotka) ---------- */
body.dm-dark .dm-pcard-eye{color:#15181b}
body.dm-dark .dm-pcard-eye:hover{color:var(--red)}
body.dm-dark .dm-pcard-stars span.on{color:var(--d-ink)}
body.dm-dark .dm-bento-card,body.dm-dark .dm-upsell,body.dm-dark .dm-review,body.dm-dark .dm-partners-inner{border:1px solid var(--d-line)}
body.dm-dark .dm-review,body.dm-dark .dm-partners-inner{background:var(--d-s1)}

/* ---------- úvodní stránka: bento dlaždice, kvíz, pás fotek (barvy natvrdo v theme.css) ---------- */
body.dm-dark .dm-bento-card--lg{background:linear-gradient(140deg,#22262b,#0c0e10)}
body.dm-dark .dm-bento-card--light{background:linear-gradient(150deg,#262a2f,#1a1d21)}
body.dm-dark .dm-bento-card--dark{background:linear-gradient(150deg,#2a2f35,#1e2226)}
body.dm-dark .dm-bento-card .title,body.dm-dark .dm-bento-card--lg .title,body.dm-dark .dm-bento-card .title--white,body.dm-dark .dm-bento-card .title--black,body.dm-dark .dm-bento-card .link--white{color:var(--d-ink)}
body.dm-dark .dm-bento-card .pill-cta{color:#fff}
body.dm-dark .dm-bento-card .ring--soft{background:rgba(255,255,255,.08)}
body.dm-dark .dm-quiz{background:var(--d-s1);color:var(--d-ink);border:1px solid var(--d-line)}
body.dm-dark .dm-quiz-go{color:#fff}
body.dm-dark .dm-ugc-card{background:var(--d-s1)}
body.dm-dark .dm-upsell--soft{background:var(--d-s1);border:1px solid var(--d-line)}
body.dm-dark .dm-upsell--soft .ring{background:rgba(255,255,255,.06)}

/* ---------- quick-view ---------- */
body.dm-dark .dm-qv-modal{background:var(--d-s1)}
body.dm-dark .dm-qv-close{background:var(--d-s2);border-color:var(--d-line);color:var(--d-ink)}
body.dm-dark .dm-qv-galnav{background:var(--d-s2);color:var(--d-ink)}
body.dm-dark .dm-qv-dots{background:rgba(26,29,33,.9)}
body.dm-dark .dm-qv-cyc-btn{background:var(--d-s2);color:var(--d-ink);border-color:var(--d-line)}
body.dm-dark .dm-qv-summary .variations select{background:var(--d-s1);color:var(--d-ink)}
body.dm-dark .dm-qv-summary .single_add_to_cart_button{background:var(--d-ink) !important;color:var(--d-bg) !important}
body.dm-dark .dm-qv-summary .single_add_to_cart_button:hover{background:#fff !important}
body.dm-dark .dm-qv-summary .quantity,body.dm-dark .dm-summary .quantity{background:transparent}
body.dm-dark .dm-qv-summary .quantity input.qty,body.dm-dark .dm-summary .quantity input.qty{background:transparent !important;color:var(--d-ink) !important}
body.dm-dark .dm-vswatch{background:var(--d-s1)}
body.dm-dark .dm-vswatch:not(.dm-vswatch--img){background:transparent}
body.dm-dark .dm-vswatch--img.is-active{box-shadow:0 0 0 2px var(--d-bg),0 0 0 3px var(--d-ink)}

/* ---------- produkt ---------- */
body.dm-dark .dm-gallery .flex-viewport{box-shadow:0 30px 60px rgba(0,0,0,.5)}
body.dm-dark .dm-gallery .flex-direction-nav a{background:var(--d-s2)}
body.dm-dark .dm-gallery .flex-control-thumbs img{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14) !important}
body.dm-dark .dm-gallery .flex-control-thumbs img:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.3) !important}
body.dm-dark .dm-rating-row .stars{color:rgba(255,255,255,.25)}
body.dm-dark .dm-buybox{background:rgba(255,255,255,.05);border-color:var(--d-line)}
body.dm-dark .dm-sale-pct{color:#fff}
body.dm-dark .dm-stock-badge.is-out .dot{background:rgba(255,255,255,.3)}
body.dm-dark .dm-stock-badge.is-backorder .dot{background:#e0b83a}
body.dm-dark .dm-desc{color:var(--text-2)}
body.dm-dark .dm-note{background:var(--d-s1)}
body.dm-dark .dm-scale span{background:rgba(255,255,255,.14)}
body.dm-dark.woocommerce div.product form.cart .variations select{background:var(--d-s1);color:var(--d-ink)}
body.dm-dark.woocommerce div.product .dm-summary .single_add_to_cart_button{box-shadow:0 10px 30px rgba(217,42,31,.35);color:#fff}
body.dm-dark .dm-product form.cart .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button,
body.dm-dark.woocommerce div.product .dm-summary .single_add_to_cart_button.disabled{background:rgba(255,255,255,.08) !important;color:var(--text-3) !important;box-shadow:none}
body.dm-dark .dm-pyramid{background:#0c0e10;border:1px solid var(--d-line)}
body.dm-dark.woocommerce div.product .woocommerce-tabs ul.tabs li.active{background:var(--d-s2)}

/* ---------- obchod: filtr, řazení, prázdné stavy ---------- */
body.dm-dark .dm-filter-btn,body.dm-dark .dm-shop-sort-sel,body.dm-dark .dm-shop-sort-sel select{background:var(--d-s1);color:var(--d-ink)}
body.dm-dark .dm-filter-sheet,body.dm-dark .dm-filter-foot{background:var(--d-s1)}
body.dm-dark .dm-filter-select select{background:var(--d-s1);color:var(--d-ink)}
body.dm-dark .dm-range-input::-webkit-slider-thumb{background:var(--d-ink);border-color:var(--d-ink)}
body.dm-dark .dm-range-input::-moz-range-thumb{background:var(--d-ink);border-color:var(--d-ink)}

/* ---------- lightboxy ---------- */
body.dm-dark .dm-rvlb-box{background:var(--d-s1)}
body.dm-dark .dm-rvlb-tip{background:var(--d-s2);color:var(--text-2)}

/* ---------- patička + mobilní dock ---------- */
body.dm-dark .dm-footer{background:#0c0e10}
@media (max-width:900px){
  body.dm-dark .dm-bnav{background:var(--d-s1)}
  body.dm-dark .dm-nav.is-open{background:var(--d-s1)}
}

/* ---------- košík + pokladna (WooCommerce Blocks) ----------
   Ověřeno na živé pokladně (scan kontrastu): checkout.css má karty metod, štítky a badge
   množství s barvami natvrdo a s !important → tady vyšší specificita + !important. */
body.dm-dark .wc-block-checkout__sidebar,body.dm-dark .wc-block-cart__sidebar,
body.dm-dark .woocommerce form.checkout #order_review{background:var(--d-s1) !important;border-color:var(--d-line)}
body.dm-dark .wc-block-components-text-input input,
body.dm-dark .wc-block-components-country-input select,
body.dm-dark .wc-block-components-state-input select,
body.dm-dark .wc-block-components-combobox .components-combobox-control__input,
body.dm-dark .wc-block-components-select select,
body.dm-dark .wc-block-components-textarea textarea,
body.dm-dark .wc-block-components-totals-coupon__input input{background:var(--d-s1) !important;color:var(--d-ink) !important;border-color:var(--border-btn) !important}
body.dm-dark .wc-block-components-text-input label,body.dm-dark .wc-block-components-select label,body.dm-dark .wc-block-components-country-input label,body.dm-dark .wc-block-components-state-input label{color:var(--text-3)}
/* výběr země (vlastní select WC Blocks) */
body.dm-dark .wc-blocks-components-select__container{background:var(--d-s1) !important;border-color:var(--border-btn) !important}
body.dm-dark .wc-blocks-components-select__select,body.dm-dark .wc-blocks-components-select__label{color:var(--d-ink) !important;background:transparent !important}
body.dm-dark .wc-blocks-components-select__expand{fill:var(--text-3)}
/* karty dopravy a platby */
body.dm-dark .wc-block-components-radio-control__label,body.dm-dark .wc-block-components-radio-control__secondary-label,
body.dm-dark .wc-block-components-payment-method-label,body.dm-dark .wc-block-components-radio-control__description{color:var(--d-ink) !important}
body.dm-dark .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option,
body.dm-dark .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option{background:var(--d-s1) !important;border-color:var(--border-btn) !important}
body.dm-dark .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(input:checked),
body.dm-dark .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.dm-dark .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:has(input:checked),
body.dm-dark .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option-checked,
body.dm-dark .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option--checked-option-highlighted{background:var(--d-s2) !important;border-color:var(--red) !important;box-shadow:none !important}
body.dm-dark .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:not(:has(input:checked)),
body.dm-dark .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:not(:has(input:checked)){opacity:.8}
body.dm-dark .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content{background:transparent !important;color:var(--text-2) !important}
/* Popis platební metody (Dobírka): checkout.css mu dává margin-top -7px a řádek nad ním ho překrýval → text byl oříznutý */
body.dm-dark .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content{height:auto !important;max-height:none !important;overflow:visible !important;padding:0 16px 14px 46px !important;margin:0 !important;line-height:1.5 !important}
body.dm-dark .wc-block-components-radio-control-accordion-content p,
body.dm-dark .wc-block-components-radio-control-accordion-content > div,
body.dm-dark .wc-block-components-radio-control-accordion-content > div > div{background:transparent !important;color:var(--text-2) !important;margin:0;line-height:1.5}
body.dm-dark .wc-block-components-checkbox .wc-block-components-checkbox__input{background:var(--d-s1) !important;border-color:var(--border-btn) !important}
body.dm-dark .wc-block-components-checkbox .wc-block-components-checkbox__input:checked{background:var(--d-ink) !important;border-color:var(--d-ink) !important}
body.dm-dark .wc-block-components-checkbox__mark{color:var(--d-bg)}
body.dm-dark .wc-block-components-checkbox__label{color:var(--d-ink)}
/* rekapitulace */
body.dm-dark .wc-block-components-checkout-step__title,body.dm-dark .wc-block-components-title,
body.dm-dark .wc-block-components-totals-item,body.dm-dark .wc-block-components-product-name,
body.dm-dark .wc-block-components-checkout-order-summary__title-text{color:var(--d-ink)}
body.dm-dark .wc-block-components-product-metadata,body.dm-dark .wc-block-components-checkout-step__description{color:var(--text-3)}
body.dm-dark .wc-block-components-order-summary-item__image img,body.dm-dark .wc-block-cart-item__image img{background:#fff}
body.dm-dark .wc-block-components-order-summary-item .wc-block-components-order-summary-item__quantity{background:var(--d-bg) !important;color:#fff !important;border:1px solid var(--border-btn) !important}
body.dm-dark .wc-block-components-order-summary-item__quantity span{color:#fff !important}
body.dm-dark .wc-block-cart-items__row,body.dm-dark .wc-block-cart-items .wc-block-cart-items__row{border-bottom-color:var(--d-line) !important}
body.dm-dark .wc-block-components-quantity-selector{background:transparent !important;color:var(--d-ink)}
body.dm-dark .wc-block-components-quantity-selector input,body.dm-dark .wc-block-components-quantity-selector button{color:var(--d-ink) !important;background:transparent !important}
body.dm-dark .wc-block-components-button.contained,body.dm-dark .wc-block-components-checkout-place-order-button,body.dm-dark .wc-block-cart__submit-button{color:#fff !important}
body.dm-dark .wc-block-components-totals-coupon .wc-block-components-panel__button,body.dm-dark .wc-block-components-panel__button{color:#fff !important}
body.dm-dark .wc-block-components-totals-coupon__button{color:#fff !important}
body.dm-dark .wc-block-components-notice-banner{background:var(--d-s1);color:var(--d-ink);border-color:var(--d-line)}
body.dm-dark .wc-block-components-checkout-return-to-cart-button,body.dm-dark .dm-checkout-back{color:var(--text-2)}
body.dm-dark .dm-checkout-back:hover{background:var(--d-s2);color:var(--d-ink)}
