:root {
    --primary-bg: #0a0a14;
    --secondary-bg: #1a1a2a;
    --primary-text: #fff;
    --secondary-text: #b3b3b3;
    --accent-gradient: linear-gradient(135deg, #ff7b00, #0077ff);
    --card-gradient: linear-gradient(135deg, #192133, #0d1018);
    --hover-gradient: linear-gradient(135deg, #1f2b45, #121625);
    --primary-color: #ff7b00;
    --accent-color: #0077ff;
    --secondary-color: #7b00ff;
    --primary-color-rgb: 255, 123, 0;
    --accent-color-rgb: 0, 119, 255;
    --secondary-color-rgb: 123, 0, 255;
    --border-color-rgb: 255, 255, 255;
    --card-background: var(--secondary-bg);
    --card-background-rgb: 26, 26, 42;
    --text-color: var(--primary-text);
    --text-secondary: var(--secondary-text);
    --heading-font: 'Cormorant Upright', serif;
    --body-font: 'Montserrat', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    background-image: linear-gradient(165deg, #0a0a14 0%, #10142a 100%);
    background-attachment: fixed;
    padding-bottom: 60px;
}

/* Apply heading font to all headings */
h1, h2, h3, h4, h5, h6, 
.logo, 
.fragrance-name, 
.section-title, 
.category-title,
.notes-panel__title,
.tab-title,
.detail-title,
.fragrance-title {
    font-family: var(--heading-font);
    font-weight: 600;
}

/* Update specific heading styles */
.fragrance-name {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: 2.2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 30px;
    position: relative;
    animation: fadeInTitle 0.6s ease forwards;
    text-align: center;
    width: fit-content;
    margin: 0 auto 25px auto;
}

.logo {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 0.04em;
}


.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo__img {
    display: block;
    height: 40px;
    width: auto;
    max-width: min(200px, 42vw);
}

.site-logo__img--mark {
    height: 46px;
    width: 46px;
    max-width: none;
    object-fit: contain;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10vw;
    background: var(--primary-bg);
    position: fixed;
    width: 100%;
    z-index: 100;
}

/* Mobile menu button for small screens */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 101;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--secondary-bg);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    nav.open ul {
        right: 0;
    }

    nav ul li {
        margin: 0 0 15px 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
        font-size: 1rem;
    }
}

/* Navigation styles */
nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--primary-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-image: var(--accent-gradient);
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.back-btn {
    position: fixed;
    top: 90px;
    left: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-text);
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(-5px);
}

/* Main container styles */
.fragrance-container {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1550px;
    margin: 0 auto;
}

/* Fragrance hero section */
.fragrance-hero {
    display: flex;
    padding: 0 40px;
    gap: 60px;
    margin-bottom: 40px;
    position: relative;
    padding-top: 80px;
}

.fragrance-gallery {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.fragrance-image-large {
    position: relative;
    width: fit-content;
    height: fit-content;
    margin: 0 auto;
    overflow: hidden;
}

.fragrance-image-large img {
    width: min(375px, 100%);
    height: auto;
    aspect-ratio: 375 / 500;
    object-fit: contain;
}

.fragrance-image-large:after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 20%,
            rgba(255, 123, 0, 0.1) 30%,
            rgba(0, 119, 255, 0.1) 40%,
            transparent 50%);
    top: -100%;
    left: -100%;
    animation: shimmer 8s infinite;
    transform: rotate(25deg);
}

.fragrance-image-circle {
    position: absolute;
    width: min(375px, 100%);
    aspect-ratio: 375 / 500;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.05) 0%, rgba(0, 119, 255, 0.05) 100%);
    z-index: -1;
    animation: pulse 2.5s infinite alternate;
}

.fragrance-info {
    flex: 1;
    padding-top: 30px;
    max-width: 666px;
    position: relative;
    z-index: 1;
}

.fragrance-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.collection-tag {
    background: rgba(0, 119, 255, 0.1);
    border: 1px solid rgba(0, 119, 255, 0.3);
    color: #0077ff;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year-tag {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.fragrance-brand {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fragrance-description {
    color: var(--secondary-text);
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Stats section */
.fragrance-stats {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabs section */
.fragrance-info-tabs {
    margin-top: 30px;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.tabs-header {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 5px;
    font-size: 1rem;
    color: var(--secondary-text);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    outline: none;
}

.tab-btn:hover {
    color: var(--primary-text);
}

.tab-btn.active {
    color: var(--primary-text);
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(1);
}

.tabs-content {
    margin-top: 30px;
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
    margin-bottom: 20px;
}

.tab-content {
    display: none;
    padding: 20px 0;
    animation: fadeIn 0.3s ease-in-out;
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    color: var(--primary-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.75rem;
}

#story,
#composition,
#perfumer,
#notes {
    animation: fadeIn 0.5s ease-in-out;
    margin-bottom: 15px;
    width: 100%;
}

#story.active,
#composition.active,
#perfumer.active {
    display: block;
}

.tab-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

/* Accords list */
.accords-list {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    contain: content;
}

.accord-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.accord-item:last-child {
    border-bottom: none;
}

.accord-item:hover {
    transform: translateX(5px);
}

.accord-item:hover .accord-label {
    color: var(--accent-color, #ff7b00);
}

.accord-item:hover .accord-bar {
    filter: brightness(1.2);
    box-shadow: 0 0 8px var(--accord-color, rgba(255, 123, 0, 0.5));
}

.accord-item:hover .accord-percentage {
    font-weight: bold;
    color: var(--primary-text);
}

/* Preset colors for accord items based on data-color-index */
.accord-item[data-color-index="0"] .accord-bar {
    background-color: #ff7b00;
}

.accord-item[data-color-index="1"] .accord-bar {
    background-color: #0077ff;
}

.accord-item[data-color-index="2"] .accord-bar {
    background-color: #7b00ff;
}

.accord-item[data-color-index="3"] .accord-bar {
    background-color: #00d084;
}

.accord-item[data-color-index="4"] .accord-bar {
    background-color: #f9a8d4;
}

.accord-item[data-color-index="5"] .accord-bar {
    background-color: #60a5fa;
}

.accord-item[data-color-index="6"] .accord-bar {
    background-color: #fcd34d;
}

.accord-item[data-color-index="7"] .accord-bar {
    background-color: #84cc16;
}

.accord-item[data-color-index="8"] .accord-bar {
    background-color: #a78bfa;
}

.accord-item[data-color-index="9"] .accord-bar {
    background-color: #4ade80;
}

/* Different widths for accord bars based on their order - steeper gradient */
.accord-item-1 .accord-bar {
    width: 100%;
}

.accord-item-2 .accord-bar {
    width: 85%;
}

.accord-item-3 .accord-bar {
    width: 70%;
}

.accord-item-4 .accord-bar {
    width: 60%;
}

.accord-item-5 .accord-bar {
    width: 50%;
}

.accord-item-6 .accord-bar {
    width: 40%;
}

.accord-item-7 .accord-bar {
    width: 35%;
}

.accord-item-8 .accord-bar {
    width: 30%;
}

.accord-item-9 .accord-bar {
    width: 25%;
}

.accord-item-10 .accord-bar {
    width: 20%;
}

.accord-item-11 .accord-bar {
    width: 15%;
}

.accord-item-12 .accord-bar {
    width: 10%;
}

.accord-label {
    font-size: 0.95rem;
    color: var(--primary-text);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accord-percentage {
    font-size: 0.8rem;
    color: var(--secondary-text);
    font-weight: normal;
}

.accord-bar {
    height: 6px;
    border-radius: 3px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.accord-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: shimmer 2s infinite;
}

.accord-item:hover .accord-bar::after {
    animation-duration: 1s;
}

.fragrance-details {
    padding: 0 40px;
    margin-top: 60px;
    margin-bottom: 50px;
    clear: both;
    position: relative;
    z-index: 5;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.detail-card {
    background: var(--card-gradient);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-icon {
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
}

.detail-icon svg path {
    stroke-width: 2;
}

.detail-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-text);
}

.detail-text {
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* —— Fragrance page: notes —— */
.fragrance-notes {
    padding: 2.5rem 2.5rem 3rem;
    box-sizing: border-box;
    scroll-margin-top: 4rem;
}

.fragrance-notes .section-title {
    margin: 0 auto 1.5rem;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
}

.notes-board {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.notes-board--single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 920px;
}

.notes-panel {
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: start;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.35s ease, box-shadow 0.45s ease, background 1s ease-in-out;
}

.notes-panel:hover {
    transform: translateY(-4px);
    z-index: 2;
}

.notes-panel--top,
.notes-panel--all {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(to right, rgba(var(--primary-color-rgb), 0.15), rgba(var(--card-background-rgb), 0.92));
}

.notes-panel--top:hover,
.notes-panel--all:hover {
    background: linear-gradient(to left, rgba(var(--primary-color-rgb), 0.28), rgba(var(--card-background-rgb), 0.92));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 14px rgba(var(--primary-color-rgb), 0.12);
}

.notes-panel--all {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-color-rgb), 0.14) 0%,
        rgba(var(--accent-color-rgb), 0.1) 40%,
        rgba(var(--card-background-rgb), 0.92) 100%
    );
}

.notes-panel--all:hover {
    background: linear-gradient(
        135deg,
        rgba(var(--primary-color-rgb), 0.22) 0%,
        rgba(var(--accent-color-rgb), 0.18) 40%,
        rgba(var(--card-background-rgb), 0.92) 100%
    );
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 14px rgba(var(--primary-color-rgb), 0.1), 0 0 12px rgba(var(--accent-color-rgb), 0.08);
}

.notes-panel--heart {
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(to right, rgba(var(--accent-color-rgb), 0.15), rgba(var(--card-background-rgb), 0.92));
}

.notes-panel--heart:hover {
    background: linear-gradient(to left, rgba(var(--accent-color-rgb), 0.28), rgba(var(--card-background-rgb), 0.92));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 14px rgba(var(--accent-color-rgb), 0.12);
}

.notes-panel--base {
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(to right, rgba(var(--secondary-color-rgb), 0.15), rgba(var(--card-background-rgb), 0.92));
}

.notes-panel--base:hover {
    background: linear-gradient(to left, rgba(var(--secondary-color-rgb), 0.28), rgba(var(--card-background-rgb), 0.92));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), 0 0 14px rgba(var(--secondary-color-rgb), 0.12);
}

.notes-panel--top .notes-panel__icon,
.notes-panel--all .notes-panel__icon {
    background: rgba(var(--primary-color-rgb), 0.12);
    color: var(--primary-color);
}

.notes-panel--top .notes-panel__title,
.notes-panel--all .notes-panel__title {
    color: var(--primary-color);
}

.notes-panel--top:hover .notes-panel__icon,
.notes-panel--all:hover .notes-panel__icon {
    background: var(--primary-color);
    color: #fff;
}

.notes-panel--heart .notes-panel__icon {
    background: rgba(var(--accent-color-rgb), 0.12);
    color: var(--accent-color);
}

.notes-panel--heart .notes-panel__title {
    color: var(--accent-color);
}

.notes-panel--heart:hover .notes-panel__icon {
    background: var(--accent-color);
    color: #fff;
}

.notes-panel--base .notes-panel__icon {
    background: rgba(var(--secondary-color-rgb), 0.12);
    color: var(--secondary-color);
}

.notes-panel--base .notes-panel__title {
    color: var(--secondary-color);
}

.notes-panel--base:hover .notes-panel__icon {
    background: var(--secondary-color);
    color: #fff;
}

.notes-panel__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem 0.85rem 0.9rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.notes-panel__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.55rem;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
}

.notes-panel__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.notes-panel__subtitle {
    margin: 0;
    max-width: 15rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--secondary-text);
}

.notes-panel__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 0.65rem;
    padding: 0 0.15rem;
}

.note-chip {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 72px;
    text-align: center;
}

.note-chip__link {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-chip__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

.note-chip:hover .note-chip__link {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.note-chip:hover .note-chip__link::before {
    opacity: 0.12;
}

.note-chip__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.note-chip__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-text);
    background: rgba(255, 255, 255, 0.08);
}

.note-chip:hover .note-chip__placeholder {
    background: var(--accent-gradient);
}

.note-chip__name {
    font-size: 0.68rem;
    line-height: 1.25;
    font-weight: 500;
    color: var(--primary-text);
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.note-chip:hover .note-chip__name {
    color: var(--primary-color);
}

@media (max-width: 1100px) {
    .fragrance-notes {
        padding: 2rem 1.5rem 2.5rem;
    }

    .notes-board {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .fragrance-notes {
        padding: 1.5rem 1.15rem 2rem;
    }

    .note-chip__link {
        width: 48px;
        height: 48px;
    }
}

.related-fragrances {
    padding: 0 40px 70px;
    margin-bottom: 0;
}

.related-fragrances--full {
    width: 100%;
    box-sizing: border-box;
    scroll-margin-top: 4rem;
}

.related-fragrances--full .similar-grid {
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem;
}

.similar-section-lead {
    margin: -0.5rem 0 1.75rem;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--secondary-text);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.similar-item {
    margin: 0;
}

.similar-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.similar-link:hover {
    text-decoration: none;
}

.similar-card {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.similar-link:hover .similar-card {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 123, 0, 0.35);
}

.similar-card-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
}

.similar-card-photo {
    width: auto;
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.similar-link:hover .similar-card-photo {
    transform: scale(1.06);
}

.similar-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.1rem 1.15rem;
    background: linear-gradient(
        to bottom,
        rgba(25, 33, 51, 0.75) 0%,
        rgba(13, 16, 24, 0.95) 100%
    );
}

.similar-card-brand {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-text);
}

.similar-card-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--primary-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card-reason {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.62);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 2rem;
    text-align: center;
    color: var(--secondary-text);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.footer {
    margin-top: auto;
    padding: 40px;
    background: linear-gradient(to top, rgba(10, 10, 20, 0.9), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Static pages (about, privacy, image credits) */
.static-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 40px 60px;
    color: var(--primary-text);
    line-height: 1.65;
}

.static-page p,
.static-page ul {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

/* --- About page --- */
.about-page {
    padding-bottom: 4rem;
}

.about-page__hero {
    padding: 5rem 4% 3.25rem;
    text-align: center;
    background: linear-gradient(
        165deg,
        rgba(255, 123, 0, 0.11) 0%,
        rgba(0, 119, 255, 0.07) 42%,
        transparent 72%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.about-page__hero-inner {
    max-width: 40rem;
    margin: 0 auto;
}

.about-page__mark {
    margin: 0 auto 1.25rem;
}

.about-page__mark-img {
    display: block;
    width: clamp(72px, 18vw, 112px);
    height: auto;
    margin: 0 auto;
}

.about-page__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.about-page__title.section-title {
    margin-bottom: 1.25rem;
}

.about-page__lead {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--secondary-text);
    margin: 0;
}

.about-page__lead strong {
    color: var(--primary-text);
    font-weight: 600;
}

.about-page__content {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2.5rem 4% 0;
}

.about-block {
    margin-bottom: 3rem;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block__eyebrow {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary-text);
}

.about-block__eyebrow--warm {
    color: var(--primary-color);
}

.about-block__eyebrow--cool {
    color: var(--accent-color);
}

.about-block__title {
    font-family: var(--heading-font);
    font-size: clamp(1.5rem, 3.2vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 1.1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    max-width: 100%;
}

.about-block__title--soft {
    background: linear-gradient(135deg, #ff9a3d 0%, #5ca8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.about-block__title--violet {
    background: linear-gradient(135deg, #ff7b00 0%, #9b5cff 85%);
    -webkit-background-clip: text;
    background-clip: text;
}

.about-block__prose p,
.about-block__card-body p,
.about-block__highlight-copy p {
    margin-bottom: 1rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--secondary-text);
}

.about-block__prose p:last-child,
.about-block__card-body p:last-child,
.about-block__highlight-copy p:last-child {
    margin-bottom: 0;
}

.about-block__prose strong,
.about-block__card-body strong,
.about-block__highlight-copy strong {
    color: var(--primary-text);
    font-weight: 600;
}

/* Intro: left accent bar */
.about-block--intro {
    padding: 0.25rem 0 0.25rem 1.35rem;
    border-left: 3px solid transparent;
    border-image: var(--accent-gradient) 1;
}

/* Card panel */
.about-block--card .about-block__card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.35rem 1.65rem;
    padding: 1.75rem 1.65rem;
    border-radius: 16px;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
}

.about-block--accent-blue .about-block__card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 85% 65% at 100% 0%,
        rgba(var(--accent-color-rgb), 0.2),
        transparent 62%
    );
}

.about-block__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    border-radius: 12px;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--accent-color-rgb), 0.35);
}

.about-block__icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.about-block__card-body {
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* Highlight + callout */
.about-block--highlight {
    padding: 1.85rem 1.75rem;
    border-radius: 18px;
    background: linear-gradient(
        145deg,
        rgba(var(--primary-color-rgb), 0.09) 0%,
        rgba(var(--accent-color-rgb), 0.06) 55%,
        rgba(10, 10, 20, 0.4) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-block__highlight-grid {
    display: grid;
    grid-template-columns: 1fr minmax(12rem, 17.5rem);
    gap: 1.75rem 2rem;
    align-items: start;
}

.about-callout {
    margin: 0;
    padding: 1.35rem 1.25rem;
    border-radius: 14px;
    background: var(--card-gradient);
    border: 1px solid rgba(var(--accent-color-rgb), 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.about-callout__quote {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.55;
    color: var(--primary-text);
}

/* Numbered flow */
.about-block--flow .about-block__title {
    margin-bottom: 1.35rem;
}

.about-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.about-flow__item {
    display: grid;
    grid-template-columns: 2.85rem 1fr;
    gap: 1.15rem 1.35rem;
    align-items: start;
    padding: 1.2rem 1.35rem;
    border-radius: 14px;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-flow__item:hover {
    border-color: rgba(var(--primary-color-rgb), 0.28);
    transform: translateX(4px);
}

.about-flow__step {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    flex-shrink: 0;
    border-radius: 50%;
    font-family: var(--heading-font);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background-color: rgba(255, 255, 255, 0.04);
    background-image: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-flow__label {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--primary-text);
}

.about-flow__body p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--secondary-text);
}

/* Muted inset */
.about-block--muted {
    padding: 1.75rem 1.85rem;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Explore list */
.about-block--explore {
    padding-top: 0.5rem;
}

.about-explore__intro {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-explore__list {
    display: flex;
    flex-direction: column;
}

.about-explore__row {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 1.15rem 1.35rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.22s ease;
}

.about-explore__row:first-child {
    padding-top: 0;
}

.about-explore__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-explore__row:hover {
    padding-left: 0.35rem;
}

.about-explore__row:hover .about-explore__label {
    color: var(--primary-color);
}

.about-explore__row:hover .about-explore__arrow {
    transform: translateX(4px);
    color: var(--accent-color);
}

.about-explore__index {
    font-family: var(--heading-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary-text);
    opacity: 0.65;
}

.about-explore__label {
    display: block;
    font-family: var(--heading-font);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-text);
    transition: color 0.2s ease;
}

.about-explore__desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--secondary-text);
}

.about-explore__arrow {
    font-size: 1.25rem;
    color: var(--secondary-text);
    transition: transform 0.22s ease, color 0.2s ease;
}

.about-explore__footer {
    margin: 1.75rem 0 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--secondary-text);
}

.about-explore__footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.about-explore__footer a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .about-page__hero {
        padding: 4.25rem 1.25rem 2.5rem;
    }

    .about-page__content {
        padding: 2rem 1.25rem 0;
    }

    .about-block--card .about-block__card {
        grid-template-columns: 1fr;
    }

    .about-block__icon {
        width: 2.85rem;
        height: 2.85rem;
    }

    .about-block__highlight-grid {
        grid-template-columns: 1fr;
    }

    .about-flow__item {
        grid-template-columns: 2.5rem 1fr;
    }

    .about-explore__row {
        grid-template-columns: 2.25rem 1fr auto;
        gap: 0.85rem 1rem;
    }
}

.contact-form {
    margin: 2rem 0 1rem;
    max-width: 560px;
}

.contact-form__field {
    margin-bottom: 1.25rem;
}

.contact-form__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary-text);
}

.contact-form__field input,
.contact-form__field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--primary-text);
    font: inherit;
}

.contact-form__field textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__submit {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--accent-color, #c9a962);
    color: #1a1a1a;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.contact-form__submit:hover {
    filter: brightness(1.08);
}

.contact-form__fallback {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.contact-flashes {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.contact-flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.contact-flash--success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.35);
}

.contact-flash--error {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid rgba(244, 67, 54, 0.35);
}

.image-credits-page__h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: var(--primary-text);
}

.image-credits-table-wrap {
    overflow-x: auto;
    margin: 1rem 0 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.image-credits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.image-credits-table th,
.image-credits-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.image-credits-table th {
    color: var(--primary-text);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
}

.image-credits-table a {
    color: #5eb0ff;
}

.image-credits-table a:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-copyright {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .fragrance-hero {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .fragrance-gallery,
    .fragrance-info {
        max-width: 100%;
    }

    .fragrance-info {
        padding-top: 0;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .related-fragrances--full .similar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    header,
    .fragrance-hero,
    .fragrance-details,
    .fragrance-notes,
    .related-fragrances,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .back-btn {
        left: 20px;
    }

    .details-grid,
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .fragrance-name {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

}

@media (max-width: 480px) {

    .details-grid,
    .similar-grid {
        grid-template-columns: 1fr;
    }

    .related-fragrances--full .similar-grid {
        grid-template-columns: 1fr;
    }

    .fragrance-name {
        font-size: 2rem;
    }

    .fragrance-stats {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4%;
    background: linear-gradient(to top, var(--primary-bg), transparent),
        linear-gradient(145deg, rgba(255, 123, 0, 0.2), rgba(0, 119, 255, 0.2));
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-text);
    line-height: 1.6;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--primary-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-gradient);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 10;
    margin-top: 5px;
    display: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.suggestion-item:hover {
    background: var(--hover-gradient);
}

.suggestion-image {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--secondary-text);
    overflow: hidden;
}

.suggestion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-name {
    color: var(--primary-text);
    font-size: 1rem;
    margin-bottom: 4px;
}

.suggestion-brand {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* Perfumer Profile Styles */
.perfumer-profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
}

.perfumer-photo {
    flex: 0 0 120px;
}

.perfumer-photo img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.perfumer-info {
    flex: 1;
}

.perfumer-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    display: inline-block;
}

.perfumer-link {
    text-decoration: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.perfumer-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-image: var(--accent-gradient);
    transition: width 0.3s ease;
}

.perfumer-link:hover:after {
    width: 100%;
}

.perfumer-bio {
    color: var(--secondary-text);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .perfumer-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .perfumer-photo {
        margin-bottom: 15px;
    }
}

/* Fragrance image styles */
.fragrance-image {
    max-height: 300px;
    max-width: 100%;
    border: none;
    box-shadow: none;
    object-fit: contain;
}

/* Styles for category page */
.fragrance-item {
    margin-bottom: 20px;
    perspective: 1000px;
}

.fragrance-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.fragrance-link:hover {
    transform: translateY(-5px);
}

.fragrance-card {
    position: relative;
    background: var(--card-gradient);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 320px;
    display: flex;
    flex-direction: column;
}

.fragrance-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 123, 0, 0.3);
}

.fragrance-image-container {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.fragrance-image {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.fragrance-card:hover .fragrance-image {
    transform: scale(1.1);
}

.fragrance-basic-info {
    padding: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom,
            rgba(25, 33, 51, 0.7) 0%,
            rgba(13, 16, 24, 0.9) 100%);
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fragrance-brand {
    font-size: 0.85rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.fragrance-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 0;
}

.fragrance-hover-details {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 33, 51, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.fragrance-card:hover .fragrance-hover-details {
    opacity: 1;
    transform: translateY(0);
}

.hover-detail-item {
    margin-bottom: 15px;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 123, 0, 0.8);
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-text);
    line-height: 1.4;
}

.fragrance-person-preview {
    max-height: 4.2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .fragrance-card {
        height: 300px;
    }

    .fragrance-image-container {
        height: 180px;
    }

    .fragrance-image {
        max-height: 160px;
    }
}

@media (max-width: 480px) {
    .fragrance-card {
        height: 280px;
    }

    .fragrance-image-container {
        height: 160px;
    }

    .fragrance-image {
        max-height: 140px;
    }
}

/* Additional styles for category page */
.fragrances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
    gap: 25px;
    margin: 40px 0;
    min-height: 300px;
    contain: layout style;
    padding: 20px 50px;
}

/* Category / archetype list pagination (load more) */
.category-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 420px;
    margin: 0 auto 3rem;
    padding: 1.5rem 1.25rem 0;
}

.pagination-status {
    margin: 0;
    font-size: 0.95rem;
    color: var(--secondary-text);
    text-align: center;
    line-height: 1.5;
}

.pagination-shown,
.pagination-total {
    color: var(--primary-text);
    font-weight: 600;
}

.pagination-progress {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pagination-progress-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--accent-gradient);
    transition: width 0.35s ease;
}

.load-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 999px;
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    background: var(--accent-gradient);
    box-shadow: 0 8px 24px rgba(255, 123, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.load-more-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 119, 255, 0.3);
}

.load-more-button:active:not(:disabled) {
    transform: translateY(0);
}

.load-more-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.load-more-button.is-loading {
    pointer-events: none;
}

.load-more-button.has-error {
    background: linear-gradient(135deg, #c44, #933);
    box-shadow: none;
}

.pagination-complete {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-align: center;
    font-style: italic;
}

@media (max-width: 768px) {
    .category-pagination {
        max-width: 100%;
        padding: 1rem 1.25rem 0;
        margin-bottom: 2rem;
    }

    .load-more-button {
        width: 100%;
        min-width: 0;
    }

    .fragrances-grid {
        padding: 20px 1.25rem;
    }
}

.hidden-fragrance {
    display: none;
}

.fragrance-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-text);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.category-item {
    padding: 15px 20px;
    background: var(--card-gradient);
    border-radius: 8px;
    color: var(--primary-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-item:hover {
    background: var(--hover-gradient);
    transform: translateX(5px);
}

.note-preview {
    display: flex;
    align-items: center;
    gap: 15px;
}

.note-category-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.category-item:hover .note-category-image {
    transform: scale(1.1);
    border-color: rgba(255, 123, 0, 0.3);
}

@media (max-width: 768px) {
    .fragrances-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 20px 20px;
    }
}

@media (max-width: 480px) {
    .fragrances-grid {
        grid-template-columns: 1fr;
        padding: 20px 20px;
    }
}

/* Accords list styling - updated */
.accords-list {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 15px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    contain: content;
}

.accord-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
}

.accord-item:last-child {
    border-bottom: none;
}

.accord-item:hover {
    transform: translateX(5px);
}

.accord-item:hover .accord-label {
    color: var(--accent-color, #ff7b00);
}

.accord-item:hover .accord-bar {
    filter: brightness(1.2);
    box-shadow: 0 0 8px var(--accord-color, rgba(255, 123, 0, 0.5));
}

.accord-item:hover .accord-percentage {
    font-weight: bold;
    color: var(--primary-text);
}

/* Preset colors for accord items based on data-color-index */
.accord-item[data-color-index="0"] .accord-bar {
    background-color: #ff7b00;
}

.accord-item[data-color-index="1"] .accord-bar {
    background-color: #0077ff;
}

.accord-item[data-color-index="2"] .accord-bar {
    background-color: #7b00ff;
}

.accord-item[data-color-index="3"] .accord-bar {
    background-color: #00d084;
}

.accord-item[data-color-index="4"] .accord-bar {
    background-color: #f9a8d4;
}

.accord-item[data-color-index="5"] .accord-bar {
    background-color: #60a5fa;
}

.accord-item[data-color-index="6"] .accord-bar {
    background-color: #fcd34d;
}

.accord-item[data-color-index="7"] .accord-bar {
    background-color: #84cc16;
}

.accord-item[data-color-index="8"] .accord-bar {
    background-color: #a78bfa;
}

.accord-item[data-color-index="9"] .accord-bar {
    background-color: #4ade80;
}

/* Different widths for accord bars based on their order - steeper gradient */
.accord-item-1 .accord-bar {
    width: 100%;
}

.accord-item-2 .accord-bar {
    width: 85%;
}

.accord-item-3 .accord-bar {
    width: 70%;
}

.accord-item-4 .accord-bar {
    width: 60%;
}

.accord-item-5 .accord-bar {
    width: 50%;
}

.accord-item-6 .accord-bar {
    width: 40%;
}

.accord-item-7 .accord-bar {
    width: 35%;
}

.accord-item-8 .accord-bar {
    width: 30%;
}

.accord-item-9 .accord-bar {
    width: 25%;
}

.accord-item-10 .accord-bar {
    width: 20%;
}

.accord-item-11 .accord-bar {
    width: 15%;
}

.accord-item-12 .accord-bar {
    width: 10%;
}

.accord-label {
    font-size: 0.95rem;
    color: var(--primary-text);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accord-percentage {
    font-size: 0.8rem;
    color: var(--secondary-text);
    font-weight: normal;
}

.accord-bar {
    height: 6px;
    border-radius: 3px;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.accord-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: shimmer 2s infinite;
}

.accord-item:hover .accord-bar::after {
    animation-duration: 1s;
}

/* Brand link styling */
.brand-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.brand-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color, #ff7b00);
    transition: width 0.3s ease;
}

.brand-link:hover {
    color: var(--accent-color, #ff7b00);
}

.brand-link:hover:after {
    width: 100%;
}

/* Brand logo on fragrance hero (logos are full-color on white) */
.fragrance-brand .brand-link:has(.brand-logo)::after {
    display: none;
}

.fragrance-brand .brand-link:has(.brand-logo):hover {
    color: inherit;
}

.fragrance-brand .brand-logo {
    display: block;
    max-height: 52px;
    max-width: 190px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    filter: none;
    opacity: 1;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.fragrance-brand .brand-link:hover .brand-logo {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

/* Hover effects for accord items */
.accord-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    cursor: pointer;
}

.accord-item:hover {
    transform: translateX(5px);
}

.accord-item:hover .accord-label {
    color: var(--accent-color, #ff7b00);
}

.accord-item:hover .accord-bar {
    filter: brightness(1.2);
    box-shadow: 0 0 8px var(--accord-color, rgba(255, 123, 0, 0.5));
}

.accord-item:hover .accord-percentage {
    font-weight: bold;
    color: var(--primary-text);
}

.accord-bar {
    transition: filter 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.accord-item:hover .accord-bar::after {
    animation-duration: 1s;
}

/* Sex Tags */
.sex-info {
    margin: 5px 0 15px 0;
    display: flex;
    gap: 10px;
}

.sex-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.sex-tag svg {
    flex-shrink: 0;
}

.sex-men {
    color: #4d9de0;
    background-color: rgba(77, 157, 224, 0.1);
    border: 1px solid rgba(77, 157, 224, 0.2);
}

.sex-men:hover {
    background-color: rgba(77, 157, 224, 0.15);
    border: 1px solid rgba(77, 157, 224, 0.3);
    transform: translateY(-2px);
}

.sex-women {
    color: #e87ea1;
    background-color: rgba(232, 126, 161, 0.1);
    border: 1px solid rgba(232, 126, 161, 0.2);
}

.sex-women:hover {
    background-color: rgba(232, 126, 161, 0.15);
    border: 1px solid rgba(232, 126, 161, 0.3);
    transform: translateY(-2px);
}

.sex-unisex {
    color: #9c7ad8;
    background-color: rgba(156, 122, 216, 0.1);
    border: 1px solid rgba(156, 122, 216, 0.2);
}

.sex-unisex:hover {
    background-color: rgba(156, 122, 216, 0.15);
    border: 1px solid rgba(156, 122, 216, 0.3);
    transform: translateY(-2px);
}

/* End Sex Tags */

.quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--border-color-rgb), 0.1);
}

.quicklink {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-decoration: none;
    color: var(--primary-text);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    position: relative;
}

.quicklink:hover {
    background: var(--accent-gradient);
    transform: translateY(-2px);
    color: white;
}

.quicklink.active {
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    font-weight: 600;
    position: relative;
}

.quicklink.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    animation: pulseUnderline 2s infinite;
}

/* Navigation-specific active states */
.quicklink[data-target="details"].active {
    color: var(--primary-color);
}

.quicklink[data-target="details"].active:after {
    background: var(--primary-color);
}

.quicklink[data-target="notes"].active {
    color: var(--accent-color);
}

.quicklink[data-target="notes"].active:after {
    background: var(--accent-color);
}

.quicklink[data-target="character"].active {
    color: var(--secondary-color);
}

.quicklink[data-target="character"].active:after {
    background: var(--secondary-color);
}

.quicklink[data-target="similar"].active {
    color: var(--primary-color);
}

.quicklink[data-target="similar"].active:after {
    background: var(--primary-color);
}

/* Sticky header */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-header.visible {
    transform: translateY(0);
}

.sticky-brand-name {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.sticky-brand {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.sticky-name {
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-quicklinks {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.sticky-quicklinks .quicklink {
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .bottom-nav.visible {
        transform: translateY(0);
    }

    body {
        padding-bottom: 70px;
    }

    .bottom-quicklinks {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0 10px;
    }

    .bottom-quicklinks .quicklink {
        border-radius: 8px;
        padding: 8px;
        font-size: 0.75rem;
        text-align: center;
        flex: 1;
        margin: 0 3px;
    }

    .quicklink-icon {
        margin: 0 auto 4px;
    }
}

.bottom-quicklinks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.bottom-quicklinks .quicklink {
    position: relative;
    flex: 1;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

.bottom-quicklinks .quicklink.active {
    background: rgba(var(--primary-color-rgb), 0.15);
}

.bottom-quicklinks .quicklink.active:after {
    bottom: -10px;
    left: 25%;
    width: 50%;
}

.bottom-quicklinks .quicklink.active .quicklink-icon {
    transform: scale(1.15);
    color: var(--primary-color);
}

.quicklink-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Scroll visibility states */
.scroll-up .sticky-header {
    transform: translateY(-100%);
}

.scroll-up .bottom-nav {
    transform: translateY(0);
}

.scroll-down .sticky-header {
    transform: translateY(0);
}

.scroll-down .bottom-nav {
    transform: translateY(100%);
}

/* Section scroll margin */
section[id] {
    scroll-margin-top: 70px;
}

/* Pagination styles */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    gap: 15px;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--primary-text);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.page-link.current {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.page-link.prev,
.page-link.next {
    padding: 8px 16px;
    font-weight: 500;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    color: var(--secondary-text);
}

.pagination-info {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* Section separator */
.section-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 40px auto;
    width: 80%;
    max-width: 800px;
}

/* Character section */
.fragrance-character {
    padding: 5rem 2rem;
    position: relative;
    margin: 3rem 0;
    overflow: hidden;
}

.character-container {
    max-width: 1200px;
    margin: 0 auto;
}

.character-description {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 5rem;
    background: linear-gradient(135deg,
            rgba(var(--primary-color-rgb), 0.04),
            rgba(var(--card-background-rgb), 0.01));
    border-radius: 16px;
}

.character-lead-title {
    display: inline-block;
    color: var(--primary-text);
    font-size: 1.85rem;
    margin: 0 auto 1.25rem auto;
    font-weight: 600;
    position: relative;
    border-bottom: 2px solid var(--primary-color);
}

.character-description > p {
    font-size: 1.1rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
    max-width: 48em;
    margin: 0 auto;
    color: var(--primary-text);
}

/* Canonical archetype markdown (## title, ### sections) */
.archetype-markdown {
    max-width: 52rem;
    margin: 0 auto;
    color: var(--primary-text);
}

.archetype-markdown > h2:first-child {
    margin-top: 0;
}

.archetype-markdown h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0 0 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.archetype-markdown h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-text);
    margin: 2.25rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
    border-bottom: none;
    display: block;
}

.archetype-markdown h3:first-of-type {
    margin-top: 0.5rem;
}

.archetype-markdown p {
    font-size: 1.05rem;
    line-height: 1.85;
    letter-spacing: 0.01em;
    color: var(--primary-text);
    margin: 0 0 1.15rem;
    max-width: none;
}

.archetype-markdown p:last-child {
    margin-bottom: 0;
}

.archetype-markdown strong {
    color: #fff;
    font-weight: 600;
}

.archetype-markdown em {
    color: var(--secondary-text);
    font-style: italic;
}

.archetype-markdown a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.archetype-markdown a:hover {
    color: var(--primary-color);
}

.archetype-markdown ul,
.archetype-markdown ol {
    margin: 0 0 1.25rem 1.25rem;
    padding: 0;
    line-height: 1.75;
}

.archetype-markdown li {
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.archetype-markdown blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--accent-color);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
    color: var(--secondary-text);
    font-style: italic;
}

.archetype-markdown hr {
    border: none;
    height: 1px;
    margin: 2rem 0;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.archetype-markdown h3 + p {
    color: rgba(255, 255, 255, 0.92);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.pros-column,
.cons-column {
    position: relative;
    padding: 2.5rem;
    border-radius: 16px;
}

.pros-column {
    background: linear-gradient(135deg,
            rgba(var(--accent-color-rgb), 0.04),
            rgba(var(--card-background-rgb), 0.01));
}

.cons-column {
    background: linear-gradient(135deg,
            rgba(var(--secondary-color-rgb), 0.04),
            rgba(var(--card-background-rgb), 0.01));
}

.pros-column h3,
.cons-column h3 {
    display: inline-block;
    color: var(--primary-text);
    font-size: 1.6rem;
    margin-bottom: 1.75rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.pros-column h3 {
    border-bottom: 2px solid var(--accent-color);
}

.cons-column h3 {
    border-bottom: 2px solid var(--secondary-color);
}

.pros-list,
.cons-list {
    padding-left: 0.5rem;
}

.pros-list li,
.cons-list li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.8;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.pros-list li:last-child,
.cons-list li:last-child {
    margin-bottom: 0;
}

.pros-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.cons-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1;
}

.fictional-characters {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg,
            rgba(var(--primary-color-rgb), 0.04),
            rgba(var(--card-background-rgb), 0.01));
    border-radius: 16px;
}

.fictional-characters h3 {
    color: var(--primary-text);
    font-size: 1.85rem;
    margin-bottom: 3rem;
    font-weight: 600;
    position: relative;
    text-align: center;
    display: block;
}

.fictional-characters h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--primary-color);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.character-card {
    background: rgba(var(--card-background-rgb), 0.02);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--primary-color-rgb), 0.1);
    background: rgba(var(--card-background-rgb), 0.04);
}

.character-icon {
    font-size: 2.5rem;
    margin-bottom: 1.75rem;
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(var(--primary-color-rgb), 0.08),
            rgba(var(--accent-color-rgb), 0.04));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.character-card:hover .character-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg,
            rgba(var(--primary-color-rgb), 0.12),
            rgba(var(--accent-color-rgb), 0.08));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.character-details {
    width: 100%;
    padding: 0.5rem;
}

.character-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-text);
    position: relative;
    display: inline-block;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.character-name:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.character-card:hover .character-name {
    color: var(--primary-color);
}

.character-card:hover .character-name:after {
    width: 60px;
}

.character-from {
    font-size: 0.95rem;
    color: var(--secondary-text);
    font-style: italic;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.character-reason {
    font-size: 1rem;
    color: var(--primary-text);
    line-height: 1.8;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    letter-spacing: 0.01em;
}

.character-card:hover .character-reason {
    opacity: 1;
}

/* Improved character section readability */

.character-card {
    margin-bottom: 1.5rem;
}

.pros-list li,
.cons-list li {
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.7;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.pros-list li:last-child,
.cons-list li:last-child {
    margin-bottom: 0;
}

.character-reason {
    font-size: 1rem;
    color: var(--primary-text);
    line-height: 1.7;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    letter-spacing: 0.01em;
    max-width: 25em;
    margin: 0 auto;
}

.character-from {
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-style: italic;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.character-details {
    width: 100%;
    padding: 0.5rem 0;
}

/* Lazy loading image styles (img[data-src] without .lazy-loaded) */
img[data-src]:not(.lazy-loaded) {
    opacity: 0;
    transition: opacity 0.3s ease-in;
    background-color: #f5f5f5;
}

img[data-src].lazy-loaded,
img.lazy-loaded {
    opacity: 1;
}

.note-image.loading,
.fragrance-image.loading,
.note-category-image.loading {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: shimmerEffect 1.5s infinite;
}

/* Animations */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }

    20%,
    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.15);
        opacity: 0.8;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes shimmerEffect {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes fadeInTitle {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px) rotateX(10deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes pulseUnderline {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Media queries */
@media (max-width: 1024px) {
    .fragrance-hero {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .fragrance-gallery,
    .fragrance-info {
        max-width: 100%;
    }

    .fragrance-info {
        padding-top: 0;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .related-fragrances--full .similar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    header,
    .fragrance-hero,
    .fragrance-details,
    .fragrance-notes,
    .related-fragrances,
    .footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .back-btn {
        left: 20px;
    }

    .details-grid,
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .fragrance-name {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

}

@media (max-width: 480px) {

    .details-grid,
    .similar-grid {
        grid-template-columns: 1fr;
    }

    .related-fragrances--full .similar-grid {
        grid-template-columns: 1fr;
    }

    .fragrance-name {
        font-size: 2rem;
    }

    .fragrance-stats {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

}

/* Category description styles */
.category-description {
    margin: 2rem 0 3rem;
    padding: 2rem;
    border-radius: 12px;
    background-image: linear-gradient(to right, rgba(255, 123, 0, 0.05), rgba(0, 119, 255, 0.05));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.category-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, #ff7b00, #0077ff);
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2px;
}

.note-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 4px;
}

.category-icon.brand-icon {
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.category-icon.brand-icon .brand-logo {
    display: block;
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    border-radius: 0;
    filter: none;
    opacity: 1;
    background: transparent;
}

.category-details {
    flex-grow: 1;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    background-image: linear-gradient(90deg, #ff7b00, #0077ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
    margin-top: 0;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background-image: linear-gradient(90deg, #ff7b00, #0077ff);
    transition: width 0.3s ease;
}

.category-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
}

.category-related {
    margin: 0 0 2.5rem;
    padding: 1.75rem 2rem;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(255, 123, 0, 0.06) 0%,
        rgba(0, 119, 255, 0.05) 50%,
        rgba(26, 26, 42, 0.4) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.category-related__title {
    font-size: 1.45rem;
    font-weight: 600;
    margin: 0 0 0.65rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-related__lead {
    margin: 0 0 1.35rem;
    max-width: 46rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

.category-related__group {
    margin-bottom: 1.35rem;
}

.category-related__group:last-child {
    margin-bottom: 0;
}

.category-related__group-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary-text);
    opacity: 0.85;
}

.category-related__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-related__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-related__chip:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 123, 0, 0.45);
    background: rgba(255, 123, 0, 0.1);
    text-decoration: none;
}

.category-related__chip.is-active {
    border-color: rgba(255, 123, 0, 0.65);
    background: linear-gradient(
        135deg,
        rgba(255, 123, 0, 0.22) 0%,
        rgba(0, 119, 255, 0.15) 100%
    );
    box-shadow: 0 4px 14px rgba(255, 123, 0, 0.15);
}

.category-related__chip--all.is-active .category-related__chip-name {
    color: var(--primary-color);
}

.category-active-filter {
    max-width: 1280px;
    margin: 0 auto 1.25rem;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--secondary-text);
    background: rgba(255, 123, 0, 0.08);
    border: 1px solid rgba(255, 123, 0, 0.25);
}

.category-active-filter a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.category-active-filter a:hover {
    text-decoration: underline;
}

.category-brand-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.category-brand-filter__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.category-brand-filter__select {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 100%;
    padding: 0.55rem 2rem 0.55rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.35);
    color: var(--primary-text);
    font-size: 0.95rem;
    cursor: pointer;
}

.category-brand-filter__select:focus {
    outline: none;
    border-color: rgba(255, 123, 0, 0.55);
    box-shadow: 0 0 0 2px rgba(255, 123, 0, 0.15);
}

.category-brand-links__title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--primary-text);
    opacity: 0.85;
}

.category-brand-links__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-brand-links__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.category-brand-links__link:hover {
    border-color: rgba(255, 123, 0, 0.4);
    background: rgba(255, 123, 0, 0.08);
    text-decoration: none;
}

.category-brand-links__logo {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}

.category-brand-links__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-brand-links__count {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary-text);
}

.category-related__chip-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary-text);
    text-transform: capitalize;
}

.category-related__chip-count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary-text);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.25);
}

/* Category intersection blocks — layout variants: houses, noses, notes, accords */
.category-cross {
    --cross-accent: #ff7b00;
    --cross-accent-soft: rgba(255, 123, 0, 0.14);
    --cross-surface: rgba(26, 26, 42, 0.72);
    margin: 0 auto 2rem;
    max-width: 1280px;
    padding: 1.75rem 2rem;
    border-radius: 16px;
    background: var(--cross-surface);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.category-cross--theme-ember {
    --cross-accent: #ff7b00;
    --cross-accent-soft: rgba(255, 123, 0, 0.16);
    background: linear-gradient(155deg, rgba(255, 123, 0, 0.1) 0%, var(--cross-surface) 55%);
}

.category-cross--theme-ocean {
    --cross-accent: #3eb8ff;
    --cross-accent-soft: rgba(62, 184, 255, 0.16);
    background: linear-gradient(155deg, rgba(62, 184, 255, 0.09) 0%, var(--cross-surface) 55%);
}

.category-cross--theme-violet {
    --cross-accent: #b48cff;
    --cross-accent-soft: rgba(180, 140, 255, 0.16);
    background: linear-gradient(155deg, rgba(180, 140, 255, 0.1) 0%, var(--cross-surface) 55%);
}

.category-cross--theme-forest {
    --cross-accent: #5fd38d;
    --cross-accent-soft: rgba(95, 211, 141, 0.16);
    background: linear-gradient(155deg, rgba(95, 211, 141, 0.09) 0%, var(--cross-surface) 55%);
}

.category-cross--layout-houses {
    border-top: 3px solid var(--cross-accent);
}

.category-cross--layout-noses {
    border-radius: 20px 20px 16px 16px;
    border-left: 3px solid var(--cross-accent);
}

.category-cross--layout-notes {
    border-radius: 14px;
    border-right: 3px solid var(--cross-accent);
}

.category-cross--layout-accords {
    border-bottom: 3px solid var(--cross-accent);
}

.category-cross--layer-top {
    --cross-accent: #7dd87a;
    --cross-accent-soft: rgba(125, 216, 122, 0.18);
}

.category-cross--layer-middle {
    --cross-accent: #f08ab0;
    --cross-accent-soft: rgba(240, 138, 176, 0.18);
}

.category-cross--layer-base {
    --cross-accent: #d4a574;
    --cross-accent-soft: rgba(212, 165, 116, 0.2);
}

.category-cross--partners.category-cross--layout-noses {
    background: linear-gradient(
        180deg,
        rgba(62, 184, 255, 0.08) 0%,
        var(--cross-surface) 40%
    );
}

.category-cross--partners.category-cross--layout-houses {
    background: linear-gradient(
        180deg,
        rgba(255, 123, 0, 0.08) 0%,
        var(--cross-surface) 40%
    );
}

.category-cross__title {
    margin: 0 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-text);
}

.category-cross--layout-accords .category-cross__title {
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.category-cross--layout-houses .category-cross__title {
    text-align: center;
}

.category-cross--layout-noses .category-cross__title {
    padding-left: 0.35rem;
}

.category-cross__lead {
    margin: 0 0 1.25rem;
    max-width: 42rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--secondary-text);
}

.category-cross--layout-houses .category-cross__lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.category-cross--cols-6 .category-cross__grid:not(.category-cross__grid--accords) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-cross--cols-5 .category-cross__grid:not(.category-cross__grid--accords) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-cross__grid {
    display: grid;
    gap: 0.85rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-cross__grid--accords {
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.category-cross__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--cross-accent);
    background: var(--cross-accent-soft);
}

/* Houses — brand logos on white tiles */
.category-cross__tile--house {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 1.1rem 0.65rem;
    border-radius: 14px;
    text-decoration: none;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-cross__tile--house:hover {
    transform: translateY(-4px);
    border-color: var(--cross-accent);
    box-shadow: 0 10px 24px var(--cross-accent-soft);
    text-decoration: none;
}

.category-cross__tile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.category-cross__tile-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Noses — circular perfumer portraits */
.category-cross__tile--nose {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0.5rem;
    border-radius: 16px;
    text-decoration: none;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-cross__tile--nose:hover {
    transform: scale(1.03);
    background: var(--cross-accent-soft);
    text-decoration: none;
}

.category-cross__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--cross-accent), transparent 70%);
    overflow: hidden;
}

.category-cross__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(26, 26, 42, 0.9);
}

.category-cross__avatar .category-cross__fallback {
    border-radius: 50%;
}

/* Notes — horizontal note strips */
.category-cross__tile--note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid var(--cross-accent);
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-cross__tile--note:hover {
    transform: translateX(4px);
    background: var(--cross-accent-soft);
    text-decoration: none;
}

.category-cross__note-thumb {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.category-cross__note-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-cross__note-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

/* Accords — ranked bars */
.category-cross__rank {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 3.1rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-cross__rank:hover {
    border-color: var(--cross-accent);
    transform: translateX(3px);
    text-decoration: none;
}

.category-cross__rank-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--bar-pct, 0%);
    max-width: 100%;
    background: linear-gradient(
        90deg,
        var(--cross-accent-soft) 0%,
        transparent 100%
    );
    pointer-events: none;
}

.category-cross__rank-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    width: 100%;
}

.category-cross__tile-label {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-text);
}

.category-cross__tile-meta {
    font-size: 0.72rem;
    color: var(--secondary-text);
}

.category-cross__grid--accords .category-cross__tile-meta {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
    .category-cross--cols-6 .category-cross__grid:not(.category-cross__grid--accords),
    .category-cross--cols-5 .category-cross__grid:not(.category-cross__grid--accords) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .related-fragrances--full .similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .category-cross {
        padding: 1.25rem 1.1rem;
        margin-bottom: 1.5rem;
    }

    .related-fragrances--full .similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-cross--cols-6 .category-cross__grid:not(.category-cross__grid--accords),
    .category-cross--cols-5 .category-cross__grid:not(.category-cross__grid--accords) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .category-cross__tile-logo {
        width: 68px;
        height: 68px;
    }

    .category-cross__avatar {
        width: 64px;
        height: 64px;
    }
}

.category-content:hover .category-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(255, 123, 0, 0.2);
}

.category-content:hover .category-title:after {
    width: 100%;
}

@media (max-width: 768px) {
    .category-content {
        flex-direction: column;
        text-align: center;
    }

    .category-description {
        padding: 1.5rem;
        margin: 1.5rem 0 2rem;
    }

    .category-icon {
        margin: 0 auto 1rem;
    }

    .category-title:after {
        left: 50%;
        transform: translateX(-50%);
    }

    .category-text {
        margin: 0 auto;
    }
}

/* Character section mobile fixes */
@media (max-width: 768px) {
    .fragrance-character {
        padding: 3rem 1.5rem;
    }

    .character-description,
    .pros-column,
    .cons-column,
    .fictional-characters {
        padding: 1.5rem;
    }

    .character-lead-title,
    .fictional-characters h3 {
        font-size: 1.5rem;
    }

    .archetype-markdown h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .archetype-markdown h3 {
        font-size: 1.2rem;
        margin-top: 1.75rem;
    }

    .archetype-markdown p {
        font-size: 1rem;
    }

    .pros-column h3,
    .cons-column h3 {
        font-size: 1.3rem;
    }

    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .characters-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .fragrance-character {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .character-description,
    .pros-column,
    .cons-column,
    .fictional-characters {
        padding: 1.25rem;
    }

    .character-description > p,
    .archetype-markdown p,
    .character-reason {
        font-size: 0.95rem;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .character-card {
        padding: 1.5rem;
    }
}

/* Form elements and input for mobile */
@media (max-width: 768px) {
    .search-input {
        font-size: 1rem;
        padding: 14px 20px;
    }

    .suggestion-item {
        padding: 10px 15px;
    }

    .suggestion-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    .suggestion-name {
        font-size: 0.9rem;
    }

    .suggestion-brand {
        font-size: 0.8rem;
    }
}

/* Fixing touch targets on mobile */
@media (max-width: 480px) {

    button,
    .tab-btn,
    .quicklink,
    .page-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-link {
        padding: 8px 12px;
    }

    .accord-item {
        padding: 10px 0;
    }

    .accord-label {
        min-height: 24px;
    }
}

/* Mobile typography and font sizes */
@media (max-width: 768px) {
    .logo {
        font-size: 1.75rem;
    }

    .site-logo__img {
        height: 34px;
    }

    .site-logo__img--mark {
        height: 40px;
        width: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .collection-tag {
        font-size: 0.65rem;
    }

    .fragrance-brand {
        font-size: 1.1rem;
    }

    .fragrance-name {
        font-size: 2.5rem;
    }

    .fragrance-description {
        font-size: 0.95rem;
    }

    .detail-title {
        font-size: 1rem;
    }

    .detail-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .site-logo__img {
        height: 30px;
    }

    .site-logo__img--mark {
        height: 36px;
        width: 36px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .fragrance-brand {
        font-size: 1rem;
    }

    .fragrance-name {
        font-size: 2rem;
    }

    .fragrance-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    h1,
    h2,
    h3 {
        line-height: 1.3;
    }
}

/* Fixed position elements z-index fixes */
header,
.back-btn,
.sticky-header,
.bottom-nav {
    z-index: 1000;
}

/* Ensure transparency works correctly */
.back-btn {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Better tap targets for mobile */
.back-btn {
    padding: 10px 16px;
}

@media (max-width: 480px) {
    .back-btn {
        top: 70px;
        padding: 8px 12px;
        font-size: 0.7rem;
    }
}

/* Sticky header - hide on mobile */
@media (max-width: 768px) {
    .sticky-header {
        display: none;
    }
}

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Fix potential overflow issues in various components */
@media (max-width: 768px) {

    .fragrance-meta,
    .fragrance-stats,
    .tabs-header,
    .quicklinks,
    .notes-panel__grid,
    .pagination {
        max-width: 100%;
    }

    /* Ensure text doesn't overflow containers */
    .fragrance-name,
    .fragrance-brand,
    .detail-title,
    .stat-value,
    .stat-label,
    .category-title,
    .note-chip__name,
    .section-title,
    .tab-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Make sure all paddings don't cause overflow */
    .fragrance-hero,
    .fragrance-details,
    .fragrance-notes,
    .related-fragrances,
    .footer,
    .category-description {
        box-sizing: border-box;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fix any fixed width elements */
    img,
    video,
    iframe {
        max-width: 100%;
        height: auto;
    }

    /* Ensure tables don't cause overflow */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* Additional fixes for horizontal scroll issues */
@media (max-width: 480px) {

    /* Fix fragrances grid at smallest sizes */
    .fragrances-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ensure fragrance cards don't cause overflow */
    .fragrance-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure accord items don't cause overflow */
    .accord-label {
        font-size: 0.9rem;
    }

    .accord-percentage {
        font-size: 0.75rem;
    }

    /* Make sure sex tags don't overflow */
    .sex-info {
        flex-wrap: wrap;
        gap: 5px;
    }

    /* Fix category icons and descriptions */
    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Fix tabs overflow */
@media (max-width: 768px) {
    .tabs-header {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE & Edge */
        -webkit-overflow-scrolling: touch;
        margin-bottom: 5px;
        padding-bottom: 10px;
    }

    .tabs-header::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Ensure tab indicator position works properly */
    .tab-btn.active:after {
        bottom: -10px;
    }
}

/* Fix common mobile issues */
@media (max-width: 480px) {

    /* Fix potential border radius overflow issues */
    .collection-tag,
    .stat,
    .note-chip__link,
    .category-icon,
    .quicklink,
    .page-link,
    .sex-tag {
        border-radius: 8px;
    }

    /* Fix detail cards which might be too wide */
    .detail-card {
        padding: 15px;
    }

    /* Fix content width to avoid overflow */
    p,
    li,
    .detail-text,
    .category-description,
    .character-reason {
        max-width: 100%;
    }
}

/* Fix character mobile view */
@media (max-width: 768px) {
    .character-container {
        max-width: 100%;
        padding: 0;
    }
}

/* Updated header behavior for mobile */
@media (max-width: 768px) {

    /* Completely remove sticky header from DOM flow on mobile */
    .sticky-header {
        display: none !important;
        /* Use !important to override any other styles */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    /* Ensure main header has proper scroll behavior */
    header {
        transition: transform 0.3s ease;
    }

    /* Hide header on scroll down, show on scroll up */
    .scroll-down header {
        transform: translateY(-100%);
    }

    .scroll-up header {
        transform: translateY(0);
    }

    /* Ensure bottom nav is always visible and doesn't move on mobile */
    .bottom-nav {
        transform: translateY(0) !important;
        /* Always show bottom nav regardless of scroll direction */
        transition: opacity 0.3s ease;
        /* Smooth transition for any opacity changes */
    }

    /* Override any existing transforms for bottom nav in scroll states */
    .scroll-down .bottom-nav,
    .scroll-up .bottom-nav {
        transform: translateY(0) !important;
        /* Double ensure bottom nav stays in place */
    }
}

/* Ensure any existing header scroll rules are overridden for desktop */
@media (min-width: 769px) {
    header {
        transform: translateY(0) !important;
        /* Always show the header on desktop */
    }
}

/* Additional Fragrance Page Styles */
.img-fluid {
    background: none !important;
}

.fragrance-meta-info {
    display: flex;
    gap: 1.5rem;
    margin: 0.75rem 0 1.25rem;
    flex-wrap: wrap;
}

/* Styles for the top navigation quicklinks */
.top-quicklinks {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    flex-wrap: wrap;
}

.top-quicklinks .quicklink {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-quicklinks .quicklink:hover {
    background-color: #0077ff;
    color: #fff;
    border-color: #0077ff;
}

.meta-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
}

.fragrance-type {
    background-color: #ff7b00;
    color: #ffffff;
}

.year-item {
    background-color: #0077ff;
    color: #ffffff;
}

.meta-label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: inherit;
}

.meta-value {
    font-weight: 500;
    color: inherit;
}

/* Paintings Section Styles */
.fragrance-paintings {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.paintings-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    font-style: italic;
}

.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.painting-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.painting-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.painting-figure {
    height: 220px;
    overflow: hidden;
    margin: 0;
    position: relative;
    background-color: #f5f5f5;
}

.painting-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.painting-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #999;
}

.painting-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.painting-title {
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.painting-artist {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.painting-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .paintings-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .painting-figure {
        height: 180px;
    }
}

/* Painting Tab Styles */
.painting-tab-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.painting-tab-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.painting-tab-info {
    padding: 0.5rem 0;
}

.painting-artist {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.painting-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Custom Tab Title Styling */
.tab-title {
    background-image: linear-gradient(270deg, #ff7b00, #0077ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-block;
}


/* Perfumer category index */
.perfumer-catalog-intro {
    max-width: 960px;
    margin: 0 auto 1.5rem;
    padding: 0 4%;
}

.perfumer-catalog-intro__title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-text);
}

.perfumer-catalog-intro__title {
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-text);
}

.perfumer-catalog-intro__text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--secondary-text);
    text-align: center;
}

.perfumer-fragrances-heading,
.note-fragrances-heading {
    max-width: 1280px;
    margin: 0 auto 1.25rem;
    padding: 0 4%;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
}

.perfumer-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto 3rem;
    padding: 0 4%;
}

.perfumer-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.perfumer-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 123, 0, 0.35);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.perfumer-card__avatar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 123, 0, 0.25);
}

.perfumer-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfumer-card__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(255, 123, 0, 0.12);
}

.perfumer-card__body {
    min-width: 0;
    flex: 1;
}

.perfumer-card__name {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-text);
    margin-bottom: 0.35rem;
}

.perfumer-card__summary {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--secondary-text);
}

.perfumer-card__count {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--primary-text);
    font-weight: 500;
}

.perfumer-card__brands::before {
    content: 'Houses: ';
    color: var(--secondary-text);
    font-weight: 400;
}

@media (max-width: 480px) {
    .perfumer-catalog {
        grid-template-columns: 1fr;
    }
}

/* Brand category index */
.category-page--brand-index .section-title {
    margin-bottom: 1.5rem;
}

.brand-catalog-intro {
    max-width: 42rem;
    margin: 0 auto 2rem;
    padding: 0 4%;
    text-align: center;
}

.brand-catalog-intro__title {
    margin: 0 0 0.75rem;
    font-family: var(--heading-font);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-text);
}

.brand-catalog-intro__text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--secondary-text);
}

.brand-catalog {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto 3rem;
    padding: 0 4%;
}

.brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100%;
    gap: 0.85rem;
    padding: 1.25rem 1rem 1.15rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--accent-color) 0%,
        rgba(var(--secondary-color-rgb), 0.85) 100%
    );
    opacity: 0.85;
    transition: height 0.22s ease, opacity 0.22s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-color-rgb), 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    text-decoration: none;
}

.brand-card:hover::before {
    height: 4px;
    opacity: 1;
}

.brand-card__logo-wrap {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    padding: 0.5rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.brand-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-card__monogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--heading-font);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--accent-color);
    background: linear-gradient(
        145deg,
        rgba(var(--accent-color-rgb), 0.12),
        rgba(var(--secondary-color-rgb), 0.1)
    );
    border-radius: 10px;
}

.brand-card__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

.brand-card__name {
    display: block;
    font-family: var(--heading-font);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-text);
    margin-bottom: 0.35rem;
}

.brand-card__summary {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--secondary-text);
}

.brand-card__count {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--primary-text);
    font-weight: 500;
}

.brand-card__perfumers {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.brand-card__perfumers::before {
    content: 'Noses: ';
    color: var(--secondary-text);
    font-weight: 400;
}

@media (max-width: 1100px) {
    .brand-catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .brand-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .brand-catalog {
        grid-template-columns: 1fr;
    }

    .brand-card__logo-wrap {
        width: 72px;
        height: 72px;
    }
}

/* Accord category index */
.category-page--accord-index .section-title {
    margin-bottom: 1.5rem;
}

.accord-catalog-intro {
    max-width: 42rem;
    margin: 0 auto 2rem;
    padding: 0 4%;
    text-align: center;
}

.accord-catalog-intro__title {
    margin: 0 0 0.75rem;
    font-family: var(--heading-font);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-text);
}

.accord-catalog-intro__text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--secondary-text);
}

.accord-catalog {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto 3rem;
    padding: 0 4%;
}

.accord-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 100%;
    gap: 0.75rem;
    padding: 1.2rem 1rem 1rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.accord-card[data-color-index="0"] { --accord-accent: #ff7b00; }
.accord-card[data-color-index="1"] { --accord-accent: #0077ff; }
.accord-card[data-color-index="2"] { --accord-accent: #7b00ff; }
.accord-card[data-color-index="3"] { --accord-accent: #00d084; }
.accord-card[data-color-index="4"] { --accord-accent: #f9a8d4; }
.accord-card[data-color-index="5"] { --accord-accent: #60a5fa; }
.accord-card[data-color-index="6"] { --accord-accent: #fcd34d; }
.accord-card[data-color-index="7"] { --accord-accent: #84cc16; }
.accord-card[data-color-index="8"] { --accord-accent: #a78bfa; }
.accord-card[data-color-index="9"] { --accord-accent: #4ade80; }

.accord-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accord-accent) 45%, transparent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    text-decoration: none;
}

.accord-card__swatch {
    position: relative;
    z-index: 1;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999px;
    background: var(--accord-accent);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--accord-accent) 22%, transparent),
        0 8px 20px color-mix(in srgb, var(--accord-accent) 35%, transparent);
}

.accord-card__body {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
}

.accord-card__name {
    display: block;
    font-family: var(--heading-font);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-text);
    margin-bottom: 0.35rem;
}

.accord-card__summary {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--secondary-text);
}

.accord-card__count {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--primary-text);
    font-weight: 500;
}

.accord-card__brands {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.accord-card__brands::before {
    content: 'Houses: ';
    color: var(--secondary-text);
    font-weight: 400;
}

.accord-card__meter {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 5px;
    margin-top: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.accord-card__meter-fill {
    display: block;
    height: 100%;
    width: var(--bar-pct, 20%);
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--accord-accent) 0%,
        color-mix(in srgb, var(--accord-accent) 55%, transparent) 100%
    );
    transition: width 0.25s ease;
}

.accord-card:hover .accord-card__meter-fill {
    filter: brightness(1.08);
}

@media (max-width: 1100px) {
    .accord-catalog {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .accord-catalog {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .accord-catalog {
        grid-template-columns: 1fr;
    }
}


/* Perfumer detail page */
.category-content--perfumer {
    align-items: flex-start;
    gap: 1.75rem;
}

.perfumer-profile-hero__avatar {
    flex-shrink: 0;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 3px solid rgba(255, 123, 0, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.perfumer-profile-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perfumer-profile-hero__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(255, 123, 0, 0.12);
}

.perfumer-profile-hero__details {
    flex: 1;
    min-width: 0;
}

.perfumer-profile-hero__meta {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--secondary-text);
}

.perfumer-profile-hero__meta-sep {
    margin: 0 0.35rem;
    opacity: 0.5;
}

.perfumer-profile-hero__bio {
    margin: 0;
    max-width: 42rem;
}

.perfumer-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.25rem;
    max-width: 1280px;
    margin: 0 auto 2.5rem;
    padding: 0 4%;
}

.perfumer-overview__panel {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.perfumer-overview__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-text);
}

.perfumer-overview__lead {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--secondary-text);
}

.perfumer-overview__brand-list,
.perfumer-overview__accord-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.perfumer-overview__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.55rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.perfumer-overview__brand:hover {
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}

.perfumer-overview__brand-logo {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfumer-overview__brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.perfumer-overview__brand-name {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-text);
}

.perfumer-overview__brand-count {
    font-size: 0.82rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--secondary-text);
}

.perfumer-overview__accord {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.35rem;
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.35rem;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.perfumer-overview__accord:hover {
    border-color: rgba(255, 123, 0, 0.3);
    text-decoration: none;
}

.perfumer-overview__accord-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--bar-pct, 0%);
    background: linear-gradient(90deg, rgba(255, 123, 0, 0.14), transparent);
    pointer-events: none;
}

.perfumer-overview__accord-body {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    align-items: baseline;
}

.perfumer-overview__accord-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--primary-text);
}

.perfumer-overview__accord-count {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: var(--secondary-text);
}

.category-page--perfumer-detail .perfumer-overview {
    margin-bottom: 2.5rem;
}

.category-page--perfumer-detail .perfumer-overview + .category-cross,
.category-page--perfumer-detail .perfumer-overview + .category-related {
    margin-top: 0.5rem;
}

.category-page--perfumer-detail .category-cross {
    clear: both;
}

.category-page--perfumer-detail .fragrances-grid {
    clear: both;
    margin-top: 2rem;
}

/* Archetype detail page (reuses perfumer overview layout) */
.category-content--archetype .archetype-profile-hero__avatar {
    background: linear-gradient(
        145deg,
        rgba(255, 123, 0, 0.18),
        rgba(0, 119, 255, 0.14)
    );
    border-color: rgba(0, 119, 255, 0.35);
}

.archetype-profile-hero__glyph {
    font-size: 3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.archetype-profile-hero__tagline {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--accent-color);
}

.archetype-profile-hero__description {
    max-width: 44rem;
}

.archetype-profile-hero__bullets {
    margin: 0.85rem 0 0;
    padding-left: 1.15rem;
    max-width: 44rem;
    color: var(--secondary-text);
    font-size: 0.92rem;
    line-height: 1.55;
}

.archetype-profile-hero__bullets li + li {
    margin-top: 0.35rem;
}

.category-page--archetype-detail .perfumer-overview,
.category-page--archetype-detail .archetype-overview {
    margin-bottom: 2.5rem;
}

.category-page--archetype-detail .perfumer-overview + .category-cross,
.category-page--archetype-detail .perfumer-overview + .category-related {
    margin-top: 0.5rem;
}

.category-page--archetype-detail .category-cross {
    clear: both;
}

.category-page--archetype-detail .fragrances-grid,
.category-page--archetype-detail .archetype-fragrances-heading {
    clear: both;
}

.category-page--archetype-detail .archetype-fragrances-heading {
    max-width: 1280px;
    margin: 2rem auto 1.25rem;
    padding: 0 4%;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-text);
}

.category-page--archetype-detail .fragrances-grid {
    margin-top: 0;
}

@media (max-width: 900px) {
    .perfumer-overview {
        grid-template-columns: 1fr;
    }

    .category-content--perfumer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .perfumer-profile-hero__avatar {
        width: 148px;
        height: 148px;
    }

    .perfumer-profile-hero__bio {
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Home page --- */
.home-page .home-hero {
    height: auto;
    min-height: 0;
    padding: 4.5rem 4% 3.5rem;
    background: linear-gradient(
        165deg,
        rgba(255, 123, 0, 0.11) 0%,
        rgba(0, 119, 255, 0.07) 42%,
        transparent 72%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.home-hero-mark {
    margin: 0 auto 1.35rem;
}

.home-hero-mark__img {
    display: block;
    width: clamp(88px, 20vw, 132px);
    height: auto;
    margin: 0 auto;
}

.home-page .home-hero .home-hero-content {
    margin-bottom: 0;
}

.home-hero-eyebrow {
    margin: 0 0 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.home-page .home-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.15rem);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.home-page .home-hero .hero-description {
    font-size: 1.15rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.home-hero-search {
    margin-top: 2.25rem;
}

.home-search-label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-text);
}

.home-hero-hint {
    margin: 0.9rem 0 0;
    font-size: 0.88rem;
    color: var(--secondary-text);
}

.home-hero-hint em {
    font-style: normal;
    font-weight: 500;
    color: var(--primary-text);
}

.home-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 4%;
}

.home-section-title {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: left;
    width: auto;
}

.home-lead {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.home-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.home-method {
    max-width: 1040px;
}

.home-section-title--plain {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: var(--primary-text);
}

.home-method__grid {
    margin-top: 1.5rem;
}

.home-method-card {
    cursor: default;
}

.home-method-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.09);
}

.home-method-card .home-feature-card__text em {
    color: var(--primary-text);
    font-style: italic;
}

.home-wayfind {
    max-width: 720px;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

.home-wayfind__intro {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-wayfind__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.home-wayfind__lead {
    margin: 0.75rem 0 0;
    max-width: 34rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--secondary-text);
}

.home-wayfind__list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-wayfind__row {
    display: grid;
    grid-template-columns: 3.25rem 1fr auto;
    align-items: center;
    gap: 1.25rem 1.5rem;
    padding: 1.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.22s ease, background 0.22s ease;
}

.home-wayfind__row:first-child {
    padding-top: 0;
}

.home-wayfind__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-wayfind__row:hover {
    padding-left: 0.35rem;
}

.home-wayfind__row:hover .home-wayfind__title {
    color: var(--primary-color);
}

.home-wayfind__row:hover .home-wayfind__arrow {
    color: #ff9a3d;
    transform: translateX(4px);
}

.home-wayfind__row--highlight .home-wayfind__index {
    color: #ff9a3d;
}

.home-wayfind__index {
    font-family: var(--heading-font);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
}

.home-wayfind__body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.home-wayfind__title {
    font-family: var(--heading-font);
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--primary-text);
    transition: color 0.2s ease;
}

.home-wayfind__desc {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--secondary-text);
}

.home-wayfind__arrow {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--accent-color);
    transition: transform 0.22s ease, color 0.2s ease;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

.home-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.65rem 1.5rem 1.4rem;
    border-radius: 16px;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.55;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, transparent 40%, transparent 100%);
}

.home-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.home-feature-card__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-feature-card__icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.home-feature-card__label {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-text);
}

.home-feature-card__title {
    position: relative;
    z-index: 1;
    font-size: 1.28rem;
    margin-bottom: 0.55rem;
    color: var(--primary-text);
    font-family: var(--heading-font);
    font-weight: 600;
}

.home-feature-card__text {
    position: relative;
    z-index: 1;
    flex: 1;
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--secondary-text);
    margin: 0 0 1.1rem;
}

.home-feature-card__cta {
    position: relative;
    z-index: 1;
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.home-feature-card:hover .home-feature-card__cta {
    color: #ff9a3d;
}

.home-feature-card--brands {
    --feature-accent: var(--primary-color);
}

.home-feature-card--brands::before {
    background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(var(--primary-color-rgb), 0.22), transparent 65%);
}

.home-feature-card--brands .home-feature-card__icon {
    color: var(--primary-color);
    border-color: rgba(var(--primary-color-rgb), 0.35);
}

.home-feature-card--notes {
    --feature-accent: var(--accent-color);
}

.home-feature-card--notes::before {
    background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(var(--accent-color-rgb), 0.2), transparent 65%);
}

.home-feature-card--notes .home-feature-card__icon {
    color: var(--accent-color);
    border-color: rgba(var(--accent-color-rgb), 0.35);
}

.home-feature-card--perfumers {
    --feature-accent: var(--secondary-color);
}

.home-feature-card--perfumers::before {
    background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(var(--secondary-color-rgb), 0.22), transparent 65%);
}

.home-feature-card--perfumers .home-feature-card__icon {
    color: #b57bff;
    border-color: rgba(var(--secondary-color-rgb), 0.35);
}

.home-feature-card--archetypes::before {
    background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(var(--primary-color-rgb), 0.18), rgba(var(--accent-color-rgb), 0.12) 45%, transparent 70%);
}

.home-feature-card--archetypes .home-feature-card__icon {
    color: #ff9a3d;
    border-color: rgba(255, 123, 0, 0.35);
}

.home-feature-card--brands:hover,
.home-feature-card--notes:hover,
.home-feature-card--perfumers:hover,
.home-feature-card--archetypes:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.home-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.home-link-all {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.home-link-all:hover {
    color: var(--primary-color);
}

.archetype-chip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.archetype-chip-grid--wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4% 3rem;
}

.archetype-chip {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 100%;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.08), rgba(0, 119, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.archetype-chip:hover {
    border-color: rgba(255, 123, 0, 0.45);
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.14), rgba(0, 119, 255, 0.12));
}

.archetype-chip-name {
    font-family: var(--heading-font);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-text);
}

.archetype-chip-count {
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.archetype-chip-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.archetype-chip-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--secondary-text);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .archetype-chip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .archetype-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .archetype-chip-grid {
        grid-template-columns: 1fr;
    }
}

.page-intro {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

.archetype-list-intro {
    margin-top: 1rem;
}

.archetype-summary {
    margin-bottom: 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 123, 0, 0.25);
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.1), rgba(0, 119, 255, 0.06));
}

.archetype-summary-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.archetype-summary-title {
    font-size: 1.5rem;
    margin: 0 0 0.35rem;
    color: var(--primary-text);
    border-bottom: none;
    display: block;
}

.archetype-summary-tagline {
    font-size: 1rem;
    color: var(--secondary-text);
    font-style: italic;
    margin-bottom: 1rem;
}

.archetype-summary-list {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    line-height: 1.7;
}

.archetype-summary-list li {
    margin-bottom: 0.5rem;
    color: var(--primary-text);
}

.archetype-summary-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-color);
    text-decoration: none;
}

.archetype-summary-link:hover {
    color: var(--primary-color);
}

.character-empty-note {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--secondary-text);
}

@media (max-width: 768px) {
    .home-section {
        padding: 2rem 1.25rem;
    }

    .home-section-title {
        font-size: 1.65rem;
    }

    .home-feature-grid,
    .home-method__grid {
        grid-template-columns: 1fr;
    }

    .home-wayfind__row {
        grid-template-columns: 2.5rem 1fr auto;
        gap: 1rem;
        padding: 1.15rem 0;
    }

    .home-wayfind__title {
        font-size: 1.1rem;
    }
}

/* Notes trends infographic */
.trends-page {
    padding-bottom: 4rem;
}

.trends-page__hero {
    padding: 7rem 10vw 3.5rem;
    background:
        radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 123, 0, 0.14), transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 10%, rgba(0, 119, 255, 0.12), transparent 55%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trends-page__hero-inner {
    max-width: 920px;
    margin: 0 auto;
}

.trends-page__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.trends-page__title.section-title {
    text-align: left;
    margin: 0 0 1.25rem 0;
    width: auto;
}

.trends-page__lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--secondary-text);
    max-width: 52rem;
}

.trends-page__lead strong {
    color: var(--primary-text);
    font-weight: 600;
}

.trends-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.trends-stats__item {
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.trends-stats__item dt {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 0.35rem;
}

.trends-stats__item dd {
    font-family: var(--heading-font);
    font-size: 1.45rem;
    color: var(--primary-text);
}

.trends-page__content {
    max-width: 980px;
    margin: 0 auto;
    padding: 2.5rem 10vw 0;
    display: grid;
    gap: 2rem;
}

.trends-panel {
    padding: 1.75rem;
    border-radius: 18px;
    background: var(--card-gradient);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.trends-panel--accent {
    background:
        linear-gradient(145deg, rgba(255, 123, 0, 0.08), rgba(0, 119, 255, 0.05)),
        var(--card-gradient);
}

.trends-panel--muted {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
}

.trends-panel__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.trends-panel__eyebrow--warm {
    color: #ff9a3c;
}

.trends-panel__title {
    font-family: var(--heading-font);
    font-size: 1.75rem;
    margin-bottom: 0.65rem;
    color: var(--primary-text);
}

.trends-panel__title--small {
    font-size: 1.35rem;
}

.trends-panel__lead {
    color: var(--secondary-text);
    line-height: 1.65;
    max-width: 46rem;
}

.trends-panel--timeline {
    padding: 1.25rem 1.5rem;
    background:
        linear-gradient(90deg, rgba(255, 123, 0, 0.06), rgba(0, 119, 255, 0.06)),
        rgba(255, 255, 255, 0.02);
}

.trends-timeline__label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--secondary-text);
    margin-bottom: 0.65rem;
}

.trends-timeline__readout {
    margin-top: 0.65rem;
    color: var(--secondary-text);
    font-size: 0.92rem;
}

.trends-timeline__readout strong {
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-size: 1.05rem;
}

.trends-timeline__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.trends-slider {
    width: 100%;
    margin-top: 0.85rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.trends-slider:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.trends-panel--spotlight {
    background:
        linear-gradient(135deg, rgba(255, 123, 0, 0.06), transparent 55%),
        var(--card-gradient);
}

.trends-viz--shift {
    margin-bottom: 1.25rem;
    min-height: 220px;
}

.trends-shift-grid--notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trends-timeline__line {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 2;
    stroke-linecap: round;
}

.trends-timeline__line--glow {
    stroke: rgba(255, 123, 0, 0.08);
    stroke-width: 10;
    stroke-linecap: round;
}

.trends-timeline__focus-ring {
    fill: none;
    stroke: rgba(255, 123, 0, 0.45);
    stroke-width: 2;
    animation: trendsRingPulse 2.4s ease-in-out infinite;
}

@keyframes trendsRingPulse {
    0%, 100% { stroke-opacity: 0.35; r: 16; }
    50% { stroke-opacity: 0.85; r: 19; }
}

.trends-grid-line {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-dasharray: 4 6;
}

.trends-spotlight-label,
.trends-spotlight-value,
.trends-shift-label,
.trends-shift-delta {
    fill: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-family: var(--body-font);
    dominant-baseline: middle;
}

.trends-spotlight-value,
.trends-shift-delta {
    fill: var(--secondary-text);
    font-variant-numeric: tabular-nums;
}

.trends-spotlight-bar {
    filter: drop-shadow(0 4px 12px rgba(255, 123, 0, 0.18));
}

.trends-shift-bar {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.trends-shift-axis {
    stroke: rgba(255, 255, 255, 0.18);
}

.trends-share-area {
    mix-blend-mode: screen;
}

.trends-stream {
    transition: opacity 0.28s ease, filter 0.28s ease;
}

.trends-stream:hover {
    filter: brightness(1.12) drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}

.trends-timeline__dot {
    fill: rgba(255, 255, 255, 0.35);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1.5;
    transition: r 0.22s ease, fill 0.22s ease;
}

.trends-timeline__dot.is-active,
.trends-timeline__dot:hover {
    fill: var(--primary-color);
    stroke: #ffb366;
}

.trends-timeline__focus-ring {
    fill: none;
    stroke: rgba(255, 123, 0, 0.35);
    stroke-width: 2;
    pointer-events: none;
}

.trends-timeline__tick {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-family: var(--body-font);
}

.trends-viz {
    margin-top: 1.25rem;
    position: relative;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0.5rem 0.35rem;
    overflow: hidden;
}

.trends-viz--tall {
    min-height: 420px;
}

.trends-viz--heatmap {
    overflow-x: auto;
}

.trends-viz__canvas {
    width: 100%;
}

.trends-viz__canvas svg {
    display: block;
    width: 100%;
    overflow: visible;
}

.trends-viz__meta {
    min-height: 1.5rem;
    margin-bottom: 0.35rem;
    padding: 0 0.5rem;
}

.trends-viz__stat {
    font-size: 0.88rem;
    color: var(--secondary-text);
}

.trends-viz__stat strong {
    color: var(--primary-text);
    font-family: var(--heading-font);
}

.trends-viz__stat em {
    color: #06d6a0;
    font-style: normal;
}

.trends-viz-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.trends-viz-tabs__btn {
    appearance: none;
    border: none;
    background: transparent;
    color: var(--secondary-text);
    font-family: var(--body-font);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.trends-viz-tabs__btn.is-active {
    color: var(--primary-text);
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.35), rgba(0, 119, 255, 0.28));
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.trends-viz-tabs__btn:hover {
    color: var(--primary-text);
}

.trends-axis text {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-family: var(--body-font);
}

.trends-axis line,
.trends-axis path {
    stroke: rgba(255, 255, 255, 0.08);
}

.trends-bar {
    filter: drop-shadow(0 8px 14px rgba(255, 123, 0, 0.12));
    transition: filter 0.2s ease;
}

.trends-bar:hover {
    filter: drop-shadow(0 10px 22px rgba(0, 119, 255, 0.28));
}

.trends-focus-band {
    fill: rgba(255, 123, 0, 0.07);
    stroke: rgba(255, 123, 0, 0.22);
    stroke-width: 1;
    pointer-events: none;
}

.trends-focus-line {
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    pointer-events: none;
}

.trends-stream {
    transition: opacity 0.25s ease, filter 0.25s ease;
    mix-blend-mode: screen;
}

.trends-stream:hover {
    filter: brightness(1.15);
}

.trends-bump-line {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

.trends-bump-label {
    fill: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-family: var(--body-font);
}

.trends-share-line {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.06));
}

.trends-heatmap-label,
.trends-heatmap-tick,
.trends-heatmap-scale-label {
    fill: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-family: var(--body-font);
}

.trends-heatmap-cell {
    transition: opacity 0.18s ease, transform 0.18s ease;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1;
}

.trends-heatmap-cell.is-focus-col {
    stroke: rgba(255, 123, 0, 0.45);
    stroke-width: 1.5;
}

.trends-heatmap-cell:hover {
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.5;
}

.trends-viz__scale {
    margin-top: 0.85rem;
    padding-left: 0.35rem;
}

.trends-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 1rem;
}

.trends-legend--interactive .trends-legend__item {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.trends-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--secondary-text);
    font-size: 0.82rem;
}

.trends-legend__item.is-active {
    color: var(--primary-text);
    border-color: rgba(255, 123, 0, 0.45);
    background: rgba(255, 123, 0, 0.1);
    transform: translateY(-1px);
}

.trends-legend__item.is-dimmed {
    opacity: 0.45;
}

.trends-legend__item:hover {
    color: var(--primary-text);
    border-color: rgba(255, 255, 255, 0.18);
}

.trends-legend__swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.trends-shift-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.trends-panel__head--full {
    grid-column: 1 / -1;
}

.trends-shift-card {
    padding: 1.15rem 1.2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.trends-shift-card--rise {
    border-color: rgba(0, 201, 167, 0.22);
}

.trends-shift-card--fall {
    border-color: rgba(255, 80, 128, 0.18);
}

.trends-shift-card__title {
    font-family: var(--heading-font);
    font-size: 1.15rem;
    margin-bottom: 0.85rem;
}

.trends-shift-list {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.trends-shift-list__link {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary-text);
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trends-shift-list__link:hover .trends-shift-list__name {
    color: var(--accent-color);
}

.trends-shift-list__delta {
    font-variant-numeric: tabular-nums;
    color: var(--secondary-text);
    white-space: nowrap;
}

.trends-shift-card--rise .trends-shift-list__delta {
    color: #06d6a0;
}

.trends-decade-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.trends-decade-picker__label {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-text);
}

.trends-decade-picker__select {
    appearance: none;
    padding: 0.55rem 2rem 0.55rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 20, 0.8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b3b3b3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    color: var(--primary-text);
    font-family: var(--body-font);
}

.trends-decade-picker__active {
    color: var(--secondary-text);
    font-size: 0.92rem;
}

.trends-decade-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.trends-decade-column__title {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.trends-rank-list {
    list-style: none;
    counter-reset: trend-rank;
    display: grid;
    gap: 0.45rem;
}

.trends-rank-list li {
    counter-increment: trend-rank;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    animation: trendsRankIn 0.45s ease both;
    animation-delay: var(--enter-delay, 0ms);
}

@keyframes trendsRankIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trends-rank-list li::before {
    content: counter(trend-rank, decimal-leading-zero);
    color: var(--secondary-text);
    font-size: 0.78rem;
    min-width: 1.5rem;
}

.trends-rank-list__name {
    flex: 1;
}

.trends-rank-list__meta {
    font-variant-numeric: tabular-nums;
    color: var(--accent-color);
}

.trends-method {
    color: var(--secondary-text);
    line-height: 1.7;
    display: grid;
    gap: 0.85rem;
}

.trends-viz-error {
    margin: 1rem 10vw 0;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 80, 128, 0.35);
    background: rgba(255, 80, 128, 0.08);
    color: #ffb3c7;
    font-size: 0.9rem;
}

.trends-floating-tip {
    position: fixed;
    z-index: 300;
    max-width: min(280px, calc(100vw - 2rem));
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(8, 8, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--primary-text);
    font-size: 0.84rem;
    line-height: 1.45;
    pointer-events: none;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.trends-floating-tip strong {
    color: #ffb366;
    font-family: var(--heading-font);
    font-weight: 600;
}

.trends-tip__muted {
    color: var(--secondary-text);
    font-size: 0.78rem;
}

@media (max-width: 860px) {
    .trends-page__hero,
    .trends-page__content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .trends-stats,
    .trends-shift-grid--notes {
        grid-template-columns: 1fr;
    }
}