/* ==========================================================================
   Angelitos Navidad — estilos
   Paleta tomada del diseño: verde salvia, rosa empolvado, rosa navideño.
   ========================================================================== */

:root {
	--an-sage: #8fa9a3;
	--an-sage-d: #5f7a76;
	--an-pink: #f9e4e0;
	--an-pink-d: #f1ccc9;
	--an-rose: #d9566e;
	--an-rose-l: #e98a98;
	--an-ink: #3a4747;
	--an-cream: #fffaf8;
	--an-green: #3d6b57;
	--an-gold: #d9a94a;
	--an-serif: 'Marcellus', Georgia, serif;
	--an-sans: 'Nunito', system-ui, sans-serif;

	/* Adornos (SVG incrustados) */
	--an-tree: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cpath fill='%233d6b57' d='M30 4L46 28H14zM30 22L50 50H10zM30 44L54 72H6z'/%3E%3Crect x='27' y='70' width='6' height='10' fill='%238a5a44'/%3E%3Ccircle cx='30' cy='5' r='3.2' fill='%23d9a94a'/%3E%3Ccircle cx='24' cy='34' r='2' fill='%23f4a3b0'/%3E%3Ccircle cx='37' cy='46' r='2' fill='%23f4a3b0'/%3E%3Ccircle cx='20' cy='60' r='2' fill='%23f4a3b0'/%3E%3Ccircle cx='40' cy='62' r='2' fill='%23d9a94a'/%3E%3C/svg%3E");
	--an-flake: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eab5bb' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9.5 3.5L12 6l2.5-2.5M9.5 20.5L12 18l2.5 2.5'/%3E%3C/svg%3E");
	--an-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f0b2ba' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

body.an-navidad {
	background: var(--an-cream);
}

/* --- Barra superior ------------------------------------------------------ */

.an-topbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	padding: 8px 16px;
	background: var(--an-sage);
	color: #fff;
	font: 400 15px/1.2 var(--an-sans);
}
.an-topbar svg { width: 24px; height: 24px; vertical-align: -6px; }
.an-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 18px;
	background: var(--an-pink);
	color: #a2394a;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .6);
}
.an-pill svg { width: 20px; height: 20px; }

/* --- Encabezado ---------------------------------------------------------- */

.an-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: var(--an-pink);
	box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
.admin-bar .an-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .an-header { top: 46px; } }

.an-header__in {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 1560px;
	min-height: 80px;
	margin: 0 auto;
	padding: 8px 24px;
}
.an-logo, .an-header .custom-logo-link { display: inline-flex; flex: none; }
.an-logo svg { width: 54px; height: 54px; color: #fff; filter: drop-shadow(0 1px 3px rgba(217, 86, 110, .25)); }
.an-header .custom-logo { max-height: 56px; width: auto; }

.an-nav { flex: 1; margin-left: 12px; }
.an-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.an-menu li { position: relative; margin: 0; list-style: none; }
.an-menu > li > a {
	display: block;
	padding: 10px 20px;
	border-radius: 999px;
	color: var(--an-ink);
	font: 400 15px/1.2 var(--an-serif);
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.an-menu > li > a:hover,
.an-menu > li > a:focus-visible { background: rgba(255, 255, 255, .6); }
.an-menu > .current-menu-item > a,
.an-menu > .current_page_item > a,
.an-menu > .current-menu-ancestor > a { background: var(--an-pink-d); }
/* Si varios ítems apuntan a la portada, solo el primero se marca. */
.an-menu > .current-menu-item ~ .current-menu-item > a,
.an-menu > .current-menu-item ~ .current_page_item > a { background: transparent; }
.an-menu > .current-menu-item ~ .current-menu-item > a:hover { background: rgba(255, 255, 255, .6); }

.an-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 0 3px 9px;
	border: solid currentColor;
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg);
}
.an-menu .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(122, 70, 80, .18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .18s, transform .18s, visibility .18s;
}
.an-menu li:hover > .sub-menu,
.an-menu li:focus-within > .sub-menu,
.an-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.an-menu .sub-menu a {
	display: block;
	padding: 9px 14px;
	border-radius: 10px;
	color: var(--an-ink);
	font: 400 14px/1.3 var(--an-serif);
	letter-spacing: .06em;
	text-decoration: none;
}
.an-menu .sub-menu a:hover { background: var(--an-pink); }

.an-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.an-iconbtn,
.an-burger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--an-ink);
	cursor: pointer;
	transition: background-color .2s;
}
.an-iconbtn:hover, .an-burger:hover { background: rgba(255, 255, 255, .65); }
.an-iconbtn svg, .an-burger svg { width: 27px; height: 27px; }
.an-iconbtn:focus-visible, .an-burger:focus-visible, .an-menu a:focus-visible { outline: 2px solid var(--an-rose); outline-offset: 2px; }
.an-cart-count {
	position: absolute;
	top: 0;
	right: -2px;
	display: grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--an-rose);
	color: #fff;
	font: 700 11px/1 var(--an-sans);
}
.an-burger { display: none; margin-left: auto; }

.an-search {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	display: none;
	gap: 8px;
	padding: 14px 24px;
	background: #fff;
	box-shadow: 0 14px 28px rgba(122, 70, 80, .14);
}
.an-search.is-open { display: flex; }
.an-search input[type="search"] {
	flex: 1;
	padding: 11px 18px;
	border: 1.5px solid var(--an-pink-d);
	border-radius: 999px;
	font: 400 16px var(--an-sans);
}
.an-search button {
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: var(--an-rose);
	color: #fff;
	font: 700 15px var(--an-sans);
	cursor: pointer;
}

@media (max-width: 960px) {
	.an-header__in { min-height: 68px; padding: 6px 14px; }
	.an-burger { display: inline-flex; order: 3; margin-left: 0; }
	.an-actions { order: 2; }
	.an-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		margin: 0;
		padding: 10px 14px 18px;
		background: var(--an-pink);
		box-shadow: 0 16px 28px rgba(122, 70, 80, .16);
	}
	.an-nav.is-open { display: block; }
	.an-menu { flex-direction: column; align-items: stretch; }
	.an-menu > li > a { padding: 13px 18px; border-radius: 14px; white-space: normal; }
	.an-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 2px 0 6px 14px;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background: rgba(255, 255, 255, .55);
	}
	.an-menu li.is-open > .sub-menu { display: block; }
	.an-menu li:hover > .sub-menu { opacity: 1; }
}

/* --- Banner (hero) ------------------------------------------------------- */

.an-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--an-hero-bg, none) center / cover no-repeat, linear-gradient(100deg, #fdebe7 0%, #fff6f2 48%, #fdebe7 100%);
}
.an-hero--full img { display: block; width: 100%; height: auto; }

/* Adornos laterales: arbolitos y bolas navideñas */
.an-hero:not(.has-bg)::before,
.an-hero:not(.has-bg)::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: -1;
	width: 22%;
	pointer-events: none;
	background-repeat: no-repeat;
}
.an-hero:not(.has-bg)::before {
	left: 0;
	background-image:
		radial-gradient(circle 15px at 34px 70px, #fff 0 4px, transparent 5px),
		radial-gradient(circle 26px at 44px 78px, #ef8b9c 0 98%, transparent 100%),
		radial-gradient(circle 12px at 120px 40px, #fff 0 3px, transparent 4px),
		radial-gradient(circle 20px at 128px 46px, #c9374f 0 98%, transparent 100%),
		radial-gradient(circle 22px at 60px 200px, #e2b25a 0 98%, transparent 100%),
		var(--an-tree), var(--an-tree);
	background-size: auto, auto, auto, auto, auto, 78px 104px, 58px 78px;
	background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 18% 100%, 62% 100%;
}
.an-hero:not(.has-bg)::after {
	right: 0;
	background-image:
		radial-gradient(circle 22px at calc(100% - 40px) 60px, #ef8b9c 0 98%, transparent 100%),
		radial-gradient(circle 16px at calc(100% - 100px) 36px, #c9374f 0 98%, transparent 100%),
		radial-gradient(circle 18px at calc(100% - 60px) 190px, #e2b25a 0 98%, transparent 100%),
		var(--an-tree), var(--an-tree);
	background-size: auto, auto, auto, 84px 112px, 56px 74px;
	background-position: 0 0, 0 0, 0 0, 78% 100%, 34% 100%;
}

.an-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1.2fr 1.15fr;
	align-items: center;
	gap: 8px;
	max-width: 1600px;
	min-height: clamp(280px, 25vw, 380px);
	margin: 0 auto;
	padding: 28px 24px 44px;
}
.an-hero--nophoto .an-hero__inner { grid-template-columns: 1fr 1fr; }

.an-hero__brand { text-align: center; }
.an-halo {
	display: block;
	width: 84px;
	height: 28px;
	margin: 0 auto -4px;
	border: 5px solid #f4aab5;
	border-radius: 50%;
	opacity: .85;
}
.an-hero__name {
	color: var(--an-sage-d);
	font: 600 clamp(32px, 4vw, 58px)/1 'Cinzel', Georgia, serif;
	letter-spacing: .04em;
}
.an-hero__script {
	margin: -4px 0 8px;
	color: var(--an-rose-l);
	font: 400 clamp(34px, 3.6vw, 56px)/1.1 'Great Vibes', cursive;
}
.an-hero__sub { margin: 0; color: #7b6a6e; font: 400 14px/1.4 var(--an-sans); }

.an-hero__photo { align-self: end; justify-self: center; width: 100%; max-width: 560px; margin-bottom: -44px; }
.an-hero__photo img {
	display: block;
	width: 100%;
	max-height: 380px;
	object-fit: contain;
	object-position: bottom;
	-webkit-mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, #000 58%, transparent 100%);
	mask-image: radial-gradient(ellipse 72% 78% at 50% 52%, #000 58%, transparent 100%);
}

.an-hero__copy { text-align: center; }
.an-hero__title {
	margin: 0;
	color: var(--an-rose);
	font: 400 clamp(54px, 7vw, 112px)/.95 'Pacifico', cursive;
	text-shadow: 0 2px 0 rgba(255, 255, 255, .7);
}
.an-hero__tag {
	margin: 0 0 14px;
	color: var(--an-sage-d);
	font: 700 clamp(22px, 2.5vw, 38px)/1.1 var(--an-sans);
}
.an-ribbon {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin: 0 0 16px;
	padding: 12px 40px;
	background: #f3c1c7;
	color: #6c4650;
	font: 600 clamp(14px, 1.3vw, 19px)/1.3 var(--an-sans);
	clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
	transform: rotate(-1.5deg);
}
.an-ribbon span { display: block; }

.an-badges {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.an-badges li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 9px 18px 9px 14px;
	border-radius: 40px;
	background: rgba(255, 255, 255, .72);
	color: #6a5a5e;
	font: 400 12.5px/1.25 var(--an-sans);
	text-align: left;
}
.an-badges svg { flex: none; width: 34px; height: 34px; color: var(--an-rose); }
.an-badges li:nth-child(3) svg { fill: var(--an-rose); stroke: none; }

.an-hero__wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 2;
	height: 28px;
	pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath fill='%23fffaf8' d='M0 30V14c60-12 120 10 200 4s140-14 220-6 160 12 240 4 150-12 230-4 160 12 310 2V30z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.an-hero--full .an-hero__wave { display: none; }

@media (max-width: 960px) {
	.an-hero__inner { grid-template-columns: 1fr; gap: 14px; padding: 24px 16px 40px; }
	.an-hero__photo { order: 3; max-width: 420px; margin: 0 auto -40px; }
	.an-hero__copy { order: 2; }
	.an-hero:not(.has-bg)::before, .an-hero:not(.has-bg)::after { width: 30%; opacity: .55; }
}

/* --- Círculos de categorías --------------------------------------------- */

.an-cats { padding: 14px 16px 22px; background: var(--an-cream); }
.an-cats__in {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(8px, 1.6vw, 28px);
	max-width: 1560px;
	margin: 0 auto;
}
.an-cat {
	display: flex;
	flex: 0 1 150px;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #2b2b2b;
	text-align: center;
	text-decoration: none;
}
.an-cat__circle {
	display: grid;
	place-items: center;
	width: clamp(96px, 9vw, 152px);
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	background: #f8dcdc;
	box-shadow: 0 6px 16px rgba(217, 86, 110, .14), inset 0 0 0 4px rgba(255, 255, 255, .55);
	transition: transform .25s, box-shadow .25s;
}
.an-cat:nth-of-type(even) .an-cat__circle { background: #fbe9e4; }
.an-cat:nth-of-type(5n) .an-cat__circle { background: #dfeee9; }
.an-cat__circle img { width: 86%; height: 86%; object-fit: cover; border-radius: 50%; }
.an-cat__circle svg { width: 38%; color: #fff; }
.an-cat:hover .an-cat__circle,
.an-cat:focus-visible .an-cat__circle { transform: translateY(-4px); box-shadow: 0 12px 22px rgba(217, 86, 110, .22), inset 0 0 0 4px rgba(255, 255, 255, .55); }
.an-cat:focus-visible { outline: 2px solid var(--an-rose); outline-offset: 6px; border-radius: 16px; }
.an-cat__name {
	font: 400 15px/1.2 var(--an-serif);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.an-cat > svg { width: 17px; height: 17px; fill: var(--an-rose); }

.an-deco { flex: none; align-self: center; background: center / contain no-repeat; }
.an-deco--tree { width: 56px; height: 90px; align-self: flex-end; background-image: var(--an-tree); }
.an-deco--tree-s { width: 34px; height: 46px; align-self: flex-end; margin-bottom: 40px; background-image: var(--an-tree); }
.an-deco--snow { width: 24px; height: 24px; margin-bottom: 40px; background-image: var(--an-flake); }
.an-deco--heart { width: 22px; height: 22px; margin-bottom: 40px; background-image: var(--an-heart); }

@media (max-width: 960px) {
	.an-cats__in { justify-content: flex-start; overflow-x: auto; padding: 6px 4px 10px; scroll-snap-type: x proximity; }
	.an-cat { flex: 0 0 auto; scroll-snap-align: start; }
	.an-cat__circle { width: 92px; }
	.an-cat__name { font-size: 12.5px; }
	.an-deco { display: none; }
}

/* --- Productos destacados ----------------------------------------------- */

.an-featured { padding: 6px 16px 28px; background: var(--an-cream); }
.an-featured__in { max-width: 1560px; margin: 0 auto; padding: 4px 18px 22px; border-radius: 22px; background: rgba(255, 255, 255, .6); }
.an-section-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 6px 0 16px;
}
.an-section-title::before,
.an-section-title::after { content: ""; flex: 1; height: 1px; background: rgba(95, 122, 118, .22); }
.an-section-title h2 {
	margin: 0;
	color: var(--an-sage-d);
	font: 400 clamp(17px, 1.7vw, 23px)/1.2 var(--an-serif);
	letter-spacing: .3em;
	text-transform: uppercase;
}
.an-spark svg { display: block; width: 20px; height: 20px; color: var(--an-sage-d); }
/* Orden: línea · ✦ título ✦ · línea */
.an-section-title .an-spark:first-of-type { order: 1; }
.an-section-title h2 { order: 2; }
.an-section-title .an-spark:last-of-type { order: 3; }
.an-section-title::before { order: 0; }
.an-section-title::after { order: 4; }

.an-featured ul.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0; padding: 0; }
.an-featured ul.products::before,
.an-featured ul.products::after { display: none; }
@media (max-width: 1280px) { .an-featured ul.products { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px)  { .an-featured ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* --- Tarjetas de producto (todas las listas de la tienda) ---------------- */

body.an-navidad ul.products li.product {
	position: relative;
	float: none;
	padding: 8px 8px 14px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(160, 110, 120, .1);
	transition: transform .25s, box-shadow .25s;
}
.an-featured ul.products li.product { width: auto !important; margin: 0 !important; }
body.an-navidad ul.products li.product:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(217, 86, 110, .16); }
body.an-navidad ul.products li.product img { border-radius: 10px; }
body.an-navidad ul.products li.product .woocommerce-loop-product__title,
body.an-navidad ul.products li.product h2 {
	padding: 8px 4px 0;
	color: var(--an-ink);
	font-size: 14px;
	line-height: 1.35;
}
body.an-navidad ul.products li.product .price { color: var(--an-rose); font-weight: 700; }
body.an-navidad ul.products li.product .button,
body.an-navidad ul.products li.product a.button {
	border: 0;
	border-radius: 999px;
	background: var(--an-rose-l);
	color: #fff;
	font-weight: 700;
	transition: background-color .2s;
}
body.an-navidad ul.products li.product .button:hover { background: var(--an-rose); color: #fff; }
body.an-navidad .onsale {
	border-radius: 8px;
	background: var(--an-rose);
	color: #fff;
}

.an-new {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	padding: 4px 11px;
	border-radius: 6px;
	background: var(--an-sage);
	color: #fff;
	font: 700 12px/1.3 var(--an-sans);
	letter-spacing: .1em;
}
.an-fav {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
	cursor: pointer;
	transition: transform .15s;
}
.an-fav:hover { transform: scale(1.1); }
.an-fav:focus-visible { outline: 2px solid var(--an-rose); outline-offset: 2px; }
.an-fav svg { width: 19px; height: 19px; fill: transparent; stroke: var(--an-rose); stroke-width: 2; transition: fill .2s; }
.an-fav[aria-pressed="true"] svg { fill: var(--an-rose); }

/* --- Títulos de sección del contenido original --------------------------- */

body.an-navidad .entry-content > h2,
body.an-navidad .entry-content h2.wp-block-heading,
body.an-navidad .woocommerce-products-header__title {
	color: var(--an-sage-d);
	font-family: var(--an-serif);
	font-weight: 400;
	letter-spacing: .06em;
}

/* --- Nieve ---------------------------------------------------------------- */

.an-snowfield { position: fixed; inset: 0; z-index: 9990; overflow: hidden; pointer-events: none; }
.an-flake {
	position: absolute;
	top: -14px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #f3c6cc;
	box-shadow: 0 0 4px rgba(233, 138, 152, .35);
	opacity: .85;
	animation: an-fall linear infinite;
}
@keyframes an-fall { to { transform: translate3d(var(--dx, 24px), 108vh, 0); } }

@media (prefers-reduced-motion: reduce) {
	.an-snowfield { display: none; }
	.an-cat__circle, body.an-navidad ul.products li.product, .an-menu .sub-menu { transition: none; }
}
