/**
 * Vido base — RosaFood feletti globális felülírások.
 */

/* Rejtett legacy sticky cart (vido mobil nav használja) */
.vido-theme .rf-sticky-cart {
	display: none !important;
}

/* Shop oldalsáv kosár — teljesen kikapcsolva (régi verziók / cache ellen) */
.vido-theme .vido-cart-sidebar,
.vido-theme .vido-cart-upsell {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* Legacy fejléc kosár panel — Vido-ban nincs */
.vido-theme .site-header-cart-side,
.vido-theme .cart-side-overlay {
	display: none !important;
}

.vido-theme #page,
.vido-theme .site-content {
	background: transparent;
}

.vido-theme .rf-container {
	width: var(--vido-container);
	max-width: none;
}

/* Termékkártya alap */
.vido-product-card {
	display: grid;
	grid-template-columns: 110px 1fr auto;
	gap: 0.875rem;
	align-items: center;
	padding: 0.875rem;
	background: var(--vido-white);
	border-radius: var(--vido-radius-md);
	box-shadow: 0 2px 12px var(--vido-shadow);
	border: 1px solid rgba(61, 35, 20, 0.08);
	transition: box-shadow var(--vido-transition), transform var(--vido-transition);
}

.vido-product-card:hover {
	box-shadow: 0 6px 20px var(--vido-shadow-strong);
	transform: translateY(-2px);
}

.vido-product-card__image {
	display: block;
	border-radius: var(--vido-radius-sm);
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--vido-parchment-dark);
}

.vido-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vido-product-card__title {
	font-family: var(--vido-font-display);
	font-size: 1.125rem;
	margin: 0 0 0.25rem;
	line-height: 1.15;
}

.vido-product-card__title a {
	color: var(--vido-brown);
	text-decoration: none;
}

.vido-product-card__desc {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--vido-brown-soft);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vido-product-card__price {
	font-weight: 700;
	font-size: 1rem;
	color: var(--vido-red);
	white-space: nowrap;
}

.vido-product-card__add {
	flex-shrink: 0;
}

.vido-add-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--vido-red);
	color: var(--vido-white);
	border: none;
	border-radius: var(--vido-radius-sm);
	font-size: 1.5rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--vido-transition), transform var(--vido-transition);
}

.vido-add-btn:hover {
	background: var(--vido-red-hover);
	color: var(--vido-white);
	transform: scale(1.05);
}

/* Carousel kártya (főoldal kedvencek) */
.vido-fav-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--vido-white);
	border-radius: var(--vido-radius-md);
	overflow: hidden;
	box-shadow: 0 4px 16px var(--vido-shadow);
	border: 1px solid rgba(61, 35, 20, 0.06);
}

.vido-fav-card__image {
	aspect-ratio: 4/3;
	overflow: hidden;
	background: var(--vido-parchment-dark);
}

.vido-fav-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vido-fav-card__body {
	padding: 0.875rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.vido-fav-card__title {
	font-family: var(--vido-font-display);
	font-size: 1rem;
	margin: 0;
}

.vido-fav-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

/* USP sáv */
.vido-usp-bar {
	background: var(--vido-charcoal);
	color: var(--vido-parchment);
	padding: 1.5rem 1rem;
	border-top: 4px solid var(--vido-gold);
}

.vido-usp-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.25rem;
}

.vido-usp-item {
	text-align: center;
}

.vido-usp-item__icon {
	font-size: 1.5rem;
	margin-bottom: 0.35rem;
	color: var(--vido-gold-light);
}

.vido-usp-item__title {
	font-family: var(--vido-font-display);
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	margin: 0 0 0.25rem;
	color: var(--vido-gold-light);
}

.vido-usp-item__text {
	margin: 0;
	font-size: 0.75rem;
	opacity: 0.85;
	line-height: 1.35;
}

/* Kosár drawer */
.vido-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 99990;
	pointer-events: none;
	visibility: hidden;
}

.vido-cart-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

.vido-cart-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(42, 24, 16, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.vido-cart-drawer.is-open .vido-cart-drawer__overlay {
	opacity: 1;
}

.vido-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(100%, 400px);
	height: 100%;
	background: var(--vido-cream);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 32px var(--vido-shadow-strong);
}

.vido-cart-drawer.is-open .vido-cart-drawer__panel {
	transform: translateX(0);
}

.vido-cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: var(--vido-red);
	color: var(--vido-white);
	font-family: var(--vido-font-display);
	font-size: 1.25rem;
	letter-spacing: 0.06em;
}

.vido-cart-drawer__close {
	background: none;
	border: none;
	color: inherit;
	font-size: 1.75rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

.vido-cart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 1.25rem;
}

.vido-cart-drawer__foot {
	padding: 1rem 1.25rem;
	border-top: 1px solid rgba(61, 35, 20, 0.12);
	background: var(--vido-white);
}

.vido-cart-drawer__total {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	font-size: 1.125rem;
	margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
	.vido-usp-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (min-width: 992px) {
	.vido-product-card {
		grid-template-columns: 140px 1fr auto;
		padding: 1rem 1.125rem;
	}
}
