/* ===========================================
   VE-GA Shop – Category Grid with Carousels
   =========================================== */

/* --- Sidebar narrower --- */
.woocommerce {
	--theme-var-sidebar_width: 320px !important;
	--theme-var-sidebar_width_min: 300px !important;
	--theme-var-sidebar_width_max: 360px !important;
	--theme-var-sidebar_prc: 0.23 !important;
}

.woocommerce .sidebar {
	margin-top: 0 !important;
	padding-top: 2.1em !important;
}

.woocommerce .sidebar .widget {
	font-size: 12.5px;
	padding-left: 20px !important;
	padding-right: 20px !important;
}

.vega-shop-page {
	max-width: 100%;
	margin: 0 auto;
	padding: 40px 0 60px;
}

/* --- Discrete search bar --- */
.vega-shop-search-mini {
	display: none;
}

/* --- Categories grid --- */
.vega-categories-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

/* --- Category card --- */
.vega-cat-card {
	position: relative;
	display: block;
	overflow: hidden;
	width: 100%;
	padding-bottom: 160%;
	height: 0;
	text-decoration: none !important;
	cursor: pointer;
}

.vega-cat-card:hover .vega-cat-slide img {
	transform: scale(1.05);
}

.vega-cat-card:hover .vega-cat-overlay {
	background: rgba(0, 0, 0, 0.3);
}

/* --- Carousel --- */
.vega-cat-carousel {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.vega-cat-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.vega-cat-slide.active {
	opacity: 1;
}

.vega-cat-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

/* Placeholder when no images */
.vega-cat-placeholder {
	background: #8b6f47;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vega-cat-placeholder span {
	font-size: 72px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.3);
}

/* --- Overlay with title --- */
.vega-cat-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 30px 25px;
	transition: background 0.3s ease;
	z-index: 2;
}

.vega-cat-title {
	color: #fff !important;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 3px;
	line-height: 1.3;
	margin: 0 !important;
	text-align: center;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* --- Dots --- */
.vega-cat-dots {
	position: absolute;
	bottom: 15px;
	right: 20px;
	display: flex;
	gap: 6px;
	z-index: 3;
}

.vega-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	transition: background 0.3s;
	cursor: pointer;
}

.vega-dot.active {
	background: #fff;
}

/* --- Category header (full-width banner) --- */
.vega-cat-header {
	width: 100%;
	min-height: 320px;
	background-size: cover;
	background-position: center;
	background-color: #f5f0eb;
	position: relative;
	margin-bottom: 40px;
}

.vega-cat-header-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 30px;
	text-align: center;
}

.vega-cat-header-title {
	color: #fff !important;
	font-size: 36px;
	font-weight: 700;
	letter-spacing: 6px;
	margin: 0 !important;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.vega-cat-header-desc {
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	max-width: 600px;
	margin: 15px 0 0 !important;
	line-height: 1.6;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- Product grid (Cristina Oria style) --- */
.vega-products-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.vega-product-card {
	position: relative;
}

.vega-product-img-wrap {
	position: relative;
	overflow: hidden;
	padding-bottom: 160%;
	height: 0;
	background: #f5f0eb;
}

.vega-product-img-wrap img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.vega-product-card:hover .vega-product-img-wrap img {
	transform: scale(1.04);
}

/* Add to cart button - desktop (hover) */
.vega-add-to-cart {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	border: none;
	padding: 14px 20px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2px;
	cursor: pointer;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.3s ease, transform 0.3s ease;
	z-index: 3;
	text-transform: uppercase;
}

.vega-add-to-cart:hover {
	background: rgba(0, 0, 0, 1);
}

.vega-product-card:hover .vega-add-to-cart {
	opacity: 1;
	transform: translateY(0);
}

.vega-add-to-cart.adding {
	opacity: 0.6;
	pointer-events: none;
}

.vega-add-to-cart.added {
	background: #F6B255;
}

/* Desktop: show text, hide + */
.vega-atc-plus {
	display: none;
}

/* Product meta (name + price below image) */
.vega-product-meta {
	display: block;
	text-align: center;
	padding: 15px 8px 10px;
	text-decoration: none !important;
}

.vega-product-name {
	color: #333 !important;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1.5px;
	line-height: 1.4;
	margin: 0 !important;
}

.vega-product-price {
	color: #666 !important;
	font-size: 14px;
	font-weight: 400;
	margin-top: 6px;
	display: block;
	text-shadow: none;
}

.vega-product-price del {
	opacity: 0.5;
	font-size: 12px;
}

.vega-product-price ins {
	text-decoration: none;
}

/* --- Cart notification banner --- */
.vega-cart-notice {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #F6B255;
	color: #333;
	padding: 14px 25px;
	font-size: 14px;
	text-align: center;
	z-index: 99999;
	transform: translateY(-100%);
	transition: transform 0.4s ease;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.vega-cart-notice.visible {
	transform: translateY(0);
}

.vega-cart-notice-icon {
	margin-right: 6px;
}

.vega-cart-notice-link {
	color: #333 !important;
	text-decoration: underline !important;
	margin-left: 10px;
	font-weight: 600;
}

/* --- Section title (e.g. "Productos" divider) --- */
.vega-section-title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #333;
	margin: 50px 0 25px;
	padding-bottom: 10px;
	border-bottom: 1px solid #ddd;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.vega-categories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.vega-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.vega-cat-card {
		padding-bottom: 170%;
	}

	.vega-cat-header {
		min-height: 240px;
	}

	.vega-cat-header-title {
		font-size: 26px;
		letter-spacing: 4px;
	}
}

@media (max-width: 600px) {
	.vega-shop-page {
		padding: 20px 15px 40px;
	}

	.vega-categories-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.vega-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.vega-cat-card {
		padding-bottom: 120%;
	}

	.vega-cat-title {
		font-size: 18px;
	}

	.vega-cat-header {
		min-height: 180px;
	}

	.vega-cat-header-title {
		font-size: 22px;
		letter-spacing: 3px;
	}

	.vega-cat-header-desc {
		font-size: 13px;
	}

	/* Mobile: always-visible "+" button */
	.vega-add-to-cart {
		opacity: 1;
		transform: none;
		position: absolute;
		bottom: auto;
		top: 10px;
		right: 10px;
		left: auto;
		width: 36px;
		height: 36px;
		padding: 0;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(255, 255, 255, 0.9);
		color: #333;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	}

	.vega-add-to-cart:hover {
		background: #fff;
	}

	.vega-add-to-cart.added {
		background: #F6B255;
		color: #333;
	}

	.vega-atc-text {
		display: none;
	}

	.vega-atc-plus {
		display: block;
		font-size: 20px;
		font-weight: 700;
		line-height: 1;
	}

	.vega-product-name {
		font-size: 11px;
	}

	.vega-product-price {
		font-size: 12px;
	}
}
