/* ==== "Idee de cadou" badge (functions.php giftBadge) ==== */
.giftbadge-anchor { display: block; position: relative; height: 0; z-index: 90; pointer-events: none; text-align: left; }
.giftbadge-anchor img.giftbadge { position: absolute; left: -10px; width: auto !important; max-width: none !important; transform: none !important; filter: drop-shadow(0 2px 3px rgba(80, 55, 20, .25)); }
.giftbadge-list img.giftbadge { top: 142px; height: 18px !important; }          /* above the "cod promo" flag (top:175px) */
.giftbadge-pv img.giftbadge { bottom: 56px; left: 0; height: 26px !important; } /* product page, above the "cod promo" flag */
.item:hover img.giftbadge { transform: none !important; }
@media (max-width: 767px) {
	.giftbadge-list img.giftbadge { height: 16px !important; top: 144px; }
	.giftbadge-pv img.giftbadge { height: 22px !important; bottom: 54px; }
}

/* menu link */
.mainmenu.xmas-menu > a { background: #d6336c; color: #fff !important; border-radius: 4px; }
.mainmenu.xmas-menu > a:hover, .mainmenu.xmas-menu > a:focus { background: #b8285a !important; color: #fff !important; }

/* ==== gift pages (/cadouri-de-craciun) ==== */
.xmas-page {
	--x-green: #456534; /* same green as the -30% promo bar */ --x-ink: #33475b; --x-red: #c8312a; --x-gold: #d8b25a; --x-cream: #fdf7ee;
	position: relative; overflow: hidden; padding: 28px 0 40px;
	background: radial-gradient(1200px 380px at 85% -60px, #fbeedb 0%, rgba(251, 238, 219, 0) 70%), linear-gradient(#fdf8f1, #fffdf9 420px, #fff 700px);
	font-family: Roboto, Arial, sans-serif;
}
.xmas-inner { position: relative; z-index: 2; }
.xmas-title { color: var(--x-green); font-weight: 700; font-size: 48px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -.5px; }
.xmas-sub { color: #5b6876; font-size: 19px; margin: 0 0 26px; }
.xmas-hero { position: relative; }
.xmas-page--hub .xmas-hero { animation: xmas-rise .7s ease-out both; }

/* cards */
.xmas-cards { display: grid; gap: 10px; }
.xmas-cards--hub { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 172px; }
.xmas-cards--hub .xmas-card--big { grid-row: span 2; }
.xmas-cards--strip { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 108px; margin-top: 28px; }
.xmas-card {
	position: relative; display: block; overflow: hidden; border-radius: 6px; background: #2b3a4a; color: #fff !important; text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(30, 40, 60, .12); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s;
	animation: xmas-rise .6s ease-out both;
}
.xmas-cards .xmas-card:nth-child(2) { animation-delay: .08s; } .xmas-cards .xmas-card:nth-child(3) { animation-delay: .16s; }
.xmas-cards .xmas-card:nth-child(4) { animation-delay: .24s; } .xmas-cards .xmas-card:nth-child(5) { animation-delay: .32s; }
.xmas-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.xmas-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 20, 35, .72) 0%, rgba(10, 20, 35, .25) 45%, rgba(10, 20, 35, 0) 70%); }
.xmas-card::before { /* shine on hover */
	content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 40%; left: -60%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); transform: skewX(-18deg);
}
.xmas-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(30, 40, 60, .22); }
.xmas-card:hover img { transform: scale(1.06); }
.xmas-card:hover::before { left: 130%; transition: left .9s ease; }
.xmas-card__noimg { position: absolute; inset: 0; background: linear-gradient(135deg, #2f6b45, #1d4a30); }
.xmas-card__title {
	position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 16px; font-size: 18px; font-weight: 700; line-height: 1.2;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .35); max-width: 230px;
}
.xmas-card--big .xmas-card__title { font-size: 34px; left: 26px; bottom: 26px; max-width: 330px; }
.xmas-card--small .xmas-card__title { font-size: 16px; left: 16px; bottom: 12px; }
.xmas-card__title svg { width: 1em; height: 1em; vertical-align: -.12em; margin-left: 4px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.xmas-card:hover .xmas-card__title svg { transform: translateX(5px); }

/* price chips */
.xmas-chips { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 34px 0 6px; }
.xmas-chips__list { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.xmas-page--list .xmas-chips { justify-content: flex-start; margin: 22px 0 0; }
.xmas-page--list .xmas-chips__list { justify-content: flex-start; }
.xmas-chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 30px; background: #fff; border: 1px solid #d5dccd;
	color: var(--x-green) !important; font-weight: 500; font-size: 15px; text-decoration: none !important; white-space: nowrap;
	transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.xmas-chip:hover { border-color: var(--x-green); box-shadow: 0 4px 12px rgba(69, 101, 52, .15); transform: translateY(-2px); }
.xmas-chip:hover .xmas-chip__ico { animation: xmas-wiggle .5s ease; }
.xmas-chip.is-active { background: var(--x-green); border-color: var(--x-green); color: #fff !important; }
.xmas-chip--clear { color: #7a8794 !important; border-style: dashed; }
.xmas-chip__ico { width: 18px; height: 18px; flex: none; }
.xmas-boxes { width: 110px; height: 64px; flex: none; overflow: visible; }
.xmas-boxes--right { transform: scaleX(-1); }
.xmas-box .xmas-lid { transform-box: fill-box; transform-origin: 50% 100%; animation: xmas-lid 4s ease-in-out infinite; }
.xmas-box--b .xmas-lid { animation-delay: 1.3s; } .xmas-box--c .xmas-lid { animation-delay: 2.6s; }

/* list page hero */
.xmas-hero--list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; animation: xmas-rise .6s ease-out both; }
.xmas-hero--noimg { grid-template-columns: 1fr; }
.xmas-hero--list .xmas-title { font-size: 40px; margin-top: 18px; }
.xmas-back {
	display: inline-flex; align-items: center; gap: 10px; padding: 9px 20px; border: 1px solid #d5dccd; border-radius: 30px; background: #fff;
	color: var(--x-green) !important; font-size: 15px; text-decoration: none !important; transition: border-color .2s, gap .2s;
}
.xmas-back:hover { border-color: var(--x-green); gap: 14px; }
.xmas-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.xmas-desc { color: #4b5866; font-size: 18px; line-height: 1.6; }
.xmas-desc p { margin: 0 0 10px; }
.xmas-desc a { color: var(--x-green); text-decoration: underline; }
.xmas-desc--hub { max-width: 900px; margin: -10px 0 26px; font-size: 17px; }
.xmas-hero__img { position: relative; margin-top: 6px; }
.xmas-hero__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; box-shadow: 0 16px 34px rgba(40, 30, 20, .18); }
.xmas-hero__img::before { /* gold ribbon corner */
	content: ""; position: absolute; z-index: 1; top: -8px; right: 28px; width: 18px; height: 54px; background: linear-gradient(#e2c06c, #c99d44);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}

/* "Idei de cadouri" heading */
.xmas-heading { display: flex; align-items: center; gap: 16px; margin: 46px 0 22px; color: var(--x-green); font-size: 30px; font-weight: 500; text-align: center; }
.xmas-heading::before, .xmas-heading::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(69, 101, 52, 0), rgba(69, 101, 52, .3)); }
.xmas-heading::after { background: linear-gradient(to left, rgba(69, 101, 52, 0), rgba(69, 101, 52, .3)); }
.xmas-heading span { white-space: nowrap; }
.xmas-heading-note { text-align: center; margin: -12px 0 20px; }
.xmas-tree { width: 34px; height: 41px; flex: none; }
.xmas-tree .xmas-star { transform-box: fill-box; transform-origin: center; animation: xmas-twinkle 2.4s ease-in-out infinite; }
.xmas-light { animation: xmas-blink 2.8s ease-in-out infinite; }
.xmas-empty { text-align: center; color: #6b7785; font-size: 16px; padding: 30px 0; }

/* product grid: the usual cards, with a festive hover */
.xmas-products { padding: 0; }
.xmas-products .item { position: relative; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s; animation: xmas-rise .5s ease-out both; }
.xmas-products .item:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(30, 40, 60, .13); border-color: #e7d3a3; }
.xmas-products .item::after { /* small bow on hover */
	content: ""; position: absolute; top: -2px; right: 14px; width: 30px; height: 20px; opacity: 0; transform: translateY(-6px) scale(.7); transition: opacity .3s, transform .3s;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M15 9C9-1 1 1 3 6c1 3 8 4 12 3Zm0 0c6-10 14-8 12-3-1 3-8 4-12 3Z' fill='%23c8312a'/%3E%3Cpath d='M15 9l-5 10 3-1 2 2Zm0 0 5 10-3-1-2 2Z' fill='%23a82720'/%3E%3Ccircle cx='15' cy='9' r='2.6' fill='%23e04437'/%3E%3C/svg%3E") no-repeat center / contain;
}
.xmas-products .item:hover::after { opacity: 1; transform: none; }

/* decorations */
.xmas-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.xmas-snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.xmas-branch { position: absolute; top: -6px; right: -10px; width: 330px; height: auto; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .12)); animation: xmas-sway 7s ease-in-out infinite; transform-origin: 100% 0; }
.xmas-bauble { animation: xmas-swing 3.2s ease-in-out infinite; }
.xmas-flake { position: absolute; color: #e2c06c; width: 34px; height: 34px; opacity: .8; animation: xmas-spin 14s linear infinite, xmas-twinkle 3s ease-in-out infinite; }
.xmas-flake--1 { top: 70px; right: 330px; } .xmas-flake--2 { top: 92px; right: 240px; width: 54px; height: 54px; animation-delay: -4s, -1s; }
.xmas-flake--3 { top: 34px; right: 410px; width: 26px; height: 26px; animation-delay: -7s, -2s; } .xmas-flake--4 { top: 150px; right: 40px; width: 30px; height: 30px; animation-delay: -2s, -1.5s; }
.xmas-flake--5 { top: 20px; left: 46%; width: 22px; height: 22px; animation-delay: -9s, -.5s; opacity: .55; }
.xmas-sleigh-track { position: absolute; top: 4px; left: 0; right: 0; height: 120px; overflow: hidden; }
.xmas-sleigh { position: absolute; left: 0; top: 30px; width: 190px; opacity: 0; animation: xmas-fly 26s linear 2s infinite; }
.xmas-deer .xmas-leg-a { animation: xmas-gallop .45s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
.xmas-deer .xmas-leg-b { animation: xmas-gallop .45s ease-in-out infinite alternate-reverse; transform-box: fill-box; transform-origin: 50% 0; }
.xmas-page--list .xmas-branch { width: 270px; opacity: .95; }
.xmas-page--list .xmas-flake--5 { display: none; }

@keyframes xmas-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes xmas-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(1.6deg); } }
@keyframes xmas-swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes xmas-spin { to { transform: rotate(360deg); } }
@keyframes xmas-twinkle { 0%, 100% { opacity: .85; } 50% { opacity: .35; } }
@keyframes xmas-blink { 0%, 100% { opacity: 1; } 45% { opacity: .25; } }
@keyframes xmas-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes xmas-lid { 0%, 80%, 100% { transform: translateY(0) rotate(0); } 86% { transform: translateY(-6px) rotate(-6deg); } 92% { transform: translateY(-2px) rotate(4deg); } }
@keyframes xmas-gallop { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes xmas-fly {
	0% { transform: translate(-220px, 40px) rotate(-6deg); opacity: 0; }
	3% { opacity: .9; }
	30% { transform: translate(calc(50vw - 100px), -10px) rotate(-2deg); opacity: .9; }
	55% { transform: translate(calc(100vw + 40px), 10px) rotate(-8deg); opacity: .9; }
	56%, 100% { transform: translate(calc(100vw + 60px), 10px); opacity: 0; }
}

@media (max-width: 991px) {
	.xmas-title { font-size: 36px; }
	.xmas-cards--hub { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
	.xmas-cards--hub .xmas-card--big { grid-column: span 2; grid-row: span 2; }
	.xmas-cards--strip { grid-template-columns: 1fr 1fr; }
	.xmas-hero--list { grid-template-columns: 1fr; gap: 24px; }
	.xmas-hero__img { order: -1; }
	.xmas-branch { width: 220px; }
	.xmas-flake--1, .xmas-flake--3 { display: none; }
	.xmas-boxes { display: none; }
}
@media (max-width: 600px) {
	.xmas-page { padding-top: 18px; }
	.xmas-title, .xmas-hero--list .xmas-title { font-size: 30px; }
	.xmas-sub { font-size: 16px; }
	.xmas-desc { font-size: 16px; }
	.xmas-cards--hub { grid-auto-rows: 130px; }
	.xmas-card--big .xmas-card__title { font-size: 26px; left: 18px; bottom: 18px; }
	.xmas-card__title { font-size: 16px; left: 12px; bottom: 10px; }
	.xmas-chip { padding: 8px 14px; font-size: 14px; }
	.xmas-heading { font-size: 24px; gap: 10px; }
	.xmas-branch { width: 120px; top: -14px; right: -18px; }
	.xmas-title { padding-right: 70px; }
	.xmas-flake--2, .xmas-flake--4 { display: none; }
	.xmas-sleigh { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
	.xmas-page *, .xmas-page *::before, .xmas-page *::after { animation: none !important; transition: none !important; }
	.xmas-sleigh { display: none; }
}
