/* =========================================================
   AURELIA JEWELLERY
   PRODUCT PAGE

   File:
   assets/css/asareh-product.css
========================================================= */


/* =========================================================
   01. PAGE
========================================================= */

.asareh-product-page {

    --asareh-product-dark: #1c130d;
    --asareh-product-brown: #4d3622;
    --asareh-product-bronze: #906f56;
    --asareh-product-champagne: #ccb299;
    --asareh-product-cream: #e7dcd0;
    --asareh-product-ivory: #f7f2ec;
    --asareh-product-surface: #fbf8f4;
    --asareh-product-border: rgba(77, 54, 34, 0.14);
    --asareh-product-muted: rgba(28, 19, 13, 0.56);

    background:
        var(--asareh-product-ivory);

    color:
        var(--asareh-product-dark);
}


/* =========================================================
   02. PRODUCT LAYOUT
========================================================= */

.asareh-product {

    padding:
        150px 0 130px;

    background:
        var(--asareh-product-surface);
}


.asareh-product__container {

    display:
        grid;

    width:
        min(1440px, calc(100% - 96px));

    margin:
        0 auto;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(420px, 0.85fr);

    gap:
        90px;

    align-items:
        start;
}


/* =========================================================
   03. GALLERY
========================================================= */

.asareh-product-gallery {

    min-width:
        0;
}


.asareh-product-gallery__main {

    position:
        relative;

    aspect-ratio:
        4 / 5;

    overflow:
        hidden;

    background:
        var(--asareh-product-cream);
}


.asareh-product-gallery__main-image {

    display:
        block;

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    object-position:
        center;
}


.asareh-product-gallery__badge {

    position:
        absolute;

    z-index:
        2;

    top:
        24px;

    right:
        24px;

    display:
        inline-flex;

    min-height:
        32px;

    align-items:
        center;

    padding:
        6px 14px;

    background:
        rgba(247, 242, 236, 0.92);

    color:
        var(--asareh-product-dark);

    font-size:
        10px;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);
}


/* =========================================================
   04. THUMBNAILS
========================================================= */

.asareh-product-gallery__thumbs {

    display:
        grid;

    margin-top:
        16px;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        12px;
}


.asareh-product-gallery__thumb {

    position:
        relative;

    aspect-ratio:
        1 / 1;

    padding:
        0;

    overflow:
        hidden;

    border:
        1px solid transparent;

    background:
        var(--asareh-product-cream);

    cursor:
        pointer;

    opacity:
        0.62;

    transition:
        opacity 220ms ease,
        border-color 220ms ease;
}


.asareh-product-gallery__thumb img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


.asareh-product-gallery__thumb:hover,
.asareh-product-gallery__thumb.is-active {

    opacity:
        1;

    border-color:
        var(--asareh-product-dark);
}


/* =========================================================
   05. PRODUCT INFO
========================================================= */

.asareh-product-info {

    position:
        sticky;

    top:
        120px;
}


.asareh-product-info
.asareh-breadcrumb {

    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        8px;

    margin-bottom:
        34px;

    color:
        rgba(28, 19, 13, 0.45);

    font-size:
        11px;
}


.asareh-product-info
.asareh-breadcrumb a {

    color:
        rgba(28, 19, 13, 0.52);
}


.asareh-product-info
.asareh-breadcrumb a:hover {

    color:
        var(--asareh-product-dark);
}


.asareh-product-info__title {

    margin:
        18px 0 10px;

    color:
        var(--asareh-product-dark);

    font-size:
        clamp(44px, 4vw, 68px);

    font-weight:
        400;

    line-height:
        1.1;
}


.asareh-product-info__subtitle {

    margin:
        0 0 24px;

    color:
        var(--asareh-product-muted);

    font-size:
        13px;

    line-height:
        1.8;
}


.asareh-product-info__price {

    color:
        var(--asareh-product-brown);

    font-size:
        20px;

    font-weight:
        500;
}


.asareh-product-info__divider {

    height:
        1px;

    margin:
        32px 0;

    background:
        var(--asareh-product-border);
}


.asareh-product-info__description {

    margin:
        0 0 34px;

    color:
        var(--asareh-product-muted);

    font-size:
        14px;

    line-height:
        2.05;
}


/* =========================================================
   06. OPTIONS
========================================================= */

.asareh-product-option {

    padding:
        28px 0;

    border-top:
        1px solid
        var(--asareh-product-border);
}


.asareh-product-option__header {

    display:
        flex;

    margin-bottom:
        18px;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    color:
        var(--asareh-product-dark);

    font-size:
        12px;
}


.asareh-product-option__header a {

    color:
        var(--asareh-product-muted);

    border-bottom:
        1px solid
        rgba(28, 19, 13, 0.25);
}


.asareh-product-option__selected {

    color:
        var(--asareh-product-muted);

    font-size:
        11px;
}


/* =========================================================
   07. GOLD COLORS
========================================================= */

.asareh-product-colors {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        12px;
}


.asareh-product-color {

    position:
        relative;

    display:
        inline-flex;

    min-height:
        46px;

    padding:
        0 15px;

    align-items:
        center;

    gap:
        9px;

    border:
        1px solid
        var(--asareh-product-border);

    cursor:
        pointer;

    font-size:
        11px;

    transition:
        border-color 220ms ease,
        background 220ms ease;
}


.asareh-product-color input {

    position:
        absolute;

    opacity:
        0;

    pointer-events:
        none;
}


.asareh-product-color:hover,
.asareh-product-color.is-active,
.asareh-product-color:has(input:checked) {

    border-color:
        var(--asareh-product-dark);

    background:
        #fff;
}


.asareh-product-color__swatch {

    display:
        block;

    width:
        14px;

    height:
        14px;

    border-radius:
        50%;

    border:
        1px solid
        rgba(28, 19, 13, 0.16);
}


.asareh-product-color__swatch--yellow {

    background:
        #d7b56d;
}


.asareh-product-color__swatch--white {

    background:
        #d9d7d1;
}


.asareh-product-color__swatch--rose {

    background:
        #d2a08d;
}


/* =========================================================
   08. SIZE
========================================================= */

.asareh-product-size {

    width:
        100%;

    min-height:
        54px;

    padding:
        0 16px;

    color:
        var(--asareh-product-dark);

    background:
        transparent;

    border:
        1px solid
        var(--asareh-product-border);

    outline:
        none;

    font: inherit;

    font-size:
        13px;

    cursor:
        pointer;
}


.asareh-product-size:focus {

    border-color:
        var(--asareh-product-dark);
}


/* =========================================================
   09. STOCK
========================================================= */

.asareh-product-stock {

    display:
        flex;

    margin:
        24px 0;

    align-items:
        center;

    gap:
        9px;

    color:
        rgba(28, 19, 13, 0.66);

    font-size:
        11px;
}


.asareh-product-stock__dot {

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        #607f56;

    box-shadow:
        0 0 0 4px
        rgba(96, 127, 86, 0.12);
}


/* =========================================================
   10. ACTIONS
========================================================= */

.asareh-product-actions {

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        56px;

    gap:
        10px;

    margin-bottom:
        34px;
}


.asareh-product-add-cart {

    width:
        100%;

    min-height:
        58px;
}


.asareh-product-wishlist {

    display:
        grid;

    width:
        56px;

    min-height:
        56px;

    padding:
        0;

    place-items:
        center;

    border:
        1px solid
        var(--asareh-product-border);

    color:
        var(--asareh-product-dark);

    background:
        transparent;

    cursor:
        pointer;

    font-size:
        24px;

    transition:
        background 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}


.asareh-product-wishlist:hover {

    background:
        #fff;

    border-color:
        var(--asareh-product-dark);
}


.asareh-product-wishlist.is-active {

    background:
        #fff;

    color:
        #8a3d32;

    border-color:
        #8a3d32;
}


/* =========================================================
   11. BENEFITS
========================================================= */

.asareh-product-benefits {

    display:
        grid;

    margin:
        34px 0;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border-top:
        1px solid
        var(--asareh-product-border);

    border-bottom:
        1px solid
        var(--asareh-product-border);
}


.asareh-product-benefit {

    display:
        flex;

    min-height:
        118px;

    padding:
        24px 18px;

    align-items:
        flex-start;

    gap:
        12px;

    border-left:
        1px solid
        var(--asareh-product-border);
}


.asareh-product-benefit:last-child {

    border-left:
        0;
}


.asareh-product-benefit > span {

    color:
        var(--asareh-product-bronze);

    font-size:
        9px;
}


.asareh-product-benefit strong {

    display:
        block;

    margin-bottom:
        6px;

    color:
        var(--asareh-product-dark);

    font-size:
        11px;

    font-weight:
        500;
}


.asareh-product-benefit small {

    display:
        block;

    color:
        var(--asareh-product-muted);

    font-size:
        9px;

    line-height:
        1.7;
}


/* =========================================================
   12. DETAILS
========================================================= */

.asareh-product-details {

    border-top:
        1px solid
        var(--asareh-product-border);
}


.asareh-product-detail {

    border-bottom:
        1px solid
        var(--asareh-product-border);
}


.asareh-product-detail summary {

    position:
        relative;

    display:
        flex;

    min-height:
        66px;

    padding:
        0 34px 0 0;

    align-items:
        center;

    cursor:
        pointer;

    color:
        var(--asareh-product-dark);

    font-size:
        13px;

    list-style:
        none;
}


.asareh-product-detail summary::-webkit-details-marker {

    display:
        none;
}


.asareh-product-detail summary::after {

    position:
        absolute;

    left:
        4px;

    content:
        "+";

    color:
        var(--asareh-product-muted);

    font-size:
        20px;

    font-weight:
        300;
}


.asareh-product-detail[open] summary::after {

    content:
        "−";
}


.asareh-product-detail__content {

    padding:
        0 0 26px;

    color:
        var(--asareh-product-muted);

    font-size:
        12px;

    line-height:
        2;
}


.asareh-product-detail__content p {

    margin:
        0 0 14px;
}


.asareh-product-detail__content a {

    color:
        var(--asareh-product-dark);

    border-bottom:
        1px solid
        rgba(28, 19, 13, 0.25);
}


.asareh-product-detail__content dl {

    margin:
        0;
}


.asareh-product-detail__content dl > div {

    display:
        flex;

    padding:
        10px 0;

    justify-content:
        space-between;

    gap:
        24px;

    border-bottom:
        1px solid
        rgba(77, 54, 34, 0.08);
}


.asareh-product-detail__content dt {

    color:
        var(--asareh-product-muted);
}


.asareh-product-detail__content dd {

    margin:
        0;

    color:
        var(--asareh-product-dark);
}


/* =========================================================
   13. PRODUCT STORY
========================================================= */

.asareh-product-story {

    display:
        grid;

    min-height:
        820px;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, 0.85fr);

    background:
        var(--asareh-product-dark);

    overflow:
        hidden;
}


.asareh-product-story__media {

    min-height:
        820px;
}


.asareh-product-story__media img {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;
}


.asareh-product-story__content {

    display:
        flex;

    padding:
        100px 8vw;

    flex-direction:
        column;

    justify-content:
        center;

    color:
        #fff;
}


.asareh-product-story__content
.asareh-eyebrow {

    color:
        var(--asareh-product-champagne);
}


.asareh-product-story__content h2 {

    margin:
        22px 0 28px;

    color:
        #fff;

    font-size:
        clamp(44px, 4.6vw, 72px);

    font-weight:
        400;

    line-height:
        1.3;
}


.asareh-product-story__content h2 span {

    display:
        block;

    color:
        var(--asareh-product-champagne);
}


.asareh-product-story__content p {

    max-width:
        500px;

    margin:
        0;

    color:
        rgba(255, 255, 255, 0.64);

    font-size:
        14px;

    line-height:
        2.1;
}


/* =========================================================
   14. RELATED PRODUCTS
========================================================= */

.asareh-product-related {

    padding:
        130px 0 150px;

    background:
        var(--asareh-product-ivory);
}


.asareh-product-related__container {

    width:
        min(1440px, calc(100% - 96px));

    margin:
        0 auto;
}


.asareh-product-related__header {

    display:
        flex;

    margin-bottom:
        54px;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        30px;
}


.asareh-product-related__header h2 {

    margin:
        16px 0 0;

    color:
        var(--asareh-product-dark);

    font-size:
        clamp(38px, 4vw, 58px);

    font-weight:
        400;
}


.asareh-product-related__header > a {

    color:
        var(--asareh-product-dark);

    font-size:
        12px;

    border-bottom:
        1px solid
        rgba(28, 19, 13, 0.24);

    padding-bottom:
        5px;
}


.asareh-product-related__grid {

    display:
        grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        24px;
}


/* =========================================================
   15. RELATED PRODUCT CARDS
========================================================= */

.asareh-product-page
.asareh-product-related
.asareh-product-card__media {

    position:
        relative;

    aspect-ratio:
        4 / 5;

    overflow:
        hidden;

    background:
        var(--asareh-product-cream);
}


.asareh-product-page
.asareh-product-related
.asareh-product-card__media > a {

    display:
        block;

    width:
        100%;

    height:
        100%;
}


.asareh-product-page
.asareh-product-related
.asareh-product-card__image {

    width:
        100%;

    height:
        100%;

    object-fit:
        cover;

    transition:
        transform 650ms
        cubic-bezier(.16, 1, .3, 1);
}


.asareh-product-page
.asareh-product-related
.asareh-product-card__wishlist {

    position:
        absolute;

    z-index:
        2;

    top:
        14px;

    left:
        14px;

    display:
        grid;

    width:
        40px;

    height:
        40px;

    padding:
        0;

    place-items:
        center;

    border:
        0;

    border-radius:
        50%;

    color:
        var(--asareh-product-dark);

    background:
        rgba(255, 255, 255, 0.84);

    cursor:
        pointer;

    font-size:
        20px;
}


.asareh-product-page
.asareh-product-related
.asareh-product-card__content {

    padding:
        18px 2px 0;
}


.asareh-product-page
.asareh-product-related
.asareh-product-card__title {

    margin:
        0 0 7px;

    font-size:
        17px;

    font-weight:
        500;
}


.asareh-product-page
.asareh-product-related
.asareh-product-card__title a {

    color:
        var(--asareh-product-dark);
}


.asareh-product-page
.asareh-product-related
.asareh-product-card__meta {

    display:
        block;

    margin-bottom:
        8px;

    color:
        var(--asareh-product-muted);

    font-size:
        10px;
}


.asareh-product-page
.asareh-product-related
.asareh-product-card__price {

    color:
        var(--asareh-product-brown);

    font-size:
        12px;
}


/* =========================================================
   16. HOVER
========================================================= */

@media (hover: hover) {

    .asareh-product-page
    .asareh-product-related
    .asareh-product-card:hover
    .asareh-product-card__image {

        transform:
            scale(1.045);
    }

}


/* =========================================================
   17. LAPTOP
========================================================= */

@media (
    min-width: 1025px
) and (
    max-width: 1280px
) {

    .asareh-product__container {

        width:
            calc(100% - 64px);

        gap:
            60px;

        grid-template-columns:
            minmax(0, 1.1fr)
            minmax(380px, 0.9fr);
    }


    .asareh-product-related__container {

        width:
            calc(100% - 64px);
    }


    .asareh-product-story__content {

        padding:
            80px 60px;
    }

}


/* =========================================================
   18. TABLET
========================================================= */

@media (
    min-width: 769px
) and (
    max-width: 1024px
) {

    .asareh-product {

        padding:
            120px 0 100px;
    }


    .asareh-product__container {

        width:
            calc(100% - 48px);

        grid-template-columns:
            1fr;

        gap:
            70px;
    }


    .asareh-product-info {

        position:
            static;
    }


    .asareh-product-gallery__main {

        aspect-ratio:
            1 / 1.12;
    }


    .asareh-product-info__title {

        font-size:
            54px;
    }


    .asareh-product-story {

        grid-template-columns:
            1fr;

        min-height:
            auto;
    }


    .asareh-product-story__media {

        min-height:
            620px;
    }


    .asareh-product-story__content {

        padding:
            90px 48px;
    }


    .asareh-product-related__container {

        width:
            calc(100% - 48px);
    }


    .asareh-product-related__grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            44px 20px;
    }

}


/* =========================================================
   19. MOBILE WEB APP
========================================================= */

@media (max-width: 768px) {

    .asareh-product {

        padding:
            calc(
                78px +
                env(safe-area-inset-top)
            )
            0
            88px;
    }


    .asareh-product__container {

        display:
            block;

        width:
            100%;
    }


    /* GALLERY */

    .asareh-product-gallery {

        width:
            100%;
    }


    .asareh-product-gallery__main {

        aspect-ratio:
            1 / 1.18;
    }


    .asareh-product-gallery__badge {

        top:
            16px;

        right:
            16px;
    }


    .asareh-product-gallery__thumbs {

        display:
            flex;

        margin-top:
            10px;

        padding:
            0 12px;

        gap:
            8px;

        overflow-x:
            auto;

        scroll-snap-type:
            x mandatory;

        scrollbar-width:
            none;

        -webkit-overflow-scrolling:
            touch;
    }


    .asareh-product-gallery__thumbs::-webkit-scrollbar {

        display:
            none;
    }


    .asareh-product-gallery__thumb {

        width:
            84px;

        min-width:
            84px;

        flex:
            0 0 84px;

        scroll-snap-align:
            start;
    }


    /* INFO */

    .asareh-product-info {

        position:
            static;

        padding:
            54px 20px 0;
    }


    .asareh-product-info
    .asareh-breadcrumb {

        margin-bottom:
            24px;

        font-size:
            9px;
    }


    .asareh-product-info__title {

        margin-top:
            14px;

        font-size:
            clamp(38px, 11vw, 52px);
    }


    .asareh-product-info__subtitle {

        font-size:
            12px;
    }


    .asareh-product-info__price {

        font-size:
            17px;
    }


    .asareh-product-info__description {

        font-size:
            13px;
    }


    /* OPTIONS */

    .asareh-product-color {

        min-height:
            48px;

        flex:
            1 1 auto;

        justify-content:
            center;
    }


    .asareh-product-size {

        min-height:
            52px;

        font-size:
            16px;
    }


    /* ACTIONS */

    .asareh-product-actions {

        position:
            sticky;

        z-index:
            25;

        bottom:
            calc(
                74px +
                env(safe-area-inset-bottom)
            );

        margin:
            26px -20px 30px;

        padding:
            10px 16px;

        grid-template-columns:
            minmax(0, 1fr)
            52px;

        background:
            rgba(247, 242, 236, 0.94);

        border-top:
            1px solid
            var(--asareh-product-border);

        border-bottom:
            1px solid
            var(--asareh-product-border);

        backdrop-filter:
            blur(18px);

        -webkit-backdrop-filter:
            blur(18px);
    }


    .asareh-product-add-cart {

        min-height:
            52px;
    }


    .asareh-product-wishlist {

        width:
            52px;

        min-height:
            52px;
    }


    /* BENEFITS */

    .asareh-product-benefits {

        display:
            flex;

        margin:
            34px -20px;

        padding:
            0 20px;

        overflow-x:
            auto;

        scroll-snap-type:
            x mandatory;

        scrollbar-width:
            none;

        -webkit-overflow-scrolling:
            touch;
    }


    .asareh-product-benefits::-webkit-scrollbar {

        display:
            none;
    }


    .asareh-product-benefit {

        min-width:
            76vw;

        flex:
            0 0 76vw;

        scroll-snap-align:
            start;

        border-left:
            1px solid
            var(--asareh-product-border);
    }


    /* STORY */

    .asareh-product-story {

        display:
            flex;

        min-height:
            auto;

        flex-direction:
            column;
    }


    .asareh-product-story__media {

        min-height:
            68svh;

        min-height:
            68dvh;
    }


    .asareh-product-story__content {

        padding:
            72px 20px 80px;
    }


    .asareh-product-story__content h2 {

        margin:
            18px 0 22px;

        font-size:
            clamp(34px, 10vw, 50px);
    }


    .asareh-product-story__content p {

        font-size:
            13px;
    }


    /* RELATED */

    .asareh-product-related {

        padding:
            86px 0 100px;
    }


    .asareh-product-related__container {

        width:
            100%;

        padding:
            0 12px;
    }


    .asareh-product-related__header {

        padding:
            0 8px;

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            18px;
    }


    .asareh-product-related__header h2 {

        font-size:
            clamp(32px, 9vw, 44px);
    }


    .asareh-product-related__grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            34px 10px;
    }


    .asareh-product-page
    .asareh-product-related
    .asareh-product-card__wishlist {

        top:
            8px;

        left:
            8px;

        width:
            36px;

        height:
            36px;
    }


    .asareh-product-page
    .asareh-product-related
    .asareh-product-card__title {

        font-size:
            14px;
    }


    .asareh-product-page
    .asareh-product-related
    .asareh-product-card__meta {

        min-height:
            30px;

        font-size:
            9px;
    }


    .asareh-product-page
    .asareh-product-related
    .asareh-product-card__price {

        font-size:
            10px;
    }

}


/* =========================================================
   20. SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .asareh-product-info {

        padding-right:
            16px;

        padding-left:
            16px;
    }


    .asareh-product-actions {

        margin-right:
            -16px;

        margin-left:
            -16px;
    }


    .asareh-product-benefits {

        margin-right:
            -16px;

        margin-left:
            -16px;
    }


    .asareh-product-related__container {

        padding:
            0 8px;
    }


    .asareh-product-related__grid {

        gap:
            30px 8px;
    }


    .asareh-product-story__content {

        padding-right:
            16px;

        padding-left:
            16px;
    }

}


/* =========================================================
   21. TOUCH
========================================================= */

@media (
    hover: none
) and (
    pointer: coarse
) {

    .asareh-product-gallery__thumb {

        min-height:
            44px;
    }


    .asareh-product-wishlist {

        min-width:
            44px;

        min-height:
            44px;
    }

}


/* =========================================================
   22. REDUCED MOTION
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .asareh-product-gallery__thumb,
    .asareh-product-wishlist,
    .asareh-product-card__image {

        transition:
            none !important;
    }

}


/* =========================================================
   23. PRINT
========================================================= */

@media print {

    .asareh-product {

        padding:
            30px 0;
    }


    .asareh-product__container {

        display:
            grid;

        width:
            100%;

        grid-template-columns:
            1fr 1fr;

        gap:
            40px;
    }


    .asareh-product-info {

        position:
            static;
    }


    .asareh-product-gallery__thumbs,
    .asareh-product-actions,
    .asareh-product-wishlist,
    .asareh-product-related {

        display:
            none !important;
    }


    .asareh-product-story {

        page-break-inside:
            avoid;
    }

}

/* =========================================================
   PRODUCT INTERACTION STATES
========================================================= */

.asareh-product-gallery__main-image {
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.asareh-product-gallery__main-image.is-changing {
    opacity: 0.38;
    transform: scale(0.992);
}

.asareh-product-add-cart.is-success {
    color: #ffffff;
    background: var(--asareh-product-brown);
    border-color: var(--asareh-product-brown);
}

.asareh-product-add-cart:disabled {
    opacity: 1;
    cursor: default;
}

