/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/



.woocommerce .single-product-page [class*="wd-swatches"] .wd-swatch.wd-text {
    padding: 10px 16px;
    border: 1px dashed;
    border-radius: 0;
    min-width: 0.8em;
    min-height: 0.8em;
}

.woocommerce .single-product-page [class*="wd-swatches"] .wd-swatch.wd-text.wd-active.wd-enabled {
    background-color: var(--color-gray-900);
    color: #fff;
    border-style: solid;
}

.woocommerce p.stock.wd-style-default:is( .available-on-backorder, .in-stock) {
  color: #77a464;
}

.woocommerce p.stock.out-of-stock {
  color: #ff0000;
}


.woocommerce.hide-larger-price .price {
  word-spacing: 0em;
}

.cart-totals-inner tr.shipping .woocommerce-shipping-destination,
.cart-totals-inner .shipping-calculator-button {
  display: none;
}

.popup-added_to_cart .btn.view-cart {
	background-color: var(--btn-accented-bgcolor-hover);
}

.wd-rating-summary .star-rating span {
  width: 100%!important;
}

.wd-rating-summary .wd-rating-summary-cont {
  display: none;
}

.wd-single-reviews .wd-rating-summary-wrap .wd-rating-summary-heading .wd-rating-summary-main {
  display: none;
}

.woocommerce-product-rating .woocommerce-review-link {
	position: relative;
}

.single-post .wd-entry-content a {
  color: var(--wd-primary-color);
}


.woocommerce-Reviews #comments .comment-text .description a {
  display: block;
  margin-top: 6px;
}

/* Info box – desktop */
.info-box-product {
	padding-top: 50px;
	padding-bottom: 30px;
}

/* Info box – mobil (≤ 768px) */
@media (max-width: 768px) {
	.info-box-product {
		padding-top: 40px;
		padding-bottom: 10px;
	}
}

/* ===== Layout swatch kartičiek ===== */
/* Zníž výšku swatchov iba na single product */
.single-product 
.wd-swatches-product.wd-size-large {
	--wd-swatch-size: 23px; /* pôvodne 45px */
}


.wd-swatches-product.wd-swatches-single {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.wd-swatches-product .wd-swatch.wd-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	width: 110px;
	min-height: 120px;
	padding: 10px 8px;
	text-align: center;
	cursor: pointer;
	border: 1px dashed #000;
	background: #fff;
	transition: all .2s ease;
}

/* ===== Aktívny swatch ===== */
.wd-swatches-product .wd-swatch.wd-active {
	background: #000;
	color: #fff;
	border: 2px solid #000;
}

/* ===== Horný label (Objem) ===== */
.wd-swatches-product .wd-swatch.wd-text .wd-swatch-text,
.wd-swatch.wd-text .wd-swatches-product .wd-swatch-text {
	display: inline-block;
	background: #000;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	padding: 3px 10px;
	margin-bottom: 8px;
}

/* Aktívny – nech je label vizuálne čistý */
.wd-swatches-product .wd-swatch.wd-active .wd-swatch-text {
	background: #fff;
	color: #000;
	font-weight: 600;
}

/* ===== Cena ===== */
.wd-swatches-product .wd-swatch-price {
	display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
    align-items: center;
}

.wd-swatches-product .wd-swatch-price .woocommerce-Price-amount bdi {
	font-weight: 700;
	white-space: nowrap;
}

.wd-swatches-product .wd-swatch-price .wd-swatch-current .woocommerce-Price-amount bdi,
.wd-swatches-product .wd-swatch-price .wd-swatch-current {
  font-size: 16px;  
}

.wd-swatches-product .wd-swatch-price .wd-swatch-regular .woocommerce-Price-amount bdi,
.wd-swatches-product .wd-swatch-price .wd-swatch-regular {
  font-size: 16px;
  color: #BDBDBD;
}

.wd-swatches-product .wd-swatch-price .wd-swatch-regular .woocommerce-Price-amount bdi {
	font-size: 15px;
}


/* Aktívny – cena biela */
.wd-swatches-product .wd-swatch.wd-active 
.wd-swatch-price .woocommerce-Price-amount bdi {
	color: #fff;
}

/* ===== s DPH ===== */
.wd-swatches-product .wd-swatch-price::after {
	content: "с ДДС";
	display: block;
	margin-top: 4px;
	font-size: 9px;
	opacity: .85;
}

/* Aktívny – s DPH biele */
.wd-swatches-product .wd-swatch.wd-active .wd-swatch-price::after {
	color: #fff;
	opacity: .9;
}

/* ===== Hover efekt ===== */
.wd-swatches-product .wd-swatch:not(.wd-active):hover {
	border-style: solid;
	background: #f9f9f9;
}

.wd-swatches-product .wd-swatch-price del{
	opacity:.7;
}

.wd-swatches-product .wd-swatch-current{
	font-weight:700;
}

.wd-swatch-price .wd-swatch-discount {
	display: inline;
    margin-top: 3px;
    margin-bottom: 5px;
    font-size: 15px;
    background: #d70606;
    width: fit-content;
    border-radius: 16px;
    padding: 4px 9px 2px;
	color: #fff;
}


/**
 * Štýly pre úpravu záložiek produktu vo WooCommerce
 *
 * Tieto štýly spolupracujú s funkciou customize_product_tabs() v functions.php,
 * ktorá odstraňuje navigáciu záložiek a presúva obsah záložky "Určenie"
 * pod popis produktu.
 *
 * - Odstráni horný okraj obálky záložiek
 * - Skryje navigačnú lištu záložiek (záložka "Popis" zostáva jediná)
 * - Štylizuje blok "Určenie" vložený funkciou customize_product_tabs()
 * - Upraví tabuľku atribútov produktu na plnú šírku
 */

/* Odstránenie horného okraja obálky záložiek */
.product-tabs-wrapper {
    border-top: none;
}

/* Skrytie navigácie záložiek - záložka "Popis" je jediná, navigácia nie je potrebná */
.product-tabs-wrapper .tabs-layout-tabs > .wd-nav-tabs-wrapper {
    display: none !important;
}

/* Odsadenie bloku "Určenie" od popisu produktu */
.custom-additional-information {
    padding-top: 2rem;
}

/* Odstránenie predvoleného odsadenia tabuľky atribútov vo WooCommerce */
.wc-tabs-wrapper .custom-additional-information .shop_attributes {
    margin: unset;
}

/* Nadpis bloku "Určenie" - názov prevzatý z pôvodnej záložky */
.custom-additional-information h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Tabuľka atribútov na plnú šírku */
.custom-additional-information table.shop_attributes {
    width: 100%;
}

.payment_methods li.payment_method_ppcp img {
    float: right !important;
    max-height: 30px;
    width: 88px;
}