/* ============================================================
   fragrances.at — Components CSS
   All reusable UI components
   ============================================================ */


/* ============================================================
   HERO EDITORIAL SPLIT
   ============================================================ */


/* Hero CTA secondary */

.hero__cta--secondary {
    color: var(--text-muted);
    border-bottom-color: var(--border-hover);
}

.hero__cta-group {
    display: flex;
    gap: calc(var(--unit) * 3);
    align-items: center;
    flex-wrap: wrap;
}


/* Hero stats */

.hero__stats {
    display: flex;
    gap: calc(var(--unit) * 5);
    margin-top: calc(var(--unit) * 7);
    padding-top: calc(var(--unit) * 3.5);
    border-top: 0.5px solid var(--border);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 0.5);
}

.hero__stat-number {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    color: var(--gold);
}

.hero__stat-label {
    font-family: Inter, sans-serif;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-hint);
}


/* Hero visual — editorial: warm surface background */

.hero__visual {
    background: var(--surface);
}


/* Responsive */

@media (max-width: 768px) {
    .hero__stats {
        gap: calc(var(--unit) * 4);
        margin-top: calc(var(--unit) * 5);
    }
    .hero__stat-number {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero__stats {
        gap: calc(var(--unit) * 3);
    }
}


/* article-card styles are in main.css */


/* ============================================================
   AFFILIATE BOX
   ============================================================ */

.affiliate-box {
    background:
        radial-gradient(circle at top right, rgba(205, 175, 106, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(252, 249, 244, 0.96), rgba(248, 244, 236, 0.96));
    border: 1px solid rgba(188, 162, 102, 0.18);
    border-radius: calc(var(--radius) * 1.4);
    padding: calc(var(--unit) * 4.5);
    margin: calc(var(--unit) * 6) 0;
    box-shadow: 0 18px 36px rgba(42, 31, 12, 0.06);
}

.affiliate-box__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: calc(var(--unit) * 3);
    margin-bottom: calc(var(--unit) * 3.5);
    padding-bottom: calc(var(--unit) * 2.5);
    border-bottom: 1px solid rgba(188, 162, 102, 0.16);
}

.affiliate-box__header-copy {
    max-width: 620px;
}

.affiliate-box__label {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.affiliate-box__title {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 400;
    line-height: 1.02;
    color: var(--text);
}

.affiliate-box__subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

.affiliate-box__subtitle [data-product-name] {
    color: var(--text);
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

.affiliate-box__stamp {
    flex-shrink: 0;
    min-width: 72px;
    min-height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8d6a2d;
    border: 1px solid rgba(188, 162, 102, 0.26);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.affiliate-box__rows {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 1.25);
}

.affiliate-box__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--unit) * 2);
    padding: calc(var(--unit) * 1.4) calc(var(--unit) * 1.4);
    border: 1px solid rgba(188, 162, 102, 0.12);
    border-radius: calc(var(--radius) * 1.15);
    background: rgba(255, 255, 255, 0.76);
}

.affiliate-box__shop-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.affiliate-box__shop-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

.affiliate-box__shop-mark--amazon {
    background: linear-gradient(135deg, #14161c, #303544);
}

.affiliate-box__shop-mark--flaconi {
    background: linear-gradient(135deg, #df7068, #f0a275);
}

.affiliate-box__shop-mark--douglas {
    background: linear-gradient(135deg, #151515, #333333);
}

.affiliate-box__shop-mark--notino {
    background: linear-gradient(135deg, #8671d9, #a78cec);
}

.affiliate-box__shop-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.affiliate-box__shop {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}

.affiliate-box__hint {
    font-size: 12px;
    color: var(--text-hint);
    line-height: 1.4;
}

.affiliate-box__price {
    display: none;
}

.affiliate-box__buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--gold);
    border: 0.5px solid var(--gold);
    padding: 11px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(172, 133, 63, 0.16);
    transition: transform var(--ease), background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.affiliate-box__buy-btn:hover {
    transform: translateY(-1px);
    background-color: #b8954f;
    border-color: #b8954f;
    box-shadow: 0 14px 24px rgba(172, 133, 63, 0.22);
}

.affiliate-box__disclosure {
    margin-top: calc(var(--unit) * 3);
    padding-top: calc(var(--unit) * 2);
    border-top: 1px solid rgba(188, 162, 102, 0.14);
    font-size: 11px;
    color: var(--text-hint);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .affiliate-box__header {
        flex-direction: column;
    }

    .affiliate-box__stamp {
        min-width: 58px;
        min-height: 58px;
    }
}

@media (max-width: 640px) {
    .affiliate-box {
        padding: calc(var(--unit) * 3);
    }

    .affiliate-box__title {
        font-size: 28px;
    }

    .affiliate-box__row {
        flex-direction: column;
        align-items: stretch;
    }

    .affiliate-box__buy-btn {
        width: 100%;
    }
}


/* ── Affiliate box dark mode ─────────────────────────────── */
html:not([data-theme="light"]) .affiliate-box {
    background:
        radial-gradient(circle at top right, rgba(205, 175, 106, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(18, 16, 12, 0.96), rgba(22, 20, 16, 0.96));
    border-color: rgba(188, 162, 102, 0.12);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

html:not([data-theme="light"]) .affiliate-box__header {
    border-bottom-color: rgba(188, 162, 102, 0.1);
}

html:not([data-theme="light"]) .affiliate-box__stamp {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold);
    border-color: rgba(188, 162, 102, 0.18);
    box-shadow: none;
}

html:not([data-theme="light"]) .affiliate-box__row {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(188, 162, 102, 0.08);
}

html:not([data-theme="light"]) .affiliate-box__buy-btn {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

html:not([data-theme="light"]) .affiliate-box__disclosure {
    border-top-color: rgba(188, 162, 102, 0.08);
}


/* ============================================================
   ARTICLE SUMMARISE
   ============================================================ */

.article-summarise {
    margin: calc(var(--unit) * 7) 0 0;
    padding: calc(var(--unit) * 2.75) calc(var(--unit) * 3);
    border-top: 1px solid rgba(188, 162, 102, 0.34);
    border-bottom: 1px solid rgba(188, 162, 102, 0.18);
    background: linear-gradient(180deg, rgba(249, 246, 239, 0.78), rgba(255, 255, 255, 0.64));
}

.article-summarise__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--unit) * 2);
    margin-bottom: calc(var(--unit) * 1.5);
}

.article-summarise__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--gold);
}

.article-summarise__copy {
    max-width: 480px;
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(26, 26, 31, 0.62);
}

.article-summarise__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-summarise__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.01em;
    color: #1a1a1f;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(188, 162, 102, 0.18);
    box-shadow: 0 8px 20px rgba(33, 25, 12, 0.05);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background-color var(--ease);
}

.article-summarise__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(33, 25, 12, 0.09);
    border-color: rgba(188, 162, 102, 0.36);
    background: rgba(255, 255, 255, 0.98);
}

.article-summarise__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    line-height: 1;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.article-summarise__icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.article-summarise__button--chatgpt .article-summarise__icon {
    background: linear-gradient(135deg, #1d8f77, #23b38c);
}

.article-summarise__button--google .article-summarise__icon {
    background: #fff;
    border: 1px solid rgba(66, 133, 244, 0.18);
}

.article-summarise__button--grok .article-summarise__icon {
    background: linear-gradient(135deg, #121214, #2a2a31);
}

.article-summarise__button--perplexity .article-summarise__icon {
    background: linear-gradient(135deg, #7f62cc, #9b76dc);
}

.article-summarise__label {
    display: inline-block;
}

.article-summarise__status {
    min-height: 1.4em;
    margin: calc(var(--unit) * 1.25) 0 0;
    font-size: 12px;
    color: var(--text-hint);
}

html:not([data-theme="light"]) .article-summarise {
    border-top-color: rgba(201, 169, 110, 0.2);
    border-bottom-color: rgba(201, 169, 110, 0.1);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.72), rgba(14, 14, 14, 0.42));
}

html:not([data-theme="light"]) .article-summarise__copy {
    color: rgba(232, 228, 220, 0.58);
}

html:not([data-theme="light"]) .article-summarise__button {
    color: rgba(232, 228, 220, 0.92);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(201, 169, 110, 0.14);
    box-shadow: none;
}

html:not([data-theme="light"]) .article-summarise__button:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(201, 169, 110, 0.24);
    box-shadow: none;
}

html:not([data-theme="light"]) .article-summarise__button--google .article-summarise__icon {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

html:not([data-theme="light"]) .article-summarise__status {
    color: rgba(232, 228, 220, 0.44);
}

@media (max-width: 900px) {
    .article-summarise__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-summarise__copy {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .article-summarise {
        padding: calc(var(--unit) * 2.25) 0;
        margin-top: calc(var(--unit) * 5);
    }

    .article-summarise__actions {
        gap: 8px;
        width: 100%;
    }

    .article-summarise__button {
        padding: 9px 14px;
        min-height: 40px;
    }
}

@media (max-width: 420px) {
    .article-summarise__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


/* ============================================================
   NOTES PYRAMID
   ============================================================ */

.notes-pyramid {
    margin: calc(var(--unit) * 6) 0;
}

.notes-pyramid__title {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-hint);
    margin-bottom: calc(var(--unit) * 4);
}

.notes-pyramid__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.notes-band {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: calc(var(--unit) * 4);
    padding: calc(var(--unit) * 3) 0;
    border-bottom: 0.5px solid var(--border);
}

.notes-band:last-child {
    border-bottom: none;
}

.notes-band__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.notes-band__label {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-hint);
    text-align: center;
}


/* SVG triangle band */

.notes-band__svg {
    width: 100%;
    height: 40px;
}

.notes-band--top .notes-band__fill {
    fill: rgba(201, 169, 110, 1);
}

.notes-band--heart .notes-band__fill {
    fill: rgba(201, 169, 110, 0.7);
}

.notes-band--base .notes-band__fill {
    fill: rgba(201, 169, 110, 0.4);
}

.notes-band__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--unit);
    align-items: center;
}

.note-pill {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    border: 0.5px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--radius);
    white-space: nowrap;
    transition: color var(--ease), border-color var(--ease);
}

.note-pill:hover {
    color: var(--text);
    border-color: var(--border-hover);
    cursor: pointer;
}


/* ============================================================
   FRAGRANCE RATING
   ============================================================ */

.fragrance-rating {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 2);
    padding: calc(var(--unit) * 4);
    background-color: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
}

.fragrance-rating__label {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-hint);
}

.fragrance-rating__score-row {
    display: flex;
    align-items: baseline;
    gap: calc(var(--unit) * 2);
}

.fragrance-rating__score {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 48px;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
}

.fragrance-rating__max {
    font-size: var(--small);
    color: var(--text-hint);
}

.rating-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.rating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rating-dot--filled {
    background-color: var(--gold);
}

.rating-dot--empty {
    background-color: transparent;
    border: 0.5px solid var(--border);
}

.fragrance-rating__breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--unit);
    margin-top: var(--unit);
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--unit) * 2);
}

.rating-row__name {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-hint);
    width: 80px;
    flex-shrink: 0;
}

.rating-row__track {
    flex: 1;
    height: 1px;
    background: var(--border);
    position: relative;
}

.rating-row__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--gold);
    border-radius: 0;
}

.rating-row__value {
    font-size: var(--small);
    color: var(--gold);
    width: 24px;
    text-align: right;
    flex-shrink: 0;
}


/* ============================================================
   COMPARISON TABLE
   ============================================================ */

.comparison-table {
    width: 100%;
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: calc(var(--unit) * 6) 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead tr {
    background-color: var(--surface-2);
}

.comparison-table thead th {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: left;
    padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
    border-bottom: 0.5px solid var(--gold-border);
}

.comparison-table thead th:first-child {
    min-width: 200px;
}

.comparison-table tbody tr {
    border-bottom: 0.5px solid var(--border);
    transition: background-color var(--ease);
    cursor: pointer;
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: var(--surface-2);
}

.comparison-table tbody td {
    padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
    font-size: var(--small);
    color: var(--text-muted);
    vertical-align: middle;
}

.comparison-table__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: var(--text);
}

.comparison-table__price {
    color: var(--gold);
    font-weight: 500;
}

.comparison-table__score {
    color: var(--gold);
    font-weight: 500;
    font-size: 16px;
}

.comparison-table__bar-cell {
    min-width: 100px;
}

.ct-bar {
    height: 2px;
    background: var(--border);
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.ct-bar__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--gold);
}


/* ============================================================
   NOTES FILTER BAR
   ============================================================ */

.notes-filter {
    display: flex;
    align-items: center;
    gap: var(--unit);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: var(--unit) 0;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: calc(var(--unit) * 4);
}

.notes-filter::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 0.5px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    background: transparent;
    font-family: 'Inter', sans-serif;
    transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

.filter-pill:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background-color: var(--surface-2);
}

.filter-pill.is-active {
    color: var(--gold);
    border-color: var(--gold-border);
    background-color: var(--gold-muted);
}


/* ============================================================
   FRAGRANCE CARD (catalog grid)
   ============================================================ */

.fragrance-card {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: background-color var(--ease-slow), border-color var(--ease-slow);
}

.fragrance-card:hover {
    background-color: var(--surface-2);
    border-color: var(--border-hover);
}

.fragrance-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.3;
    overflow: hidden;
    background-color: var(--surface-2);
}

.fragrance-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: calc(var(--unit) * 0.5);
    transition: transform var(--ease-slow);
}


/* Mobile compact cards */

@media (max-width: 768px) {
    .fragrance-card__image-wrap {
        aspect-ratio: 1 / 1.2;
        /* Much less tall */
    }
    .fragrance-card__image {
        padding: calc(var(--unit) * 1);
    }
    .fragrance-card__body {
        padding: calc(var(--unit) * 1);
        gap: calc(var(--unit) * 0.5);
    }
}

@media (max-width: 480px) {
    .fragrance-card__image-wrap {
        aspect-ratio: 1 / 1.1;
        /* Almost square */
    }
    .fragrance-card__image {
        padding: calc(var(--unit) * 0.75);
    }
    .fragrance-card__body {
        padding: calc(var(--unit) * 0.75);
        gap: calc(var(--unit) * 0.25);
    }
}

.fragrance-card:hover .fragrance-card__image {
    transform: scale(1.03);
}

.fragrance-card__body {
    padding: calc(var(--unit) * 1);
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 0.25);
    flex: 1;
}

.fragrance-card__brand {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.fragrance-card__name {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
    line-height: 1.3;
}

.fragrance-card__notes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fragrance-card__note {
    display: inline-block;
    max-width: 120px;
    font-size: 9px;
    line-height: 1.15;
    color: var(--text-hint);
    border: 0.5px solid rgba(240, 236, 228, 0.14);
    background-color: var(--surface-2);
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: none;
}

.fragrance-card__footer {
    margin-top: auto;
    padding-top: var(--unit);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fragrance-card__score {
    font-size: 10px;
    font-weight: 500;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fragrance-card__concentration {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-hint);
}


/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--unit);
    padding: calc(var(--unit) * 8) 0;
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-family: 'Inter', sans-serif;
    font-size: var(--small);
    font-weight: 400;
    color: var(--text-muted);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

.pagination__item:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background-color: var(--surface-2);
}

.pagination__item.is-active {
    color: var(--gold);
    border-color: var(--gold-border);
    background-color: var(--gold-muted);
}

.pagination__item--prev,
.pagination__item--next {
    color: var(--text-hint);
}

.pagination__ellipsis {
    font-size: var(--small);
    color: var(--text-hint);
    padding: 0 4px;
}


/* ============================================================
   SEARCH FIELD
   ============================================================ */

.search-field {
    position: relative;
    width: 100%;
}

.search-field__icon {
    position: absolute;
    left: calc(var(--unit) * 2);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-hint);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.search-field__input {
    width: 100%;
    background-color: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: var(--body);
    font-weight: 300;
    padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2) calc(var(--unit) * 1.5) calc(var(--unit) * 5);
    outline: none;
    transition: border-color var(--ease), background-color var(--ease);
    appearance: none;
    -webkit-appearance: none;
}

.search-field__input::placeholder {
    color: var(--text-hint);
}

.search-field__input:focus {
    border-color: var(--gold-border);
    background-color: var(--surface-2);
}

.search-field__input:focus+.search-field__icon,
.search-field__input:focus~.search-field__icon {
    color: var(--gold);
}


/* When icon comes before input in DOM */

.search-field__input:focus {
    border-color: var(--gold-border);
}


/* ============================================================
   TABLE OF CONTENTS (TOC)
   ============================================================ */

.toc {
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    padding: calc(var(--unit) * 3);
    background-color: var(--surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    max-height: calc(100vh - var(--nav-h) - 64px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.toc::-webkit-scrollbar {
    width: 3px;
}

.toc::-webkit-scrollbar-track {
    background: transparent;
}

.toc::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 0;
}

.toc__title {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-hint);
    margin-bottom: calc(var(--unit) * 2);
    padding-bottom: calc(var(--unit) * 2);
    border-bottom: 0.5px solid var(--border);
}

.toc__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc__item {
    position: relative;
}

.toc__link {
    display: flex;
    align-items: baseline;
    gap: calc(var(--unit) * 1.5);
    padding: 6px 0 6px calc(var(--unit) * 2);
    font-size: var(--small);
    color: var(--text-hint);
    cursor: pointer;
    border-left: 0.5px solid var(--border);
    transition: color var(--ease), border-color var(--ease);
    line-height: 1.4;
}

.toc__link:hover {
    color: var(--text-muted);
    border-left-color: var(--border-hover);
}

.toc__link.is-active {
    color: var(--gold);
    border-left-color: var(--gold);
}

.toc__num {
    font-size: 10px;
    color: var(--text-hint);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    width: 16px;
}

.toc__link.is-active .toc__num {
    color: var(--gold);
}

.progress-bar {
    position: sticky;
    top: var(--nav-h);
    z-index: 190;
    width: 100%;
    height: 2px;
    background: transparent;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: var(--gold);
}

.guide-hero {
    border-bottom: 0.5px solid var(--border);
}

.guide-hero__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: calc(var(--unit) * 8) var(--pad) calc(var(--unit) * 7);
}

.guide-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: calc(var(--unit) * 2);
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-hint);
}

.guide-hero__breadcrumb-link {
    color: var(--text-hint);
    transition: color var(--ease);
}

.guide-hero__breadcrumb-link:hover {
    color: var(--gold);
}

.guide-hero__breadcrumb-sep {
    color: var(--gold);
}

.guide-hero__breadcrumb-current {
    color: var(--gold);
}

.guide-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 12px;
    margin-bottom: calc(var(--unit) * 3);
    border: 0.5px solid var(--gold-border);
    color: var(--gold);
    background: var(--gold-muted);
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.guide-hero__title {
    max-width: 920px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 3.4vw, 40px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text);
}

.guide-hero__subtitle {
    max-width: 760px;
    margin-top: calc(var(--unit) * 3);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
}

.guide-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--unit) * 2);
    margin-top: calc(var(--unit) * 4);
}

.guide-hero__meta-item {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-hint);
}

.guide-hero__meta-item+.guide-hero__meta-item::before {
    content: '·';
    margin-right: calc(var(--unit) * 2);
    color: var(--gold);
}

.guide-post__wrap {
    padding: calc(var(--unit) * 8) 0 calc(var(--unit) * 10);
}

.guide-post__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: calc(var(--unit) * 8);
    align-items: start;
}

.guide-post__main {
    min-width: 0;
}

.guide-post__content {
    max-width: 680px;
    counter-reset: guide-section;
}

.guide-post__content h2 {
    position: relative;
    margin-top: calc(var(--unit) * 8);
    margin-bottom: calc(var(--unit) * 2);
    padding-top: calc(var(--unit) * 5);
    font-size: clamp(28px, 2.8vw, 34px);
    line-height: 1.15;
}

.guide-post__content h2::before {
    counter-increment: guide-section;
    content: counter(guide-section, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 56px;
    line-height: 1;
    color: rgba(240, 236, 228, 0.08);
}

[data-theme="light"] .guide-post__content h2::before {
    color: rgba(26, 23, 20, 0.08);
}

.guide-post__content a.fragrance-inline-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.12em;
    padding: 0 0.32em;
    margin: 0 0.05em;
    border-radius: 999px;
    color: var(--gold);
    background: rgba(201, 169, 110, 0.12);
    border-bottom: 1px solid rgba(201, 169, 110, 0.22);
    text-decoration: none;
    white-space: nowrap;
}

.guide-post__content a.fragrance-inline-link:hover {
    color: var(--text);
    background: rgba(201, 169, 110, 0.18);
    border-bottom-color: rgba(201, 169, 110, 0.45);
}

.guide-post__content a.fragrance-inline-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.guide-post__content .kg-card {
    margin: calc(var(--unit) * 4) 0;
}

.guide-post__content .tip,
.guide-post__content .kg-html-card .tip {
    border-left: 2px solid var(--gold);
    background: var(--surface);
    padding: calc(var(--unit) * 3) calc(var(--unit) * 3);
}

.guide-post__content .tip strong:first-child,
.guide-post__content .kg-html-card .tip strong:first-child {
    display: block;
    margin-bottom: calc(var(--unit) * 1);
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.guide-post__content .tip p:last-child,
.guide-post__content .kg-html-card .tip p:last-child {
    margin-bottom: 0;
    color: var(--text-muted);
}

.guide-post__content .kg-table-card {
    overflow-x: auto;
}

.guide-post__content .kg-table-card table {
    width: 100%;
    border-collapse: collapse;
    border: 0.5px solid var(--border);
}

.guide-post__content .kg-table-card th {
    background: var(--gold-muted);
    color: var(--gold);
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.guide-post__content .kg-table-card th,
.guide-post__content .kg-table-card td {
    padding: calc(var(--unit) * 1.75) calc(var(--unit) * 2.5);
    border: 0.5px solid var(--border);
    text-align: left;
}

.guide-post__content .kg-table-card td {
    color: var(--text-muted);
}

.guide-post__sidebar {
    min-width: 0;
}

.guide-toc {
    width: 100%;
}

.guide-post-nav {
    border-top: 0.5px solid var(--border);
}

.guide-post-nav__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.guide-post-nav__col {
    min-height: 140px;
}

.guide-post-nav__col--prev {
    border-right: 0.5px solid var(--border);
}

.guide-post-nav__link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: calc(var(--unit) * 1.5);
    min-height: 140px;
    padding: calc(var(--unit) * 4) calc(var(--unit) * 4);
    transition: background-color var(--ease), transform var(--ease);
}

.guide-post-nav__link:hover {
    background: var(--surface);
    transform: translateY(-1px);
}

.guide-post-nav__label {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-hint);
}

.guide-post-nav__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    line-height: 1.25;
    color: var(--text);
}

.post-default__hero--text {
    border-bottom: 0.5px solid var(--border);
}

.post-default__hero-inner {
    max-width: 784px;
    margin: 0 auto;
    padding: calc(var(--unit) * 8) 32px calc(var(--unit) * 6);
}

.post-default__meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--unit) * 2);
    margin-bottom: calc(var(--unit) * 3);
}

.post-default__tag {
    color: var(--gold);
}

.post-default__meta-item {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-hint);
}

.post-default__meta-item+.post-default__meta-item::before {
    content: '·';
    margin-right: calc(var(--unit) * 2);
    color: var(--gold);
}

.post-default__title {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
    color: var(--text);
}

.post-default__excerpt {
    margin-top: calc(var(--unit) * 3);
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-muted);
}

.post-default__wrap {
    max-width: 784px;
    margin: 0 auto;
    padding: calc(var(--unit) * 7) 32px 0;
}

.post-default__content {
    max-width: 720px;
    margin: 0 auto;
}

.post-default__share {
    max-width: 720px;
    margin: calc(var(--unit) * 4) auto 0;
    display: flex;
    justify-content: flex-start;
}

.post-default__copy-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    border: 0.5px solid var(--border);
    color: var(--text-muted);
    background: transparent;
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}

.post-default__copy-btn:hover {
    color: var(--gold);
    border-color: var(--gold-border);
    background: var(--gold-muted);
}

.post-default__affiliate {
    max-width: 720px;
    margin: calc(var(--unit) * 4) auto 0;
}

.post-default__tags {
    max-width: 784px;
    margin: calc(var(--unit) * 5) auto 0;
    padding: 0 32px;
}

.related-posts__grid--three {
    grid-template-columns: repeat(3, 1fr);
}

body.tag-guides .post-default {
    display: none;
}

body:not(.tag-guides) .post-guide-shell {
    display: none;
}

.toast-container {
    position: fixed;
    bottom: calc(var(--unit) * 4);
    right: calc(var(--unit) * 4);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 1.5);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--unit) * 1.5);
    background-color: var(--surface-2);
    border: 0.5px solid var(--border);
    border-radius: var(--radius);
    padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
    max-width: 360px;
    pointer-events: all;
    animation: toast-in 200ms ease forwards;
}

.toast.is-exiting {
    animation: toast-out 200ms ease forwards;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(8px);
    }
}

.toast--success {
    border-color: var(--gold-border);
}

.toast--success .toast__icon {
    color: var(--gold);
}

.toast--error {
    border-color: rgba(220, 80, 80, 0.25);
}

.toast--error .toast__icon {
    color: #dc5050;
}

.toast__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.toast__body {
    flex: 1;
}

.toast__title {
    font-size: var(--small);
    font-weight: 500;
    color: var(--text);
    margin-bottom: 2px;
}

.toast__message {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.toast__close {
    color: var(--text-hint);
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--ease);
    padding: 0;
    margin-top: 1px;
}

.toast__close:hover {
    color: var(--text-muted);
}

.lang-switcher--block {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
}

.lang-switcher--block .lang-switcher__item {
    padding: 4px 10px;
    font-size: 12px;
}

.fragrance-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: calc(var(--unit) * 3);
    padding: calc(var(--unit) * 4) 0;
    border-top: 0.5px solid var(--border);
    border-bottom: 0.5px solid var(--border);
    margin: calc(var(--unit) * 6) 0;
}

.fragrance-meta__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fragrance-meta__label {
    font-size: var(--label);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-hint);
}

.fragrance-meta__value {
    font-size: var(--body);
    color: var(--text);
}

.related-rail {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    gap: calc(var(--unit) * 2);
    padding-bottom: var(--unit);
}

.related-rail::-webkit-scrollbar {
    display: none;
}

.related-rail .fragrance-card {
    flex-shrink: 0;
    width: 180px;
}

@media (max-width: 1024px) {
    .related-posts__grid--three {
        grid-template-columns: repeat(2, 1fr);
    }
    .guide-post__inner {
        grid-template-columns: 1fr;
        gap: calc(var(--unit) * 5);
    }
    .guide-post__content {
        max-width: none;
    }
    .article-card--featured {
        flex-direction: column;
        grid-column: span 1;
    }
    .article-card--featured .article-card__image {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .toc {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .post-default__hero-inner,
    .post-default__wrap,
    .post-default__tags {
        padding-left: 24px;
        padding-right: 24px;
    }
    .post-default__title {
        font-size: clamp(28px, 8vw, 38px);
    }
    .post-default__excerpt {
        font-size: 16px;
    }
    .related-posts__grid--three {
        grid-template-columns: 1fr;
    }
    .guide-hero__inner {
        padding-top: calc(var(--unit) * 6);
        padding-bottom: calc(var(--unit) * 5);
    }
    .guide-hero__title {
        font-size: clamp(30px, 9vw, 40px);
    }
    .guide-hero__subtitle {
        font-size: 16px;
    }
    .guide-post__wrap {
        padding-top: calc(var(--unit) * 5);
    }
    .guide-post__content h2 {
        padding-top: calc(var(--unit) * 4);
        font-size: clamp(24px, 7.5vw, 30px);
    }
    .guide-post__content h2::before {
        font-size: 44px;
    }
    .guide-post-nav__inner {
        grid-template-columns: 1fr;
    }
    .guide-post-nav__col--prev {
        border-right: none;
        border-bottom: 0.5px solid var(--border);
    }
    .affiliate-box {
        padding: calc(var(--unit) * 3);
    }
    .fragrance-meta {
        grid-template-columns: repeat(2, 1fr);
    }
    .notes-band {
        grid-template-columns: 80px 1fr;
        gap: calc(var(--unit) * 2);
    }
    .comparison-table {
        overflow-x: auto;
        display: block;
    }
    .comparison-table table {
        min-width: 560px;
    }
    .toast-container {
        left: calc(var(--unit) * 2);
        right: calc(var(--unit) * 2);
        bottom: calc(var(--unit) * 3);
    }
    .toast {
        max-width: none;
    }
}


/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
    .toast {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .toast.is-exiting {
        animation: none;
    }
    .fragrance-card__image {
        transition: none;
    }
}


/* ── Cookie Consent Banner ── */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 16px 24px;
    animation: cookieSlideUp 300ms ease forwards;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-consent__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-consent__text {
    font-size: var(--small);
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.cookie-consent__text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-consent__btn {
    font-family: 'Inter', sans-serif;
    font-size: var(--small);
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ease), border-color var(--ease);
}

.cookie-consent__btn--accept {
    background: var(--gold);
    color: #0a0a0a;
    border: 1px solid var(--gold);
    font-weight: 500;
}

.cookie-consent__btn--accept:hover {
    background: #d4b578;
}

.cookie-consent__btn--reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.cookie-consent__btn--reject:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

@media (max-width: 600px) {
    .cookie-consent__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .cookie-consent__actions {
        justify-content: stretch;
    }
    .cookie-consent__btn {
        flex: 1;
        text-align: center;
    }
}
