﻿/* ── Reset & Base ─────────────────────────────────────────────────────────── */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #1a2744;
    --navy-dark: #111a30;
    --navy-light: #243356;
    --gold: #dcb97e;
    --gold-light: #e8cc99;
    --gold-pale: #f0e4c8;
    --parchment: #f5edd8;
    --parchment-dark: #e8d9b8;
    --cream: #faf7f0;
    --ink: #1c1a16;
    --ink-muted: #4a4640;
    --ink-faint: #8a857c;
    --white: #ffffff;
    --border: rgba(184, 150, 90, 0.25);
    --border-dark: rgba(184, 150, 90, 0.5);
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'EB Garamond', 'Georgia', serif;
    --font-caps: 'Cinzel', serif;
    --sidebar-w: 28px;
    --header-h: 112px;
    --max-w: 1200px;
    --radius: 2px;
    --transition: 0.25s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    padding-left: var(--sidebar-w);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Sidebar Strip ────────────────────────────────────────────────────────── */

.sidebar-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--parchment);
    border-right: 1px solid var(--border-dark);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sidebar-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-caps);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.85;
}

/* ── Site Header ──────────────────────────────────────────────────────────── */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(26, 39, 68, 0.06);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    height: 3.5rem;
    width: auto;
    display: block;
    margin-top: -0.75rem;
    margin-bottom: -0.75rem;
}

.brand-name {
    font-family: var(--font-caps);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.04em;
}

    .brand-name:hover {
        color: var(--gold);
        transition: color var(--transition);
    }

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-util {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color var(--transition);
}

    .header-util:hover {
        color: var(--navy);
    }

/* ── Navigation ───────────────────────────────────────────────────────────── */

.site-nav {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    /* z-index here keeps nav dropdowns above page content without creating
       a stacking context that traps the pref-panel in .header-controls */
    position: relative;
    z-index: 200;
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-search-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    padding: 0.65rem 1rem 0.65rem 0;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
}

    .nav-search-btn:hover {
        color: var(--gold-light);
    }

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.75);
    padding: 0.65rem 1rem;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--white);
        border-bottom-color: var(--gold);
    }

/* ── Main Content ─────────────────────────────────────────────────────────── */

.site-main {
    min-height: 60vh;
}

/* ── Hero Banner ──────────────────────────────────────────────────────────── */

.hero-banner {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

    /* Subtle parchment texture overlay */
    .hero-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient( 90deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px );
        pointer-events: none;
    }

    /* Gold rule at bottom */
    .hero-banner::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    }

.hero-slides {
    flex: 1;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

    .hero-slide.active {
        opacity: 1;
        pointer-events: auto;
        position: relative;
    }

.hero-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    animation: heroFadeUp 0.8s ease both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    font-family: var(--font-caps);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 600px;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 2rem;
    max-width: 480px;
}

.btn-hero {
    display: inline-block;
    font-family: var(--font-caps);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy-dark);
    background: var(--gold);
    padding: 0.7rem 2rem;
    border: 1px solid var(--gold);
    transition: background var(--transition), color var(--transition);
}

    .btn-hero:hover {
        background: var(--gold-light);
        border-color: var(--gold-light);
    }

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 1.25rem;
    background: var(--navy);
}

.hero-dot {
    width: 28px;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    border-radius: 0;
}

    .hero-dot.active,
    .hero-dot:hover {
        background: var(--gold);
    }

/* ── Section Shared ───────────────────────────────────────────────────────── */

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
    position: relative;
    padding-bottom: 0.75rem;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 48px;
        height: 1px;
        background: var(--gold);
    }

.btn-outline {
    display: inline-block;
    font-family: var(--font-caps);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--navy);
    border: 1px solid var(--navy);
    padding: 0.55rem 1.5rem;
    transition: background var(--transition), color var(--transition);
}

    .btn-outline:hover {
        background: var(--navy);
        color: var(--white);
    }

.btn-outline--light {
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

    .btn-outline--light:hover {
        background: rgba(255,255,255,0.15);
        border-color: var(--white);
    }

/* ── New Acquisitions ─────────────────────────────────────────────────────── */

.acquisitions {
    padding: 4rem 0;
    background: var(--white);
}

.acquisitions-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.acquisitions-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-top: 0.25rem;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
}

.book-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), border-color var(--transition);
}

    .book-card:hover {
        border-color: var(--gold);
        box-shadow: 0 4px 20px rgba(26,39,68,0.08);
    }

.book-card-image-link {
    display: block;
}

.book-card-image {
    aspect-ratio: 3/4;
    background: var(--parchment);
    overflow: hidden;
    position: relative;
}

.book-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--parchment) 0%, var(--parchment-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-left: 4px solid var(--gold);
}

.book-spine-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--ink-muted);
    text-align: center;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.book-card-body {
    padding: 1rem;
    border-top: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.book-card-author {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
}

.book-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--navy);
    line-height: 1.3;
    flex: 1;
}

    .book-card-title a:hover {
        color: var(--gold);
        transition: color var(--transition);
    }

.book-card-price {
    font-family: var(--font-caps);
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-top: 0.5rem;
}

.book-card-price-estimate {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--ink-muted);
    opacity: 0.7;
    margin-top: 0.1rem;
}

.product-detail-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-detail-price-estimate {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-muted);
    opacity: 0.7;
}

.price-excl-note {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--ink-muted);
    opacity: 0.65;
    margin-top: 0.2rem;
}

/* Placeholder shimmer */
.book-card--placeholder .book-card-image-placeholder {
    animation: shimmer 1.8s infinite;
}

.placeholder-line {
    height: 0.85em;
    background: var(--parchment-dark);
    border-radius: 0;
    display: block;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ── About Strip ──────────────────────────────────────────────────────────── */

.about-strip {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

    /* Subtle diagonal rule */
    .about-strip::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold), transparent);
    }

.about-strip-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.about-photo {
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.about-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-text {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
}

.about-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    position: relative;
    padding-bottom: 0.75rem;
}

    .about-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 48px;
        height: 1px;
        background: var(--gold);
    }

.about-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.75;
}

/* ── section-title modifiers ─────────────────────────────────────────────── */

.section-title--light {
    color: var(--white);
}

.section-title--centered {
    text-align: center;
}

    .section-title--centered::after {
        left: 50%;
        transform: translateX(-50%);
    }

/* ── Shared home list (bullet list with em-dash) ─────────────────────────── */

.home-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .home-list li {
        font-family: var(--font-body);
        font-size: 0.9rem;
        padding-left: 1.25rem;
        position: relative;
        line-height: 1.6;
    }

    .home-list li::before {
        content: '—';
        position: absolute;
        left: 0;
        color: var(--gold);
    }

.home-list--light li { color: rgba(255,255,255,0.65); }
.home-list--dark  li { color: var(--ink-muted); }

/* ── Our Catalogues ──────────────────────────────────────────────────────── */

.catalogues-preview {
    background: var(--navy);
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.catalogues-preview-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-img-frame {
    background: var(--gold);
    padding: 10px;
}

.home-img-frame-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.catalogues-preview-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Our Philosophy ──────────────────────────────────────────────────────── */

.philosophy {
    background: var(--white);
    padding: 5rem 0;
    border-top: 1px solid var(--border);
}

.philosophy-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

    .philosophy-text > p {
        font-family: var(--font-body);
        font-size: 1rem;
        color: var(--ink-muted);
        line-height: 1.8;
    }


/* ── Browse by Category ──────────────────────────────────────────────────── */

.category-browse {
    background: var(--navy);
    padding: 5rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.category-browse-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.category-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity var(--transition);
}

    .category-card:hover {
        opacity: 0.85;
    }

.category-card-bg {
    aspect-ratio: 3/4;
}

.category-card-bg--manuscripts { background: #3b2e20; }
.category-card-bg--incunabula  { background: #1e2e48; }
.category-card-bg--early       { background: #2a2018; }

.category-card .home-img-frame-img {
    aspect-ratio: 3/4;
    object-fit: contain;
}

.category-card-label {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    text-align: center;
}

/* ── Julia Photo Banner ──────────────────────────────────────────────────── */

.julia-banner {
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 0 24%;
}

.julia-banner-img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    object-position: center 50%;
    display: block;
}

/* ── Home About Text ─────────────────────────────────────────────────────── */

.home-about-text {
    background: var(--white);
    padding: 4rem 2rem;
    border-top: 3px solid var(--gold);
}

.home-about-text-inner {
    max-width: 780px;
    margin: 0 auto;
}

    .home-about-text-inner p {
        font-family: var(--font-body);
        font-size: 1.05rem;
        color: var(--ink-muted);
        line-height: 1.85;
        text-align: center;
    }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.55);
    font-family: var(--font-body);
    font-size: 0.825rem;
    border-top: 1px solid var(--border-dark);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-company {
    font-family: var(--font-caps);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.footer-legal p {
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .footer-links a {
        transition: color var(--transition);
    }

        .footer-links a:hover {
            color: var(--gold-light);
        }

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}


.footer-social {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
}

    .social-link:hover {
        border-color: var(--gold);
    }

.social-icon {
    opacity: 0.6;
    transition: opacity var(--transition), filter var(--transition);
}

    .social-link:hover .social-icon:not(.social-icon--fixed) {
        opacity: 1;
        filter: invert(79%) sepia(28%) saturate(500%) hue-rotate(3deg) brightness(105%);
    }

    .social-link:hover .social-icon--fixed {
        opacity: 1;
    }

.footer-email {
    color: rgba(255,255,255,0.5);
    font-style: italic;
    display: block;
    transition: color var(--transition);
}

    .footer-email:hover {
        color: var(--gold-light);
    }

.footer-address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-griffin {
    height: 4.5rem;
    width: auto;
    display: block;
    opacity: 0.75;
    margin-bottom: 0.75rem;
}

.footer-channel-link {
    display: block;
    margin-bottom: 0.35rem;
    transition: color var(--transition);
}

    .footer-channel-link:hover {
        color: var(--gold-light);
    }

.footer-base {
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 1rem 2rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .catalogues-preview-inner,
    .philosophy-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card {
        aspect-ratio: 16/9;
    }

    .about-strip-inner {
        grid-template-columns: 1fr;
    }

    .about-photo-placeholder {
        min-height: 240px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --sidebar-w: 0px;
    }

    .sidebar-strip {
        display: none;
    }

    .brand-name {
        font-size: 1rem;
    }

    .nav-link {
        padding: 0.65rem 0.6rem;
        font-size: 0.8rem;
    }

    .acquisitions-inner {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .about-text {
        padding: 2rem;
    }
}

/* ── Mega Menu & Dropdowns ────────────────────────────────────────────────── */

.nav-item {
    position: relative;
}

.nav-chevron {
    font-size: 0.6rem;
    opacity: 0.6;
    margin-left: 2px;
    vertical-align: middle;
    transition: transform var(--transition);
    display: inline-block;
}

.nav-item.is-open .nav-chevron,
.nav-item:hover .nav-chevron {
    transform: rotate(180deg);
}

/* Shared panel base */
.mega-menu,
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-dark);
    border-top: 2px solid var(--gold);
    box-shadow: 0 8px 32px rgba(26, 39, 68, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    z-index: 300;
    /* Invisible bridge closes the gap between nav bar and panel
       so the mouse moving downward doesn't close the menu */
    padding-top: 6px;
    margin-top: -6px;
}

.nav-item.is-open .mega-menu,
.nav-item.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

/* ── Mega menu layout ────────────────────────────────────────────────────── */

.mega-menu {
    left: -2rem;
    width: min(960px, 92vw);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 1.75rem 2rem;
}

.mega-col {
    padding: 0 1.5rem 0 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

    .mega-col:last-child {
        padding-right: 0;
        border-right: none;
    }

    .mega-col + .mega-col {
        padding-left: 1.5rem;
    }

.mega-heading {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    margin-bottom: 0.4rem;
}

    .mega-heading a {
        color: var(--navy);
        transition: color var(--transition);
    }

        .mega-heading a:hover {
            color: var(--gold);
        }

.mega-heading--gap {
    margin-top: 1.25rem;
}

.mega-date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--ink-faint);
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
}

.mega-link {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink-muted);
    padding: 0.2rem 0;
    transition: color var(--transition), padding-left var(--transition);
    line-height: 1.4;
}

    .mega-link:hover {
        color: var(--navy);
        padding-left: 4px;
    }

/* ── Simple dropdown ────────────────────────────────────────────────────── */

.dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0;
}

.dropdown-link {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-muted);
    padding: 0.5rem 1.25rem;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

    .dropdown-link:hover {
        background: var(--parchment);
        color: var(--navy);
    }

/* ── Category group spacing within a mega-menu column ────────────────────── */

.mega-category-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

    .mega-category-group + .mega-category-group {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid var(--border);
    }

/* ── Categories page ─────────────────────────────────────────────────────── */

.categories-page {
    padding: 4rem 0;
    background: var(--white);
}

.categories-page-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-faint);
    font-style: italic;
}

/* Inline variant — always visible, full width, no dropdown behaviour */
.category-nav-inline {
    width: 100%;
}

.category-nav-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

/* ── Preference dropdowns (language / currency) ──────────────────────────── */

.pref-dropdown {
    position: relative;
}

.pref-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.4rem;
    border-radius: 2px;
    transition: background var(--transition);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-muted);
}

    .pref-trigger:hover {
        background: var(--parchment);
        color: var(--navy);
    }

.pref-flag {
    font-size: 1rem;
    line-height: 1;
}

.pref-label {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.pref-chevron {
    font-size: 0.6rem;
    opacity: 0.6;
    transition: transform var(--transition);
    display: inline-block;
}

.pref-dropdown.is-open .pref-chevron {
    transform: rotate(180deg);
}

.pref-panel {
    /* fixed escapes the header's stacking context entirely */
    position: fixed;
    top: var(--pref-panel-top, 60px);
    right: var(--pref-panel-right, 1rem);
    background: var(--white);
    border: 1px solid var(--border-dark);
    border-top: 2px solid var(--gold);
    box-shadow: 0 8px 24px rgba(26, 39, 68, 0.12);
    min-width: 200px;
    max-height: 360px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    z-index: 9999;
}

.pref-dropdown.is-open .pref-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}

.pref-panel form {
    margin: 0;
}

.pref-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-muted);
    text-align: left;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

    .pref-option:hover {
        background: var(--parchment);
        color: var(--navy);
    }

.pref-option--active {
    color: var(--navy);
    font-weight: 500;
    background: var(--gold-pale);
}

.pref-option-flag {
    font-size: 1rem;
    flex-shrink: 0;
}

.pref-option-symbol {
    font-family: var(--font-caps);
    font-size: 0.85rem;
    min-width: 1.5rem;
    color: var(--gold);
}

.pref-option-name {
    color: inherit;
}

/* Hide Google's injected toolbar — we drive translation via JS API */
.goog-te-banner-frame,
.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* ── Product list page ───────────────────────────────────────────────────── */

.product-list-page {
    padding: 3rem 0 5rem;
    background: var(--white);
}

.product-list-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.product-list-page .page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.result-count {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-faint);
    font-style: italic;
    white-space: nowrap;
}

.product-list-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

/* ── Filter sidebar ──────────────────────────────────────────────────────── */

.filter-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

    .filter-group:last-of-type {
        border-bottom: none;
        margin-bottom: 1rem;
    }

.filter-label {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.6rem;
    display: block;
}

.filter-input,
.filter-select {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--border-dark);
    padding: 0.4rem 0.6rem;
    border-radius: 0;
    appearance: none;
}

.filter-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a857c'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 1.8rem;
    cursor: pointer;
}

    .filter-input:focus,
    .filter-select:focus {
        outline: none;
        border-color: var(--gold);
    }

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.filter-option {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-muted);
    padding: 0.25rem 0.4rem;
    transition: color var(--transition), background var(--transition);
    border-radius: var(--radius);
}

    .filter-option:hover {
        color: var(--navy);
        background: var(--parchment);
    }

.filter-option--active {
    color: var(--navy);
    font-weight: 500;
    background: var(--gold-pale);
    padding-left: 0.6rem;
}

.filter-apply-btn {
    width: 100%;
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background var(--transition);
}

    .filter-apply-btn:hover {
        background: var(--navy-light);
    }

.filter-clear-link {
    display: block;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--ink-faint);
    margin-top: 0.75rem;
    transition: color var(--transition);
}

    .filter-clear-link:hover {
        color: var(--navy);
    }

/* ── Product grid area ───────────────────────────────────────────────────── */

.product-grid-area .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.book-card-date {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--ink-faint);
}

.no-results {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--ink-faint);
    font-style: italic;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.pagination-btn {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--navy);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-dark);
    transition: background var(--transition), color var(--transition);
}

    .pagination-btn:hover {
        background: var(--navy);
        color: var(--white);
    }

.pagination-page {
    font-family: var(--font-caps);
    font-size: 0.75rem;
    color: var(--ink-muted);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: border-color var(--transition), color var(--transition);
}

    .pagination-page:hover {
        border-color: var(--border-dark);
        color: var(--navy);
    }

.pagination-page--active {
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 500;
}

.pagination-ellipsis {
    color: var(--ink-faint);
    padding: 0 0.25rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .product-list-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }
}

/* ── About page ──────────────────────────────────────────────────────────── */

/* ── Hero ── */

.about-hero {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

    .about-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient( 90deg, transparent, transparent 2px, rgba(255,255,255,0.015) 2px, rgba(255,255,255,0.015) 4px );
        pointer-events: none;
    }

    .about-hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    }

.about-hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(560px, auto);
    align-items: stretch;
}

.about-hero-image {
    position: relative;
    overflow: hidden;
}

.about-hero-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 460px;
    background: rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.about-hero-title-block {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.about-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0;
}

.about-hero-griffin {
    max-width: 180px;
    width: 100%;
    height: auto;
    opacity: 0.8;
}

/* ── About intro strip ── */

.about-intro {
    background: var(--cream);
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
}

.about-intro-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

    .about-intro-inner p {
        font-family: var(--font-body);
        font-size: 1.05rem;
        color: var(--ink-muted);
        line-height: 1.85;
    }

/* ── Owners section ── */

.about-owners {
    background: var(--white);
    padding: 5rem 0;
}

.about-owners-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-owners-photo {
    position: relative;
}

    .about-owners-photo::before {
        content: '';
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        right: -1.5rem;
        bottom: -1.5rem;
        border: 1px solid var(--border-dark);
        z-index: 0;
    }

.about-owners-img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-owners-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

    .about-owners-text p {
        font-family: var(--font-body);
        font-size: 1rem;
        color: var(--ink-muted);
        line-height: 1.8;
    }

/* ── Shared section title ── */

.about-section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

    .about-section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 48px;
        height: 1px;
        background: var(--gold);
    }

.about-section-title--light {
    color: var(--white);
}

    .about-section-title--light::after {
        background: var(--gold-light);
    }

.about-section-title--centered {
    text-align: center;
}

    .about-section-title--centered::after {
        left: 50%;
        transform: translateX(-50%);
    }

/* ── Expertise & Specialisms ── */

.about-expertise {
    background: var(--cream);
    padding: 5rem 0;
}

.about-expertise-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.about-expertise-header {
    max-width: 600px;
    margin-bottom: 3rem;
}

.about-expertise-intro {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.75;
}

.about-specialism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.about-specialism {
    border: 1px solid var(--border);
    padding: 2rem;
    background: var(--white);
}

.about-specialism-title {
    font-family: var(--font-caps);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.about-specialism p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.75;
}

/* ── Split sections (alternating image / text) ── */

.about-split {
    background: var(--white);
    padding: 5rem 0;
}

.about-split--cream {
    background: var(--cream);
}

.about-split-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-split-image {
    flex: 0 0 45%;
}

.about-split-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

    .about-split-text p {
        font-family: var(--font-body);
        font-size: 1rem;
        color: var(--ink-muted);
        line-height: 1.8;
    }

.about-split-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.about-image-placeholder {
    aspect-ratio: 4/3;
    background: var(--parchment);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .about-image-placeholder::before {
        content: '';
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        right: -1.5rem;
        bottom: -1.5rem;
        border: 1px solid var(--border-dark);
        z-index: 0;
        pointer-events: none;
    }

.about-image-placeholder-label {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    opacity: 0.45;
    position: relative;
    z-index: 1;
}

/* ── Our Commitment ── */

.about-commitment {
    background: var(--navy);
    padding: 5rem 0;
    position: relative;
}

    .about-commitment::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    }

.about-commitment-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

    .about-commitment-inner p {
        font-family: var(--font-body);
        font-size: 1.1rem;
        color: rgba(255,255,255,0.7);
        line-height: 1.8;
        margin-top: 0.5rem;
    }

/* ── Memberships ── */

.about-memberships {
    background: var(--navy);
    padding: 4rem 0;
}

.about-memberships-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.about-memberships-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.about-memberships-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.about-membership-badge {
    display: inline-block;
    opacity: 0.85;
    transition: opacity var(--transition);
}

    .about-membership-badge:hover {
        opacity: 1;
    }

.about-membership-logo {
    height: 80px;
    width: auto;
    display: block;
}

/* ── Contact strip ── */

.about-contact-strip {
    background: var(--parchment);
    padding: 4rem 0;
    border-top: 1px solid var(--border-dark);
}

.about-contact-inner {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

    .about-contact-inner p {
        font-family: var(--font-body);
        font-size: 1rem;
        color: var(--ink-muted);
        line-height: 1.75;
    }

/* ── Responsive ── */

@media (max-width: 860px) {
    .about-owners-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-owners-photo::before {
        display: none;
    }

    .about-hero-inner {
        grid-template-columns: 1fr;
    }

    .about-hero-image-placeholder {
        min-height: 280px;
    }

    .about-hero-title-block {
        padding: 3rem 2rem;
        gap: 1.5rem;
    }

    .about-split-inner {
        flex-direction: column;
        gap: 3rem;
    }

    .about-split-image {
        flex: none;
        width: 100%;
        /* Images always stack above text on mobile regardless of DOM order */
        order: -1;
    }

    .about-image-placeholder::before {
        display: none;
    }
}

/* ── Search overlay ───────────────────────────────────────────────────────── */

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

    .search-overlay.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: opacity 0.2s ease, visibility 0s linear 0s;
    }

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.55);
    backdrop-filter: blur(2px);
}

.search-overlay-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    margin: 0 2rem;
}

.search-form {
    position: relative;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 999px;
    border: 2px solid var(--gold);
    padding: 0 1rem;
    box-shadow: 0 8px 32px rgba(26, 39, 68, 0.2);
    gap: 0.5rem;
}

.search-icon {
    font-size: 1.1rem;
    color: var(--ink-faint);
    flex-shrink: 0;
    line-height: 1;
}

.search-input {
    flex: 1;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: none;
    border: none;
    outline: none;
    padding: 0.85rem 0;
    min-width: 0;
}

    .search-input::placeholder {
        color: var(--ink-faint);
        font-style: italic;
    }

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--ink-faint);
    line-height: 1;
    padding: 0.2rem;
    flex-shrink: 0;
    transition: color var(--transition);
}

    .search-close:hover {
        color: var(--navy);
    }

/* ── Suggestions dropdown ── */

.search-suggestions {
    list-style: none;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    box-shadow: 0 8px 32px rgba(26, 39, 68, 0.15);
    margin-top: 0.5rem;
    overflow: hidden;
    display: none;
}

    .search-suggestions.has-results {
        display: block;
    }

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}

    .search-suggestion:last-child {
        border-bottom: none;
    }

    .search-suggestion:hover,
    .search-suggestion.is-active {
        background: var(--parchment);
    }

.search-suggestion-text {
    flex: 1;
    min-width: 0;
}

.search-suggestion-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-subtitle {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
    margin-top: 0.1rem;
}

.search-suggestion-date {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--ink-faint);
    white-space: nowrap;
    flex-shrink: 0;
}

.search-suggestion-type {
    font-family: var(--font-caps);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    background: var(--cream);
    padding: 0.15rem 0.4rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.search-no-results {
    padding: 1rem 1.25rem;
    font-family: var(--font-body);
    font-style: italic;
    color: var(--ink-faint);
    font-size: 0.9rem;
}

/* ── Contact page ────────────────────────────────────────────────────────── */

.contact-page {
    padding: 4rem 0 5rem;
    background: var(--white);
}

/* ── Contact page main layout ── */

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-left-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.contact-press-heading {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-press-email {
    font-size: 0.9rem;
    color: var(--ink-muted);
    transition: color var(--transition);
}

    .contact-press-email:hover {
        color: var(--navy);
    }

.contact-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-company-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
}

.contact-info-email {
    font-size: 0.95rem;
    color: var(--ink-muted);
    transition: color var(--transition);
}

    .contact-info-email:hover {
        color: var(--navy);
    }

.contact-social-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}

.contact-social-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.95rem;
    color: var(--ink);
    transition: color var(--transition);
}

    .contact-social-item:hover {
        color: var(--navy);
    }

.contact-griffin {
    max-width: 200px;
    width: 100%;
    height: auto;
    opacity: 0.8;
    margin-top: 1.5rem;
}

.contact-banner {
    background: var(--navy);
    height: 320px;
    width: 100%;
}

.contact-page-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-page-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 5rem;
    margin-top: 3rem;
    align-items: start;
}

/* ── Contact details sidebar ── */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-group {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

    .contact-detail-group:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.contact-detail-heading {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.contact-detail-label {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.contact-detail-value {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

a.contact-detail-value:hover {
    color: var(--navy);
}

.contact-detail-group p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.contact-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ── Contact form ── */

.contact-form-wrap {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-label {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.contact-input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--border-dark);
    padding: 0.7rem 0.9rem;
    transition: border-color var(--transition);
    border-radius: 0;
    width: 100%;
}

    .contact-input:focus {
        outline: none;
        border-color: var(--gold);
        background: var(--white);
    }

    .contact-input.has-error {
        border-color: #c0392b;
    }

.contact-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-body);
}

.contact-error {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #c0392b;
    font-style: italic;
    min-height: 1rem;
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-privacy {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--ink-faint);
    font-style: italic;
    flex: 1;
    line-height: 1.5;
}

    .contact-privacy a {
        color: var(--gold);
    }

        .contact-privacy a:hover {
            color: var(--navy);
        }

.contact-submit {
    font-family: var(--font-caps);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border: none;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

    .contact-submit:hover {
        background: var(--navy-light);
    }

    .contact-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.contact-feedback {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    display: none;
}

    .contact-feedback.is-success {
        display: block;
        background: #f0faf0;
        border: 1px solid #a8d5a2;
        color: #2d6a4f;
    }

    .contact-feedback.is-error {
        display: block;
        background: #fdf0f0;
        border: 1px solid #e0a0a0;
        color: #922b21;
    }

/* ── Responsive ── */

@media (max-width: 860px) {
    .contact-page-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }


    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Blog ────────────────────────────────────────────────────────────────── */

/* ── Blog preview section on homepage ── */

.blog-preview {
    padding: 4rem 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.blog-preview-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-preview-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

/* ── Blog card ── */

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    transition: box-shadow var(--transition), border-color var(--transition);
}

    .blog-card:hover {
        border-color: var(--gold);
        box-shadow: 0 4px 20px rgba(26,39,68,0.08);
    }

.blog-card-image-link {
    display: block;
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--navy);
}

    .blog-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-image--placeholder {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    position: relative;
    overflow: hidden;
}

    .blog-card-image--placeholder::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: repeating-linear-gradient( 90deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px );
    }

.blog-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
}

.blog-card-meta-sep {
    color: var(--border-dark);
}

.blog-card-date {
    color: var(--ink-faint);
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--navy);
    line-height: 1.3;
}

    .blog-card-title a:hover {
        color: var(--gold);
        transition: color var(--transition);
    }

.blog-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.65;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.25rem;
    transition: color var(--transition);
}

    .blog-read-more:hover {
        color: var(--navy);
    }

/* ── Blog list page ── */

.blog-list-page {
    padding: 4rem 0 6rem;
    background: var(--white);
}

.blog-list-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Blog post page ── */

.blog-post-page {
    background: var(--white);
}

.blog-post-hero {
    position: relative;
    min-height: 400px;
    background: var(--navy);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.blog-post-hero--no-image {
    min-height: 280px;
}

.blog-post-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.blog-post-hero-overlay {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 3rem 0;
    background: linear-gradient(transparent, rgba(17,26,48,0.85));
}

.blog-post-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
}

.blog-post-author {
    color: var(--gold-light);
}

.blog-post-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.15;
}

.blog-post-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.blog-post-excerpt {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.blog-post-body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.8;
}

    .blog-post-body h2 {
        font-family: var(--font-display);
        font-size: 1.6rem;
        font-weight: 300;
        font-style: italic;
        color: var(--navy);
        margin: 2rem 0 1rem;
    }

    .blog-post-body h3 {
        font-family: var(--font-caps);
        font-size: 0.8rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--navy);
        margin: 1.5rem 0 0.75rem;
    }

    .blog-post-body p {
        margin-bottom: 1.25rem;
    }

    .blog-post-body a {
        color: var(--gold);
        border-bottom: 1px solid var(--border-dark);
    }

        .blog-post-body a:hover {
            color: var(--navy);
            border-bottom-color: var(--navy);
        }

.blog-post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ── Legal pages ─────────────────────────────────────────────────────────── */

.legal-page {
    padding: 4rem 0 6rem;
    background: var(--white);
}

.legal-page-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-body {
    margin-top: 2.5rem;
}

    .legal-body p,
    .legal-placeholder {
        font-family: var(--font-body);
        font-size: 1rem;
        color: var(--ink-muted);
        line-height: 1.8;
        margin-bottom: 1.25rem;
    }

    .legal-body h2 {
        font-family: var(--font-display);
        font-size: 1.4rem;
        font-weight: 300;
        font-style: italic;
        color: var(--navy);
        margin: 2rem 0 0.75rem;
    }

    .legal-body h3 {
        font-family: var(--font-caps);
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--navy);
        margin: 1.5rem 0 0.5rem;
    }

    .legal-list {
        font-family: var(--font-body);
        font-size: 1rem;
        color: var(--ink-muted);
        line-height: 1.8;
        margin: 0 0 1.25rem 1.5rem;
        padding: 0;
    }

    .legal-list li {
        margin-bottom: 0.5rem;
    }

    .legal-address {
        font-style: normal;
        line-height: 1.9;
        border-left: 2px solid var(--gold);
        padding-left: 1rem;
        margin-left: 0;
    }

    .legal-panel {
        border: 1px solid #ddd;
        background: #faf8f5;
        padding: 1.25rem 1.5rem;
        margin: 0.5rem 0 1.25rem;
    }

    .legal-panel p {
        margin-bottom: 0.75rem;
    }

    .legal-panel p:last-child {
        margin-bottom: 0;
    }

/* ── Cart badge ──────────────────────────────────────────────────────────── */

.header-basket {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    font-size: 1.1rem;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--gold);
    color: var(--navy-dark);
    font-family: var(--font-caps);
    font-size: 0.6rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* ── Cart drawer ─────────────────────────────────────────────────────────── */

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
    visibility: hidden;
}

    .cart-drawer.is-open {
        pointer-events: auto;
        visibility: visible;
    }

.cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cart-drawer.is-open .cart-drawer-backdrop {
    opacity: 1;
}

.cart-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 100vw;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 32px rgba(26, 39, 68, 0.15);
}

.cart-drawer.is-open .cart-drawer-panel {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition);
}

    .cart-drawer-close:hover {
        color: var(--navy);
    }

.cart-drawer-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    color: var(--ink-faint);
    font-style: italic;
    font-family: var(--font-body);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.cart-item-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--navy);
    line-height: 1.3;
    transition: color var(--transition);
}

    .cart-item-title:hover {
        color: var(--gold);
    }

.cart-item-price {
    font-family: var(--font-caps);
    font-size: 0.8rem;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
}

.cart-item-remove-form {
    flex-shrink: 0;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--ink-faint);
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    line-height: 1;
    transition: color var(--transition);
}

    .cart-item-remove:hover {
        color: #c0392b;
    }

.cart-drawer-footer {
    border-top: 2px solid var(--border-dark);
    padding: 1.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--cream);
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cart-total-label {
    font-family: var(--font-caps);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.cart-total-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--navy);
}

.cart-total-eur {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--ink-faint);
    text-align: right;
    min-height: 1rem;
}

.cart-checkout-btn {
    display: block;
    text-align: center;
    font-family: var(--font-caps);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    padding: 1rem;
    border: none;
    transition: background var(--transition);
}

    .cart-checkout-btn:hover {
        background: var(--navy-light);
    }

/* ── Checkout ────────────────────────────────────────────────────────────── */

.checkout-page {
    padding: 4rem 0 6rem;
    background: var(--white);
}

.checkout-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.checkout-inner--narrow {
    max-width: 640px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    margin-top: 2.5rem;
    align-items: start;
}

.checkout-section-title {
    font-family: var(--font-caps);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.checkout-errors {
    background: #fdf0f0;
    border: 1px solid #e0a0a0;
    color: #922b21;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

    .checkout-errors p {
        margin-bottom: 0.25rem;
    }

        .checkout-errors p:last-child {
            margin-bottom: 0;
        }

.checkout-submit {
    width: 100%;
    font-family: var(--font-caps);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border: none;
    padding: 1rem;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 0.5rem;
}

    .checkout-submit:hover:not(:disabled) {
        background: var(--navy-light);
    }

    .checkout-submit:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* ── Order summary ── */

.checkout-summary {
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.checkout-items {
    list-style: none;
    margin-bottom: 1.25rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

    .checkout-item:last-child {
        border-bottom: none;
    }

.checkout-item-title {
    color: var(--ink-muted);
    font-style: italic;
    flex: 1;
    min-width: 0;
}

.checkout-item-price {
    color: var(--navy);
    white-space: nowrap;
    font-family: var(--font-caps);
    font-size: 0.8rem;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 1rem;
    border-top: 2px solid var(--border-dark);
}

.checkout-secure-note {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-style: italic;
    color: var(--ink-faint);
    margin-top: 0.75rem;
}

/* ── Payment methods ── */

.payment-method {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

    .payment-method:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.payment-method-title {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 1rem;
}

.stripe-card-element {
    border: 1px solid var(--border-dark);
    padding: 0.8rem 1rem;
    background: var(--cream);
    margin-bottom: 1rem;
    min-height: 44px;
}

.payment-placeholder {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--ink-faint);
    font-size: 0.85rem;
}

.payment-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--ink-faint);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

    .payment-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border);
    }

    .payment-divider span {
        position: relative;
        background: var(--white);
        padding: 0 0.75rem;
    }

/* ── Success / Failed ── */

.checkout-success {
    text-align: center;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.checkout-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-success-icon--fail {
    background: #922b21;
}

.checkout-success-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
}

.checkout-success-ref {
    font-family: var(--font-caps);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--ink-faint);
}

.checkout-success p {
    font-family: var(--font-body);
    color: var(--ink-muted);
    max-width: 480px;
    line-height: 1.7;
}

.checkout-items--success {
    width: 100%;
    max-width: 480px;
    text-align: left;
}

/* ── Responsive ── */

@media (max-width: 860px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }
}

/* ── Add to cart button on book cards ────────────────────────────────────── */

.book-card-cart-form {
    margin-top: 0.5rem;
}

.book-card-add-btn {
    width: 100%;
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    background: none;
    border: 1px solid var(--navy);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

    .book-card-add-btn:hover {
        background: var(--navy);
        color: var(--white);
    }

/* ── Product detail page ─────────────────────────────────────────────────── */

.product-detail-page {
    background: var(--white);
    padding: 2rem 0 6rem;
}

.product-detail-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Breadcrumb ── */

.breadcrumb {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--ink-faint);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

    .breadcrumb a {
        color: var(--ink-faint);
        transition: color var(--transition);
    }

        .breadcrumb a:hover {
            color: var(--navy);
        }

.breadcrumb-sep {
    color: var(--border-dark);
}

/* ── Main layout: gallery left, content right ── */

.product-detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
}

/* ── Gallery ── */

.product-detail-gallery {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-gallery-main {
    position: relative;
    display: flex;
    align-items: center;
}

.product-gallery-main-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid var(--border);
    flex: 1;
}

.product-detail-placeholder {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    border-left: 6px solid var(--gold);
}

    .product-detail-placeholder .book-spine-text {
        font-size: 1rem;
        -webkit-line-clamp: 8;
    }

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--border-dark);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--navy);
    cursor: pointer;
    transition: background var(--transition);
}

    .gallery-arrow:hover {
        background: var(--white);
    }

.gallery-arrow--prev {
    left: -14px;
}

.gallery-arrow--next {
    right: -14px;
}

.product-gallery-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.product-gallery-thumb {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition);
}

    .product-gallery-thumb:hover,
    .product-gallery-thumb.is-active {
        border-color: var(--gold);
    }

.product-gallery-thumb--placeholder {
    background: linear-gradient(135deg, var(--parchment) 0%, var(--parchment-dark) 100%);
}

/* ── Content column ── */

.product-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail-author {
    font-family: var(--font-caps);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    color: var(--navy);
}

.product-detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
    line-height: 1.15;
}

.product-detail-short-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

.product-detail-imprint {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-muted);
}

.product-detail-stockcode {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-faint);
}

/* ── Purchase block ── */

.product-detail-purchase {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-detail-price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-detail-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--navy);
}

.product-detail-status {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border: 1px solid;
}

.status--available {
    color: #2d6a4f;
    border-color: #a8d5a2;
    background: #f0faf0;
}

.status--sold {
    color: var(--ink-faint);
    border-color: var(--border-dark);
    background: var(--cream);
}

.product-detail-add-btn {
    display: inline-block;
    font-family: var(--font-caps);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    background: var(--navy);
    border: none;
    padding: 0.8rem 2rem;
    cursor: pointer;
    transition: background var(--transition);
    align-self: flex-start;
}

    .product-detail-add-btn:hover {
        background: var(--navy-light);
    }

.product-detail-add-btn--incart {
    background: var(--gold);
    color: var(--navy-dark);
}

    .product-detail-add-btn--incart:hover {
        background: var(--gold-light);
    }

.product-in-cart-note {
    font-family: var(--font-body);
    font-style: italic;
    color: #2d6a4f;
    font-size: 0.875rem;
}

/* ── Body text ── */

.product-detail-body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.8;
}

    .product-detail-body p {
        margin-bottom: 1rem;
    }

        .product-detail-body p:last-child {
            margin-bottom: 0;
        }

    .product-detail-body ol, .product-detail-body ul {
        padding-left: 1.5rem;
    }

    .product-detail-body li {
        margin-bottom: 0.5rem;
        line-height: 1.65;
    }

/* ── Section blocks ── */

.product-detail-section-block {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.product-detail-section-heading {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: var(--navy);
}

.product-detail-size {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.product-detail-collation {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-muted);
    font-style: italic;
    line-height: 1.6;
}

.product-detail-refs {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--ink-muted);
    font-style: italic;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* ── Supporting Documents (PDF buttons) ── */

.product-supporting-docs {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.product-pdf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.product-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--navy);
    color: var(--navy);
    font-family: var(--font-caps);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.product-pdf-btn::after {
    content: '↗';
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1;
}

.product-pdf-btn:hover {
    background: var(--navy);
    color: var(--white);
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-detail-gallery {
        position: static;
    }

    .product-gallery-main-image {
        aspect-ratio: 4/3;
    }
}

/* ── Gallery lightbox ─────────────────────────────────────────────────────── */

.product-gallery-img {
    cursor: zoom-in;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.gallery-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.96);
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 2;
    background: none;
    border: none;
    color: var(--gold-light);
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color var(--transition);
}

.gallery-lightbox-close:hover {
    color: var(--white);
}

.gallery-lightbox-main {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    padding-top: 3.5rem;
}

.gallery-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: 100%;
    padding: 1.5rem 0;
}

.gallery-lightbox-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    cursor: default;
}

.gallery-lightbox-arrow {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--gold-light);
    font-size: 3.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 1rem 1.25rem;
    transition: color var(--transition);
    align-self: center;
}

.gallery-lightbox-arrow:hover {
    color: var(--white);
}

.gallery-lightbox-thumbs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    overflow-x: auto;
    border-top: 1px solid rgba(184, 150, 90, 0.2);
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.gallery-lightbox-thumbs::-webkit-scrollbar {
    height: 3px;
}

.gallery-lightbox-thumbs::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 2px;
}

.gallery-lightbox-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    padding: 0;
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.gallery-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-lightbox-thumb.is-active {
    border-color: var(--gold);
}

.gallery-lightbox-thumb:not(.is-active):hover {
    border-color: var(--gold-light);
}

/* ── Catalogues page ──────────────────────────────────────────────────────── */

.catalogues-page {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.catalogues-inner {
    max-width: 720px;
}

.catalogues-empty {
    color: var(--ink-muted);
    font-style: italic;
    margin-top: 2rem;
}

.catalogue-filters {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.catalogue-filter-btn {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--ink);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.catalogue-filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.catalogue-filter-btn--active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.catalogue-filter-btn--active:hover {
    color: #fff;
}

.catalogue-list {
    list-style: none;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.catalogue-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0.25rem;
    border-bottom: 1px solid var(--border);
}

.catalogue-info {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.catalogue-downloads {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.catalogue-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color var(--transition), border-color var(--transition);
}

.catalogue-link:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.catalogue-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.catalogue-date {
    font-size: 0.875rem;
    color: var(--ink-faint);
    white-space: nowrap;
}

.catalogue-download-icon {
    color: var(--gold);
    font-size: 1rem;
}

/* ── Sales Channels page ──────────────────────────────────────────────────── */

.sales-channels-page {
    padding: 4rem 0;
    background: var(--white);
}

.sales-channels-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.channel-card {
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.channel-card-eyebrow {
    font-family: var(--font-caps);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.channel-card-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: var(--navy);
}

.channel-card-desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.7;
    flex: 1;
}

.channel-card-link {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.channels-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--ink-faint);
    line-height: 1.7;
}

.channels-footer-link {
    color: var(--navy);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition);
}

.channels-footer-link:hover {
    color: var(--gold);
}

@media (max-width: 860px) {
    .channels-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .sales-channels-page {
        padding: 2.5rem 0;
    }
}

/* ── Filter sidebar toggle (mobile only) ──────────────────────────────────── */

.filter-toggle {
    display: none; /* shown only in mobile media query below */
}

/* ── Mobile nav toggle button ─────────────────────────────────────────────── */

.nav-mobile-toggle {
    display: none; /* hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle-bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 1px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

/* ── Responsive: mobile navigation (≤ 767px) ─────────────────────────────── */

@media (max-width: 767px) {

    /* Prevent any overflowing element from creating horizontal scroll */
    html, body {
        overflow-x: hidden;
    }

    /* Show and position the hamburger button */
    .nav-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        padding: 0.65rem 1.25rem;
    }

    /* Collapse nav-inner by default */
    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    /* Expand when open */
    .site-nav.is-mobile-open .nav-inner {
        max-height: 80vh;
        overflow-y: auto;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    /* Nav links — full-width touch targets */
    .nav-inner .nav-link,
    .nav-inner .nav-search-btn {
        display: block;
        width: 100%;
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
        letter-spacing: 0.04em;
        white-space: normal;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    /* Override desktop active/hover gold-bottom indicator */
    .nav-inner .nav-link:hover,
    .nav-inner .nav-link.active {
        border-bottom-color: rgba(255,255,255,0.07);
    }

    .nav-inner .nav-link.active {
        color: var(--gold-light);
    }

    .nav-inner .nav-link:hover {
        background: rgba(255,255,255,0.05);
    }

    /* Nav items with dropdowns — static, no hover dropdown */
    .nav-inner .nav-item {
        display: block;
        position: static;
    }

    /* Suppress mega-menu and dropdown panels on mobile */
    .mega-menu,
    .dropdown-menu {
        display: none !important;
    }

    /* Hide dropdown chevrons */
    .nav-chevron {
        display: none;
    }

    /* ── Browse by Category — horizontal carousel ── */

    /* Convert 1-column grid (set at 900px) to a scrollable row */
    .category-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        margin-right: -2rem; /* extend track to screen right edge */
        padding-right: 2rem; /* clearance so last card isn't flush against edge */
        padding-bottom: 0.5rem;
        margin-top: 1.5rem;
        scrollbar-width: none;
        grid-template-columns: unset; /* cancel 1fr set at 900px */
    }

    .category-grid::-webkit-scrollbar {
        display: none;
    }

    /* Fixed-width cards; remove the 16/9 that was causing the explosion */
    .category-card {
        flex: 0 0 160px;
        scroll-snap-align: start;
        aspect-ratio: unset;
    }

    /* Image frame: fixed height, clips anything taller */
    .category-card .home-img-frame {
        height: 180px;
        padding: 6px;
        overflow: hidden;
    }

    /* Images fill the frame */
    .category-card .home-img-frame-img {
        width: 100%;
        height: 100%;
        aspect-ratio: unset;
        object-fit: cover;
    }

    /* Colour-block placeholders also fill the frame */
    .category-card .category-card-bg {
        aspect-ratio: unset;
        width: 100%;
        height: 100%;
    }

    /* ── New Acquisitions carousel ── */

    /* Header: put title and "View More" side-by-side on mobile */
    .acquisitions-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    /* Switch the book grid to a horizontal scroll carousel */
    .acquisitions .book-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        margin-right: -2rem; /* extend track to screen right edge */
        padding-right: 2rem; /* clearance so last card isn't flush against edge */
        /* Extra bottom padding so box-shadow on cards isn't clipped */
        padding-bottom: 0.75rem;
        /* Hide the scrollbar — the card "peek" signals scrollability */
        scrollbar-width: none;
        /* Reset grid-specific properties */
        grid-template-columns: unset;
    }

    .acquisitions .book-grid::-webkit-scrollbar {
        display: none;
    }

    /* Fixed-width cards that snap cleanly */
    .acquisitions .book-card {
        flex: 0 0 240px;
        scroll-snap-align: start;
    }

    /* ── Stock page: collapsible filter sidebar ── */

    .filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: none;
        border: none;
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 0;
        font-family: var(--font-caps);
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--navy);
        cursor: pointer;
    }

    .filter-toggle-chevron {
        transition: transform 0.25s ease;
    }

    .filter-sidebar.is-open .filter-toggle-chevron {
        transform: rotate(180deg);
    }

    /* Collapsed by default */
    .filter-sidebar #filter-form {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    /* Expanded state */
    .filter-sidebar.is-open #filter-form {
        max-height: 120vh;
        overflow-y: auto;
        padding-top: 1rem;
    }

    /* ── Stock page: compact 3-column product grid ── */

    .product-grid-area .book-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .product-grid-area .book-card-body {
        padding: 0.4rem 0.5rem;
        gap: 0.1rem;
    }

    .product-grid-area .book-card-title {
        font-size: 0.75rem;
    }

    .product-grid-area .book-card-author,
    .product-grid-area .book-card-date {
        font-size: 0.6rem;
    }

    .product-grid-area .book-card-price {
        font-size: 0.7rem;
    }

    /* Too cramped at 3-col — remove secondary price, vat note, and action button */
    .product-grid-area .book-card-price-estimate,
    .product-grid-area .price-excl-note,
    .product-grid-area .book-card-cart-form,
    .product-grid-area .book-card-add-btn {
        display: none;
    }

    /* ── Categories page ── */

    .categories-page {
        padding: 2.5rem 0;
    }

    .page-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    /* 4-col grid → 2-col on mobile */
    .category-nav-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 2rem;
    }

    /* Remove the vertical column dividers — they don't work in a 2-col grid */
    .category-nav-inner .mega-col {
        border-right: none;
        padding-right: 0;
    }

    .category-nav-inner .mega-col + .mega-col {
        padding-left: 0;
    }

    /* ── Blog preview — horizontal carousel ── */

    .blog-preview-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        margin-right: -2rem; /* extend track to screen right edge */
        padding-right: 2rem; /* clearance so last card isn't flush against edge */
        padding-bottom: 0.75rem;
        margin-top: 1.5rem;
        scrollbar-width: none;
        grid-template-columns: unset;
    }

    .blog-preview-grid::-webkit-scrollbar {
        display: none;
    }

    .blog-preview-grid .blog-card {
        flex: 0 0 260px;
        scroll-snap-align: start;
    }

    /* Hamburger → X animation when nav is open */
    .site-nav.is-mobile-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-nav.is-mobile-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.1);
    }

    .site-nav.is-mobile-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ── Responsive: phone layout fixes (≤ 640px) ────────────────────────────── */

@media (max-width: 640px) {

    /* Tighter header padding */
    .header-inner {
        padding: 0.75rem 1rem;
    }

    /* Hero — reduce top/bottom breathing room */
    .hero-content {
        padding: 2.5rem 1.25rem;
    }

    .hero-banner {
        min-height: auto;
    }

    /* Home section padding */
    .acquisitions {
        padding: 2.5rem 0;
    }

    .catalogues-preview,
    .philosophy {
        padding: 3rem 0;
    }

    .category-browse {
        padding: 3rem 0;
    }

    .blog-preview {
        padding: 2.5rem 0;
    }

    /* Julia banner — remove large side padding that squeezes the image */
    .julia-banner {
        padding: 0;
    }

    .julia-banner-img {
        height: 260px;
    }

    /* Home about text */
    .home-about-text {
        padding: 2.5rem 1.25rem;
    }

    /* Product list page header — stack title and count vertically */
    .product-list-page .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ── Responsive: narrow phones (≤ 480px) ────────────────────────────────── */

@media (max-width: 480px) {

    /* Hide language/currency selectors to prevent header overflow */
    .pref-dropdown {
        display: none;
    }

    /* Slightly smaller brand name */
    .brand-name {
        font-size: 0.9rem;
    }

    /* Categories page — single column on very narrow phones */
    .category-nav-inner {
        grid-template-columns: 1fr;
    }
}
