/**
 * RosaFood design system — Gringo fast-food
 */
:root {
	--rf-primary: #d71920;
	--rf-secondary: #ffcc19;
	--rf-dark: #111111;
	--rf-cream: #f4f1ea;
	--rf-surface: #ffffff;
	--rf-text: #212121;
	--rf-muted: #777777;
	--rf-border: #e5e0d8;
	--rf-radius: 20px;
	--rf-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
	--rf-container: 1320px;
	--rf-gutter: 1.5rem;
	--rf-touch: 44px;

	/* FazFood compat */
	--primary: var(--rf-primary);
	--primary_hover: #b9151b;
	--secondary: #00833e;
	--accent: var(--rf-text);
	--background: var(--rf-cream);
	--hightlight: var(--rf-secondary);
	--container: var(--rf-container);
}

/* Full-width section + boxed center content */
.rf-section {
	width: 100%;
}
.rf-section__inner,
.rf-container {
	width: 100%;
	max-width: var(--rf-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rf-gutter);
	padding-right: var(--rf-gutter);
	box-sizing: border-box;
}

.rf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--rf-touch);
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}
.rf-btn--primary {
	background: var(--rf-primary);
	color: #fff !important;
}
.rf-btn--secondary {
	background: var(--rf-secondary);
	color: var(--rf-dark) !important;
}
.rf-btn--outline {
	background: transparent;
	border: 2px solid var(--rf-primary);
	color: var(--rf-primary) !important;
}
.rf-btn--sm {
	min-height: 40px;
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
}
.rf-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--rf-shadow);
}

.rf-badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.rf-badge--sale { background: var(--rf-secondary); color: var(--rf-dark); }
.rf-badge--hot { background: var(--rf-primary); color: #fff; }
.rf-badge--spicy { background: #ff6b35; color: #fff; }
.rf-badge--cat { background: rgba(17, 17, 17, 0.75); color: #fff; }

/* Product card */
.rf-product-card {
	display: flex;
	flex-direction: column;
	background: var(--rf-surface);
	border-radius: var(--rf-radius);
	overflow: hidden;
	box-shadow: var(--rf-shadow);
	border: 1px solid var(--rf-border);
	height: 100%;
	transition: transform 0.2s;
}
.rf-product-card:hover {
	transform: translateY(-4px);
}
.rf-product-card__image-link {
	position: relative;
	display: block;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: var(--rf-cream);
}
.rf-product-card__image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s;
}
.rf-product-card:hover .rf-product-card__image-link img {
	transform: scale(1.06);
}
.rf-product-card__badges {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}
.rf-product-card__body {
	padding: 1rem 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.rf-product-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.2;
}
.rf-product-card__title a {
	color: var(--rf-text);
	text-decoration: none;
}
.rf-product-card__desc {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: var(--rf-muted);
	line-height: 1.4;
	flex: 1;
}
.rf-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}
.rf-product-card__price {
	font-weight: 800;
	font-size: 1.125rem;
	color: var(--rf-primary);
}
.rf-product-card__price .woocommerce-Price-amount {
	color: inherit;
}

/* Shop grid uses food cards */
.woocommerce ul.products li.product.rf-product-card-wrap {
	list-style: none;
	padding: 0;
	margin: 0;
}
.woocommerce ul.products li.product.rf-product-card-wrap .rf-product-card {
	margin: 0;
}

@media (max-width: 767px) {
	body.rf-shop-list-mobile ul.products {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}
	body.rf-shop-list-mobile ul.products li.product {
		width: 100% !important;
		margin: 0 !important;
		float: none !important;
	}
	body.rf-shop-list-mobile .rf-product-card {
		flex-direction: row;
		max-height: 160px;
	}
	body.rf-shop-list-mobile .rf-product-card__image-link {
		width: 140px;
		flex-shrink: 0;
		aspect-ratio: 1;
	}
}

@media (max-width: 767px) {
	.woocommerce ul.products.rf-products--list {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}
	.woocommerce ul.products.rf-products--list li.product {
		width: 100% !important;
		margin: 0 !important;
	}
	.woocommerce ul.products.rf-products--list .rf-product-card {
		flex-direction: row;
		max-height: 140px;
	}
	.woocommerce ul.products.rf-products--list .rf-product-card__image-link {
		width: 140px;
		flex-shrink: 0;
		aspect-ratio: 1;
	}
}

/* Sticky header */
.site-header.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	background: var(--rf-surface);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	animation: rf-header-in 0.25s ease;
}
.admin-bar .site-header.is-sticky {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .site-header.is-sticky {
		top: 46px;
	}
}
@keyframes rf-header-in {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}
body.rf-header-sticky-active {
	padding-top: var(--rf-header-offset, 80px);
}

/* Sticky mobile cart */
.rf-sticky-cart {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 998;
	background: var(--rf-dark);
	color: #fff;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
}
.rf-sticky-cart.is-visible {
	display: block;
}
.rf-sticky-cart__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--rf-touch);
	padding: 0.75rem 1.25rem;
	padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
}
.rf-sticky-cart__total {
	color: var(--rf-secondary);
}
body.rf-has-sticky-cart {
	padding-bottom: 72px;
}
body.rfpo-has-sticky.rf-has-sticky-cart {
	padding-bottom: 140px;
}

/* Single product layout */
.single-product .summary {
	position: relative;
}
.single-product .rfpo-options {
	margin-bottom: 5rem;
}
/* -------------------------------------------------------------------------
 * Layout: full-width sections + centered boxed content (fix left-pulled homepage)
 * ------------------------------------------------------------------------- */
.col-fluid {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.page-template-template-homepage .site-content-page,
.page-template-template-homepage #content,
.home .site-content-page,
.home #content {
	margin-top: 0;
}

/* Force full-width even if legacy sidebar body class remains */
body.home.fazfood-sidebar-right .content-area,
body.home.fazfood-sidebar-left .content-area,
body.page-template-template-homepage.fazfood-sidebar-right .content-area {
	width: 100% !important;
	float: none !important;
	max-width: 100% !important;
}

.rf-home-layout {
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.page-template-template-homepage .content-area,
	.page-template-template-homepage-php .content-area,
	.home .content-area,
	.fazfood-full-width-content .content-area {
		width: 100% !important;
		float: none !important;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.page-template-template-homepage #secondary,
	.home #secondary,
	.fazfood-full-width-content.woocommerce-shop #secondary {
		display: none !important;
	}
}

.fazfood-home-03 {
	width: 100%;
	margin: 0 auto;
}

.fazfood-home-03 .home03-hero__inner,
.fazfood-home-03 .home03-about__grid,
.fazfood-home-03 .home03-promo,
.fazfood-home-03 .home03-best-selling__inner,
.fazfood-home-03 .home03-cta-banner__inner,
.fazfood-home-03 .home03-promise__grid,
.fazfood-home-03 .home03-trust__grid,
.fazfood-home-03 .home03-final-cta__inner,
.fazfood-home-03 .home03-bottom-promo,
.fazfood-home-03 .home03-categories__inner {
	width: 100%;
	max-width: var(--rf-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rf-gutter);
	padding-right: var(--rf-gutter);
	box-sizing: border-box;
}

/* Cancel FazFood Elementor hack that shifts content left on nested pages */
.col-full [data-elementor-type="wp-page"] {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	transform: none !important;
}

/* WooCommerce shop — centered grid */
.woocommerce-shop .site-content > .col-full,
.post-type-archive-product .site-content > .col-full {
	max-width: var(--rf-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--rf-gutter);
	padding-right: var(--rf-gutter);
	box-sizing: border-box;
}

.woocommerce ul.products {
	justify-content: center;
}

@media (min-width: 769px) {
	.single-product .rfpo-sticky-bar--desktop {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		position: sticky;
		bottom: 1rem;
		z-index: 10;
		padding: 1rem 1.25rem;
		background: var(--rf-surface);
		border-radius: var(--rf-radius);
		box-shadow: var(--rf-shadow);
		border: 1px solid var(--rf-border);
		margin-top: 1.5rem;
	}
}
