/*
Theme Name:   Woodmart Child
Theme URI:    https://safetyshop.cz
Description:  Child theme pro Woodmart - safetyshop.cz
Author:       safetyshop.cz
Author URI:   https://safetyshop.cz
Template:     woodmart
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  woodmart-child
*/

/* =========================================================
   BRAND TOKENS – safetyshop.cz
   Pouzivej tyto promenne misto natvrdo zapsanych hex kodu.
   Pokud bude klient menit brand, prepise se jen tady.
   ========================================================= */
:root {
	--ss-color-primary: #D81F31;   /* primarni cervena – CTA, accenty, hover */
	--ss-color-primary-dark: #B11829; /* tmavsi varianta pro hover na cervenem */
	--ss-color-dark: #1a1915;      /* tmava textova / UI cerna */
	--ss-color-black: #000000;     /* cista cerna pro kontrasty */
	--ss-color-white: #ffffff;
}

/* =========================================================
   Vlastni CSS pravidla pridavej pod tento komentar.
   Parent styly Woodmartu se nacitaji automaticky pres functions.php.
   ========================================================= */

/* ---------------------------------------------------------
   Klientska revize #1, bod 3:
   Produktove karty bez ramecku v gridu (homepage + shop).
   Defensive override pro pripad, ze Theme Settings nestaci.
   --------------------------------------------------------- */
.products .product,
.products .product-grid-item,
.wd-products .product,
.wd-products .wd-product,
.woocommerce ul.products li.product,
.elementor-widget-wd_products .product {
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

/* Pokud Woodmart aplikuje border na vnitrnich obalech karty */
.product-wrapper,
.wd-entities-list .product-wrapper,
.product-grid-item .product-wrapper {
	border: none !important;
	box-shadow: none !important;
}

/* Hover stav - zachovat case mensim drobnym zvyraznenim
   (pokud klient chce neco mezi "uplne pusto" a "mam feedback") */
.products .product:hover,
.wd-products .product:hover {
	box-shadow: none !important;
	transform: none;
}

/* ---------------------------------------------------------
   Klientska revize #1, bod 4:
   Roboto pro produktove atributy (variant swatches, filter chlivce, atd.).
   Cilime na "interaktivni chlivce" - tj. UI prvky kde si zakaznik vybira
   velikost/material/barvu.

   Predpoklad: Roboto je nactena v Theme Settings -> Typography (Google Font).
   --------------------------------------------------------- */

/* Variant swatches na detail produktu (size, material, color)
   Woodmart pouziva .wd-swatch + .variations table */
.wd-swatch,
.wd-swatch .wd-swatch-text,
.variations .label,
.variations td.value,
.variations select,
table.variations .wd-swatches-wrapper,
.product .summary .variations {
	font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
	font-weight: 400;
	letter-spacing: 0;
}

/* Atributy v tabulce na detail produktu (Additional information tab) */
.shop_attributes,
.shop_attributes th,
.shop_attributes td,
.woocommerce-product-attributes,
.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
	font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
}

/* Filter widgets v shop sidebar (attribute filters, layered nav) */
.widget_layered_nav ul,
.widget_layered_nav .wd-swatches-list,
.wd-shop-tools .wd-tool .wd-tool-label,
.widget_product_attributes,
.woocommerce-widget-layered-nav-list,
.wd-attribute-filter {
	font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
}

/* "Vice simple" - klient pozadoval cistsi vzhled.
   Mensi padding a normal weight u variant swatches. */
.wd-swatch-text {
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

/* ---------------------------------------------------------
   Klientska revize #2, bod 3:
   Produktova karta v gridu - schovat hodnoceni a "Skladem".
   Primarne resime pres WC Settings + Woodmart Theme Settings,
   tento CSS je defensive pojistka.
   --------------------------------------------------------- */

/* Hvezdickove hodnoceni (i prazdne) v gridu */
.products .star-rating,
.products .woocommerce-product-rating,
.wd-products .star-rating,
.wd-products .woocommerce-product-rating,
.woocommerce ul.products .star-rating,
.elementor-widget-wd_products .star-rating {
	display: none !important;
}

/* "Skladem" / stock status badge v gridu */
.products .stock,
.products .wd-product-stock,
.products .product-stock,
.wd-products .stock,
.wd-products .wd-product-stock,
.woocommerce ul.products .stock {
	display: none !important;
}

/* Skryti zustava jen v shop loop / homepage gridu.
   Na detail produktu (.single-product) bezi tyto prvky normalne -
   tam je hodnoceni a stock status uzitecny. */
.single-product .star-rating,
.single-product .stock {
	display: block !important;
}

/* "Cena od " prefix - styling spanu, ktery vlozi PHP filter.
   Necham mensi a sediva, aby cena byla pres dominantni. */
.price-prefix {
	font-size: 0.85em;
	font-weight: 400;
	color: var(--ss-color-dark);
	opacity: 0.75;
	margin-right: 2px;
}

