/* ============================================================
   Dog Gift Guides — /gifts/ landing page and /gifts/<slug>/ guide pages
   Tokens: ink #141414, amber #fbbf00, plum #7a4a8f (this plugin's own accent,
   distinct from the calendar plugin's teal/coral so gift guides read as their
   own section, while still matching the site's overall look/feel).
   Self-contained — no dependency on the events-calendar plugin's CSS.
   ============================================================ */

.ggp-wrap { font-family: 'Inter', system-ui, sans-serif; color: #141414; -webkit-font-smoothing: antialiased; }
.ggp-wrap a { color: inherit; }

/* ── Full-bleed hero — same escape-viewport technique the calendar/event
   pages use, so it sits flush under the nav with no gap. ── */
.ggp-hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  background: #141414;
  color: #fff;
  padding: 44px 20px 40px;
  margin-top: 0;
}
@media (min-width: 900px) { .ggp-hero { padding-left: 48px; padding-right: 48px; } }

.ggp-crumb { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.ggp-crumb a { text-decoration: none; color: rgba(255,255,255,.72); }
.ggp-crumb a:hover { color: #fff; }

.ggp-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fbbf00; margin-bottom: 14px; }
.ggp-h1 { font-family: 'Poppins', sans-serif; font-size: clamp(26px,3.8vw,36px); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.ggp-rule { width: 40px; height: 3px; background: #fbbf00; border-radius: 2px; margin: 16px 0; }
.ggp-intro { font-size: 14.5px; color: rgba(255,255,255,.68); max-width: 600px; line-height: 1.6; margin: 0 0 24px; }

.ggp-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.ggp-stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 22px; font-weight: 800; color: #fff; }
.ggp-stat span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* ── Layout ── */
/* DOM order is main-then-sidebar (so mobile's natural single-column stacking
   already puts "Browse All Guides" under the gifts, no JS reorder needed) —
   on desktop, order flips them back to sidebar-left / gifts-right. */
.ggp-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; padding: 28px 20px 50px; align-items: start; }
@media (min-width: 900px) { .ggp-layout { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 821px) { .ggp-sidebar { order: 1; } .ggp-main { order: 2; } }
@media (max-width: 820px) { .ggp-layout { grid-template-columns: 1fr; } }

.ggp-sidebar { min-width: 0; }
.ggp-sb-card { background: #fff; border: 1px solid #EAEAE7; border-radius: 12px; padding: 16px; }

/* Toggle button: on desktop it's not a button at all, just the plain heading
   the sidebar always had — the accordion behavior only exists on mobile. */
.ggp-sb-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; padding: 0; margin-bottom: 12px; cursor: default; }
.ggp-sb-head { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #585856; display: flex; align-items: center; gap: 6px; }
.ggp-sb-head:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7a4a8f; flex-shrink: 0; }
.ggp-sb-chevron { display: none; }
.ggp-sb-body { display: block; }

@media (max-width: 820px) {
  .ggp-sb-toggle { cursor: pointer; margin-bottom: 0; }
  .ggp-sb-chevron { display: block; color: #585856; transition: transform .15s; flex-shrink: 0; }
  .ggp-sb-card.is-open .ggp-sb-chevron { transform: rotate(180deg); }
  .ggp-sb-body { display: none; margin-top: 12px; }
  .ggp-sb-card.is-open .ggp-sb-body { display: block; }
}

.ggp-sb-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; padding: 8px 0; border-top: 1px solid #EAEAE7; text-decoration: none; color: #141414; }
.ggp-sb-row:first-of-type { border-top: none; padding-top: 0; }
.ggp-sb-row.is-active { color: #5c3569; }
.ggp-sb-n { font-size: 10.5px; font-weight: 700; color: #585856; background: #F2E9F5; padding: 2px 7px; border-radius: 100px; flex-shrink: 0; }
.ggp-sb-row.is-active .ggp-sb-n { background: #7a4a8f; color: #fff; }

.ggp-main { min-width: 0; }
.ggp-empty { color: #8A8A87; font-size: 14px; }

.ggp-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
@media (max-width: 820px) { .ggp-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } }

.ggp-card { border: 1px solid #EAEAE7; border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; text-decoration: none; min-width: 0; transition: box-shadow .15s, transform .15s; }
.ggp-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.09); transform: translateY(-2px); }
.ggp-card-img { height: 150px; position: relative; background: #F5F3EE; background-size: cover; background-position: center; }
.ggp-magnify {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.92); color: #141414;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: background .15s, transform .15s;
}
.ggp-magnify:hover { background: #fff; transform: scale(1.08); }

/* ── Lightbox ── */
.ggp-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(20,20,20,.92);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  cursor: zoom-out;
}
.ggp-lightbox[hidden] { display: none; }
.ggp-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); cursor: default; }
.ggp-lightbox-close {
  position: absolute; top: 20px; right: 24px; width: 40px; height: 40px;
  border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ggp-lightbox-close:hover { background: rgba(255,255,255,.22); }
.ggp-badge { position: absolute; top: 10px; left: 10px; background: #7a4a8f; color: #fff; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; }
.ggp-card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.ggp-card-name { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; color: #141414; line-height: 1.3; overflow-wrap: break-word; }
.ggp-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.ggp-card-price { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 800; color: #141414; }
.ggp-card-cta { background: #141414; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 8px 13px; border-radius: 6px; }

/* ── /gifts/ master landing page ── */
.ggp-landing-body { max-width: 1120px; margin: 0 auto; padding: 32px 20px 60px; }
@media (min-width: 900px) { .ggp-landing-body { padding-left: 48px; padding-right: 48px; } }
.ggp-empty { color: #8A8A87; font-size: 14px; }

.ggp-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
@media (max-width: 820px) { .ggp-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 560px) { .ggp-guide-grid { grid-template-columns: minmax(0,1fr); } }

.ggp-guide-card { display: flex; flex-direction: column; border: 1px solid #EAEAE7; border-radius: 14px; overflow: hidden; background: #fff; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.ggp-guide-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.ggp-guide-card-art { height: 84px; }
.ggp-guide-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.ggp-guide-card-name { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 800; color: #141414; line-height: 1.3; }
.ggp-guide-card-intro { font-size: 12px; color: #585856; line-height: 1.55; }
.ggp-guide-card-count { font-size: 11px; font-weight: 700; color: #5c3569; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* ── "All Gifts" catalog on the /gifts/ landing page ── */
.ggp-landing-catalog { margin-top: 40px; padding-top: 32px; border-top: 1px solid #EAEAE7; }
.ggp-landing-catalog-head { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 800; margin: 0 0 18px; }

/* ── Trust bar — full-bleed like the hero, sits above the footer ── */
.ggp-trust-bar {
  position: relative; width: 100vw; max-width: 100vw; left: 50%; transform: translateX(-50%);
  box-sizing: border-box; background: #141414; padding: 26px 20px; text-align: center;
  margin-top: 40px;
}
@media (min-width: 900px) { .ggp-trust-bar { padding-left: 48px; padding-right: 48px; } }
.ggp-trust-heading { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fbbf00; margin-bottom: 10px; }
.ggp-trust-line { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); }
.ggp-trust-line .ggp-trust-first { color: #fff; font-weight: 700; }
.ggp-trust-sep { color: rgba(255,255,255,.25); margin: 0 12px; }
@media (max-width: 600px) { .ggp-trust-line { display: flex; flex-direction: column; gap: 6px; } .ggp-trust-sep { display: none; } }

/* ── FAQ ── */
.ggp-faq { max-width: 760px; margin: 40px auto 0; padding-top: 32px; border-top: 1px solid #EAEAE7; }
.ggp-faq-head { font-family: 'Poppins', sans-serif; font-size: 19px; font-weight: 800; margin: 0 0 16px; }
.ggp-faq-list { display: flex; flex-direction: column; }
.ggp-faq-item { border-bottom: 1px solid #EAEAE7; }
.ggp-faq-item:first-child { border-top: 1px solid #EAEAE7; }
.ggp-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 16px 4px; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: #141414;
}
.ggp-faq-chevron { flex-shrink: 0; font-size: 16px; font-weight: 400; color: #7a4a8f; transition: transform .15s; }
.ggp-faq-item.is-open .ggp-faq-chevron { transform: rotate(45deg); }
.ggp-faq-a { display: none; padding: 0 4px 16px; }
.ggp-faq-item.is-open .ggp-faq-a { display: block; }
.ggp-faq-a p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #585856; }

/* ── Spin the wheel ── */
.ggp-spin-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 500;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: #fbbf00; color: #141414; font-size: 24px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .15s;
}
.ggp-spin-fab:hover { transform: scale(1.06) rotate(12deg); }

.ggp-spin-overlay {
  position: fixed; inset: 0; z-index: 9998; background: rgba(20,20,20,.72);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.ggp-spin-overlay.show { display: flex; }
.ggp-spin-modal {
  width: 100%; max-width: 420px; background: #141414; border-radius: 20px;
  padding: 32px 24px 36px; text-align: center; position: relative;
  font-family: 'Inter', system-ui, sans-serif;
}
.ggp-spin-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ggp-spin-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fbbf00; margin-bottom: 6px; }
.ggp-spin-h2 { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 4px; }
.ggp-spin-sub { font-size: 11.5px; color: rgba(255,255,255,.55); margin-bottom: 22px; }

.ggp-spin-wheel-wrap { position: relative; width: 200px; height: 200px; margin: 0 auto 22px; }
.ggp-spin-pointer {
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 18px solid #fbbf00;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.3));
}
.ggp-spin-wheel {
  width: 100%; height: 100%; border-radius: 50%; position: relative; border: 5px solid #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  background: conic-gradient(#7a4a8f 0deg 40deg, #fbbf00 40deg 80deg, #5c3569 80deg 120deg, #e8c04a 120deg 160deg, #9563a8 160deg 200deg, #fbbf00 200deg 240deg, #7a4a8f 240deg 280deg, #5c3569 280deg 320deg, #e8c04a 320deg 360deg);
  transition: transform 4s cubic-bezier(.17,.89,.32,1.15);
}
.ggp-spin-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.ggp-spin-btn {
  background: #fbbf00; color: #141414; border: none; font-family: 'Poppins', sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  padding: 12px 30px; border-radius: 9px; cursor: pointer;
}
.ggp-spin-btn:disabled { opacity: .5; cursor: default; }

.ggp-spin-result { display: none; align-items: center; gap: 14px; text-align: left; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.ggp-spin-result.show { display: flex; }
.ggp-spin-result-img { width: 60px; height: 60px; border-radius: 10px; flex-shrink: 0; background: rgba(255,255,255,.08); background-size: cover; background-position: center; }
.ggp-spin-result-eyebrow { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fbbf00; margin-bottom: 3px; }
.ggp-spin-result-name { font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.ggp-spin-result-price { font-size: 11.5px; color: rgba(255,255,255,.55); margin-bottom: 8px; }
.ggp-spin-result-cta { display: inline-block; background: #fbbf00; color: #141414; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 7px 14px; border-radius: 6px; text-decoration: none; }
