/* Holiday gift guide: gift-guide.html and the homepage stocking-stuffers strip. Script: gift-guide.js */

/* ---------- product tiles (shared) ---------- */
.gg-card { display: flex; flex-direction: column; gap: 4px; color: var(--text-dark); text-decoration: none; min-width: 0; }
.gg-card-img { display: block; aspect-ratio: 1; border-radius: var(--card-radius-sm); overflow: hidden; background: #fff; border: 1px solid rgba(27,42,27,0.07); margin-bottom: 6px; }
.gg-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8%; box-sizing: border-box; transition: transform .5s var(--ease-out); }
.gg-card:hover .gg-card-img img, .gg-card:focus-visible .gg-card-img img { transform: scale(1.05); }
.gg-card-brand { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest); }
.gg-card-title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gg-card-price { font-size: 0.92rem; color: var(--text-mid); }
.gg-card-price s { color: var(--text-muted); }
.gg-card-price .is-sale { color: #b3261e; }
.gg-giftcard .gg-gc-art { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #7d1a15, #a3221b); color: #f6d57a; border-color: transparent; }
.gg-giftcard .gg-card-brand { color: #a3221b; }

/* ---------- loading placeholder (the homepage strip is styled in gift-strip.css) ---------- */
.gg-skel { aspect-ratio: 1; border-radius: var(--card-radius-sm); background: linear-gradient(90deg, #ece8df 25%, #f5f2ea 50%, #ece8df 75%); background-size: 200% 100%; animation: ggShimmer 1.2s infinite; }
@keyframes ggShimmer { to { background-position: -200% 0; } }

/* ---------- the guide page ---------- */
.gg-hero, .gg-tags, .gg-filters, .gg-products { --gg-red: #a3221b; --gg-red-deep: #6f1512; --gg-gold: #EDBE52; --gg-gold-pale: #f6d57a; --gg-snow: var(--cream); }
.gg-snowfill { fill: var(--gg-snow); }

/* hero: a red Christmas-card sky over a snowy ridgeline */
.gg-hero { padding: 150px 0 clamp(96px, 12vw, 170px); background: radial-gradient(120% 95% at 18% 0%, #b3271f 0%, #8f1c16 46%, #6f1512 100%); color: var(--cream); position: relative; overflow: hidden; }
.gg-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 46%, rgba(246,213,122,0.2), transparent 38%), radial-gradient(circle at 0% 100%, rgba(40,6,5,0.45), transparent 46%); }
.gg-hero .container { position: relative; z-index: 2; }
.gg-hero-copy { max-width: 620px; }
.gg-crumb { font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(247,245,240,0.72); margin-bottom: 18px; }
.gg-crumb a { color: rgba(247,245,240,0.72); } .gg-crumb a:hover { color: var(--gg-gold-pale); } .gg-crumb span { color: var(--cream); }
.gg-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gg-gold-pale); margin-bottom: 14px; }
.gg-eyebrow span { background: linear-gradient(100deg, #EDBE52 0%, #fff1c4 38%, #EDBE52 62%, #f6d57a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gg-eyebrow svg { flex: none; }
.gg-hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; margin: 0 0 16px; max-width: 15ch; color: #fff; text-shadow: 0 2px 18px rgba(60,8,6,0.35); }
.gg-hero h1 em { font-style: italic; color: var(--gg-gold-pale); }
.gg-hero p { font-size: 1.06rem; line-height: 1.65; color: rgba(255,255,255,0.9); max-width: 50ch; margin: 0; }
.gg-hero-art { position: absolute; right: 32px; bottom: calc(-1 * clamp(96px, 12vw, 170px) - clamp(6px, 1vw, 14px)); width: clamp(300px, 36vw, 480px); pointer-events: none; }
.gg-hero-art svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 22px rgba(40,6,5,0.28)); }
.gg-hero-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(72px, 10vw, 150px); display: block; z-index: 1; pointer-events: none; }
.gg-twinkle .t1 { animation: ggTwinkle 3.6s ease-in-out infinite; }
.gg-twinkle .t2 { animation: ggTwinkle 4.4s ease-in-out 1.2s infinite; }
.gg-twinkle .t3 { animation: ggTwinkle 5s ease-in-out 2.1s infinite; }
@keyframes ggTwinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* gift-tag shortcuts */
.gg-tags { background: var(--cream); padding: 30px 0 10px; }
.gg-tags-title { display: flex; align-items: center; justify-content: center; gap: 18px; font-family: 'Playfair Display', serif; font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--deep-forest); margin: 0 0 22px; text-align: center; }
.gg-tags-title span { white-space: nowrap; }
.gg-tags-title::before, .gg-tags-title::after { content: ""; flex: 0 1 90px; min-width: 20px; height: 2px; background: linear-gradient(90deg, transparent, var(--gg-gold)); }
.gg-tags-title::after { transform: scaleX(-1); }
.gg-tag-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }

.gg-tag-list li { display: flex; filter: drop-shadow(0 6px 10px rgba(111,21,18,0.24)); transition: transform .35s var(--ease-out); min-width: 0; }
.gg-tag-list li:hover { transform: translateY(-3px) rotate(-1deg); }
.gg-tag { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 14px 14px 14px 36px; background: linear-gradient(135deg, #a3221b 0%, #861914 100%); color: #fff; text-decoration: none; clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
.gg-tag::before { content: ""; position: absolute; inset: 6px 6px 6px 24px; border: 1px dashed rgba(246,213,122,0.6); border-radius: 3px; pointer-events: none; }
.gg-tag::after { content: ""; position: absolute; left: 8px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--gg-snow); box-shadow: 0 0 0 2px var(--gg-gold); }
.gg-tag-ico { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--gg-gold-pale); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gg-tag-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gg-tag-text b { font-family: 'Playfair Display', serif; font-size: 1.04rem; font-weight: 700; line-height: 1.15; }
.gg-tag-text small { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; color: var(--gg-gold-pale); line-height: 1.2; }
.gg-tag:focus-visible { outline: none; }
.gg-tag:focus-visible::before { border: 2px solid #fff; }
.gg-tag.is-on { background: linear-gradient(135deg, #f6d57a 0%, #EDBE52 100%); color: var(--gg-red-deep); }
.gg-tag.is-on::before { border-color: rgba(111,21,18,0.5); }
.gg-tag.is-on:focus-visible::before { border: 2px solid var(--gg-red-deep); }
.gg-tag.is-on::after { box-shadow: 0 0 0 2px var(--gg-red); }
.gg-tag.is-on .gg-tag-ico { stroke: var(--gg-red-deep); }
.gg-tag.is-on .gg-tag-text small { color: var(--gg-red-deep); }

/* filters */
.gg-filters { background: var(--cream); padding: 26px 0 6px; scroll-margin-top: 76px; outline: none; }
.gg-filter { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.gg-filter-label { flex: none; width: 118px; white-space: nowrap; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gg-red); }
.gg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 3px 2px; flex: 1; }
.gg-chips::-webkit-scrollbar { display: none; }
.gg-chip { flex: none; min-height: 40px; padding: 9px 16px; border-radius: 100px; border: 1.5px solid rgba(27,42,27,0.15); background: #fff; color: var(--text-dark); font-size: 0.86rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; font-family: inherit; }
.gg-chip:hover { border-color: var(--gg-red); color: var(--gg-red); }
.gg-chip.is-on, .gg-chip.is-on:hover { background: var(--gg-red); color: #fff; border-color: var(--gg-red); box-shadow: inset 0 0 0 1.5px var(--gg-gold-pale); }
.gg-chip:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* grid */
.gg-products { background: var(--cream); padding: 14px 0 90px; }
.gg-count { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; font-weight: 600; color: var(--text-light); margin-bottom: 22px; min-height: 1.3em; }
.gg-count::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(237,190,82,0.9), rgba(237,190,82,0)); }
.gg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 22px; }
.gg-grid .gg-card-img { position: relative; transition: border-color .3s, box-shadow .3s; }
.gg-grid .gg-card:hover .gg-card-img, .gg-grid .gg-card:focus-visible .gg-card-img { border-color: rgba(163,34,27,0.4); box-shadow: 0 10px 24px rgba(111,21,18,0.1); }
.gg-grid .gg-card--stuffer .gg-card-img::after { content: "Stocking stuffer"; position: absolute; top: 12px; left: 0; padding: 5px 16px 5px 10px; background: var(--gg-red); color: #fff; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%); }
.gg-grid[data-budget="stuffers"] .gg-card--stuffer .gg-card-img::after { content: none; }
.gg-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-light); font-size: 1.02rem; }
.gg-empty a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gg-more { display: block; margin: 40px auto 0; min-height: 48px; padding: 14px 30px; border-radius: 100px; border: 1.5px solid var(--gg-red); background: transparent; color: var(--gg-red); font-weight: 700; font-size: 0.92rem; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.gg-more:hover { background: var(--gg-red); color: #fff; }
.gg-more:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

/* closing card */
.gg-close { position: relative; overflow: hidden; margin-top: 76px; padding: 54px 56px; border-radius: 26px; background: radial-gradient(110% 140% at 0% 0%, #b3271f 0%, #8f1c16 50%, #6f1512 100%); color: #fff; box-shadow: 0 18px 44px rgba(111,21,18,0.22); }
.gg-close::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(246,213,122,0.5); border-radius: 18px; pointer-events: none; }
.gg-close-art { position: absolute; top: 10px; right: clamp(40px, 9vw, 130px); width: clamp(150px, 20vw, 240px); height: auto; }
.gg-close-copy { position: relative; max-width: 560px; }
.gg-close-eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gg-gold-pale); margin-bottom: 10px; }
.gg-close h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.1; margin: 0 0 12px; color: #fff; }
.gg-close p { font-size: 1.02rem; line-height: 1.6; color: rgba(255,255,255,0.9); margin: 0 0 24px; max-width: 48ch; }
.gg-close-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 100px; font-weight: 700; font-size: 0.94rem; text-decoration: none; transition: transform .25s var(--ease-out), background .2s, color .2s; }
.gg-btn:hover { transform: translateY(-2px); }
.gg-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gg-btn-gold { background: linear-gradient(135deg, #f6d57a, #EDBE52); color: #4a0c0a; }
.gg-btn-line { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.gg-btn-line:hover { background: #fff; color: var(--gg-red-deep); }

[data-theme="dark"] .gg-hero, [data-theme="dark"] .gg-tags, [data-theme="dark"] .gg-filters, [data-theme="dark"] .gg-products { --gg-snow: #080c12; }
[data-theme="dark"] .gg-tags, [data-theme="dark"] .gg-filters, [data-theme="dark"] .gg-products { background: transparent; }
[data-theme="dark"] .gg-card, [data-theme="dark"] .gg-tags-title { color: var(--cream); }
[data-theme="dark"] .gg-card-price, [data-theme="dark"] .gg-count { color: rgba(247,245,240,0.7); }
[data-theme="dark"] .gg-filter-label { color: var(--gg-gold-pale); }
[data-theme="dark"] .gg-card-brand { color: var(--tan-light); }
[data-theme="dark"] .gg-chip { background: rgba(247,245,240,0.06); color: var(--cream); border-color: rgba(247,245,240,0.15); }
[data-theme="dark"] .gg-chip:hover { color: var(--gg-gold-pale); border-color: var(--gg-gold-pale); }
[data-theme="dark"] .gg-chip.is-on, [data-theme="dark"] .gg-chip.is-on:hover { background: var(--gg-red); border-color: var(--gg-red); color: #fff; }
[data-theme="dark"] .gg-more { color: var(--gg-gold-pale); border-color: var(--gg-gold-pale); }

@media (max-width: 1024px) {
  .gg-grid { grid-template-columns: repeat(3, 1fr); }
  .gg-tag-list { grid-template-columns: repeat(3, 1fr); }
  .gg-hero-copy { max-width: 54%; }
}
@media (max-width: 760px) {
  .gg-hero { padding: 124px 0 0; }
  .gg-hero-copy { max-width: none; }
  .gg-hero-art { position: relative; right: auto; bottom: auto; width: min(74vw, 300px); margin: 14px 0 -10px auto; z-index: 2; }
  .gg-hero-ridge { height: 64px; }
  .gg-close { padding: 40px 28px 36px; margin-top: 56px; }
  .gg-close-art { width: 120px; right: 18px; opacity: 0.95; }
  .gg-close-copy { padding-top: 78px; }
}
@media (max-width: 640px) {
  .gg-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .gg-tags { padding-top: 22px; }
  .gg-tag-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gg-tag { min-height: 68px; gap: 9px; padding: 10px 10px 10px 30px; }
  .gg-tag::before { inset: 5px 5px 5px 21px; }
  .gg-tag-ico { width: 24px; height: 24px; }
  .gg-tag-text b { font-size: 0.93rem; }
  .gg-tag-text small { font-size: 0.72rem; }
  .gg-filter { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gg-filter-label { width: auto; }
  .gg-chips { width: calc(100% + 16px); margin-right: -16px; padding-right: 16px; box-sizing: border-box; }
  .gg-grid .gg-card--stuffer .gg-card-img::after { top: 8px; font-size: 0.55rem; padding: 4px 13px 4px 8px; }
  .gg-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .gg-card-img img, .gg-grid .gg-card-img, .gg-tag-list li, .gg-btn, .gg-chip, .gg-more { transition: none; }
  .gg-tag-list li:hover, .gg-btn:hover { transform: none; }
  .gg-skel, .gg-twinkle .t1, .gg-twinkle .t2, .gg-twinkle .t3 { animation: none; }
}
