:root {
    --hero-height: min(90vh, 780px);
    --section-padding: clamp(3rem, 6vw, 6rem);
    --card-radius: 24px;
}

body {
    background: var(--bg);
}

.hero {
    min-height: var(--hero-height);
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: calc(var(--nav-height, 80px) + 4rem) 1.5rem 5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('resources/product-page/background-image-product-page.jpeg') center/cover no-repeat;
    transform-origin: center;
    animation: kenburns 18s ease-in-out infinite alternate;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.75)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.85));
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    color: var(--gold-2);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2.4vw, 1.35rem);
    color: var(--cream-muted);
}

.scroll-hint {
    display: inline-flex;
    width: 42px;
    height: 60px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 50%;
    bottom: calc(clamp(18px, 4vh, 48px) + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    color: var(--cream);
    transition: border-color 0.3s ease;
    z-index: 2;
}

.scroll-hint:hover {
    border-color: var(--gold-2);
}

.scroll-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gold-2);
    border-bottom: 2px solid var(--gold-2);
    transform: rotate(45deg);
    animation: bounce 1.6s ease-in-out infinite;
}

.section {
    padding: var(--section-padding) clamp(1.5rem, 5vw, 4rem);
}

#highlights {
    padding-bottom: calc(var(--section-padding) + clamp(1.5rem, 3vw, 2.5rem));
}

.section-dark {
    background: var(--bg-2);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-top: 0.5rem;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.8rem;
    color: var(--gold-2);
}

.highlights-menu-wrap {
    display: flex;
    justify-content: center;
    margin: 1.5rem auto 2.5rem;
}

.highlights-menu-frame {
    width: min(1000px, 92vw);
    border-radius: 28px;
    border: 1px solid var(--border-gold);
    background: rgba(0, 0, 0, 0.35);
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.menu-svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
}

.highlight-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 1080px;
    margin: 0 auto;
}

.highlight-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-gold);
    border-radius: var(--card-radius);
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.highlight-media {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.highlight-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: inherit;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.highlight-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.18s ease, transform 0.8s ease;
}

.highlight-img--a {
    opacity: 1;
}

.highlight-img--b {
    opacity: 0;
}

.highlight-swap.is-alt .highlight-img--a {
    opacity: 0;
}

.highlight-swap.is-alt .highlight-img--b {
    opacity: 1;
}

.highlight-card:hover .highlight-img--a {
    opacity: 0;
}

.highlight-card:hover .highlight-img--b {
    opacity: 1;
}

.highlight-card:hover .highlight-img {
    transform: scale(1.02);
}

.highlight-content {
    padding: 1.75rem;
    display: grid;
    gap: 0.8rem;
}

.highlight-content h3 {
    font-size: 1.4rem;
}

.highlight-content p {
    color: var(--cream-muted);
    font-family: var(--font-sans);
}

.highlight-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    color: var(--bg);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.highlight-cta {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(201, 168, 108, 0.55);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.highlight-cta:active {
    transform: translateY(1px);
}

@media (hover: none) and (pointer: coarse) {
    .highlight-cta {
        display: inline-flex;
    }

    .highlight-image-wrap,
    .highlight-cta {
        touch-action: manipulation;
    }
}

@media (min-width: 1024px) {
    .highlight-cta {
        display: none !important;
    }
}

.category-bar {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 auto 2rem;
    padding: 0.5rem 0.75rem;
    position: sticky;
    top: calc(var(--nav-height, 80px) + 1rem);
    z-index: 3;
    background: rgba(11, 11, 11, 0.9);
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    max-width: min(720px, 100%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.category-bar::-webkit-scrollbar {
    display: none;
}

.chip {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--cream);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    scroll-snap-align: center;
    white-space: nowrap;
}

.chip.is-active,
.chip:hover {
    border-color: var(--gold-2);
    color: var(--gold-2);
    box-shadow: 0 0 18px rgba(209, 180, 122, 0.2);
}

.gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    column-count: 4;
    column-gap: 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-grid.is-filtering {
    opacity: 0;
    transform: translateY(8px);
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(209, 180, 122, 0.2);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    color: inherit;
    text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item img {
    width: 100%;
    display: block;
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-caption h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.gallery-caption span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--cream-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(176, 138, 75, 0.25);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.featured::after {
    content: 'Featured';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--gold-2);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(209, 180, 122, 0.5);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.video-card {
    width: 56%;
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-gold);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.video-card video,
.pour-video {
    width: 100%;
    border-radius: 18px;
    display: block;
    background: #000;
    height: auto;
}

.video-caption {
    margin-top: 1rem;
    color: var(--cream-muted);
    font-family: var(--font-sans);
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox-content {
    position: relative;
    max-width: min(90vw, 980px);
    max-height: 90vh;
    z-index: 1;
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-gold);
    border-radius: var(--card-radius);
    backdrop-filter: blur(12px);
}

.lightbox-figure {
    margin: 0;
    text-align: center;
}

.lightbox-figure img {
    max-width: min(80vw, 820px);
    max-height: 65vh;
    border-radius: 18px;
}

.lightbox-figure figcaption {
    margin-top: 1rem;
    font-family: var(--font-sans);
    color: var(--cream-muted);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(209, 180, 122, 0.5);
    color: var(--cream);
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.lightbox-nav.prev {
    left: 1rem;
}

.lightbox-nav.next {
    right: 1rem;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(176, 138, 75, 0.2);
}

@media (max-width: 1100px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 720px) {
    .gallery-grid {
        column-count: 1;
    }

    #gallery-grid.is-switching {
        opacity: 0.25;
        filter: blur(2px);
        transition: opacity 160ms ease, filter 160ms ease;
        pointer-events: none;
    }

    #browse-top {
        scroll-margin-top: 90px;
    }

    #gallery-grid .gallery-item {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 200ms ease, transform 200ms ease;
    }

    #gallery-grid .gallery-item.is-ready {
        opacity: 1;
        transform: translateY(0);
    }

    .video-card {
        width: 92%;
    }

    .category-bar {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
    }

    .gallery-caption {
        opacity: 1;
        transform: translateY(0);
    }

    .lightbox-content {
        padding: 2rem 1.5rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-2%, -1%);
    }
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(6px) rotate(45deg);
    }
}

@media (hover: none) {
    .gallery-caption {
        opacity: 1;
        transform: translateY(0);
    }
}
