/* ===== Mriežka produktov (obchod / archívy) ===== */
.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
	.products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Náhľad produktu (content-product.php) ===== */


.product-card-link {
	display: block;
	text-decoration: none;
}

.product-card-media {
	position: relative;
	overflow: hidden;
}

.product-card-media img {
	display: block;
	width: 100%;
	height: auto;
}

.product-card-price {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 6px 12px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
    border: 1px solid #eb9fa2;
    box-sizing: border-box;
    min-width: 60%;
    max-width: calc(100% - 24px);
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.product-card-price .amount,
.product-card-price del,
.product-card-price ins {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.product-card:hover .product-card-price,
.product-card-link:focus-visible .product-card-price {
	background-color: #eb9fa2;
	border-color: #ffffff;
	color: #ffffff;
}

/* ===== Stránka produktu – galéria (video + fotky) ===== */
.pg {
	max-width: 640px;
	width: 100%;
}

.pg-stage {
	position: relative;
	width: 100%;
	max-width: 360px;
}

.pg-slide {
	display: none;
}

.pg-slide.is-active {
	display: block;
	justify-items: self-end;
}

.pg-slide img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
}

.pg-video {
	position: relative;
	width: 100%;
	max-width: 360px;
	justify-self: self-end;
	aspect-ratio: 9 / 16;
	background: #000;
}
@media (max-width: 767px) {
	.pg-video {
		justify-self: center;
	}
}

.pg-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.pg-thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	width: 100%;
	max-width: 360px;
}

.pg-thumb {
	position: relative;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 1px solid transparent;
	background: none;
	cursor: pointer;
	overflow: hidden;
	box-sizing: border-box;
}

.pg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pg-thumb.is-active {
	border-color: #fff;
}

.pg-thumb-video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent #fff;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
}

.single-product-summary {
	max-width: 640px;

}

/* ===== Stránka produktu – výber varianty (veľkosť) ako buttony ===== */
.single-product-summary .variations select {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.single-product-summary .variations,
.single-product-summary .variations tbody,
.single-product-summary .variations tr,
.single-product-summary .variations th,
.single-product-summary .variations td {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
}

.single-product-summary .variations th.label {
	text-align: inherit;
}

.pg-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: left;
	margin: 6px 0 4px;
}

@media (max-width: 767px) {
	.pg-swatches {
		justify-content: center;
	}
}

.pg-swatch {
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}

.pg-swatch.is-active {
	background: #fff;
	color: #eb9fa2;
	font-weight: 600;
}

.pg-swatch.is-disabled {
	opacity: 0.35;
	text-decoration: line-through;
	cursor: not-allowed;
}

.single-product-summary .reset_variations {
	display: none !important;
}

.single-product-summary .woocommerce-variation-add-to-cart .quantity,
.single-product-summary form.cart .quantity,
.single-product-summary .woocommerce-variation-availability {
	display: none !important;
}

/* ===== Stránka produktu – tlačidlo "Pridať do košíka" ===== */
.single-product-summary .single_add_to_cart_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin-top: 10px;
	padding: 0 28px;
	border: 1px solid #fff;
	border-radius: 4px;
	background: #fff;
	color: #eb9fa2;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.single-product-summary .single_add_to_cart_button:hover {
	background: transparent;
	color: #fff;
}

.single-product-summary .single_add_to_cart_button.disabled,
.single-product-summary .single_add_to_cart_button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.single-product-summary .single_add_to_cart_button.loading {
	opacity: 0.6;
	cursor: progress;
}

.single-product-summary .woocommerce-variation-add-to-cart--disabled .single_add_to_cart_button {
	opacity: 0.45;
	cursor: not-allowed;
}

.single-product-notices {
	margin-bottom: 12px;
}

@media (max-width: 767px) {
	.single-product-summary .single_add_to_cart_button {
		width: 100%;
	}
}
