/*
|--------------------------------------------------------------------------
| ELEMENTAL
| Product Page
|--------------------------------------------------------------------------
| Premium pastel product experience
|--------------------------------------------------------------------------
*/


/* =========================================================
   ROOT
========================================================= */

.product-page {

    --product-blue: #9dcfe2;
    --product-blue-light: #e8f6fb;
    --product-blue-soft: #d9eef6;
    --product-blue-dark: #5d9fb8;

    --product-green: #a8d8c2;
    --product-green-light: #edf8f2;

    --product-white: #ffffff;
    --product-bg: #f7fbfc;

    --product-text: #25333a;
    --product-muted: #7b8a90;

    --product-border: #e3edf0;

    --product-shadow:
        0 18px 50px rgba(74, 116, 132, .10);

    --product-shadow-hover:
        0 25px 70px rgba(74, 116, 132, .16);

    width: 100%;

    padding: 28px 0 30px;

    color: var(--product-text);

    background:
        linear-gradient(
            180deg,
            #f8fcfd 0%,
            #ffffff 48%,
            #f8fcfc 100%
        );

}


/* =========================================================
   CONTAINER
========================================================= */

.product-page .container {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin: 0 auto;

}


/* =========================================================
   BREADCRUMB
========================================================= */

.product-breadcrumb {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 28px;

    color: var(--product-muted);

    font-size: 13px;

}

.product-breadcrumb a {

    color: var(--product-muted);

    text-decoration: none;

    transition:
        color .25s ease;

}

.product-breadcrumb a:hover {

    color:
        var(--product-blue-dark);

}

.product-breadcrumb i {

    font-size: 9px;

    opacity: .5;

}

.product-breadcrumb span {

    max-width: 240px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color:
        var(--product-text);

    font-weight: 600;

}


/* =========================================================
   PRODUCT SHOWCASE
========================================================= */

.product-showcase {

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(380px, .95fr);

    gap: 65px;

    align-items: start;

}


/* =========================================================
   GALLERY
========================================================= */

.product-gallery {

    position: sticky;

    top: 25px;

    min-width: 0;

}


/* =========================================================
   MAIN GALLERY
========================================================= */

.product-gallery-main {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 590px;

    overflow: hidden;

    border-radius: 34px;

    border: 1px solid
        rgba(
            255,
            255,
            255,
            .9
        );

    background:

        radial-gradient(
            circle at 28% 18%,
            rgba(
                255,
                255,
                255,
                .96
            ),
            transparent 35%
        ),

        linear-gradient(
            145deg,
            #edf8fb,
            #dff1f7
        );

    box-shadow:
        0 25px 70px
        rgba(
            75,
            120,
            138,
            .12
        );

}


/* =========================================================
   IMAGE FRAME
========================================================= */

.product-image-frame {

    position: relative;

    width: 86%;
    height: 86%;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =========================================================
   MAIN IMAGE
========================================================= */

.main-product-image {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 25px 25px
            rgba(
                60,
                95,
                105,
                .14
            )
        );

    transition:
        transform .55s cubic-bezier(
            .2,
            .8,
            .2,
            1
        ),
        opacity .25s ease;

}

.product-gallery-main:hover
.main-product-image {

    transform:
        scale(1.045);

}


/* =========================================================
   PRODUCT STATUS
========================================================= */

.product-status {

    position: absolute;

    top: 22px;
    right: 22px;

    z-index: 5;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 15px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 700;

    backdrop-filter: blur(12px);

    box-shadow:
        0 8px 25px
        rgba(
            50,
            80,
            90,
            .08
        );

}

.product-status span {

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

}

.product-status.available {

    color: #357c62;

    background:
        rgba(
            237,
            248,
            242,
            .92
        );

}

.product-status.available span {

    background: #6fbd98;

    box-shadow:
        0 0 0 4px
        rgba(
            111,
            189,
            152,
            .13
        );

}

.product-status.unavailable {

    color: #a45f63;

    background:
        rgba(
            255,
            241,
            242,
            .95
        );

}

.product-status.unavailable span {

    background: #dc888e;

}


/* =========================================================
   IMAGE DECORATION
========================================================= */

.product-image-decoration {

    position: absolute;

    left: 25px;
    bottom: 24px;

    display: flex;

    gap: 7px;

    opacity: .65;

}

.product-image-decoration span {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--product-blue-dark);

}

.product-image-decoration span:nth-child(2) {

    background:
        var(--product-green);

}

.product-image-decoration span:nth-child(3) {

    background:
        #d9b7d8;

}


/* =========================================================
   THUMBNAILS
========================================================= */

.product-thumbnails {

    display: flex;

    gap: 12px;

    margin-top: 16px;

    padding: 5px;

    overflow-x: auto;

    scrollbar-width: none;

}

.product-thumbnails::-webkit-scrollbar {

    display: none;

}

.product-thumbnail {

    position: relative;

    flex: 0 0 78px;

    width: 78px;
    height: 78px;

    padding: 5px;

    border: 2px solid transparent;

    border-radius: 18px;

    background:
        var(--product-white);

    cursor: pointer;

    overflow: hidden;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;

}

.product-thumbnail:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(
            157,
            207,
            226,
            .65
        );

}

.product-thumbnail.active {

    border-color:
        var(--product-blue);

    box-shadow:
        0 8px 24px
        rgba(
            93,
            159,
            184,
            .18
        );

}

.product-thumbnail img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 12px;

}


/* =========================================================
   PRODUCT INFO
========================================================= */

.product-info {

    min-width: 0;

    padding-top: 18px;

}


/* =========================================================
   CATEGORY
========================================================= */

.product-category {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        7px 11px 7px 13px;

    border-radius: 999px;

    color:
        var(--product-blue-dark);

    background:
        var(--product-blue-light);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    transition:
        background .25s ease,
        transform .25s ease;

}

.product-category:hover {

    background:
        var(--product-blue-soft);

    transform:
        translateY(-2px);

}

.product-category-icon {

    display: grid;

    place-items: center;

    width: 23px;
    height: 23px;

    border-radius: 50%;

    color: #ffffff;

    background:
        var(--product-blue-dark);

    font-size: 10px;

}


/* =========================================================
   TITLE
========================================================= */

.product-title {

    max-width: 650px;

    margin:
        18px 0 16px;

    color:
        var(--product-text);

    font-size:
        clamp(
            30px,
            4vw,
            46px
        );

    line-height: 1.35;

    letter-spacing: -.8px;

    font-weight: 800;

}


/* =========================================================
   DESCRIPTION
========================================================= */

.product-description {

    max-width: 600px;

    margin: 0;

    color:
        var(--product-muted);

    font-size: 15px;

    line-height: 2;

}


/* =========================================================
   DIVIDER
========================================================= */

.product-divider {

    width: 100%;
    height: 1px;

    margin: 28px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--product-border),
            transparent
        );

}


/* =========================================================
   PRICE
========================================================= */

.product-price-area {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    padding:
        18px 20px;

    border-radius: 22px;

    border: 1px solid
        rgba(
            157,
            207,
            226,
            .25
        );

    background:
        linear-gradient(
            135deg,
            #f1f9fc,
            #f9fcfd
        );

}

.product-price-label {

    color:
        var(--product-muted);

    font-size: 12px;

}

.product-price {

    display: flex;

    align-items: baseline;

    gap: 5px;

    color:
        var(--product-blue-dark);

    font-size: 28px;

    font-weight: 800;

}


/* =========================================================
   AVAILABILITY
========================================================= */

.product-availability {

    margin-top: 18px;

}

.availability-status {

    display: flex;

    align-items: center;

    gap: 12px;

}

.availability-dot {

    flex:
        0 0 11px;

    width: 11px;
    height: 11px;

    border-radius: 50%;

}

.availability-status.available
.availability-dot {

    background:
        #74c39e;

    box-shadow:
        0 0 0 5px
        rgba(
            116,
            195,
            158,
            .13
        );

}

.availability-status.unavailable
.availability-dot {

    background:
        #d98b90;

    box-shadow:
        0 0 0 5px
        rgba(
            217,
            139,
            144,
            .12
        );

}

.availability-status div {

    display: flex;

    flex-direction: column;

    gap: 3px;

}

.availability-status strong {

    font-size: 13px;

}

.availability-status small {

    color:
        var(--product-muted);

    font-size: 11px;

}

.availability-status.unavailable strong {

    color:
        #a65e63;

}


/* =========================================================
   ADD TO CART
========================================================= */

.product-action {

    margin-top: 24px;

}

.product-add-cart {

    position: relative;

    width: 100%;

    min-height: 64px;

    padding:
        0 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    border: 0;

    border-radius: 20px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #80bfd5,
            #65a9c2
        );

    box-shadow:
        0 15px 30px
        rgba(
            93,
            159,
            184,
            .23
        );

    cursor: pointer;

    font-family: inherit;

    font-size: 15px;

    font-weight: 700;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.product-add-cart::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent 30%,
            rgba(
                255,
                255,
                255,
                .28
            ),
            transparent 70%
        );

    transform:
        translateX(-120%);

    transition:
        transform .7s ease;

}

.product-add-cart:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 20px 38px
        rgba(
            93,
            159,
            184,
            .30
        );

}

.product-add-cart:hover::before {

    transform:
        translateX(120%);

}

.product-add-cart i {

    position: relative;

    z-index: 2;

    font-size: 18px;

}

.product-add-cart span {

    position: relative;

    z-index: 2;

}


/* =========================================================
   DISABLED
========================================================= */

.product-add-cart.disabled {

    cursor: not-allowed;

    color:
        #9a777a;

    background:
        #f3e7e8;

    box-shadow: none;

}

.product-add-cart.disabled:hover {

    transform: none;

}


/* =========================================================
   BENEFITS
========================================================= */

.product-benefits {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

    margin-top: 20px;

}

.product-benefit {

    min-height: 105px;

    padding: 14px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    border: 1px solid
        var(--product-border);

    border-radius: 18px;

    background:
        rgba(
            255,
            255,
            255,
            .85
        );

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}

.product-benefit:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 30px
        rgba(
            70,
            110,
            125,
            .08
        );

}

.product-benefit-icon {

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    color:
        var(--product-blue-dark);

    background:
        var(--product-blue-light);

    font-size: 14px;

}

.product-benefit:nth-child(2)
.product-benefit-icon {

    color:
        #559477;

    background:
        var(--product-green-light);

}

.product-benefit:nth-child(3)
.product-benefit-icon {

    color:
        #a477a3;

    background:
        #f6edf7;

}

.product-benefit strong {

    font-size: 11px;

}

.product-benefit span {

    color:
        var(--product-muted);

    font-size: 9px;

    line-height: 1.7;

}


/* =========================================================
   DESCRIPTION SECTION
========================================================= */

.product-description-section {

    position: relative;

    margin-top: 75px;

    padding: 42px;

    overflow: hidden;

    border: 1px solid
        var(--product-border);

    border-radius: 30px;

    background:
        #ffffff;

    box-shadow:
        var(--product-shadow);

}

.product-description-section::after {

    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    left: -100px;
    bottom: -120px;

    border-radius: 50%;

    background:
        rgba(
            168,
            216,
            194,
            .18
        );

}

.product-description-heading {

    position: relative;

    z-index: 1;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;

}

.product-description-heading span {

    display: block;

    margin-bottom: 7px;

    color:
        var(--product-blue-dark);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

}

.product-description-heading h2 {

    margin: 0;

    font-size: 25px;

    font-weight: 800;

}

.description-heading-icon {

    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    border-radius: 17px;

    color:
        #579477;

    background:
        var(--product-green-light);

    font-size: 19px;

}

.product-description-content {

    position: relative;

    z-index: 1;

    max-width: 900px;

    color:
        #68777d;

    font-size: 14px;

    line-height: 2.35;

}


/* =========================================================
   CLOSING MESSAGE
========================================================= */

.product-closing {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        65px auto 20px;

}


/* =========================================================
   CLOSING CARD
========================================================= */

.product-closing-card {

    position: relative;

    min-height: 125px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid
        rgba(
            157,
            207,
            226,
            .35
        );

    border-radius: 28px;

    background:

        radial-gradient(
            circle at 20% 20%,
            rgba(
                255,
                255,
                255,
                .95
            ),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #edf8fb,
            #f8fcfd
        );

    box-shadow:
        0 18px 50px
        rgba(
            74,
            116,
            132,
            .08
        );

}


/* =========================================================
   CLOSING ICON
========================================================= */

.product-closing-icon {

    position: relative;

    z-index: 2;

    width: 39px;
    height: 39px;

    display: grid;

    place-items: center;

    margin-bottom: 9px;

    border:
        1px solid
        rgba(
            157,
            207,
            226,
            .25
        );

    border-radius: 13px;

    color:
        var(--product-blue-dark);

    background:
        rgba(
            255,
            255,
            255,
            .88
        );

    box-shadow:
        0 7px 20px
        rgba(
            93,
            159,
            184,
            .08
        );

    font-size: 16px;

}


/* =========================================================
   CLOSING TEXT
========================================================= */

.product-closing-card p {

    position: relative;

    z-index: 2;

    margin: 0;

    color:
        var(--product-text);

    font-size: 14px;

    font-weight: 700;

    letter-spacing: -.2px;

}


/* =========================================================
   CLOSING DECORATION
========================================================= */

.product-closing-decoration {

    position: absolute;

    display: block;

    border-radius: 50%;

    pointer-events: none;

}

.decoration-one {

    width: 170px;
    height: 170px;

    top: -100px;
    right: -70px;

    background:
        rgba(
            157,
            207,
            226,
            .16
        );

}

.decoration-two {

    width: 120px;
    height: 120px;

    left: -45px;
    bottom: -75px;

    background:
        rgba(
            168,
            216,
            194,
            .18
        );

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .product-showcase {

        grid-template-columns: 1fr;

        gap: 45px;

    }

    .product-gallery {

        position: relative;

        top: auto;

    }

    .product-gallery-main {

        min-height: 520px;

    }

    .product-info {

        width: 100%;

        max-width: 760px;

        margin: 0 auto;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .product-page {

        padding-top: 18px;

        padding-bottom: 15px;

    }

    .product-page .container {

        width:
            calc(100% - 24px);

    }

    .product-breadcrumb {

        margin-bottom: 18px;

        gap: 7px;

        font-size: 11px;

    }

    .product-breadcrumb span {

        max-width: 120px;

    }

    .product-gallery-main {

        min-height: 390px;

        border-radius: 25px;

    }

    .product-status {

        top: 15px;
        right: 15px;

        padding: 7px 11px;

        font-size: 10px;

    }

    .product-image-frame {

        width: 88%;
        height: 88%;

    }

    .product-thumbnail {

        flex-basis: 64px;

        width: 64px;
        height: 64px;

        border-radius: 14px;

    }

    .product-info {

        padding-top: 5px;

    }

    .product-title {

        margin-top: 14px;

        font-size: 28px;

        line-height: 1.45;

    }

    .product-description {

        font-size: 13px;

        line-height: 2;

    }

    .product-divider {

        margin: 22px 0;

    }

    .product-price-area {

        padding: 15px;

        border-radius: 18px;

    }

    .product-price {

        font-size: 23px;

    }

    .product-add-cart {

        min-height: 58px;

        border-radius: 17px;

        font-size: 13px;

    }

    .product-benefits {

        grid-template-columns: 1fr;

        gap: 8px;

    }

    .product-benefit {

        min-height: auto;

        flex-direction: row;

        align-items: center;

        padding: 12px;

        border-radius: 15px;

    }

    .product-benefit span {

        font-size: 10px;

    }

    .product-description-section {

        margin-top: 45px;

        padding: 25px 20px;

        border-radius: 23px;

    }

    .product-description-heading h2 {

        font-size: 21px;

    }

    .description-heading-icon {

        width: 43px;
        height: 43px;

        border-radius: 14px;

    }

    .product-description-content {

        font-size: 12px;

        line-height: 2.3;

    }

    .product-closing {

        width:
            calc(100% - 24px);

        margin:
            45px auto 15px;

    }

    .product-closing-card {

        min-height: 110px;

        border-radius: 23px;

    }

    .product-closing-icon {

        width: 35px;
        height: 35px;

        margin-bottom: 8px;

        border-radius: 11px;

        font-size: 14px;

    }

    .product-closing-card p {

        font-size: 12px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .product-gallery-main {

        min-height: 330px;

        border-radius: 22px;

    }

    .product-title {

        font-size: 24px;

    }

    .product-price {

        font-size: 21px;

    }

    .product-thumbnail {

        flex-basis: 58px;

        width: 58px;
        height: 58px;

    }

    .product-closing-card {

        min-height: 100px;

        border-radius: 20px;

    }

    .product-closing-icon {

        width: 32px;
        height: 32px;

        font-size: 13px;

    }

    .product-closing-card p {

        font-size: 11px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .product-page *,
    .product-page *::before,
    .product-page *::after {

        transition: none !important;

        animation: none !important;

        scroll-behavior: auto !important;

    }

}