/* A dark collection entrance opens onto quiet, evenly lit product displays. */
.collection-masthead {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #faf2e4;
    background:
        radial-gradient(ellipse at 83% 28%, #9b6a392d, transparent 48%),
        linear-gradient(110deg, #27170f, #3c2518 65%, #2b1a13);
    border-bottom: 1px solid #ad804b;
}

.collection-masthead::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -122%;
    left: 51%;
    width: 56%;
    height: 213%;
    border: 1px solid #d9b47646;
    border-radius: 50%;
    box-shadow: 0 0 0 32px #d9b47611, 0 0 0 75px #d9b4760a;
    transform: rotate(-20deg);
    pointer-events: none;
}

.collection-masthead .collection-heading {
    padding-block: 24px clamp(35px, 4vw, 51px);
}

.collection-masthead .breadcrumbs,
.collection-masthead .breadcrumbs a {
    color: #e6d4bf;
}

.collection-masthead .breadcrumbs a:hover {
    color: #ffe0a4;
}

.collection-masthead .collection-heading-row {
    padding-top: clamp(27px, 3.2vw, 43px);
    gap: clamp(22px, 5vw, 80px);
}

.collection-masthead .collection-heading-row .eyebrow {
    color: #e9c68e;
    margin-bottom: 18px;
}

.collection-masthead h1 {
    color: #faf2e4;
    font-size: clamp(43px, 5.8vw, 80px);
    line-height: 1.02;
    letter-spacing: -.052em;
    overflow-wrap: anywhere;
}

.collection-masthead h1 em {
    color: #edca96;
}

.collection-masthead-copy {
    max-width: 285px;
    margin-bottom: 7px;
    padding: 0 0 3px 21px;
    border-left: 1px solid #dfb97f76;
}

.collection-masthead-copy .icon {
    width: 29px;
    height: 29px;
    margin-bottom: 11px;
    color: #edca96;
}

.collection-masthead-copy p {
    color: #eadbc9;
    font-size: 14px;
    line-height: 1.75;
}

.page-collection .catalog-section {
    padding-top: clamp(24px, 2.65vw, 38px);
}

.page-collection .collection-brand-rail {
    margin-bottom: 0;
    padding-bottom: 17px;
}

.page-collection .collection-brand-link {
    border-radius: 2px;
    border-color: #d8c3a3;
    background: #fffaf0;
    color: #5a4430;
}

.page-collection .collection-brand-link:hover {
    background: #f3e5cc;
    color: #342315;
}

.page-collection .collection-brand-link.is-active,
.page-collection .collection-brand-link[aria-current] {
    border-color: #b38a51;
    background: var(--gold-gradient);
    color: #322114;
    box-shadow: inset 0 1px #fff9ec6b;
}

.page-collection .catalog-toolbar {
    padding-block: 17px;
    margin-bottom: 27px;
    border-block: 1px solid #e4d6c0;
}

.page-collection .catalog-search,
.page-collection .sort-control select,
.page-collection .filter-group select {
    border-color: #d6c09e;
    background: #fffcf5;
}

.page-collection .catalog-filters {
    border-color: #dcc8a8;
    border-top: 2px solid #b48b52;
    background: linear-gradient(150deg, #fff9ed, #f4eadb);
    box-shadow: 0 14px 30px -29px #4b2f1d7a;
}

.page-collection .results-heading > p > strong {
    color: #6d4c28;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
}

.page-collection .active-filters > a:not(.clear-all) {
    background: #f2e4cb;
    border: 1px solid #decca9;
}

/* Shared cards appear on the homepage, collection and related products. */
.product-grid .product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e4d5bd;
    border-radius: 4px;
    background: #fffaf1;
    box-shadow: 0 12px 30px -26px #51341e70;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.product-grid .product-card:hover,
.product-grid .product-card:focus-within {
    border-color: #bc965f;
    box-shadow: 0 19px 40px -27px #49301d8f;
}

.product-grid .product-visual {
    margin: 7px 7px 0;
    border: 1px solid #e6d6bb;
    border-radius: 2px;
    background: #fff;
    box-shadow: none;
}

.product-grid .product-card:hover .product-visual,
.product-grid .product-card:focus-within .product-visual {
    border-color: #ceb083;
    box-shadow: none;
}

.product-grid .product-image-link img {
    padding: clamp(10px, 1.7vw, 24px);
    transition: transform .42s var(--ease);
}

.product-grid .product-image-link.has-card-alternate { position: relative; }
.product-grid .product-image-link > .product-card-alternate {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .product-grid .product-card:hover .has-card-alternate > img { opacity: 0; }
    .product-grid .product-card:hover .has-card-alternate > .product-card-alternate { opacity: 1; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .storefront .product-grid .product-image-link.has-card-alternate > img {
        transition: transform 440ms var(--ease), opacity 300ms var(--ease);
    }
}

.product-grid .save-button {
    z-index: 2;
    border-color: #dec9a8;
    background: #fffaf1f5;
}

.product-grid .save-button[aria-pressed="true"] {
    background: #f1dfb8;
}

.product-grid .quick-view-button {
    position: static;
    z-index: 1;
    width: 100%;
    min-height: 44px;
    justify-content: space-between;
    gap: 6px;
    padding-inline: 12px;
    border-top: 1px solid #dec7a3;
    background: #fff5e3;
    color: #382615;
    transform: none;
}

.product-grid .quick-view-button:hover {
    background: #f0deb9;
}

.product-grid .product-card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px clamp(11px, 1.35vw, 20px) 14px;
}

.product-grid .product-brand {
    color: #795328;
    line-height: 1.45;
    letter-spacing: .115em;
}

.product-grid .product-card h3 {
    font-family: var(--serif);
    font-size: clamp(16px, 1.55vw, 23px);
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-grid .product-card-bottom {
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 13px;
}

.product-grid .card-arrow {
    border-color: #d4b98f;
    color: #6b4827;
}

.product-grid .card-arrow:hover {
    background: #f0deb9;
}

@media (hover: hover) and (pointer: fine) {
    .product-grid .quick-view-button {
        position: absolute;
        background: #fff3dcf5;
        transform: translateY(105%);
        transition: transform .24s var(--ease), background .2s var(--ease);
    }

    .product-grid .product-card:hover .quick-view-button,
    .product-grid .product-card:focus-within .quick-view-button {
        transform: translateY(0);
    }

    .product-grid .product-card:hover .product-image-link img {
        transform: scale(1.04);
    }
}

@media (any-pointer: coarse) {
    .product-grid .quick-view-button,
    .product-grid .product-card:hover .quick-view-button,
    .product-grid .product-card:focus-within .quick-view-button {
        position: static;
        transform: none;
    }
}

.product-grid .product-image-link:focus-visible,
.product-grid .quick-view-button:focus-visible,
.gallery-product-page .detail-image-zoom:focus-visible {
    outline: 2px solid #8b642b;
    outline-offset: -4px;
}

/* The detail image stays square while its frame and product facts read as one display. */
.gallery-product-page .product-detail {
    gap: clamp(29px, 5.5vw, 86px);
}

.gallery-product-page .detail-image,
.gallery-product-page .detail-copy {
    min-width: 0;
}

.gallery-product-page .detail-image {
    padding: clamp(9px, 1.4vw, 20px);
    border: 1px solid #c7a87a;
    border-radius: 4px;
    background: linear-gradient(145deg, #f9f0dd, #e9d6b5);
    box-shadow: 0 25px 52px -37px #51371f81, inset 0 0 0 3px #fbf4e7;
}

.gallery-product-page .detail-image-zoom {
    border: 1px solid #dfc9a7;
}

.gallery-product-page .detail-image-zoom > img {
    padding: clamp(16px, 3.4vw, 44px);
}

.gallery-product-page .detail-zoom-hint {
    background: #fff7e8f5;
    color: #624527;
    border-color: #d8be94;
}

.gallery-product-page .detail-copy > .eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
}

.gallery-product-page .detail-copy > .eyebrow::before {
    content: "";
    flex: 0 0 22px;
    height: 1px;
    background: #ad834b;
}

.gallery-product-page .detail-copy h1 {
    font-size: clamp(34px, 4.15vw, 60px);
    overflow-wrap: anywhere;
}

.gallery-detail-status {
    margin-top: 25px;
    padding: 14px 17px;
    border-block: 1px solid #dbc5a3;
    background: linear-gradient(112deg, #f2e5cf, #fbf5e8);
}

.gallery-detail-status .stock-status {
    margin-top: 0;
    color: #725126;
}

.gallery-product-page .product-notes {
    padding: clamp(25px, 4.6vw, 65px);
    border: 1px solid #e0cdae;
    border-top: 2px solid #b48b52;
    border-radius: 4px;
    background: #fcf4e6;
}

@media (max-width: 780px) {
    .collection-masthead .collection-heading-row {
        display: block;
    }

    .collection-masthead-copy {
        margin-top: 19px;
        margin-bottom: 0;
        padding-left: 13px;
    }

    .collection-masthead-copy .icon {
        display: none;
    }

    .collection-masthead-copy p {
        font-size: 13px;
    }

    .product-grid .product-visual {
        margin: 5px 5px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-grid .product-card,
    .product-grid .product-image-link img,
    .product-grid .quick-view-button,
    .gallery-product-page .detail-image-zoom > img {
        transition: none;
    }

    .product-grid .product-card:hover .product-image-link img,
    .gallery-product-page .detail-image-zoom:hover > img {
        transform: none;
    }
}
