/* =========================================================
   Peak Wellness Custom Single Product
   Clean CSS
   ========================================================= */

/* =========================================================
   PAGE / THEME CONTAINER
   ========================================================= */

body.pwsp-single-product-active .pwsp-template-main,
body.pwsp-single-product-active #primary.pwsp-template-main,
body.pwsp-single-product-active main.pwsp-template-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box;
}

body.pwsp-single-product-active .pwsp-template-main > * {
    max-width: none;
}

body.pwsp-single-product-active .site-content,
body.pwsp-single-product-active .content-area {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.pwsp-single-product-active .woocommerce-breadcrumb,
body.pwsp-single-product-active .woocommerce-notices-wrapper {
    display: none;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.pwsp-page {
    --pwsp-primary: #0B3B67;
    --pwsp-accent: #38A4CF;
    --pwsp-buy: #222;

    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 30px 30px 80px;
    box-sizing: border-box;

    color: #0B3B67;
    font-family: inherit;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.pwsp-breadcrumb {
    display: flex;
    gap: 9px;
    align-items: center;

    font-size: 14px;
    color: #7d8992;

    margin: 0 0 34px;
}

.pwsp-breadcrumb a {
    color: #0B3B67;
    text-decoration: none;
}


/* =========================================================
   PRODUCT LAYOUT
   ========================================================= */

.pwsp-product {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 60px;
    align-items: start;
}


/* =========================================================
   PRODUCT GALLERY
   ========================================================= */

.pwsp-gallery {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
    min-width: 0;
}

.pwsp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pwsp-thumb {
    border: 1px solid #dce4ea;
    background: #fff;
    border-radius: 9px;

    width: 86px;
    height: 86px;

    padding: 8px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.pwsp-thumb.is-active {
    border: 2px solid var(--pwsp-primary);
}

.pwsp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* =========================================================
   MAIN PRODUCT IMAGE
   ========================================================= */

.pwsp-main-image {
    position: relative;

    min-height: 600px;

    border: 1px solid #e0e6ea;
    border-radius: 12px;

    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.pwsp-main-image > img {
    display: block;

    width: 100%;
    height: 600px;

    object-fit: contain;

    cursor: zoom-in;
}


/* =========================================================
   SALE BADGE
   ========================================================= */

.pwsp-sale {
    position: absolute;
    top: 20px;
    left: 20px;

    z-index: 2;

    background: var(--pwsp-primary);
    color: #fff;

    padding: 10px 13px;

    border-radius: 4px;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   WISHLIST
   ========================================================= */

.pwsp-wishlist {
    position: absolute;

    right: 18px;
    top: 18px;

    z-index: 2;

    border: 0;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #fff;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);

    color: var(--pwsp-primary);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   PRODUCT DETAILS
   ========================================================= */

.pwsp-details {
    min-width: 0;
}

.pwsp-category {
    text-transform: uppercase;
    letter-spacing: 1px;

    font-size: 12px;

    color: #84929b;

    font-weight: 600;

    margin: 5px 0 13px;
}

.pwsp-category a {
    color: inherit;
    text-decoration: none;
}

.pwsp-details h1 {
    color: var(--pwsp-primary);

    font-size: 44px;
    line-height: 1.12;

    margin: 0 0 18px;

    font-weight: 700;
}


/* =========================================================
   RATING
   ========================================================= */

.pwsp-rating {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 0 0 15px;
}

.pwsp-stars {
    color: #f2ae31;
    letter-spacing: 2px;
}

.pwsp-rating a {
    color: #6f7d86;
    text-decoration: none;
    font-size: 14px;
}


/* =========================================================
   PRICE
   ========================================================= */

.pwsp-price {
    color: var(--pwsp-primary);

    font-size: 25px;
    font-weight: 700;

    border-top: 1px solid #dce2e6;

    padding-top: 15px;

    margin-bottom: 24px;
}

.pwsp-price del {
    color: #9ca5aa;

    font-weight: 400;

    margin-right: 10px;

    font-size: 18px;
}

.pwsp-price ins {
    text-decoration: none;
}


/* =========================================================
   SUMMARY / DESCRIPTION
   ========================================================= */

.pwsp-summary {
    color: #4d667a;

    font-size: 16px;

    line-height: 1.75;
}

.pwsp-summary p {
    margin: 0 0 12px;
}

.pwsp-recommended {
    color: #536d7f;

    font-size: 15px;

    line-height: 1.6;

    margin: 16px 0 22px;
}


/* =========================================================
   QUANTITY + ADD TO CART
   ========================================================= */

.pwsp-buy-row {
    display: grid;

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

    gap: 12px;

    align-items: center;
}

.pwsp-qty {
    height: 58px;

    background: #f5f6f7;

    display: grid;

    grid-template-columns: 42px 1fr 42px;

    align-items: center;
}

.pwsp-qty button {
    border: 0;

    background: transparent;

    font-size: 21px;

    cursor: pointer;

    color: #111;
}

.pwsp-qty input {
    width: 100%;
    height: 100%;

    border: 0;

    background: transparent;

    text-align: center;

    font-size: 16px;

    outline: none;

    appearance: textfield;
}

.pwsp-qty input::-webkit-outer-spin-button,
.pwsp-qty input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.pwsp-add-cart {
    width: 100%;

    min-height: 58px;

    border: 0;

    border-radius: 30px;

    cursor: pointer;

    font-weight: 700;

    font-size: 16px;

    letter-spacing: 0.3px;

    background: var(--pwsp-accent);

    color: #fff;
}

.pwsp-out {
    background: #f3f3f3;

    padding: 16px;

    text-align: center;

    border-radius: 6px;

    font-weight: 600;
}


/* =========================================================
   WHATSAPP BUTTON
   ========================================================= */

.pwsp-whatsapp {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    width: fit-content !important;

    max-width: 100%;

    min-height: 52px;

    margin-top: 14px;

    padding: 0 25px !important;

    border-radius: 30px;

    background: #25D366;

    color: #fff;

    text-decoration: none;

    font-size: 13px !important;

    font-weight: 700;

    box-sizing: border-box;

    transition: opacity 0.2s ease,
                transform 0.2s ease;
}

.pwsp-whatsapp:hover {
    color: #fff;

    text-decoration: none;

    opacity: 0.92;

    transform: translateY(-1px);
}

.pwsp-wa-icon {
    font-size: 20px !important;

    line-height: 1;

    flex-shrink: 0;
}


/* =========================================================
   DESCRIPTION AFTER WHATSAPP
   ========================================================= */

.pwsp-summary-after-wa {
    margin-top: 24px;
}


/* =========================================================
   META
   ========================================================= */

.pwsp-meta {
    margin-top: 25px;

    color: #8a8f92;

    font-size: 15px;

    line-height: 2;
}

.pwsp-meta a {
    color: #3c82c5;

    text-decoration: none;
}


/* =========================================================
   TABS
   ========================================================= */

.pwsp-tabs {
    margin-top: 55px;

    border: 1px solid #e0e5e8;

    border-radius: 8px;

    overflow: hidden;
}

.pwsp-tab-nav {
    display: flex;

    border-bottom: 1px solid #e0e5e8;

    background: #fff;
}

.pwsp-tab-nav button {
    border: 0;

    background: #fff;

    padding: 19px 25px;

    cursor: pointer;

    color: #66747d;

    font-size: 14px;

    position: relative;
}

.pwsp-tab-nav button.is-active {
    color: var(--pwsp-primary);

    font-weight: 700;
}

.pwsp-tab-nav button.is-active::after {
    content: "";

    position: absolute;

    left: 16px;
    right: 16px;

    bottom: -1px;

    height: 2px;

    background: var(--pwsp-primary);
}

.pwsp-tab-panel {
    display: none;

    padding: 36px 40px;

    color: #536d7f;

    font-size: 15px;

    line-height: 1.8;
}

.pwsp-tab-panel.is-active {
    display: block;
}

.pwsp-tab-panel table {
    width: 100%;

    border-collapse: collapse;
}

.pwsp-attributes th,
.pwsp-attributes td {
    border-bottom: 1px solid #e7ebee;

    padding: 13px 10px;

    text-align: left;
}

.pwsp-attributes th {
    width: 35%;

    color: #263e50;
}


/* =========================================================
   RELATED PRODUCTS
   ========================================================= */

.pwsp-related {
    margin-top: 65px;
}

.pwsp-related h2 {
    color: var(--pwsp-primary);

    font-size: 32px;

    line-height: 1.2;

    margin: 0 0 25px;
}

.pwsp-related-grid {
    display: grid;

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

    gap: 22px;
}

.pwsp-related-card {
    position: relative;

    border: 1px solid #e0e7eb;

    border-radius: 10px;

    padding: 14px;

    background: #fff;

    overflow: hidden;

    box-sizing: border-box;
}

.pwsp-related-media {
    position: relative;

    height: 270px;

    background: #fff;

    border-radius: 6px;

    overflow: hidden;
}

.pwsp-related-img {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;
}

.pwsp-related-img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.pwsp-related-sale {
    position: absolute;

    z-index: 3;

    top: 14px;
    left: 14px;

    background: var(--pwsp-primary);

    color: #fff;

    padding: 10px 13px;

    border-radius: 4px;

    font-size: 11px;

    line-height: 1;

    font-weight: 700;
}

.pwsp-related-wishlist {
    position: absolute;

    z-index: 4;

    top: 10px;
    right: 10px;

    width: 42px;
    height: 42px;

    border: 0;

    border-radius: 50%;

    background: #fff;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);

    color: var(--pwsp-primary);

    font-size: 24px;

    line-height: 1;

    cursor: pointer;
}

.pwsp-related-wishlist.is-added {
    color: #d6336c;
}

.pwsp-related-cat {
    color: #8a959c;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.7px;

    margin-top: 17px;

    min-height: 15px;
}

.pwsp-related-cat a {
    color: inherit;

    text-decoration: none;
}

.pwsp-related-card h3 {
    margin: 8px 0 24px;

    font-size: 18px;

    line-height: 1.35;

    min-height: 49px;
}

.pwsp-related-card h3 a {
    color: var(--pwsp-primary);

    text-decoration: none;
}

.pwsp-related-price {
    font-size: 20px;

    font-weight: 700;

    color: var(--pwsp-primary);

    min-height: 28px;
}

.pwsp-related-price del {
    color: #9da5a9;

    font-size: 14px;

    font-weight: 400;

    margin-right: 7px;
}

.pwsp-related-price ins {
    text-decoration: none;
}

.pwsp-related-cart {
    display: flex;

    width: 100%;

    min-height: 56px;

    align-items: center;

    justify-content: center;

    margin-top: 14px;

    background: var(--pwsp-primary);

    color: #fff;

    border-radius: 4px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    box-sizing: border-box;

    transition: opacity 0.2s ease;
}

.pwsp-related-cart:hover {
    color: #fff;

    text-decoration: none;

    opacity: 0.9;
}

.pwsp-related-disabled {
    opacity: 0.55;

    cursor: not-allowed;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.pwsp-lightbox {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 999999;

    background: rgba(0, 0, 0, 0.86);

    align-items: center;

    justify-content: center;

    padding: 40px;
}

.pwsp-lightbox.is-open {
    display: flex;
}

.pwsp-lightbox img {
    max-width: 90vw;

    max-height: 90vh;

    width: auto;

    height: auto;

    object-fit: contain;
}

.pwsp-lightbox-close {
    position: absolute;

    top: 20px;

    right: 25px;

    background: none;

    border: 0;

    color: #fff;

    font-size: 44px;

    cursor: pointer;
}


/* =========================================================
   TOAST
   ========================================================= */

.pwsp-toast {
    position: fixed;

    right: 25px;

    bottom: 25px;

    z-index: 999999;

    background: #0b3b67;

    color: #fff;

    padding: 13px 18px;

    border-radius: 6px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .pwsp-page {
        padding: 25px 20px 60px;
    }

    .pwsp-product {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .pwsp-main-image,
    .pwsp-main-image > img {
        min-height: 500px;

        height: 500px;
    }

    .pwsp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .pwsp-page {
        padding: 20px 15px 45px;
    }

    .pwsp-breadcrumb {
        font-size: 12px;

        margin-bottom: 20px;
    }


    /* -----------------------------------------------------
       MOBILE GALLERY
       Main image first
       Thumbnails below
       ----------------------------------------------------- */

    .pwsp-gallery {
        display: flex !important;

        flex-direction: column !important;

        width: 100% !important;

        gap: 12px !important;
    }

    .pwsp-main-image {
        order: 1 !important;

        width: 100% !important;

        min-height: 370px;

        height: 370px;
    }

    .pwsp-main-image > img {
        width: 100%;

        height: 370px;

        min-height: 370px;
    }

    .pwsp-thumbs {
        order: 2 !important;

        display: flex !important;

        flex-direction: row !important;

        flex-wrap: nowrap !important;

        width: 100% !important;

        gap: 10px !important;

        overflow-x: auto !important;

        padding: 2px 1px 5px !important;

        scrollbar-width: thin;
    }

    .pwsp-thumb {
        flex: 0 0 64px !important;

        width: 64px !important;

        height: 64px !important;

        padding: 6px;
    }


    /* -----------------------------------------------------
       PRODUCT DETAILS
       ----------------------------------------------------- */

    .pwsp-details h1 {
        font-size: 31px;

        line-height: 1.18;
    }

    .pwsp-price {
        font-size: 23px;
    }


    /* -----------------------------------------------------
       QUANTITY + ADD TO CART
       ----------------------------------------------------- */

    .pwsp-buy-row {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .pwsp-qty {
        width: 145px;
    }


    /* -----------------------------------------------------
       WHATSAPP
       ----------------------------------------------------- */

    .pwsp-whatsapp {
        width: fit-content !important;

        max-width: 100%;

        min-height: 50px;

        padding: 0 22px !important;

        font-size: 13px !important;
    }

    .pwsp-wa-icon {
        font-size: 20px !important;
    }


    /* -----------------------------------------------------
       RELATED PRODUCTS
       ----------------------------------------------------- */

    .pwsp-related-grid {
        grid-template-columns: 1fr;
    }

    .pwsp-related-img {
        height: 230px;
    }


    /* -----------------------------------------------------
       TABS
       ----------------------------------------------------- */

    .pwsp-tab-nav {
        overflow-x: auto;
    }

    .pwsp-tab-nav button {
        flex: 0 0 auto;

        padding: 16px 18px;
    }

    .pwsp-tab-panel {
        padding: 25px 20px;
    }


    /* -----------------------------------------------------
       LIGHTBOX
       ----------------------------------------------------- */

    .pwsp-lightbox {
        padding: 20px;
    }

    .pwsp-lightbox img {
        max-width: 95vw;

        max-height: 85vh;
    }

    .pwsp-lightbox-close {
        top: 10px;

        right: 15px;

        font-size: 38px;
    }


    /* -----------------------------------------------------
       TOAST
       ----------------------------------------------------- */

    .pwsp-toast {
        left: 15px;

        right: 15px;

        bottom: 15px;

        text-align: center;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .pwsp-page {
        padding-left: 12px;

        padding-right: 12px;
    }

    .pwsp-details h1 {
        font-size: 27px;
    }

    .pwsp-main-image,
    .pwsp-main-image > img {
        min-height: 330px;

        height: 330px;
    }

    .pwsp-thumb {
        flex-basis: 58px !important;

        width: 58px !important;

        height: 58px !important;
    }

    .pwsp-whatsapp {
        font-size: 12px !important;

        padding: 0 18px !important;
    }
}