/*
 * Ana Lindas Boutique — Homepage styles
 * Loaded only on page-home-code.php via functions.php
 *
 * Guidelines for future edits:
 * - Mobile-first. Add larger-screen overrides with min-width media queries.
 * - Keep class names prefixed with "alb-".
 * - Each homepage section (sections/*.php) has its own labeled block
 *   below, in the same order the sections render on the page.
 * - No build system: plain CSS only.
 */

/* ==================================================================
   Tokens
   ================================================================== */

.alb-home {
	/* Never use pure black (#000) — ink is always #1A1A1A */
	--alb-ink: #1A1A1A;
	--alb-paper: #ffffff;
	--alb-paper-alt: #f6f1ea;
	--alb-line: #e4ddd2;
	--alb-accent: #b3705c;
	--alb-max-width: 1100px;
	--alb-gutter: clamp(1.25rem, 5vw, 3rem);
	--alb-section-space: clamp(3rem, 8vw, 6.5rem);

	width: 100%;
	overflow-x: hidden;
	background-color: var(--alb-paper);
	color: var(--alb-ink);
}

.alb-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==================================================================
   Shared primitives (eyebrow, section header, button, images)
   ================================================================== */

.alb-eyebrow {
	margin: 0;
	font-size: clamp(0.75rem, 1.5vw, 0.95rem);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--alb-ink);
}

.alb-section {
	width: 100%;
	box-sizing: border-box;
	padding: var(--alb-section-space) var(--alb-gutter);
}

.alb-section__header {
	max-width: var(--alb-max-width);
	margin: 0 auto clamp(1.5rem, 4vw, 2.75rem);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	text-align: left;
}

.alb-section__heading {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.1;
	font-weight: 700;
}

.alb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 2rem;
	border-radius: 999px;
	background-color: var(--alb-ink);
	color: var(--alb-paper);
	text-decoration: none;
	font-size: 1rem;
	font-weight: 600;
	white-space: nowrap;
	border: 1px solid var(--alb-ink);
	transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

.alb-button:hover,
.alb-button:focus-visible {
	opacity: 0.85;
	color: var(--alb-paper);
}

.alb-button--outline {
	background-color: transparent;
	color: var(--alb-ink);
}

.alb-button--outline:hover,
.alb-button--outline:focus-visible {
	background-color: var(--alb-ink);
	color: var(--alb-paper);
	opacity: 1;
}

/* Light button — for use on dark (#1A1A1A) surfaces */
.alb-button--light {
	background-color: var(--alb-paper);
	color: var(--alb-ink);
	border-color: var(--alb-paper);
}

.alb-button--light:hover,
.alb-button--light:focus-visible {
	opacity: 0.9;
	color: var(--alb-ink);
}

/* Generic placeholder block used wherever a campaign image is pending. */
.alb-hero__placeholder,
.alb-editorial__placeholder,
.alb-seasonal__placeholder,
.alb-about__placeholder,
.alb-category-card__placeholder {
	width: 100%;
	height: 100%;
	min-height: 260px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(
		135deg,
		var(--alb-paper-alt),
		var(--alb-paper-alt) 12px,
		var(--alb-line) 12px,
		var(--alb-line) 24px
	);
	color: var(--alb-ink);
	font-size: 0.85rem;
	letter-spacing: 0.05em;
	text-align: center;
	padding: 1rem;
	box-sizing: border-box;
}

/* ==================================================================
   Announcement bar — sections/announcement.php
   ================================================================== */

.alb-announcement {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem var(--alb-gutter);
	background-color: var(--alb-ink);
	text-align: center;
}

.alb-announcement__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
}

.alb-announcement__text {
	margin: 0;
	color: var(--alb-paper);
	font-size: clamp(0.75rem, 1.5vw, 0.85rem);
	letter-spacing: 0.04em;
}

.alb-announcement__text--secondary {
	opacity: 0.85;
	letter-spacing: 0.02em;
}

.alb-announcement__sep {
	display: none;
	color: var(--alb-paper);
	opacity: 0.45;
	font-size: 0.85rem;
	line-height: 1;
}

@media (min-width: 640px) {
	.alb-announcement__content {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.65rem;
	}

	.alb-announcement__sep {
		display: inline;
	}
}

/* ==================================================================
   Logo intro — sections/logo-intro.php
   Thin, dark brand banner (not a full hero). Stacks on mobile.
   ================================================================== */

.alb-logo-intro {
	width: 100%;
	box-sizing: border-box;
	padding: clamp(1rem, 3vw, 1.5rem) var(--alb-gutter);
	background-color: var(--alb-ink);
	display: flex;
	justify-content: center;
}

.alb-logo-intro__content {
	width: 100%;
	max-width: var(--alb-max-width);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.alb-logo-intro__logo {
	width: 92%;
	max-width: none;
	height: auto;
	display: block;
}

@media (min-width: 640px) {
	.alb-logo-intro__content {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.alb-logo-intro__logo {
		width: 50%;
		flex: 0 0 50%;
		max-width: none;
	}
}

/* ==================================================================
   Category chips — sections/category-chips.php
   Solid-color quick links to the store's main categories.
   ================================================================== */

.alb-category-chips {
	width: 100%;
	box-sizing: border-box;
	padding: clamp(1rem, 3vw, 1.5rem) var(--alb-gutter);
	background-color: var(--alb-paper);
}

.alb-chip-row {
	max-width: var(--alb-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}

.alb-chip {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 0.75rem 1rem;
	text-decoration: none;
	color: #ffffff;
	font-size: clamp(0.75rem, 1.5vw, 0.85rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	transition: opacity 0.2s ease;
}

.alb-chip:hover,
.alb-chip:focus-visible {
	opacity: 0.85;
}

/* Ad hoc per-category colors — edit freely, independent of the rest of the palette. */
.alb-chip--1 {
	background-color: #b3705c; /* terracotta — matches --alb-accent */
}

.alb-chip--2 {
	background-color: #6b7d4f; /* olive */
}

.alb-chip--3 {
	background-color: #2f5d62; /* deep teal */
}

.alb-chip--4 {
	background-color: #7a3b5e; /* plum, for Rebajas */
}

@media (min-width: 600px) {
	.alb-chip-row {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ==================================================================
   Hero — sections/hero.php
   ================================================================== */

.alb-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: center;
	padding-top: clamp(2rem, 6vw, 4rem);
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.alb-hero__media {
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-color: var(--alb-paper-alt);
}

.alb-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.alb-hero__content {
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	text-align: left;
}

.alb-hero__heading {
	margin: 0;
	font-size: clamp(2.5rem, 8vw, 5rem);
	line-height: 1.03;
	font-weight: 700;
}

.alb-hero__description {
	margin: 0;
	max-width: 480px;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.55;
}

/* Editorial, asymmetrical composition once there's room for it. */
@media (min-width: 900px) {
	.alb-hero {
		grid-template-columns: 1.2fr 0.8fr;
		min-height: 72vh;
	}

	.alb-hero__media {
		order: 2;
		aspect-ratio: auto;
		height: 100%;
		align-self: stretch;
	}

	.alb-hero__content {
		order: 1;
		margin: 0;
		padding-right: clamp(1rem, 3vw, 2rem);
	}
}

/* ==================================================================
   Shop by Category — sections/categories.php
   ================================================================== */

.alb-categories {
	background-color: var(--alb-paper-alt);
}

.alb-category-grid {
	max-width: var(--alb-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1rem, 2.5vw, 1.75rem);
}

.alb-category-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--alb-ink);
}

.alb-category-card__media {
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background-color: var(--alb-line);
}

.alb-category-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.alb-category-card:hover .alb-category-card__image {
	transform: scale(1.04);
}

.alb-category-card__title {
	margin: 0;
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	font-weight: 600;
	text-align: center;
}

@media (min-width: 600px) {
	.alb-category-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==================================================================
   Promo banners (color only, no photo)
   sections/sale-banner.php, sections/promo-banner.php
   ================================================================== */

.alb-promo-banner {
	display: flex;
	justify-content: center;
	text-align: center;
}

.alb-promo-banner__content {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.alb-promo-banner__heading {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 3rem);
	line-height: 1.1;
	font-weight: 700;
}

/* Uses the store's own accent color — for banners with no photo. */
.alb-promo-banner--accent {
	background-color: var(--alb-accent);
}

.alb-promo-banner--accent .alb-eyebrow,
.alb-promo-banner--accent .alb-promo-banner__heading {
	color: #ffffff;
}

.alb-promo-banner--accent .alb-button {
	background-color: #ffffff;
	color: var(--alb-ink);
	border-color: #ffffff;
}

.alb-promo-banner--accent .alb-button:hover,
.alb-promo-banner--accent .alb-button:focus-visible {
	opacity: 0.85;
	color: var(--alb-ink);
}

.alb-promo-banner--ink {
	background-color: var(--alb-ink);
}

.alb-promo-banner--ink .alb-eyebrow,
.alb-promo-banner--ink .alb-promo-banner__heading {
	color: #ffffff;
}

.alb-promo-banner--ink .alb-button {
	background-color: #ffffff;
	color: var(--alb-ink);
	border-color: #ffffff;
}

.alb-promo-banner--ink .alb-button:hover,
.alb-promo-banner--ink .alb-button:focus-visible {
	opacity: 0.85;
	color: var(--alb-ink);
}

/* ==================================================================
   Product grid (New Arrivals + Featured Products)
   sections/new-arrivals.php, sections/featured-products.php
   ================================================================== */

.alb-product-grid {
	max-width: var(--alb-max-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1.25rem, 3vw, 2.25rem);
}

.alb-product-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	text-decoration: none;
	color: var(--alb-ink);
}

.alb-product-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background-color: var(--alb-paper-alt);
}

.alb-product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease, opacity 0.35s ease;
}

.alb-product-card__image--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
	.alb-product-card:hover .alb-product-card__media img {
		transform: scale(1.04);
	}

	.alb-product-card--has-hover:hover .alb-product-card__image--hover {
		opacity: 1;
	}
}

.alb-product-card__info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.alb-product-card__title {
	margin: 0;
	font-size: clamp(0.9rem, 1.5vw, 1rem);
	font-weight: 500;
}

.alb-product-card__price {
	margin: 0;
	font-size: clamp(0.85rem, 1.4vw, 0.95rem);
	color: var(--alb-accent);
}

.alb-product-card__price ins {
	text-decoration: none;
	color: var(--alb-accent);
}

.alb-product-card__price del {
	color: #999999;
	margin-right: 0.35rem;
}

@media (min-width: 700px) {
	.alb-product-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ==================================================================
   Editorial promo campaign — sections/editorial-promo.php
   ================================================================== */

.alb-editorial {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: center;
}

.alb-editorial__media {
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background-color: var(--alb-paper-alt);
}

.alb-editorial__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.alb-editorial__content {
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	text-align: left;
}

.alb-editorial__heading {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.08;
	font-weight: 700;
}

.alb-editorial__description {
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	line-height: 1.55;
}

@media (min-width: 900px) {
	.alb-editorial {
		grid-template-columns: 1.3fr 0.7fr;
	}

	.alb-editorial__media {
		aspect-ratio: auto;
		height: 100%;
	}

	.alb-editorial__content {
		margin: 0;
		padding-left: clamp(1rem, 3vw, 2rem);
	}
}

/* ==================================================================
   Seasonal / editorial campaign — sections/seasonal.php
   Same pattern as editorial-promo, media/content order flipped.
   ================================================================== */

.alb-seasonal {
	background-color: var(--alb-paper-alt);
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: center;
}

.alb-seasonal__media {
	width: 100%;
	max-width: 380px;
	margin: 0 auto;
	overflow: hidden;
	background-color: transparent;
}

.alb-seasonal__image-link {
	display: block;
	transition: opacity 0.2s ease;
}

.alb-seasonal__image-link:hover,
.alb-seasonal__image-link:focus-visible {
	opacity: 0.88;
}

.alb-seasonal__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.alb-seasonal__content {
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	text-align: left;
}

.alb-seasonal__heading {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.08;
	font-weight: 700;
}

.alb-seasonal__description {
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	line-height: 1.55;
}

@media (min-width: 900px) {
	.alb-seasonal {
		grid-template-columns: 1fr 0.75fr;
	}

	.alb-seasonal__media {
		height: auto;
		max-width: 420px;
		margin-left: auto;
		margin-right: 0;
	}

	.alb-seasonal__content {
		margin: 0;
		padding-right: clamp(1rem, 3vw, 2rem);
	}
}

/* ==================================================================
   About / Conócenos — sections/about.php
   ================================================================== */

.alb-about {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: center;
}

.alb-about__media {
	width: 100%;
	overflow: hidden;
	background-color: var(--alb-paper-alt);
}

.alb-about__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.alb-about__content {
	max-width: 480px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
	text-align: left;
}

.alb-about__heading {
	margin: 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.08;
	font-weight: 700;
}

.alb-about__description {
	margin: 0;
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	line-height: 1.55;
}

@media (min-width: 900px) {
	.alb-about {
		grid-template-columns: 1.3fr 0.7fr;
	}

	.alb-about__media {
		height: auto;
	}

	.alb-about__content {
		margin: 0;
		padding-left: clamp(1rem, 3vw, 2rem);
	}
}

/* ==================================================================
   Instagram follow — sections/instagram.php
   Light invite with the circular boutique mark + story ring.
   Sits just above the dark WhatsApp closer.
   ================================================================== */

.alb-instagram {
	background-color: var(--alb-paper-alt);
}

.alb-instagram__content {
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.alb-instagram__avatar {
	display: block;
	width: 148px;
	height: 148px;
	border-radius: 50%;
	flex-shrink: 0;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.alb-instagram__avatar:hover,
.alb-instagram__avatar:focus-visible {
	transform: scale(1.04);
	opacity: 0.92;
}

.alb-instagram__logo {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 50%;
}

.alb-instagram__heading {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.1;
}

.alb-instagram__description {
	margin: 0;
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.55;
	max-width: 420px;
}

.alb-instagram .alb-button {
	margin-top: 0.5rem;
}

/* ==================================================================
   WhatsApp invite (final dark section) — sections/whatsapp.php
   Same strong dark treatment the newsletter section used to have.
   ================================================================== */

.alb-whatsapp {
	background-color: var(--alb-ink);
}

.alb-whatsapp__content {
	max-width: 560px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.alb-whatsapp .alb-eyebrow,
.alb-whatsapp__heading,
.alb-whatsapp__description {
	color: var(--alb-paper);
}

.alb-whatsapp__heading {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
}

.alb-whatsapp__description {
	margin: 0;
	font-size: clamp(0.95rem, 1.4vw, 1.05rem);
	line-height: 1.55;
	opacity: 0.85;
	max-width: 420px;
}

.alb-whatsapp .alb-button {
	margin-top: 0.5rem;
	background-color: var(--alb-paper);
	color: var(--alb-ink);
	border-color: var(--alb-paper);
}

.alb-whatsapp .alb-button:hover,
.alb-whatsapp .alb-button:focus-visible {
	opacity: 0.85;
	color: var(--alb-ink);
}
