/*
Theme Name: Woodmart Child - Custom Product Grid
Description: Child theme overrides for the WoodMart "Standard button" product cards.
Author: Custom
Template: woodmart
Version: 1.0.0
Text Domain: woodmart-child
*/

/* Only the WoodMart "Standard button" card is affected. */
.wd-product {
    border: 1px solid rgba(0, 0, 0, 0.11);
    border-radius: 12px;
    padding: 10px;
}
.wd-product.wd-hover-standard .product-element-bottom {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex-grow: 1;
	margin-top:10px;
	justify-content: space-between;
}

.wd-product.wd-hover-standard .aw-product-card-brand-slot {
	text-align: start;
}

.wd-product.wd-hover-standard .wd-entities-title {
	text-align: start;
}

.wd-product.wd-hover-standard .aw-product-card-footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 12px;
	margin-top: auto;
}

.wd-product.wd-hover-standard .aw-product-card-prices {
	min-width: 0;
	text-align: start;
}

.wd-product-brands-links a {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--wd-primary-color);
    margin-top: 10px;
}

.wd-product.wd-hover-standard .aw-product-card-rrp-slot .aw-loop-rrp {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 6px;
	white-space: nowrap;
}

.wd-product.wd-hover-standard .aw-loop-rrp-price {
	display: inline-flex;
	align-items: center;
	flex-shrink: 1;
	min-width: 0;
	gap: 1px;
	font-size:12px;
	color:#888;
}
.product-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.aw-product-card-footer .price bdi {
    font-size: 24px;
    font-weight: 700;
}

.wd-product.wd-hover-standard .aw-loop-saving {
	flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 50px;

    background: #e4f8da;
    color: #178b24;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.aw-loop-rrp-value .amount {
	color:#888;
	font-weight:400;
}
.wd-product.wd-hover-standard .aw-product-card-prices > .price {
	display: block;
	margin-inline: 0;
	text-align: start;
}

.wd-product.wd-hover-standard .aw-loop-rrp-info.aw-rrp-info {
	width: 15px;
	height: 15px;
	min-width: 15px;
	min-height: 15px;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: currentColor;
	box-shadow: none;
	opacity: .55;
}

.wd-product.wd-hover-standard .aw-loop-rrp-info.aw-rrp-info:hover,
.wd-product.wd-hover-standard .aw-loop-rrp-info.aw-rrp-info:focus,
.wd-product.wd-hover-standard .aw-loop-rrp-info.aw-rrp-info.is-open {
	border-color: currentColor;
	background: transparent;
	color: currentColor;
	opacity: 1;
}

.wd-product.wd-hover-standard .aw-loop-rrp-info .aw-rrp-info-icon {
	font-size: 9px;
	font-weight: 600;
	line-height: 1;
}

.wd-product.wd-hover-standard .aw-product-card-cart.wd-add-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0;
	border: 1px solid var(--wd-primary-color);
	border-radius: 14px;
}

.wd-product.wd-hover-standard .aw-product-card-cart.wd-add-btn > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wd-primary-color);
	font-size: 0;
}

.wd-product.wd-hover-standard .aw-product-card-cart.wd-add-btn > a:hover {
	background: transparent;
	color: var(--wd-primary-color);
}

.wd-product.wd-hover-standard .aw-product-card-cart.wd-add-btn > a:before {
	font-size: 22px;
}

@media (max-width: 767px) {
	.wd-product.wd-hover-standard .aw-product-card-footer {
		gap: 8px;
	}

	.wd-product.wd-hover-standard .aw-product-card-cart.wd-add-btn {
		width: 44px;
		height: 44px;
		border-radius: 11px;
	}

	.wd-product.wd-hover-standard .aw-product-card-rrp-slot .aw-loop-rrp {
		gap: 4px;
	}
}

@media (max-width: 480px) {
	.aw-product-card-footer .price bdi {font-size: 16px;}
	.wd-product.wd-hover-standard .aw-loop-rrp-price {font-size: 8px;}
	.wd-product.wd-hover-standard .aw-product-card-rrp-slot .aw-loop-rrp {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
    flex-direction: column-reverse;
}
	.wd-product.wd-hover-standard .aw-loop-saving {
    font-size: 11px;
}
	.wd-product-brands-links a {
    font-size: 10px;
}
}

/* Shared RRP tooltip styles. */
.aw-rrp-info {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: inherit;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.aw-rrp-info-icon {
	display: block;
	font-style: normal;
	line-height: 1;
}

.aw-rrp-tooltip {
	position: absolute;
	z-index: 99999;
	bottom: calc(100% + 12px);
	left: 50%;
	display: block;
	width: 285px;
	max-width: calc(100vw - 32px);
	padding: 14px 16px;
	border: 1px solid #e1e1e1;
	border-radius: 12px;
	background: #fff;
	color: #444;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	text-align: left;
	box-shadow: 0 10px 35px rgba(0, 0, 0, .14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 7px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.aw-rrp-tooltip strong {
	display: block;
	margin-bottom: 5px;
	color: #111;
	font-size: 15px;
	font-weight: 700;
}

.aw-rrp-tooltip span {
	display: block;
}

.aw-rrp-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-right: 1px solid #e1e1e1;
	border-bottom: 1px solid #e1e1e1;
	background: #fff;
	transform: translate(-50%, -5px) rotate(45deg);
}

.aw-rrp-info:hover .aw-rrp-tooltip,
.aw-rrp-info:focus .aw-rrp-tooltip,
.aw-rrp-info.is-open .aw-rrp-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

@media (max-width: 767px) {
	.aw-rrp-tooltip {
		position: fixed;
		right: 16px;
		bottom: 20px;
		left: 16px;
		width: auto;
		max-width: none;
		transform: translateY(10px);
	}

	.aw-rrp-tooltip::after {
		display: none;
	}

	.aw-rrp-info:hover .aw-rrp-tooltip,
	.aw-rrp-info:focus .aw-rrp-tooltip,
	.aw-rrp-info.is-open .aw-rrp-tooltip {
		transform: translateY(0);
	}
}
/* =========================================================
 * RRP SHORTCODES — SINGLE PRODUCT
 * Същият стил като в продуктовия архив
 * ========================================================= */

.single-product .aw-rrp-price-row {
	display: inline-flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 1px;
	color: #888;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
}

.single-product .aw-rrp-label,
.single-product .aw-rrp-value,
.single-product .aw-rrp-value .woocommerce-Price-amount {
	color: #888;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
	text-decoration: none;
}

/* [rrp_savings] */
.single-product .aw-rrp-saving {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	border-radius: 50px;
	background: #e4f8da;
	color: #178b24;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

/* Премахва евентуални отстояния от Elementor параграфи. */
.single-product .elementor-shortcode > .aw-rrp-price-row,
.single-product .elementor-shortcode > .aw-rrp-saving {
	margin: 0;
}
/* GENERAL CSS */
.wd-product-brands a {
    color: #8c2bff;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
}