/* =========================================================
   HUSNARA SHOP PAGE
   ========================================================= */

.shop-page {
    background: #fbf9f6;
    color: #1a1210;
}

.shop-page .wrap {
    width: min(92vw, 1480px);
    margin-inline: auto;
}

/* =========================================================
   SHOP HERO
   ========================================================= */

.shop-hero {
    padding: 96px 0 88px;
    border-bottom: 1px solid rgba(74, 15, 19, .16);
    background: #f7f2ee;
}

.shop-hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 76px;
    align-items: end;
}

.shop-hero .crumb {
    grid-column: 1 / -1;
    margin: 0;
    color: #806d66;
    font: 400 10px "Space Mono", monospace;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.shop-hero h1 {
    margin: 0;
    color: #4a0f13;
    font: 300 92px/.9 Fraunces, Georgia, serif;
}

.shop-hero p {
    max-width: 520px;
    margin: 0 0 5px;
    color: #66534d;
    font-size: 17px;
    line-height: 1.75;
}

/* =========================================================
   CATEGORY BAR
   ========================================================= */

.shop-category-bar {
    width: 100%;
    background: #fbf9f6;
    border-bottom: 1px solid rgba(74, 15, 19, .14);
}

.shop-category-bar__inner {
    width: min(92vw, 1800px);
    min-height: 90px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;
}

/* Categories */

.shop-category-bar__categories {
    min-width: 0;
    height: 90px;

    display: flex;
    align-items: stretch;

    gap: 44px;

    overflow-x: auto;
    scrollbar-width: none;
}

.shop-category-bar__categories::-webkit-scrollbar {
    display: none;
}

.shop-category-bar__categories a {
    position: relative;

    display: flex;
    align-items: center;

    flex: 0 0 auto;

    padding: 0 2px;

    color: #54151d;
    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;

    letter-spacing: .08em;
    text-transform: uppercase;

    white-space: nowrap;
}

.shop-category-bar__categories a::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: #54151d;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .25s ease;
}

.shop-category-bar__categories a:hover::after,
.shop-category-bar__categories a.is-active::after {
    transform: scaleX(1);
}

/* =========================================================
   CATEGORY BAR RIGHT
   ========================================================= */

.shop-category-bar__right {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 28px;
}

.shop-category-count {
    color: #806d66;

    font-family: "Space Mono", monospace;
    font-size: 9px;
    letter-spacing: .08em;

    white-space: nowrap;
}

/* =========================================================
   SORT
   ========================================================= */

.shop-sort-form {
    position: relative;

    width: 220px;
    height: 52px;

    display: flex;
    align-items: center;

    border: 1px solid rgba(74, 15, 19, .20);
    border-radius: 999px;

    background: #fbf9f6;

    overflow: hidden;
}

.shop-sort-form label {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.shop-sort-form select {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    height: 100%;

    padding: 0 42px 0 24px;

    border: 0;
    outline: 0;

    background:
        linear-gradient(45deg, transparent 50%, #54151d 50%)
        calc(100% - 18px) 22px / 6px 6px no-repeat,

        linear-gradient(135deg, #54151d 50%, transparent 50%)
        calc(100% - 13px) 22px / 6px 6px no-repeat,

        #fbf9f6;

    color: #54151d;

    font-family: "Space Mono", monospace;
    font-size: 9px;
    font-weight: 400;

    letter-spacing: .08em;
    text-transform: uppercase;

    cursor: pointer;
}

/* =========================================================
   CATALOGUE
   ========================================================= */

.catalogue {
    padding: 48px 0 78px;
}

.shop-page .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 54px 18px;
}

.shop-card {
    min-width: 0;
}

.shop-card__media {
    position: relative;

    aspect-ratio: 3 / 4;

    overflow: hidden;

    background: #eee7e2;
}

.shop-card__media > a {
    display: block;
    width: 100%;
    height: 100%;
}

.shop-card__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.shop-card__media img + img {
    position: absolute;
    inset: 0;

    opacity: 0;

    transition: opacity .3s ease;
}

.shop-card:hover .shop-card__media img + img,
.shop-card:focus-within .shop-card__media img + img {
    opacity: 1;
}

/* Wishlist */

.shop-card__media .product-wish {
    position: absolute;
    z-index: 4;

    top: 12px;
    right: 12px;
}

/* Desktop quick add */

.shop-card__desktop-form {
    position: absolute;
    z-index: 3;

    right: 12px;
    bottom: 12px;
    left: 12px;

    display: grid;
    gap: 8px;

    transform: translateY(10px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s;
}

.shop-card:hover .shop-card__desktop-form,
.shop-card:focus-within .shop-card__desktop-form {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.shop-card__desktop-form select,
.shop-card__desktop-form button {
    width: 100%;
    height: 40px;

    border: 1px solid #4a0f13;

    background: #fbf9f6;
    color: #4a0f13;

    font: 600 9px "Space Mono", monospace;
    letter-spacing: .12em;

    text-transform: uppercase;
}

.shop-card__desktop-form button {
    cursor: pointer;
}

.shop-card__desktop-form [data-cart-feedback] {
    min-height: 15px;

    margin: 0;

    color: #7c1720;

    text-align: center;

    font-size: 11px;
    line-height: 1.25;

    text-shadow: 0 1px #fbf9f6;
}

/* Product info */

.shop-card__info {
    padding: 17px 2px 0;
}

.shop-card__info h2 {
    margin: 0 0 10px;

    color: #4a0f13;

    font: 300 22px Fraunces, Georgia, serif;
}

.shop-card__info h2 a {
    color: inherit;
    text-decoration: none;
}

.shop-card__meta {
    display: flex;
    justify-content: space-between;

    padding-top: 11px;

    border-top: 1px solid rgba(74, 15, 19, .16);

    font: 400 9px "Space Mono", monospace;
    letter-spacing: .07em;
}

.shop-card__meta span:last-child {
    font-weight: 700;
}

/* Mobile purchase hidden on desktop */

.shop-card__mobile-purchase {
    display: none;
}

/* =========================================================
   PROMISE
   ========================================================= */

.promise {
    padding: 82px 0;

    background: #4a0f13;
    color: #fbf9f6;
}

.promise-grid {
    display: grid;

    grid-template-columns: 1.3fr repeat(3, 1fr);

    gap: 50px;
}

.promise h2 {
    margin: 0;

    font: 300 43px/1.05 Fraunces, Georgia, serif;
}

.promise-item {
    padding-top: 18px;

    border-top: 1px solid rgba(176, 141, 79, .55);
}

.promise-item strong {
    color: #b08d4f;
}

.promise-item p {
    color: #decfc9;

    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   SHOP REELS
   ========================================================= */

.shop-reels {
    width: 100%;
    margin: 0;

    background: #180b09;

    overflow: hidden;
}

.shop-reels-rail {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    width: 100%;
}

.shop-reel {
    position: relative;

    aspect-ratio: 9 / 16;

    overflow: hidden;

    background: #180b09;
}

.shop-reel::after {
    content: "";

    position: absolute;
    inset: 0;

    border-right: 1px solid rgba(255, 255, 255, .14);

    pointer-events: none;
}

.shop-reel:last-child::after {
    border: 0;
}

.shop-reel video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .8s cubic-bezier(.22, 1, .36, 1);
}

.shop-reel:hover video {
    transform: scale(1.018);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .shop-hero .wrap {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .shop-hero h1 {
        font-size: 68px;
    }

    .shop-page .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .promise-grid {
        grid-template-columns: 1fr 1fr;
    }

    .shop-category-bar__inner {
        width: 92vw;
        min-height: 78px;
    }

    .shop-category-bar__categories {
        height: 78px;
        gap: 28px;
    }

    .shop-category-bar__categories a {
        font-size: 10px;
    }

    .shop-category-bar__right {
        gap: 15px;
    }

    .shop-category-count {
        display: none;
    }

    .shop-sort-form {
        width: 190px;
        height: 46px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .shop-page .wrap {
        width: 90vw;
    }

    /* Hero */

    .shop-hero {
        padding: 58px 0;
    }

    .shop-hero h1 {
        font-size: 50px;
    }

    .shop-hero p {
        font-size: 15px;
    }

    /* Category bar */

    .shop-category-bar__inner {
        width: 100%;

        display: block;

        min-height: 0;
    }

    .shop-category-bar__categories {
        width: 100%;
        height: 62px;

        padding: 0 20px;

        display: flex;
        align-items: stretch;

        gap: 28px;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;

        -webkit-overflow-scrolling: touch;
    }

    .shop-category-bar__categories::-webkit-scrollbar {
        display: none;
    }

    .shop-category-bar__categories a {
        height: 62px;

        flex: 0 0 auto;

        font-size: 9px;
    }

    .shop-category-bar__right {
        width: 100%;

        min-height: 62px;

        padding: 10px 20px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        border-top: 1px solid rgba(74, 15, 19, .10);
    }

    .shop-category-count {
        display: block;

        font-size: 8px;
    }

    .shop-sort-form {
        width: 170px;
        height: 42px;
    }

    .shop-sort-form select {
        padding-left: 18px;
        font-size: 8px;
    }

    /* Catalogue */

    .catalogue {
        padding: 36px 0 60px;
    }

    .shop-page .grid {
        gap: 40px 12px;
    }

    .shop-card__desktop-form {
        display: none;
    }

    .shop-card__mobile-purchase {
        display: block;

        margin-top: 14px;
        padding-top: 12px;

        border-top: 1px solid rgba(74, 15, 19, .16);
    }

    .shop-card__mobile-purchase summary {
        color: #4a0f13;

        cursor: pointer;

        font: 600 9px "Space Mono", monospace;
        letter-spacing: .1em;

        text-transform: uppercase;
    }

    .shop-card__mobile-purchase form {
        display: grid;

        gap: 8px;

        margin-top: 12px;
    }

    .shop-card__mobile-purchase select,
    .shop-card__mobile-purchase button {
        width: 100%;
        height: 38px;

        border: 1px solid rgba(74, 15, 19, .3);

        background: #fff;
        color: #4a0f13;

        font: 600 9px "Space Mono", monospace;
        letter-spacing: .1em;

        text-transform: uppercase;
    }

    .shop-card__mobile-purchase [data-cart-feedback] {
        min-height: 15px;

        margin: 0;

        color: #7c1720;

        text-align: center;

        font-size: 11px;
    }

    .shop-card__info h2 {
        font-size: 18px;
    }

    .shop-card__meta {
        display: block;

        line-height: 1.9;
    }

    /* Promise */

    .promise {
        padding: 60px 0;
    }

    .promise-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .promise h2 {
        font-size: 38px;
    }

    /* Reels */

    .shop-reels {
        margin-top: 0;
    }

    .shop-reels-rail {
        display: grid;

        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .shop-reel {
        display: block;

        width: 100%;
        aspect-ratio: 9 / 16;
    }

    .shop-reel::after {
        border-right: 1px solid rgba(255, 255, 255, .14);
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .shop-category-bar__categories {
        gap: 23px;
        padding-inline: 16px;
    }

    .shop-category-bar__right {
        padding-inline: 16px;
    }

    .shop-sort-form {
        width: 155px;
    }

    .shop-category-count {
        font-size: 7px;
    }
}

/* Final reels rail safeguard: always show the four films side by side. */
.shop-page .shop-reels-rail {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    width: 100% !important;
}

.shop-page .shop-reels-rail .shop-reel {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
}

/* Full-width sale artwork used on the shop page. */
.shop-page .sale-banner-image {
    display: block;
    width: 100%;
    line-height: 0;
}

.shop-page .sale-banner-image img {
    display: block;
    width: 100%;
    height: auto;
}
