/* ── The Pet Dude — warm sand, playful type, sage + coral CTAs ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sand-50: #fdfaf5;
    --sand-100: #f5ebe0;
    --sand-200: #e8dcc8;
    --brown-800: #3d2f24;
    --brown-700: #5c4334;
    --brown-600: #6b5344;
    --muted: #7a6a5c;
    --sage: #3d6b55;
    --sage-dark: #2d5240;
    --coral: #e85d4c;
    --coral-dark: #c94a3b;
    --cream: #fffdf8;
    --ink: #1f1814;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(61, 47, 36, 0.08);
    --shadow-lg: 0 12px 40px rgba(61, 47, 36, 0.12);
    --font: "DM Sans", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --max: 1120px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--sand-50);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container--narrow { max-width: 720px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 250, 245, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sand-200);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    max-width: var(--max);
    margin: 0 auto;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brown-800);
    text-decoration: none;
}
.site-logo:hover { text-decoration: none; }
.site-logo__mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--coral), #f4a261);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.site-logo__text { letter-spacing: -0.02em; }

.site-logo__text--plain {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem 1.25rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.site-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brown-700);
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    text-decoration: none;
}
.site-nav a:hover {
    background: var(--sand-100);
    text-decoration: none;
}
.site-nav__cta {
    background: var(--sage) !important;
    color: #fff !important;
    padding: 0.45rem 1rem !important;
}
.site-nav__cta:hover {
    background: var(--sage-dark) !important;
}

.site-nav__toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 10px;
    background: var(--sand-100);
    cursor: pointer;
    position: relative;
}
.site-nav__toggle::before,
.site-nav__toggle::after {
    content: "";
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    height: 2px;
    background: var(--brown-800);
    transition: transform 0.2s;
}
.site-nav__toggle::before { top: 0.9rem; box-shadow: 0 7px 0 var(--brown-800); }
.site-nav__toggle::after { top: 0.9rem; opacity: 0; }

@media (max-width: 768px) {
    .site-nav__toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: var(--cream);
        border-bottom: 1px solid var(--sand-200);
        box-shadow: var(--shadow-lg);
    }
    .site-nav.is-open { display: flex; }
    .site-header { position: relative; }
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
    overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
.hero__blob {
    position: absolute;
    width: min(90vw, 520px);
    height: min(90vw, 520px);
    right: -10%;
    top: -20%;
    background: radial-gradient(circle, rgba(232, 93, 76, 0.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sage-dark);
    margin-bottom: 1rem;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--brown-800);
    max-width: 16ch;
    letter-spacing: -0.03em;
}
.hero__title em {
    font-style: italic;
    color: var(--coral-dark);
}
.hero__lead {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    max-width: 52ch;
    color: var(--brown-600);
}
.hero__actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Pet-category chips below the hero CTAs — pill-shaped quick links. */
.hero__chips {
    margin-top: 2rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    max-width: 60ch;
}
.hero__chips::before {
    content: 'Browse gift categories:';
    display: block;
    width: 100%;
    margin-bottom: 0.15rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brown-600);
    font-weight: 600;
}
.hero__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.95rem;
    background: var(--cream, #fbf6ec);
    color: var(--brown-800);
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    white-space: nowrap;
}
.hero__chip:hover,
.hero__chip:focus-visible {
    background: var(--sage, #3d6b55);
    border-color: var(--sage, #3d6b55);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}
.hero__chip:focus-visible {
    outline: 2px solid var(--sage, #3d6b55);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--coral), #f07a5c);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(232, 93, 76, 0.35);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
    background: var(--sage);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(61, 107, 85, 0.25);
}
.btn-secondary:hover { background: var(--sage-dark); }
.btn-ghost {
    background: transparent;
    color: var(--brown-700) !important;
    border: 2px solid var(--sand-200);
}
.btn-ghost:hover { border-color: var(--brown-600); }
.btn-danger {
    background: #b91c1c;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(185, 28, 28, 0.22);
}
.btn-danger:hover { background: #991b1b; }
.btn-danger:disabled { background: #cbd5e0; color: #6b7280 !important; cursor: not-allowed; box-shadow: none; }

/* Queue dashboard graphics */
.qc-pulsable.is-active {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
    border-radius: 999px;
    font-weight: 700;
    position: relative;
}
.qc-pulsable.is-active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    animation: qcPulse 1.6s ease-out infinite;
    pointer-events: none;
}
@keyframes qcPulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.queue-progress__bar.is-active {
    background-image: linear-gradient(45deg,
        rgba(255,255,255,0.18) 25%, transparent 25%,
        transparent 50%, rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0.18) 75%, transparent 75%, transparent);
    background-size: 22px 22px;
    animation: qcStripes 1.2s linear infinite;
}
@keyframes qcStripes {
    from { background-position: 0 0; }
    to   { background-position: 22px 0; }
}

.qc-activity-dot {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.7), 0 1px 4px rgba(16, 185, 129, 0.45);
    transition: left .8s ease;
}
.qc-activity-dot--newest {
    background: #059669;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    animation: qcDotPop 0.6s ease-out;
}
@keyframes qcDotPop {
    0%   { transform: scale(0.4); opacity: 0; }
    60%  { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.qc-activity-track {
    background-image:
        linear-gradient(180deg,#f3f4f6 0%,#e5e7eb 100%),
        repeating-linear-gradient(90deg,
            transparent 0, transparent 16.66%,
            rgba(0,0,0,0.06) 16.66%, rgba(0,0,0,0.06) calc(16.66% + 1px));
}
.btn--small { padding: 0.45rem 1rem; font-size: 0.85rem; }

/* Sections */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--tight { padding-top: 0; }
.section--sand {
    background: linear-gradient(180deg, var(--sand-100) 0%, var(--sand-50) 100%);
    border-top: 1px solid var(--sand-200);
    border-bottom: 1px solid var(--sand-200);
}
.section--page-top { padding-top: 2rem; padding-bottom: 4rem; }
.section__head { margin-bottom: 2rem; }
.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--brown-800);
}
.section__sub { color: var(--muted); margin-top: 0.35rem; max-width: 50ch; }
.section__cta-row { text-align: center; margin-top: 2rem; }

.page-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--brown-800);
}
.page-header__lead { color: var(--muted); margin-top: 0.75rem; max-width: 60ch; }

/* Card grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* Homepage — latest guides & roundups */
.section--home-guides {
    background: linear-gradient(180deg, #faf8f4 0%, var(--cream) 42%, #fff 100%);
    border-top: 1px solid var(--sand-200);
}
.home-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.home-guide-card { margin: 0; }
.home-guide-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 11rem;
    padding: 1.35rem 1.4rem 1.5rem;
    background: var(--cream);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    border-left: 4px solid var(--sage);
}
.home-guide-card__link:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--sand-200);
    text-decoration: none;
    color: inherit;
}
.home-guide-card__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sage-dark);
    margin-bottom: 0.5rem;
}
.home-guide-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.28;
    color: var(--brown-800);
    margin: 0 0 0.65rem;
}
.home-guide-card__excerpt {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 1rem;
    flex: 1;
}
.home-guide-card__cta {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--coral-dark);
    margin-top: auto;
}
.home-guide-card__link:hover .home-guide-card__cta {
    text-decoration: underline;
}

.review-card {
    background: var(--cream);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--sand-200);
    transition: box-shadow 0.2s, transform 0.2s;
}
.review-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.review-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background: var(--sand-100);
}
.review-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}
.review-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--sand-200), var(--sand-100));
}
.dude-pill {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--brown-800);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}
.review-card__body { padding: 1.1rem 1.25rem 1.35rem; }
.review-card__cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sage-dark);
}
.review-card__title {
    margin-top: 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}
.review-card__title a { color: var(--brown-800); text-decoration: none; }
.review-card__title a:hover { color: var(--coral-dark); }
.review-card__excerpt {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-card__more {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--coral-dark);
}

/* Two column mission */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; }
}
.prose { color: var(--brown-600); }
.prose--page p { margin-bottom: 1rem; }
.mission-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px dashed var(--sand-200);
    box-shadow: var(--shadow);
}
.mission-card__quote {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    font-style: italic;
    color: var(--brown-800);
    line-height: 1.4;
}
.mission-card__sig {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--coral-dark);
}

/* Homepage — quote above site footer */
.section--home-footer-quote {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(180deg, #fff 0%, var(--sand-50) 100%);
    border-top: 1px solid var(--sand-200);
}
.home-footer-quote {
    margin: 0 auto;
    max-width: 44rem;
    padding: 0;
    border: none;
    text-align: center;
}
.home-footer-quote__text {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.8vw, 1.55rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.45;
    color: var(--brown-800);
}
.home-footer-quote__sig {
    margin-top: 1.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    font-style: normal;
    color: var(--coral-dark);
}

.text-link { font-weight: 700; color: var(--coral-dark); }

/* Review list */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--cream);
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand-200);
}
.filter-bar label { font-weight: 600; color: var(--brown-700); }
.filter-bar select,
.filter-bar input[type="search"] {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--sand-200);
    font: inherit;
    background: #fff;
    color: var(--brown-800);
}
.filter-bar select { padding-right: 2rem; }
.filter-bar__search {
    flex: 1 1 240px;
    min-width: 200px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.filter-bar__search:focus {
    outline: none;
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(61, 107, 85, 0.15);
}
.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;
}

.list-rows { display: flex; flex-direction: column; gap: 1rem; }
.list-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow);
}
@media (max-width: 640px) {
    .list-row { grid-template-columns: 72px 1fr; }
    .list-row__side { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
}
.list-row__thumb img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--sand-100);
}
.list-row__cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sage-dark);
}
.list-row__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.2rem;
}
.list-row__title a { color: var(--brown-800); text-decoration: none; }
.list-row__title a:hover { color: var(--coral-dark); }
.list-row__excerpt { font-size: 0.9rem; color: var(--muted); margin-top: 0.35rem; }
.list-row__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}
.dude-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brown-800);
    font-variant-numeric: tabular-nums;
}
.dude-badge__label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Single review */
.review-article { padding-bottom: 4rem; }
.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--sage-dark); }
.breadcrumb__sep { margin: 0 0.4rem; opacity: 0.6; }
.breadcrumb__current { color: var(--brown-600); }

.review-header { margin-bottom: 2rem; }
.review-header__eyebrow {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--sage-dark);
}
.review-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brown-800);
    margin-top: 0.35rem;
    max-width: 20ch;
}
.review-header__scores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.score-ring {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    min-height: 5.5rem;
    padding: 0.75rem;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--sand-100), #fff);
    border: 2px solid var(--sand-200);
    box-shadow: var(--shadow);
}
.score-ring__value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brown-800);
    line-height: 1;
}
.score-ring__label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-top: 0.25rem;
}
/* Header + produktbillede side om side: titel/score til venstre, billede til højre */
.review-hero-grid { margin-bottom: 2rem; }
.review-hero-grid .review-header,
.review-hero-grid .review-gallery { margin-bottom: 0; }
@media (min-width: 769px) {
    .review-hero-grid--with-image {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 2rem;
        align-items: center;
    }
}

.review-gallery { margin-bottom: 2rem; }
.review-gallery__hero {
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--sand-200);
    padding: 1rem;
    text-align: center;
}
.review-gallery__hero img {
    max-height: 280px;
    margin: 0 auto;
    object-fit: contain;
}
.review-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.review-gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--sand-100);
    cursor: pointer;
    overflow: hidden;
}
.review-gallery__thumb.is-active { border-color: var(--coral); }
.review-gallery__thumb img { width: 72px; height: 72px; object-fit: contain; }

.review-aside-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.callout {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow);
}
.callout--tldr {
    border-left: 4px solid var(--coral);
}
.callout__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--brown-800);
}
.callout__text { font-size: 0.95rem; color: var(--brown-600); }
.checklist { padding-left: 1.2rem; }
.checklist li { margin-bottom: 0.35rem; }

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tag-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--sand-100);
    color: var(--brown-700);
    border: 1px solid var(--sand-200);
}

.review-toc {
    max-width: 68ch;
    margin: 0 0 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--cream);
    border: 1px solid var(--sand-200);
    border-left: 4px solid var(--sage);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.review-toc__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brown-800);
}
.review-toc__list {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding-left: 1.25rem;
}
.review-toc a {
    color: var(--brown-700);
    font-weight: 650;
    text-decoration: none;
}
.review-toc a:hover {
    color: var(--sage-dark);
    text-decoration: underline;
}

/* Prose / review body */
.review-body.prose {
    font-size: 1.05rem;
    color: var(--brown-700);
    max-width: 68ch;
}
.review-body.prose h2,
.review-body.prose h3,
.review-body.prose h4 {
    font-family: var(--font-display);
    color: var(--brown-800);
    margin: 2rem 0 0.75rem;
    line-height: 1.25;
}
.review-body.prose h2 { font-size: 1.65rem; }
.review-body.prose h2[id] { scroll-margin-top: 1.5rem; }
.review-body.prose h3 { font-size: 1.35rem; }
.review-body.prose p { margin-bottom: 1rem; }
.review-body.prose ul,
.review-body.prose ol { margin: 0 0 1rem 1.25rem; }
.review-body.prose li { margin-bottom: 0.35rem; }
.review-body.prose blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--sage);
    background: var(--sand-100);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--brown-600);
}

.review-cta {
    margin: 3rem 0 2rem;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--sand-100), var(--cream));
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow);
}
.review-cta__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brown-800);
}
.review-cta__sub {
    color: var(--muted);
    margin: 0.5rem auto 0;
    max-width: 48ch;
    font-size: 0.95rem;
}
.review-cta__buttons {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.affiliate-inline {
    font-size: 0.85rem;
    color: var(--muted);
    font-style: italic;
    max-width: 60ch;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.5rem 0;
}
.pagination__link, .pagination__current {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}
.pagination__link {
    background: var(--cream);
    border: 1px solid var(--sand-200);
    color: var(--brown-800);
}
.pagination__link:hover { background: var(--sand-100); text-decoration: none; }
.pagination__current {
    background: var(--brown-800);
    color: #fff;
}

/* Legacy product grid (fallback) */
h1 { font-size: 1.75rem; margin-bottom: 1.5rem; font-family: var(--font-display); color: var(--brown-800); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--cream);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--sand-200);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.product-card__image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--sand-100);
}
.product-card__image img { max-height: 200px; object-fit: contain; }
.product-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__meta { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0; }
.product-card__price { margin-top: auto; font-size: 1.2rem; font-weight: 800; color: var(--sage-dark); }

/* Product detail legacy */
.product-page .product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
@media (max-width: 768px) {
    .product-page .product-detail { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    background: var(--brown-800);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}
.site-footer a { color: #fff; opacity: 0.95; }
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 600px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer__brand { font-size: 1.1rem; display: block; margin-bottom: 0.35rem; }
.site-footer__tag { opacity: 0.85; max-width: 36ch; }
.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}
.site-footer__custom > strong,
.site-footer__custom > h3,
.site-footer__custom > h4,
.site-footer__custom > p > strong:first-child {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.site-footer__custom p {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
}
.site-footer__custom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.editorial-disclosure,
.affiliate-disclosure {
    font-size: 0.8rem;
    opacity: 0.75;
    max-width: 720px;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.editorial-disclosure p {
    margin: 0 0 0.65rem;
}
.editorial-disclosure p:last-child {
    margin-bottom: 0;
}
.site-footer__copy { font-size: 0.8rem; opacity: 0.6; }

.empty-state {
    padding: 2rem;
    text-align: center;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px dashed var(--sand-200);
    color: var(--muted);
}
.muted { color: var(--muted); }

/* Guides & roundup listicles */
.page-roundup .roundup-article,
.page-guides-index { padding-bottom: 3rem; }
.roundup-header { margin-bottom: 1.5rem; }
.roundup-header__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sage-dark);
    margin-bottom: 0.35rem;
}
.roundup-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    color: var(--brown-800);
    line-height: 1.2;
}
.roundup-intro { margin-bottom: 2.5rem; max-width: 72ch; }
.roundup-picks { display: flex; flex-direction: column; gap: 2.5rem; }
.roundup-pick {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius);
    border: 1px solid var(--sand-200);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.25rem 1.5rem;
    /* Reserve space for rank badge so copy never runs underneath */
    padding-right: 5.5rem;
}
@media (min-width: 721px) {
    .roundup-pick {
        padding-right: 6.75rem;
    }
}
.roundup-pick__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    box-sizing: border-box;
    min-width: 4.25rem;
    min-height: 4.25rem;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    /* ~100% larger than previous 1.1rem */
    font-size: clamp(1.85rem, 4.5vw, 2.35rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--coral-dark);
    background: linear-gradient(145deg, rgba(232, 93, 76, 0.14), rgba(232, 93, 76, 0.06));
    border: 2px solid var(--coral);
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(232, 93, 76, 0.18);
}
.roundup-pick__grid {
    display: grid;
    grid-template-columns: minmax(0, 220px) 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 720px) {
    .roundup-pick__grid { grid-template-columns: 1fr; }
    .roundup-pick__media { max-width: 280px; margin: 0 auto; }
    .roundup-pick {
        padding-right: 1.25rem;
        padding-top: 5.25rem;
    }
    .roundup-pick__badge {
        top: 1rem;
        right: 1rem;
        left: auto;
    }
}
.roundup-pick__media img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--sand-200);
}
.roundup-pick__product-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--brown-800);
    margin-bottom: 0.25rem;
}
.roundup-pick__brand { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.roundup-pick__score {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(61, 107, 85, 0.1);
    border: 1px solid rgba(61, 107, 85, 0.22);
    color: var(--sage-dark);
}
.roundup-pick__score-value {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}
.roundup-pick__score-label {
    font-size: 0.75rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.roundup-pick__prose { margin-bottom: 1.25rem; }
.roundup-pick__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}
.roundup-pick__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.roundup-pick__actions .btn-primary {
    background: var(--coral);
    color: #fff;
}
.roundup-pick__actions .btn-primary:hover { background: var(--coral-dark); text-decoration: none; }
.roundup-pick__actions .btn-secondary {
    background: var(--sand-100);
    color: var(--brown-800) !important;
    border: 1px solid var(--sand-200);
    box-shadow: none;
    text-shadow: none;
}
.roundup-pick__actions .btn-secondary:hover { background: var(--sand-200); text-decoration: none; color: var(--brown-800) !important; }
.roundup-closing { margin-top: 2.5rem; max-width: 72ch; }

.guides-index-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 52rem;
}
.guides-index-list__link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--brown-800);
}
.guides-index-list__link:hover { color: var(--coral-dark); }
.guides-index-list__meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 0.35rem;
    line-height: 1.5;
}

.roundup-related {
    margin-top: 2.75rem;
    padding: 1.65rem 1.35rem 1.5rem;
    background: linear-gradient(165deg, var(--cream) 0%, var(--sand-50) 100%);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius);
    max-width: 46rem;
    box-shadow: var(--shadow);
}
.roundup-related__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brown-800);
    margin-bottom: 0.35rem;
}
.roundup-related__lead {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 1.15rem;
    line-height: 1.55;
    max-width: 40ch;
}
.roundup-related__chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.65rem;
    margin: 0;
    padding: 0;
}
.roundup-related__chip-wrap {
    margin: 0;
    padding: 0;
}
.roundup-related__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--brown-800);
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--sand-200);
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(61, 47, 36, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.roundup-related__chip:hover {
    text-decoration: none;
    border-color: var(--sage);
    box-shadow: 0 3px 14px rgba(61, 107, 85, 0.12);
    transform: translateY(-1px);
    color: var(--sage-dark);
}
.roundup-related__chip-text {
    max-width: 16rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Quick-buy CTA near top of review ───────────────────── */
.callout__cta {
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border, #e2e8f0);
    font-size: 0.92rem;
}
.quick-buy-row {
    margin: 1rem 0 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}
.quick-buy-link {
    display: inline-block;
    padding: 0.6rem 1rem;
    color: var(--sage-dark, #2f5a44);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.quick-buy-link:hover {
    background: var(--sand-100, #f7efe0);
    border-color: var(--sage, #5f9b7c);
    text-decoration: none;
}
.quick-buy-link strong {
    color: var(--sage-dark, #2f5a44);
    font-weight: 600;
}

/* ── Queue progress (admin/reviews-ai) ─────────────────── */
.queue-progress-wrap {
    margin-top: 0.85rem;
}
.queue-progress {
    position: relative;
    height: 22px;
    background: #f1f5f9;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.queue-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #5f9b7c 0%, #3d6b55 100%);
    transition: width 0.4s ease;
    border-radius: 11px;
}
.queue-progress__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* ── Category landing pages ─────────────────────────────── */
.category-page {
    padding-top: 1rem;
    padding-bottom: 3rem;
}
.category-hero {
    padding: 1.5rem 0 2rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    margin-bottom: 2rem;
}
.category-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    color: var(--muted, #64748b);
    margin: 0 0 0.4rem;
}
.category-hero__title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0 0 0.5rem;
    line-height: 1.15;
}
.category-hero__lead {
    margin: 0;
    color: var(--muted, #64748b);
    max-width: 65ch;
    line-height: 1.55;
}
.category-section {
    margin-bottom: 2.5rem;
}
.category-section__title {
    margin: 0 0 1rem;
    font-size: 1.3rem;
}
.subcat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.7rem;
}
.subcat-card {
    display: flex;
    flex-direction: column;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: var(--ink, #1e293b);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.subcat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-color: var(--sage, #5f9b7c);
    text-decoration: none;
}
.subcat-card__name {
    font-weight: 600;
    font-size: 0.95rem;
}
.subcat-card__count {
    font-size: 0.75rem;
    color: var(--muted, #64748b);
    margin-top: 0.25rem;
}
.guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.guide-list li {
    padding: 0.85rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    background: #fff;
}
.guide-list li > a {
    text-decoration: none;
    color: var(--ink, #1e293b);
}
.guide-list li > a:hover { text-decoration: underline; }
.guide-list li p {
    margin: 0.3rem 0 0;
    font-size: 0.85rem;
    color: var(--muted, #64748b);
    line-height: 1.5;
}
.tag-pill__count {
    color: var(--muted, #64748b);
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* ── Review header — secondary product name line ───────── */
.review-header__product-name {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: var(--muted, #64748b);
    line-height: 1.4;
    max-width: 60ch;
}

/* ── Related reviews grid ─────────────────────────────── */
.related-reviews {
    margin: 3rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, #e2e8f0);
}
.related-reviews__title {
    margin: 0 0 1rem;
    font-size: 1.4rem;
}
.related-reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}
.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}
.related-card__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--sand-50, #fdfaf5);
}
.related-card__body {
    padding: 0.6rem 0.7rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.related-card__cat {
    font-size: 0.7rem;
    color: var(--muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.related-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink, #1e293b);
    line-height: 1.35;
}
.related-card__score {
    font-size: 0.75rem;
    color: var(--sage-dark, #2f5a44);
    font-weight: 600;
    margin-top: 0.2rem;
}

/* ── GiftScore tooltip ─────────────────────────────────── */
.score-ring-wrap {
    position: relative;
    display: inline-block;
}
.score-ring {
    cursor: help;
}
.score-tooltip {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: min(380px, 90vw);
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 60;
    font-size: 0.85rem;
}
.score-ring-wrap:hover .score-tooltip,
.score-ring-wrap:focus-within .score-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.score-tooltip__title {
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
}
.score-tooltip__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.score-tooltip__table th,
.score-tooltip__table td {
    padding: 0.35rem 0.4rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    text-align: left;
    vertical-align: top;
    line-height: 1.3;
}
.score-tooltip__table thead th {
    font-weight: 600;
    color: var(--muted, #64748b);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.score-tooltip__table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.score-tooltip__table .is-negative {
    color: #b91c1c;
}
.score-tooltip__max {
    color: var(--muted, #64748b);
    font-size: 0.7rem;
    margin-left: 0.25rem;
}
.score-tooltip__table tfoot td {
    border-bottom: none;
    padding-top: 0.6rem;
    font-size: 0.9rem;
}
.score-tooltip__note {
    margin: 0.6rem 0 0;
    font-size: 0.72rem;
    color: var(--muted, #64748b);
    line-height: 1.4;
}

/* Desktop: show the GiftScore tooltip to the RIGHT of the ring so it never
   drops below the fold and is always fully visible on hover. */
@media (min-width: 641px) {
    .score-tooltip {
        top: 50%;
        left: calc(100% + 0.85rem);
        transform: translateX(-8px) translateY(-50%);
    }
    .score-ring-wrap:hover .score-tooltip,
    .score-ring-wrap:focus-within .score-tooltip {
        transform: translateX(0) translateY(-50%);
    }
}

/* Small screens: the centered tooltip can overflow the viewport when the score
   ring sits near an edge. Pin it as a full-width bottom sheet so it's always
   fully readable. */
@media (max-width: 640px) {
    .score-tooltip {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        bottom: 0.75rem;
        width: auto;
        max-width: none;
        transform: translateY(10px);
        max-height: 75vh;
        overflow-y: auto;
    }
    .score-ring-wrap:hover .score-tooltip,
    .score-ring-wrap:focus-within .score-tooltip {
        transform: translateY(0);
    }
}

.score-ring-wrap:hover,
.score-ring-wrap:focus-within {
    z-index: 70;
}

/* Compact overlay badge on wizard / AI / category cards */
.score-ring-wrap--overlay {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 4;
}
.score-ring-wrap--overlay .score-ring {
    min-width: 3.1rem;
    min-height: 3.1rem;
    padding: 0.35rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
}
.score-ring-wrap--overlay .score-ring__value {
    font-size: 0.95rem;
    line-height: 1;
}
.score-ring-wrap--overlay .score-ring__label {
    font-size: 0.55rem;
    letter-spacing: 0.03em;
}

/* Inline score on guide pick rows */
.score-ring-wrap--inline {
    margin: 0 0 1rem;
}

/* Score in list rows (All picks, tags) */
.score-ring-wrap--list {
    margin-bottom: 0.35rem;
}
.score-ring-wrap--list .score-ring {
    min-width: 3.4rem;
    min-height: 3.4rem;
    padding: 0.4rem 0.5rem;
}

@media (min-width: 641px) {
    .score-ring-wrap--overlay .score-tooltip {
        left: auto;
        right: calc(100% + 0.85rem);
        top: 50%;
        transform: translateX(8px) translateY(-50%);
    }
    .score-ring-wrap--overlay:hover .score-tooltip,
    .score-ring-wrap--overlay:focus-within .score-tooltip {
        transform: translateX(0) translateY(-50%);
    }
}

/* ── Sticky buy bar (review pages) ──────────────────────── */
.sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #fff;
    border-top: 1px solid var(--border, #e2e8f0);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.22s ease;
}
.sticky-buy.is-visible {
    transform: translateY(0);
}
.sticky-buy__inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.sticky-buy__product {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}
.sticky-buy__thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--sand-50, #fdfaf5);
    flex-shrink: 0;
}
.sticky-buy__text {
    min-width: 0;
    line-height: 1.25;
}
.sticky-buy__title {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.sticky-buy__sub {
    display: block;
    font-size: 0.78rem;
    color: var(--muted, #64748b);
    margin-top: 0.1rem;
}
.sticky-buy__btn {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    background: var(--coral, #e07a5f);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.1s ease;
}
.sticky-buy__btn:hover {
    background: var(--coral-dark, #c95f44);
    text-decoration: none;
    transform: translateY(-1px);
}
@media (max-width: 520px) {
    .sticky-buy__title { font-size: 0.82rem; }
    .sticky-buy__sub { display: none; }
    .sticky-buy__btn { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
    .sticky-buy__thumb { width: 38px; height: 38px; }
}

/* Push affiliate-disclosure up so the sticky bar doesn't cover content */
body.page-review main {
    padding-bottom: 88px;
}

/* ── Review FAQ ─────────────────────────────────────────── */
.review-faq {
    margin: 2.5rem 0 1.5rem;
    padding: 1.5rem;
    background: var(--sand-50, #fdfaf5);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
}
.review-faq__title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}
.review-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.review-faq__item {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #fff;
    padding: 0 1rem;
}
.review-faq__item[open] {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.review-faq__q {
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 0;
    list-style: none;
    line-height: 1.4;
}
.review-faq__q::-webkit-details-marker { display: none; }
.review-faq__q::after {
    content: '+';
    float: right;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--muted, #64748b);
    transition: transform 0.15s ease;
}
.review-faq__item[open] .review-faq__q::after {
    content: '−';
}
.review-faq__a {
    padding: 0 0 1rem;
    color: var(--text, #1e293b);
    line-height: 1.6;
}
.review-faq__a p { margin: 0; }

/* ── Gift Finder wizard ─────────────────────────────────────────── */
.gf-hero {
    background: linear-gradient(160deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: #fff;
    padding: 3.2rem 0 2.6rem;
    text-align: center;
}
.gf-hero__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.82;
    margin-bottom: 0.6rem;
}
.gf-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1.08;
    font-weight: 600;
    margin: 0 auto 0.7rem;
    max-width: 16ch;
}
.gf-hero__title span { color: #ffd9a8; font-style: italic; }
.gf-hero__lead {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 52ch;
    margin: 0 auto;
}

.gf-wizard {
    background: var(--cream);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.6rem;
    margin: -1.8rem auto 2rem;
    position: relative;
    z-index: 2;
}
@media (min-width: 640px) { .gf-wizard { padding: 2.2rem 2.4rem; } }
.gf-wizard[data-collapsed="1"] { opacity: 0.55; }
.gf-wizard[data-collapsed="1"] .gf-step:not(.is-active) { display: none; }

.gf-progress {
    height: 6px;
    background: var(--sand-200);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}
.gf-wizard__promise {
    text-align: center;
    font-size: 0.92rem;
    color: var(--brown-600);
    margin-bottom: 1.4rem;
}
.gf-wizard__promise strong { color: var(--gold-dark); }
.gf-progress__bar {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--coral), var(--coral-dark));
    border-radius: 999px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gf-step { display: none; border: 0; animation: gfFade 0.35s ease; }
.gf-step.is-active { display: block; }
@keyframes gfFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gf-step__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brown-800);
    line-height: 1.15;
    margin-bottom: 0.35rem;
}
.gf-step__hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }
.gf-step__hint--group {
    margin: 1.4rem 0 0.7rem;
    font-weight: 700;
    color: var(--brown-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}
.gf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }

.gf-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gf-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--sand-200);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brown-700);
    transition: border-color 0.15s, background 0.15s, transform 0.08s, box-shadow 0.15s;
    user-select: none;
}
.gf-chips--wide .gf-chip { padding: 0.8rem 1.15rem; }
.gf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.gf-chip:hover { border-color: var(--sage); }
.gf-chip:active { transform: scale(0.97); }
.gf-chip:has(input:checked) {
    border-color: var(--sage);
    background: var(--sage);
    color: #fff;
    box-shadow: 0 4px 14px rgba(61, 107, 85, 0.28);
}
.gf-chip:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }
.gf-chip__emoji { font-size: 1.15rem; line-height: 1; }

.gf-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.8rem;
}
.btn--find { font-size: 1.05rem; padding: 0.85rem 1.6rem; }

/* Results */
.gf-results { padding: 2.4rem 0 3rem; }
.gf-results__head { text-align: center; margin-bottom: 1.8rem; }
.gf-results__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 0.8rem;
}
.gf-results__summary { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1rem; }
.gf-tag {
    background: var(--sand-100);
    color: var(--brown-700);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.gf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.2rem;
    overflow: visible;
}
.gf-results,
.gf-results .container {
    overflow: visible;
}
.gf-results__amazon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin: 2rem auto 0;
    text-align: center;
}
.gf-results__amazon-hint {
    font-size: 0.88rem;
    color: var(--brown-600);
}
.gf-card {
    display: flex;
    flex-direction: column;
    background: var(--cream);
    border: 1px solid var(--sand-200);
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}
.gf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gf-card__thumb {
    position: relative;
    display: block;
    background: #fff;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}
.gf-card__thumb > a { display: block; width: 100%; height: 100%; }
.gf-card__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 0.8rem; }
.gf-card__score {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: var(--sage);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 999px;
    min-width: 2.1rem;
    height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.gf-card__body { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.9rem 1rem 1.1rem; flex: 1; }
.gf-card__cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--sage-dark);
}
.gf-card__title { font-size: 0.98rem; line-height: 1.3; font-weight: 600; }
.gf-card__title a { color: var(--brown-800); }
.gf-card__reasons { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; margin: 0.1rem 0; }
.gf-card__reasons li {
    position: relative;
    padding-left: 1.15rem;
    font-size: 0.83rem;
    color: var(--brown-600);
    line-height: 1.35;
}
.gf-card__reasons li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.gf-card__cta { margin-top: auto; align-self: flex-start; }
.gf-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.gf-card__actions .btn-secondary {
    background: var(--sand-100);
    color: var(--brown-800) !important;
    border: 1px solid var(--sand-200);
    box-shadow: none;
    text-shadow: none;
}
.gf-card__actions .btn-secondary:hover {
    background: var(--sand-200);
    color: var(--brown-800) !important;
    text-decoration: none;
}

/* End-of-page block: "see more on Amazon" + embedded wizard */
.gf-endblock { margin: 2.5rem auto 3rem; }
.gf-seemore {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1.5px solid var(--sand-200);
    border-radius: 999px;
    background: #fff;
    color: var(--brown-800);
    font-weight: 700;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s;
}
.gf-seemore:hover { border-color: var(--sage); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.gf-seemore__icon { color: var(--coral); flex-shrink: 0; }
.gf-endblock__wizard { margin-top: 1.6rem; }
.gf-endblock__title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 0.3rem;
}
.gf-endblock__lead { color: var(--muted); margin-bottom: 1.1rem; max-width: 54ch; }

/* ═══════════════════════════════════════════════════════════════════════
   GIFT AESTHETIC LAYER — lightweight, pure CSS (no images, no fonts, no JS).
   Additive overrides for a warmer, more "gift-wrapped" feel. SEO/CWV safe.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
    --gold: #d3a04b;
    --gold-dark: #b8863a;
    --gold-soft: #f5e2bd;
    --ribbon: linear-gradient(90deg, var(--coral) 0%, var(--gold) 50%, var(--sage) 100%);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 6px 22px rgba(90, 60, 30, 0.09);
    --shadow-lg: 0 18px 48px rgba(90, 60, 30, 0.16);
}

/* Warm, subtle page ambience — layered gradients, no images, not fixed. */
body {
    background:
        radial-gradient(55vw 42vh at 100% -8%, rgba(211, 160, 75, 0.13), transparent 60%),
        radial-gradient(48vw 38vh at -8% 2%, rgba(232, 93, 76, 0.09), transparent 58%),
        var(--sand-50);
    background-repeat: no-repeat;
}

/* A slim gift-ribbon line across the very top of the site. */
.site-header {
    border-top: 3px solid transparent;
    border-image: var(--ribbon);
    border-image-slice: 1;
}
img.site-logo__mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 11px;
    background: none;
    box-shadow: 0 3px 10px rgba(211, 160, 75, 0.35);
    object-fit: cover;
}
.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.34rem;
    font-weight: 650;
    line-height: 1;
    letter-spacing: -0.035em;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    font-variation-settings: "SOFT" 45, "WONK" 0.8;
}
.site-logo__accent {
    font-size: 1.55em;
    font-weight: 800;
    line-height: 0.9;
    margin-right: 0.04em;
    background: linear-gradient(135deg, var(--coral) 0%, #f0a060 52%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}
.site-logo__brand {
    color: var(--brown-800);
    font-weight: 720;
    letter-spacing: -0.04em;
}
.site-logo__tld {
    font-family: var(--font);
    font-size: 0.58em;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--sage-dark);
    margin-left: 0.04em;
    transform: translateY(-0.12em);
}
.site-logo:hover .site-logo__brand { color: var(--sage-dark); }
.site-logo:hover .site-logo__accent {
    background: linear-gradient(135deg, #f06a58 0%, #f7b06a 50%, #c99542 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ── Hero as a soft "gift box" panel ── */
.hero {
    background:
        radial-gradient(40vw 40vh at 88% -10%, rgba(211,160,75,0.18), transparent 62%),
        radial-gradient(46vw 42vh at 6% 108%, rgba(61,107,85,0.12), transparent 60%),
        linear-gradient(180deg, #fffaf1 0%, var(--sand-50) 100%);
    border-bottom: 1px solid var(--sand-200);
}
.hero__eyebrow, .gf-hero__eyebrow {
    background: var(--gold-soft);
    color: var(--gold-dark) !important;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(211,160,75,0.35);
}
.hero__title em { color: var(--coral-dark); }

/* ── Section titles get a small ribbon accent ── */
.section__title { position: relative; }
.section__title::before {
    content: "";
    display: block;
    width: 46px;
    height: 4px;
    border-radius: 999px;
    background: var(--ribbon);
    margin-bottom: 0.85rem;
}
.section--home-footer-quote .section__title::before,
.section__head--center .section__title::before { margin-left: auto; margin-right: auto; }

/* ── Buttons: gift-wrap gradient + gentle sheen ── */
.btn-primary {
    background: linear-gradient(135deg, var(--coral) 0%, #ef8a4d 55%, var(--gold) 120%);
    box-shadow: 0 6px 18px rgba(232, 93, 76, 0.32);
}
.btn-primary:hover { filter: brightness(1.04) saturate(1.05); box-shadow: 0 10px 26px rgba(232, 93, 76, 0.4); }
.btn { transition: transform 0.15s, box-shadow 0.2s, filter 0.2s; }
.btn:hover { transform: translateY(-2px); }

/* ── Premium card treatment + ribbon reveal on hover ── */
.review-card, .home-guide-card, .list-row, .mission-card {
    position: relative;
    border-radius: var(--radius);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}
.gf-card {
    position: relative;
    border-radius: var(--radius);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: visible;
}
.gf-card:has(.score-ring-wrap:hover),
.gf-card:has(.score-ring-wrap:focus-within) {
    z-index: 80;
}
.review-card::before, .home-guide-card::before, .gf-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ribbon);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 3;
}
.review-card:hover, .home-guide-card:hover, .list-row:hover, .gf-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.review-card:hover::before, .home-guide-card:hover::before, .gf-card:hover::before { opacity: 1; }

/* ── Dude badge / score ring feel like a gold gift tag ── */
.dude-badge {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dark) 100%);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 1.15rem;
    box-shadow: 0 3px 10px rgba(61,107,85,0.28);
}
.dude-badge__label { margin-top: 0.15rem; }

/* ── Category / crowd chips: warmer, softer ── */
.list-row__cat, .gf-card__cat, .review-card__cat {
    color: var(--gold-dark);
}

/* ── See-more Amazon link: gift-tag styling ── */
.gf-seemore { background: linear-gradient(135deg, #fff, var(--gold-soft)); border-color: rgba(211,160,75,0.5); }
.gf-seemore:hover { border-color: var(--gold-dark); }

/* ── Footer: a closing ribbon ── */
.site-footer { border-top: 3px solid transparent; border-image: var(--ribbon); border-image-slice: 1; }

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
    .btn, .review-card, .home-guide-card, .list-row, .gf-card { transition: none; }
    .btn:hover, .review-card:hover, .home-guide-card:hover, .list-row:hover, .gf-card:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════
   AMPED: skeuomorphic gift-wrap. Still 100% CSS — patterns are gradients,
   not images, so zero weight added. Textured paper, glossy candy buttons,
   gift-tag scores, wax-seal medallions, folded-corner cards.
   ═══════════════════════════════════════════════════════════════════════ */

/* Hero: real gift-wrap paper (tiled webp, 20KB) under a left→right cream fade
   so headline text stays crisp while the wrap shows through on the right. */
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,251,242,0.95) 0%, rgba(255,251,242,0.86) 42%, rgba(255,251,242,0.35) 100%),
        url(/images/giftwrap-pattern.webp) 0 0 / 300px repeat;
    border-bottom: 3px solid transparent;
    border-image: var(--ribbon);
    border-image-slice: 1;
}
/* ── Homepage: the Gift Finder wizard is the hero, framed by gift stacks ── */
.hero--finder {
    text-align: center;
    padding: clamp(2.2rem, 5vw, 3.8rem) 0 clamp(2.6rem, 5vw, 4rem);
    background:
        radial-gradient(120% 105% at 50% 0%,
            rgba(255,251,242,0.96) 0%, rgba(255,251,242,0.82) 55%, rgba(255,251,242,0.48) 100%),
        url(/images/giftwrap-pattern.webp) 0 0 / 300px repeat;
}
.page-home .hero__inner { position: relative; z-index: 2; }
.hero--finder .hero__title { margin-left: auto; margin-right: auto; max-width: 20ch; }
.hero--finder .hero__lead { margin-left: auto; margin-right: auto; }
.hero--finder .hero__eyebrow { margin-bottom: 1rem; }

/* Gift-stack illustrations framing the wizard (wide screens only). */
.page-home .hero::before, .page-home .hero::after {
    content: "";
    position: absolute;
    bottom: 0.5rem;
    z-index: 1;
    width: min(19vw, 250px);
    height: 72%;
    background: url(/images/hero-gifts.webp) center bottom / contain no-repeat;
    pointer-events: none;
    filter: drop-shadow(0 14px 26px rgba(90, 60, 30, 0.18));
}
.page-home .hero::before { left: max(0.5rem, calc((100vw - var(--max)) / 2 - 1.5rem)); }
.page-home .hero::after  { right: max(0.5rem, calc((100vw - var(--max)) / 2 - 1.5rem)); transform: scaleX(-1); }
@media (max-width: 1180px) {
    .page-home .hero::before, .page-home .hero::after { display: none; }
}

/* The wizard card, front and centre. */
.home-finder__card {
    max-width: 720px;
    margin: 1.9rem auto 0;
    position: relative;
    z-index: 2;
}
.home-finder__card .gf-wizard {
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, 0.55);
}
/* ── AI free-text gift search (homepage) ── */
.ai-search {
    max-width: 720px;
    margin: 1.6rem auto 0;
    position: relative;
    z-index: 2;
}
.ai-search__divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}
.ai-search__divider::before,
.ai-search__divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(211, 160, 75, 0.45), transparent);
}
.ai-search__form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    background: var(--cream);
    border: 1.5px solid rgba(211, 160, 75, 0.5);
    border-radius: var(--radius);
    padding: 0.6rem;
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, 0.55);
}
.ai-search__form:focus-within { border-color: var(--gold-dark); }
.ai-search__form textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    padding: 0.45rem 0.55rem;
    outline: none;
    min-height: 3.2rem;
}
.ai-search__btn { align-self: center; white-space: nowrap; }
.ai-search__hint {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.ai-search__hint.is-error { color: var(--coral-dark); font-weight: 600; }
@media (max-width: 560px) {
    .ai-search__form { flex-direction: column; }
    .ai-search__btn { align-self: stretch; }
}

/* Minimum-detail popup for the AI search */
.ai-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(61, 47, 36, 0.45);
    backdrop-filter: blur(3px);
}
.ai-modal[hidden] { display: none; }
.ai-modal__card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255,251,242,0.97), rgba(255,251,242,0.97)),
        url(/images/giftwrap-pattern.webp) 0 0 / 260px repeat;
    border: 1.5px solid rgba(211, 160, 75, 0.5);
    border-top: 4px solid transparent;
    border-image: var(--ribbon);
    border-image-slice: 1;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.8rem 1.6rem 1.6rem;
    animation: gfFade 0.25s ease;
}
.ai-modal__emoji { font-size: 2.2rem; display: block; margin-bottom: 0.4rem; }
.ai-modal__title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 0.5rem;
}
.ai-modal__text {
    color: var(--brown-600);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.8rem;
}
.ai-modal__list {
    list-style: none;
    text-align: left;
    margin: 0 auto 1rem;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--brown-600);
}
.ai-modal__list li { display: flex; gap: 0.5rem; align-items: baseline; line-height: 1.4; }
.ai-modal__list strong { color: var(--brown-800); }
.ai-modal__example {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--gold-dark);
    background: rgba(211, 160, 75, 0.1);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

/* Loading animation while the AI finds gifts */
.ai-loading {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
}
.ai-loading[hidden] { display: none; }
.ai-loading__gift {
    font-size: 4rem;
    line-height: 1;
    display: inline-block;
    animation: aiGiftBounce 1.1s ease-in-out infinite;
    filter: drop-shadow(0 10px 18px rgba(90, 60, 30, 0.25));
}
@keyframes aiGiftBounce {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    30%      { transform: translateY(-16px) rotate(4deg); }
    55%      { transform: translateY(0) rotate(-2deg); }
    70%      { transform: translateY(-6px) rotate(2deg); }
}
.ai-loading__sparkles {
    height: 1.4rem;
    margin-top: 0.3rem;
}
.ai-loading__sparkles i {
    display: inline-block;
    font-style: normal;
    margin: 0 0.55rem;
    color: var(--gold);
    animation: aiSparkle 1.6s ease-in-out infinite;
}
.ai-loading__sparkles i:nth-child(2) { color: var(--coral); animation-delay: 0.35s; }
.ai-loading__sparkles i:nth-child(3) { color: var(--sage); animation-delay: 0.7s; }
@keyframes aiSparkle {
    0%, 100% { opacity: 0.15; transform: translateY(0) scale(0.8); }
    50%      { opacity: 1; transform: translateY(-6px) scale(1.15); }
}
.ai-loading__text {
    margin-top: 0.9rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--brown-700);
}
@media (prefers-reduced-motion: reduce) {
    .ai-loading__gift, .ai-loading__sparkles i { animation: none; }
}

.ai-results { padding: 2.4rem 0 1rem; overflow: visible; }
.ai-results__text {
    color: var(--brown-600);
    max-width: 60ch;
    margin: 0 auto 0.5rem;
}
/* ── Guide-page wizard banner (text left, actions right, gift-wrapped) ── */
.guide-wizard-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    margin: 0 0 2rem;
    padding: 1.15rem 1.4rem;
    background:
        linear-gradient(90deg, rgba(255, 251, 242, 0.97) 0%, rgba(255, 251, 242, 0.88) 55%, rgba(255, 251, 242, 0.55) 100%),
        url(/images/giftwrap-pattern.webp) 0 0 / 260px repeat;
    border: 1.5px solid rgba(211, 160, 75, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.guide-wizard-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ribbon);
}
.guide-wizard-banner__text { max-width: 52ch; }
.guide-wizard-banner__text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--brown-800);
    margin-bottom: 0.2rem;
}
.guide-wizard-banner__text p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--brown-600);
    line-height: 1.5;
}
.guide-wizard-banner__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}
@media (max-width: 700px) {
    .guide-wizard-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .guide-wizard-banner__text { max-width: none; }
}

.ai-results__amazon {
    text-align: center;
    margin: 1.8rem 0 0;
}

.ai-results__fallback {
    margin: 2.4rem auto 1rem;
    padding: 1.8rem 1.5rem;
    max-width: 720px;
    text-align: center;
    background: var(--cream);
    border: 1.5px solid rgba(211, 160, 75, 0.45);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.ai-results__fallback-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    font-weight: 600;
    color: var(--brown-800);
    margin-bottom: 1rem;
}
.ai-results__fallback-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-finder__secondary {
    margin-top: 1.3rem;
    display: flex;
    gap: 0.55rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}
.home-finder__or { color: var(--muted); font-size: 0.9rem; }
.hero__chips--center {
    margin: 1.4rem auto 0;
    justify-content: center;
    max-width: 72ch;
    position: relative;
    z-index: 2;
}
.hero__chips--center::before { text-align: center; }

/* Sand sections + footer wear the same wrap paper (softly). */
.section--sand {
    background:
        linear-gradient(180deg, rgba(245,235,224,0.92) 0%, rgba(253,250,245,0.92) 100%),
        url(/images/giftwrap-pattern.webp) 0 0 / 280px repeat;
}

/* ── Glossy, pressable candy buttons ── */
.btn-primary {
    background: linear-gradient(180deg, #ff8163 0%, var(--coral) 48%, #cf4634 100%);
    box-shadow:
        0 3px 0 #a83626,
        0 9px 20px rgba(232, 93, 76, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 1px rgba(120, 30, 20, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.03) saturate(1.04); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #a83626, 0 4px 10px rgba(232,93,76,0.3), inset 0 1px 0 rgba(255,255,255,0.45); }
.btn-secondary {
    background: linear-gradient(180deg, #4f8069 0%, var(--sage) 48%, #2c5340 100%);
    box-shadow: 0 3px 0 #234534, 0 9px 20px rgba(61,107,85,0.3), inset 0 1px 0 rgba(255,255,255,0.35);
    text-shadow: 0 1px 1px rgba(20, 50, 35, 0.3);
}
.btn-secondary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn-secondary:active { transform: translateY(3px); box-shadow: 0 1px 0 #234534, 0 4px 10px rgba(61,107,85,0.28), inset 0 1px 0 rgba(255,255,255,0.35); }

/* ── Section titles: a folded ribbon banner accent ── */
.section__title::before {
    height: 12px;
    width: 54px;
    border-radius: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 8px 50%);
    box-shadow: 0 2px 5px rgba(90,60,30,0.2);
}

/* ── Dude score = a punched gift tag ── */
.dude-badge {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff;
    padding: 0.4rem 0.85rem 0.4rem 1.3rem;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
    box-shadow: 0 4px 12px rgba(211,160,75,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
    text-shadow: 0 1px 1px rgba(120,80,20,0.35);
}
.dude-badge::before {
    content: "";
    position: absolute;
    left: 0.42rem;
    top: 50%;
    width: 7px;
    height: 7px;
    background: var(--cream);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18);
}
.dude-badge__label { color: rgba(255,255,255,0.9); }

/* ── Score ring → glossy gift medallion (wax-seal feel) ── */
.score-ring {
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, #fff 0%, var(--gold-soft) 55%, var(--gold) 100%);
    border: 3px solid #fff;
    box-shadow:
        0 8px 22px rgba(211, 160, 75, 0.45),
        inset 0 2px 6px rgba(255, 255, 255, 0.75),
        inset 0 -4px 10px rgba(184, 134, 58, 0.35);
    color: var(--brown-800);
}
.score-ring__value { color: #5c4020; text-shadow: 0 1px 0 rgba(255,255,255,0.6); }
.score-ring__label { color: var(--gold-dark); }

/* ── Cards: wrapped-present depth + folded paper corner ── */
.review-card, .home-guide-card, .list-row, .gf-card {
    box-shadow: 0 2px 0 rgba(211,160,75,0.15), var(--shadow);
}
/* Folded gift-paper corner (top-right). */
.review-card > *:first-child, .gf-card > *:first-child { position: relative; }
.review-card::after, .home-guide-card::after, .gf-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 26px 26px 0;
    border-color: transparent rgba(211,160,75,0.28) transparent transparent;
    z-index: 2;
    transition: border-color 0.2s ease;
    pointer-events: none;
}
.review-card:hover::after, .home-guide-card:hover::after, .gf-card:hover::after {
    border-color: transparent var(--gold) transparent transparent;
}

/* Thumbnails / media get a faint wrap so "no photo" still feels designed. */
.list-row__thumb img, .gf-card__thumb {
    background-image:
        repeating-linear-gradient(45deg,
            rgba(211,160,75,0.10) 0 8px,
            rgba(232,93,76,0.06) 8px 16px);
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary:active, .btn-secondary:active { transform: none; }
}
