/* COLLECTION LANDINGPAGE */

.collection-page {
    min-height: 60vh;
}

.collection-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #24211d;
    background-position: center;
    background-size: cover;
}

.collection-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(10, 10, 10, .76) 0%,
            rgba(10, 10, 10, .48) 48%,
            rgba(10, 10, 10, .18) 100%);
}

.collection-hero--light .collection-hero__overlay {
    background:
        linear-gradient(90deg,
            rgba(245, 242, 235, .92) 0%,
            rgba(245, 242, 235, .72) 48%,
            rgba(245, 242, 235, .28) 100%);
}

.collection-hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding-top: 120px;
    padding-bottom: 90px;
}

.collection-hero__kicker {
    display: block;
    margin-bottom: 22px;
    color: #d0ad68;
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.collection-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #f3eee7;
    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 300;
    letter-spacing: -.04em;
    line-height: 1.04;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.collection-hero p {
    max-width: 720px;
    margin: 32px 0 0;
    color: rgba(245, 241, 234, .86);
    font-size: 1.18rem;
    line-height: 1.8;
}

.collection-hero--light h1 {
    color: var(--text);
    text-shadow: none;
}

.collection-hero--light p {
    color: var(--muted);
}

.collection-empty,
.collection-not-found {
    padding: 180px 0 120px;
}

.collection-empty h1,
.collection-not-found h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    font-weight: 300;
}

@media (max-width: 768px) {
    .collection-hero {
        min-height: 72vh;
    }

    .collection-hero__overlay,
    .collection-hero--light .collection-hero__overlay {
        background: rgba(10, 10, 10, .62);
    }

    .collection-hero__content {
        padding-top: 150px;
        padding-bottom: 70px;
    }

    .collection-hero h1 {
        font-size: 3rem;
    }

    .collection-hero p {
        font-size: 1rem;
    }
}


/* BOTTLE CATALOG */

.bottle-catalog {
    padding: 120px 0;
    background: var(--background);
}

.bottle-catalog--dark {
    --catalog-background: #151515;
    --catalog-surface: #202020;
    --catalog-text: #f3eee7;
    --catalog-muted: rgba(243, 238, 231, .68);
    --catalog-border: rgba(255, 255, 255, .1);

    background: var(--catalog-background);
    color: var(--catalog-text);
}

.bottle-catalog--light {
    --catalog-background: var(--background);
    --catalog-surface: var(--white);
    --catalog-text: var(--text);
    --catalog-muted: var(--muted);
    --catalog-border: var(--border);
}

.bottle-catalog__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 54px;
}

.bottle-catalog__header>div:first-child {
    max-width: 820px;
}

.bottle-catalog__kicker {
    display: block;
    margin-bottom: 16px;
    color: var(--accent-dark);
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.bottle-catalog--dark .bottle-catalog__kicker {
    color: #d0ad68;
}

.bottle-catalog h2 {
    margin: 0;
    color: var(--catalog-text);
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 300;
    letter-spacing: -.03em;
    line-height: 1.12;
}

.bottle-catalog__header p {
    max-width: 720px;
    margin: 26px 0 0;
    color: var(--catalog-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.bottle-catalog__count {
    flex: 0 0 auto;
    min-width: 130px;
    padding-left: 28px;
    border-left: 1px solid var(--catalog-border);
}

.bottle-catalog__count strong {
    display: block;
    color: var(--catalog-text);
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1;
}

.bottle-catalog__count span {
    display: block;
    margin-top: 9px;
    color: var(--catalog-muted);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bottle-catalog__grid {
    display: grid;
    gap: 24px;
}

.bottle-catalog--columns-3 .bottle-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bottle-catalog--columns-4 .bottle-catalog__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bottle-catalog--columns-5 .bottle-catalog__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bottle-card {
    min-width: 0;
    overflow: hidden;
    background: var(--catalog-surface);
    border: 1px solid var(--catalog-border);
}

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

.bottle-card__link:hover {
    opacity: 1;
}

.bottle-card__image {
    position: relative;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(180deg,
            rgba(176, 138, 87, .05),
            rgba(176, 138, 87, .015)),
        #f4f1ea;
    border-bottom: 1px solid var(--catalog-border);
}

.bottle-catalog--dark .bottle-card__image {
    background:
        linear-gradient(180deg,
            rgba(208, 173, 104, .08),
            rgba(208, 173, 104, .015)),
        #191919;
}

.bottle-card__image img {
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
    object-position: center;
    transition: transform .28s ease;
}

.bottle-card__link:hover .bottle-card__image img {
    transform: scale(1.025);
}

.bottle-card__placeholder {
    width: 44px;
    height: 120px;
    border: 1px solid #b9b2a6;
    border-radius: 8px 8px 3px 3px;
    background:
        linear-gradient(to bottom,
            transparent 0 22%,
            rgba(176, 138, 87, .2) 22% 72%,
            transparent 72%);
}

.bottle-card__content {
    padding: 22px 20px 24px;
}

.bottle-card h3 {
    margin: 0;
    color: var(--catalog-text);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.38;
}

.bottle-card p {
    margin: 9px 0 0;
    color: var(--catalog-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.bottle-catalog__notice,
.bottle-catalog__empty {
    margin-top: 38px;
    color: var(--catalog-muted);
    font-size: .95rem;
    text-align: center;
}

.bottle-catalog__empty {
    padding: 60px 24px;
    border: 1px solid var(--catalog-border);
}

@media (max-width: 1200px) {

    .bottle-catalog--columns-5 .bottle-catalog__grid,
    .bottle-catalog--columns-4 .bottle-catalog__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .bottle-catalog--columns-3 .bottle-catalog__grid,
    .bottle-catalog--columns-4 .bottle-catalog__grid,
    .bottle-catalog--columns-5 .bottle-catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bottle-catalog__header {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .bottle-catalog {
        padding: 80px 0;
    }

    .bottle-catalog__header {
        display: block;
        margin-bottom: 38px;
    }

    .bottle-catalog__count {
        display: flex;
        align-items: baseline;
        gap: 10px;
        min-width: 0;
        margin-top: 30px;
        padding: 0;
        border-left: 0;
    }

    .bottle-catalog__count strong {
        font-size: 2rem;
    }

    .bottle-catalog__count span {
        margin: 0;
    }

    .bottle-card__content {
        padding: 18px 16px 20px;
    }
}

@media (max-width: 520px) {

    .bottle-catalog--columns-3 .bottle-catalog__grid,
    .bottle-catalog--columns-4 .bottle-catalog__grid,
    .bottle-catalog--columns-5 .bottle-catalog__grid {
        grid-template-columns: 1fr;
    }

    .bottle-card__image {
        aspect-ratio: 5 / 4;
    }
}


/* BOTTLE CATALOG LOAD MORE */

.bottle-catalog__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 48px;
}

.bottle-catalog__status {
    color: var(--catalog-muted);
    font-size: .9rem;
}

.bottle-catalog__status strong {
    color: var(--catalog-text);
    font-weight: 500;
}

.bottle-catalog__load-more {
    min-width: 180px;
    padding: 15px 28px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    cursor: pointer;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.bottle-catalog__load-more:hover,
.bottle-catalog__load-more:focus-visible {
    background: var(--accent);
    color: var(--dark);
}

.bottle-catalog--dark .bottle-catalog__load-more {
    color: #d0ad68;
    border-color: rgba(208, 173, 104, .7);
}

.bottle-catalog--dark .bottle-catalog__load-more:hover,
.bottle-catalog--dark .bottle-catalog__load-more:focus-visible {
    background: #d0ad68;
    color: #151515;
}

.bottle-catalog__load-more:disabled {
    opacity: .55;
    cursor: wait;
}

.bottle-catalog__load-more[hidden] {
    display: none;
}

.collection-metrics {
    padding: clamp(2rem, 4vw, 4rem) 0;
}

.collection-metrics--dark {
    background: #0b0b0b;
    color: #f4f0e8;
}

.collection-metrics--light {
    background: #f5f2ec;
    color: #181818;
}

.collection-metrics__headline {
    margin: 0 0 1.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #b99150;
}

.collection-metrics__grid {
    display: grid;
    grid-template-columns:
        repeat(var(--collection-metrics-columns, 4),
            minmax(0, 1fr));
    border-top: 1px solid rgba(185, 145, 80, 0.3);
    border-bottom: 1px solid rgba(185, 145, 80, 0.3);
}

.collection-metrics__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-width: 0;
    padding: 1.6rem 1.25rem;
    border-right: 1px solid rgba(185, 145, 80, 0.3);
}

.collection-metrics__item--link {
    color: inherit;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.collection-metrics__item--link:hover,
.collection-metrics__item--link:focus-visible {
    background: rgba(208, 173, 104, .08);
    color: inherit;
    transform: translateY(-2px);
}

.collection-metrics__item--link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

.collection-metrics__item:last-child {
    border-right: 0;
}

.collection-metrics__icon {
    flex: 0 0 auto;
    font-size: 2.2rem;
    line-height: 1;
    color: #b99150;
}

.collection-metrics__icon svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.collection-metrics__content {
    min-width: 0;
}

.collection-metrics__value {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    line-height: 1;
    color: #b99150;
}

.collection-metrics__label {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.25;
    opacity: 0.78;
}

.collection-metrics--light .collection-metrics__label {
    opacity: 0.7;
}

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

    .collection-metrics__item:nth-child(2n) {
        border-right: 0;
    }

    .collection-metrics__item:nth-child(n + 3) {
        border-top: 1px solid rgba(185, 145, 80, 0.3);
    }
}

@media (max-width: 520px) {
    .collection-metrics__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collection-metrics__item {
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.65rem;
        padding: 1.25rem 0.7rem;
    }

    .collection-metrics__icon {
        font-size: 1.45rem;
    }

    .collection-metrics__value {
        font-size: clamp(1.65rem, 9vw, 2.15rem);
    }

    .collection-metrics__label {
        font-size: 0.78rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
}

/* Collection feature block */
.collection-feature {
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: #f5f1e8;
    color: #211c16;
}

.collection-feature__header {
    min-width: 0;
}

.collection-feature__teaser {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.collection-feature__teaser--without-image {
    display: block;
}

.collection-feature__teaser--without-image .collection-feature__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    gap: 2rem 4rem;
    align-items: end;
}

.collection-feature__image-wrap {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #e8e3da;
}

.collection-feature__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-feature__kicker {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #806947;
}

.collection-feature__header h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.02;
}

.collection-feature__description {
    margin: 1.25rem 0 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5f5549;
}

.collection-feature__story {
    max-width: 52rem;
    margin-top: 1rem;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.7;
    color: #3c352d;
}

.collection-feature__story-more {
    margin-top: 1.25rem;
}

.collection-feature__story-more summary {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.25rem 0;
    color: #526b58;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.35em;
    cursor: pointer;
    list-style: none;
}

.collection-feature__story-more summary::-webkit-details-marker {
    display: none;
}

.collection-feature__story-more summary:hover,
.collection-feature__story-more summary:focus-visible {
    color: #354b3d;
}

.collection-feature__story-more summary:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 5px;
}

.collection-feature__story-more summary > span:last-child {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.collection-feature__story-close-label {
    display: none;
}

.collection-feature__story-more[open] .collection-feature__story-open-label {
    display: none;
}

.collection-feature__story-more[open] .collection-feature__story-close-label {
    display: inline;
}

.collection-feature__story-more[open] summary > span:last-child {
    transform: rotate(180deg);
}

.collection-feature__scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(12rem, 17rem);
    gap: clamp(1rem, 2vw, 1.75rem);
    overflow-x: auto;
    padding: 0.25rem max(1rem, calc((100vw - 1320px) / 2)) 1.5rem;
    scroll-padding-inline: max(1rem, calc((100vw - 1320px) / 2));
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.collection-feature__scroller .bottle-card {
    min-width: 0;
    scroll-snap-align: start;
}

.collection-feature__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.collection-feature__all-link {
    color: inherit;
    font-weight: 700;
    text-underline-offset: 0.3em;
}

.bottle-catalog__active-feature {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    align-items: baseline;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border-left: 3px solid currentColor;
}

.bottle-catalog__active-feature span {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.65;
}

@media (max-width: 767px) {
    .collection-feature__teaser,
    .collection-feature__teaser--without-image .collection-feature__header {
        grid-template-columns: 1fr;
    }

    .collection-feature__scroller {
        grid-auto-columns: minmax(10.5rem, 72vw);
    }
}

/* One-page collection navigation */


.collection-jump-nav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    min-width: 0;
    padding: 0.5rem 0;
}
.ddcollection-jump-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(33, 28, 22, 0.12);
    background: rgba(250, 248, 243, 0.94);
    color: #211c16;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.collection-jump-nav__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: center;
    min-height: 4rem;
    padding: 0.5rem 0;
}

.collection-jump-nav__label {
    flex: 0 0 auto;
    margin: 0;
}

.collection-jump-nav__links {
    display: contents;
}

.collection-jump-nav__links a {
    flex: 0 0 auto;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    color: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}



.collection-jump-nav__links::-webkit-scrollbar {
    display: none;
}

.collection-jump-nav__links a {
    flex: 0 0 auto;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    color: inherit;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.collection-jump-nav__links a:hover,
.collection-jump-nav__links a:focus-visible {
    background: #211c16;
    color: #fff;
}

.collection-feature,
#collection-catalog {
    scroll-margin-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.collection-jump-nav) {
        scroll-behavior: smooth;
    }
}

@media (max-width: 767px) {
    .collection-jump-nav__inner {
        display: block;
        padding-top: 0.7rem;
        padding-bottom: 0.55rem;
    }

    .collection-jump-nav__label {
        display: block;
        margin-bottom: 0.55rem;
    }

    .collection-jump-nav__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        width: 100%;
        overflow: visible;
        padding: 0;
        border-top: 1px solid rgba(33, 28, 22, 0.12);
    }

    .collection-jump-nav__links a {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 2.55rem;
        padding: 0.55rem 0.5rem;
        border-bottom: 1px solid rgba(33, 28, 22, 0.12);
        border-radius: 0;
        font-size: 0.78rem;
        line-height: 1.2;
        white-space: normal;
    }

    .collection-jump-nav__links a:nth-child(odd) {
        padding-left: 0;
        border-right: 1px solid rgba(33, 28, 22, 0.12);
    }

    .collection-jump-nav__links a:nth-child(even) {
        padding-right: 0;
        padding-left: 0.8rem;
    }

    .collection-jump-nav__links a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        border-right: 0;
    }
}
