/* Café Isabel — sistema visual propio */
:root {
	--ci-brand: #b91c1c;
	--ci-brand-dark: #991b1b;
	--ci-coffee: #2c1810;
	--ci-cream: #faf7f2;
	--ci-cream-dark: #f0ebe3;
	--ci-gold: #c9a962;
	--ci-forest: #3d5c4a;
	--ci-muted: #6b5d54;
	--ci-border: #e5ddd3;
	--ci-white: #ffffff;
	--ci-font: "DM Sans", system-ui, sans-serif;
	--ci-font-display: "Cormorant Garamond", Georgia, serif;
	--ci-container: min(1140px, 92vw);
	--ci-header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--ci-font);
	font-size: 1rem;
	line-height: 1.55;
	color: var(--ci-coffee);
	background: var(--ci-cream);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ci-brand); }

h1, h2, h3, h4 {
	color: var(--ci-coffee);
	line-height: 1.25;
	margin-top: 0;
}

.container {
	width: var(--ci-container);
	margin-inline: auto;
}

.container--narrow { max-width: 720px; }

/* Topbar */
.site-topbar {
	background: var(--ci-coffee);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.8125rem;
}

.site-topbar__inner {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.75rem 1.75rem;
	padding: 0.45rem 1rem;
}

.site-topbar__text { margin: 0; }
.site-topbar a { color: var(--ci-gold); text-decoration: none; }
.site-topbar a:hover { color: #fff; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--ci-white);
	border-bottom: 1px solid var(--ci-border);
	box-shadow: 0 1px 0 rgba(44, 24, 16, 0.04);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: var(--ci-header-h);
}

.site-logo { max-height: 54px; width: auto; }

.site-brand__name {
	font-family: var(--ci-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--ci-coffee);
	text-decoration: none;
}

.nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list a {
	color: var(--ci-coffee);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9375rem;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
	color: var(--ci-brand);
}

.site-header__actions { position: relative; }

.ci-cart-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--ci-coffee);
	text-decoration: none;
	border-radius: 8px;
}

.ci-cart-link:hover { background: var(--ci-cream-dark); color: var(--ci-brand); }

.ci-cart-link__count {
	position: absolute;
	top: 6px;
	right: 2px;
	min-width: 17px;
	height: 17px;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
	color: #fff;
	background: var(--ci-brand);
	border-radius: 999px;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	border: none;
	background: none;
	cursor: pointer;
	padding: 0;
}

.nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ci-coffee);
}

/* Main */
.site-main:not(.site-main--front) {
	padding: 2.5rem 0 4rem;
	background: var(--ci-cream);
}

.entry-title {
	font-family: var(--ci-font-display);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 600;
}

/* Products global */
.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.product-card {
	background: #fff;
	border: 1px solid var(--ci-border);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.product-card__link {
	flex: 1;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
}

.product-card__image {
	aspect-ratio: 1;
	background: var(--ci-cream);
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.product-card__image img {
	object-fit: contain;
	max-height: 100%;
}

.product-card__body { padding: 1rem 1rem 0.5rem; }

.product-card__title {
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
}

.product-card__excerpt { display: none; }

.product-card__price {
	font-weight: 700;
	color: var(--ci-brand);
}

.product-card__actions { padding: 0 1rem 1rem; }

.product-card__actions .button {
	width: 100%;
	background: var(--ci-brand) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 0.65rem !important;
	font-weight: 600 !important;
	font-size: 0.8125rem !important;
}

/* Footer */
.site-footer {
	background: var(--ci-coffee);
	color: rgba(255, 255, 255, 0.8);
}

.site-footer__promo {
	background: var(--ci-forest);
	text-align: center;
	padding: 0.55rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #fff;
}

.site-footer__promo p { margin: 0; }

.site-footer__main { padding: 3rem 0 2rem; }

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
	gap: 2rem;
}

.site-footer__brand .site-logo {
	max-height: 58px;
	filter: brightness(0) invert(1);
}

.site-footer__tagline {
	margin: 0.75rem 0 0;
	font-size: 0.9rem;
	opacity: 0.75;
	max-width: 260px;
}

.site-footer__heading {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--ci-gold);
	margin: 0 0 1rem;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.footer-nav-list,
.footer-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav-list li + li,
.footer-contact-list li + li { margin-top: 0.45rem; }

.footer-social-list {
	display: flex;
	gap: 1rem;
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1rem 0;
	background: rgba(0, 0, 0, 0.15);
}

.site-footer__copy {
	margin: 0;
	text-align: center;
	font-size: 0.75rem;
	opacity: 0.55;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.entry-card__link {
	display: block;
	background: #fff;
	border: 1px solid var(--ci-border);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
}

@media (max-width: 900px) {
	.nav-toggle { display: flex; }

	.site-header__nav {
		position: fixed;
		inset: var(--ci-header-h) 0 auto 0;
		left: 0;
		right: 0;
		background: #fff;
		padding: 1.25rem;
		border-bottom: 1px solid var(--ci-border);
		transform: translateY(-120%);
		opacity: 0;
		pointer-events: none;
		transition: 0.25s;
	}

	.site-header.is-nav-open .site-header__nav {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.nav-list { flex-direction: column; }

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.site-footer__grid { grid-template-columns: 1fr; }
}
