/* ==========================================================================
   Carusel Divi – Podo | Stiluri Front-end
   ========================================================================== */

/* ── Wrapper general ─────────────────────────────────────────────────────── */
.podo-carousel-module {
	position: relative;
	overflow: hidden; /* ascunde in timp ce se initializeaza */
	width: 100%;
}

.podo-swiper {
	position: relative;
	width: 100%;
}

/* ── Înălțime egală ──────────────────────────────────────────────────────── */
.podo-equal-height .swiper-wrapper {
	align-items: stretch;
}

.podo-equal-height .swiper-slide {
	height: auto;
}

.podo-equal-height .podo-product-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.podo-equal-height .podo-product-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.podo-equal-height .podo-product-buttons {
	margin-top: auto;
}

/* ── Card produs ─────────────────────────────────────────────────────────── */
.podo-product-card {
	position: relative;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
	cursor: default;
}

.podo-clickable-card .podo-product-card {
	cursor: pointer;
}

.podo-product-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* ── Imagine ─────────────────────────────────────────────────────────────── */
.podo-product-image {
	position: relative;
	overflow: hidden;
	background: #f5f5f5;
	aspect-ratio: 1 / 1;
}

.podo-product-image-link {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	text-decoration: none;
	overflow: hidden;
}

.podo-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
	display: block;
}

.podo-product-card:hover .podo-product-image img {
	transform: scale(1.04);
}

/* ── Conținut card ───────────────────────────────────────────────────────── */
.podo-product-content {
	padding: 14px 16px 16px;
}

/* ── Insignă reducere ────────────────────────────────────────────────────── */
.podo-sale-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	background: #e02b20;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	z-index: 2;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

/* ── Wishlist wrapper ─────────────────────────────────────────────────────── */
.podo-wishlist-wrapper {
	position: absolute;
	z-index: 20;
	line-height: 1;
}

.podo-wishlist-wrapper .tinvwl_add_to_wishlist_button {
	background: none !important;
	border: none !important;
	padding: 0 !important;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
}

/* ── Titlu ───────────────────────────────────────────────────────────────── */
.podo-product-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.podo-product-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.podo-product-title a:hover {
	color: #2ea3f2;
}

/* ── Rating stele ────────────────────────────────────────────────────────── */
.podo-product-rating {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 6px;
}

.podo-stars {
	position: relative;
	display: inline-block;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 1px;
}

.podo-stars-empty {
	color: #dddddd;
	display: block;
}

.podo-stars-filled {
	color: #f5a623;
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
}

.podo-rating-count {
	font-size: 12px;
	color: #888;
}

/* ── Preț WooCommerce ────────────────────────────────────────────────────── */
.podo-product-price {
	margin: 6px 0 8px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
}

.podo-product-price ins {
	text-decoration: none;
	color: #e02b20;
}

.podo-product-price del {
	color: #999;
	font-size: 0.85em;
	font-weight: 400;
	margin-left: 4px;
}

/* ── Descriere ───────────────────────────────────────────────────────────── */
.podo-product-description {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 10px;
}

.podo-product-description p {
	margin: 0;
}

/* ── Butoane ─────────────────────────────────────────────────────────────── */
.podo-product-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}

/* Buton Adaugă în Coș – culoarea vine din Divi Design tab (set_style cu !important) */
.podo-add-to-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	background-color: #2ea3f2; /* fallback – Divi override via %%order_class%% */
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease;
	line-height: 1.3;
	white-space: nowrap;
}

.podo-add-to-cart-btn:hover {
	filter: brightness(0.88);
	transform: translateY(-1px);
}

.podo-add-to-cart-btn:active {
	transform: translateY(0);
}

/* Stare loading & added */
.podo-add-to-cart-btn.podo-loading {
	opacity: 0.7;
	cursor: wait;
	pointer-events: none;
}

.podo-add-to-cart-btn.podo-added {
	background: #46b450;
}

.podo-add-to-cart-btn.podo-added:hover {
	background: #39923d;
}

/* Buton Vezi Produsul */
.podo-view-product-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	background: transparent;
	color: #2ea3f2;
	font-size: 13px;
	font-weight: 600;
	border: 2px solid #2ea3f2;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	line-height: 1.3;
	white-space: nowrap;
}

.podo-view-product-btn:hover {
	background: #2ea3f2;
	color: #fff;
}

/* ── Săgeți navigare ─────────────────────────────────────────────────────── */
.podo-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s ease, opacity 0.2s ease;
	padding: 0;
	flex-shrink: 0;
}

.podo-arrow:hover {
	background: rgba(0, 0, 0, 0.8);
}

.podo-arrow svg {
	width: 20px;
	height: 20px;
	stroke: #fff;
	display: block;
}

/* Săgeți vizibile doar la hover */
.podo-arrows-on-hover .podo-arrow {
	opacity: 0;
	pointer-events: none;
}

.podo-arrows-on-hover:hover .podo-arrow {
	opacity: 1;
	pointer-events: auto;
}

/* ── Poziții săgeți ──────────────────────────────────────────────────────── */

/* Mijloc – interior (implicit) */
.podo-arrows-middle-inside .podo-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.podo-arrows-middle-inside .podo-arrow-prev {
	left: 10px;
}

.podo-arrows-middle-inside .podo-arrow-next {
	right: 10px;
}

/* Mijloc – exterior */
.podo-arrows-middle-outside {
	padding: 0 54px;
}

.podo-arrows-middle-outside .podo-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.podo-arrows-middle-outside .podo-arrow-prev {
	left: 0;
}

.podo-arrows-middle-outside .podo-arrow-next {
	right: 0;
}

/* Jos – centru */
.podo-arrows-bottom-center .podo-swiper {
	padding-bottom: 54px;
}

.podo-arrows-bottom-center .podo-arrow {
	position: absolute;
	bottom: 0;
}

.podo-arrows-bottom-center .podo-arrow-prev {
	left: calc(50% - 50px);
}

.podo-arrows-bottom-center .podo-arrow-next {
	left: calc(50% + 6px);
}

/* Sus – centru */
.podo-arrows-top-center .podo-swiper {
	padding-top: 54px;
}

.podo-arrows-top-center .podo-arrow {
	position: absolute;
	top: 0;
}

.podo-arrows-top-center .podo-arrow-prev {
	left: calc(50% - 50px);
}

.podo-arrows-top-center .podo-arrow-next {
	left: calc(50% + 6px);
}

/* ── Paginare puncte ─────────────────────────────────────────────────────── */
.podo-pagination {
	margin-top: 16px;
	position: relative;
	text-align: center;
}

.podo-no-dots .podo-pagination {
	display: none;
}

/* ── Mesaje stare ────────────────────────────────────────────────────────── */
.podo-wc-missing,
.podo-no-products {
	padding: 20px;
	text-align: center;
	color: #666;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
	.podo-arrows-middle-outside {
		padding: 0 36px;
	}

	.podo-arrow {
		width: 36px;
		height: 36px;
	}

	.podo-arrow svg {
		width: 16px;
		height: 16px;
	}

	.podo-product-content {
		padding: 10px 12px 12px;
	}

	.podo-product-title {
		font-size: 15px;
	}
}
