/* ========================================
   WONDERLAND SINGLE PRODUCT
======================================== */

body.single-product #primary,
body.single-product .content-area {
    width: 100% !important;
    max-width: none !important;

    float: none !important;

    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.single-product .site-main {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding: 42px 24px 70px;
}


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

.wl-single-product-main {
    display: grid !important;

    grid-template-columns:
        minmax(320px, 520px)
        minmax(320px, 1fr) !important;

    column-gap: 56px !important;
    row-gap: 40px !important;

    align-items: start !important;

    width: 100%;
}


/* LEFT COLUMN */

.wl-single-product-main > .wl-single-product-gallery {
    grid-column: 1 !important;
    grid-row: 1 !important;

    width: 100% !important;
    min-width: 0 !important;

    float: none !important;
    clear: none !important;

    margin: 0 !important;
}


/* RIGHT COLUMN */

.wl-single-product-main > .wl-single-product-summary {
    grid-column: 2 !important;
    grid-row: 1 !important;

    width: 100% !important;
    max-width: 620px !important;
    min-width: 0 !important;

    float: none !important;
    clear: none !important;

    margin: 0 !important;

    align-self: start !important;
}


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

.wl-single-product-gallery
.woocommerce-product-gallery {
    width: 100% !important;

    float: none !important;

    margin: 0 !important;
}

.wl-single-product-gallery
.woocommerce-product-gallery__wrapper {
    width: 100%;

    overflow: hidden;

    background: #f7f9f8;

    border: 1px solid var(--wl-border);
    border-radius: 24px;
}

.wl-single-product-gallery
.woocommerce-product-gallery__image {
    width: 100%;
}

.wl-single-product-gallery
.woocommerce-product-gallery__image img {
    display: block;

    width: 100%;
    height: auto;

    aspect-ratio: 1 / 1;

    object-fit: contain;
}


/* ========================================
   GALLERY THUMBNAILS
======================================== */

.wl-single-product-gallery
.flex-control-thumbs {
    display: grid !important;

    grid-template-columns: repeat(5, 1fr);

    gap: 10px;

    margin: 12px 0 0 !important;
    padding: 0 !important;
}

.wl-single-product-gallery
.flex-control-thumbs li {
    width: 100% !important;

    float: none !important;

    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 12px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        transform .2s ease;
}

.wl-single-product-gallery
.flex-control-thumbs li:hover {
    border-color: var(--wl-purple-light);

    transform: translateY(-2px);
}

.wl-single-product-gallery
.flex-control-thumbs img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: contain;
}


/* ========================================
   PRODUCT TITLE
======================================== */

.wl-single-product-summary
.product_title {
    width: 100%;

    margin: 0 0 18px;

    color: var(--wl-text);

    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.08;

    word-break: normal;
}


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

.wl-single-product-summary
.price {
    margin: 0 0 18px !important;

    color: var(--wl-purple-dark) !important;

    font-size: 32px !important;
    font-weight: 800 !important;
}

.wl-single-product-summary
.price del {
    margin-right: 8px;

    color: var(--wl-text-soft);

    font-size: 18px;

    opacity: .65;
}

.wl-single-product-summary
.price ins {
    color: var(--wl-purple-dark);

    text-decoration: none;
}


/* ========================================
   STOCK
======================================== */

.wl-single-product-summary
.stock {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin: 4px 0 18px !important;

    color: #4ca76b !important;

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

.wl-single-product-summary
.stock::before {
    content: "";

    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    background: #63c985;

    border-radius: 50%;
}

.wl-single-product-summary
.stock.out-of-stock {
    color: #999 !important;
}

.wl-single-product-summary
.stock.out-of-stock::before {
    background: #aaa;
}


/* ========================================
   SHORT DESCRIPTION
======================================== */

.wl-single-product-summary
.woocommerce-product-details__short-description {
    margin: 18px 0 24px;

    color: var(--wl-text-soft);

    font-size: 15px;
    line-height: 1.7;
}


/* ========================================
   CART FORM
======================================== */

.wl-single-product-summary
form.cart {
    display: flex !important;

    align-items: center;

    gap: 12px;

    margin: 26px 0 !important;
}


/* ========================================
   QUANTITY
======================================== */

.wl-single-product-summary
.quantity {
    display: flex !important;

    align-items: center;

    min-width: 120px;
    height: 54px;

    overflow: hidden;

    background: #fff;

    border: 1px solid var(--wl-border);
    border-radius: 999px;
}

.wl-single-product-summary
.quantity .qty {
    width: 52px !important;
    height: 52px !important;

    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    text-align: center;

    color: var(--wl-text);

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


/* Botiga quantity +/- */

.wl-single-product-summary
.quantity .botiga-quantity-plus,
.wl-single-product-summary
.quantity .botiga-quantity-minus,
.wl-single-product-summary
.quantity button,
.wl-single-product-summary
.quantity a {
    display: flex;

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

    width: 34px;
    height: 52px;

    padding: 0;

    background: transparent !important;

    border: 0 !important;

    color: var(--wl-text) !important;

    font-size: 20px;
    font-weight: 500;

    box-shadow: none !important;

    transform: none !important;
}


/* ========================================
   ADD TO CART
======================================== */

.wl-single-product-summary
.single_add_to_cart_button {
    flex: 1;

    min-height: 54px;

    padding: 14px 28px !important;

    background: var(--wl-purple) !important;
    color: #fff !important;

    border: 0 !important;
    border-radius: 999px !important;

    font-size: 15px !important;
    font-weight: 800 !important;

    box-shadow:
        0 8px 22px rgba(123, 76, 226, .20);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.wl-single-product-summary
.single_add_to_cart_button:hover {
    background: var(--wl-purple-dark) !important;

    transform: translateY(-2px);

    box-shadow:
        0 10px 26px rgba(123, 76, 226, .26);
}


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

.wl-single-product-summary
.product_meta {
    margin-top: 26px;

    padding-top: 20px;

    border-top: 1px solid var(--wl-border);

    color: var(--wl-text-soft);

    font-size: 13px;
    line-height: 1.9;
}

.wl-single-product-summary
.product_meta > span {
    display: block;
}

.wl-single-product-summary
.product_meta a {
    color: var(--wl-purple);

    text-decoration: none;
}


/* ========================================
   BOTTOM AREA
======================================== */

.wl-single-product-bottom {
    width: 100%;

    margin-top: 60px;
}


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

.wl-single-product-bottom
.woocommerce-tabs {
    width: 100% !important;

    float: none !important;
    clear: both !important;
}

.wl-single-product-bottom
.woocommerce-tabs ul.tabs {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin: 0 0 24px !important;
    padding: 0 !important;

    border: 0 !important;
}

.wl-single-product-bottom
.woocommerce-tabs ul.tabs::before,
.wl-single-product-bottom
.woocommerce-tabs ul.tabs::after {
    display: none !important;
}

.wl-single-product-bottom
.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;

    background: var(--wl-bg-soft) !important;

    border: 0 !important;
    border-radius: 999px !important;
}

.wl-single-product-bottom
.woocommerce-tabs ul.tabs li::before,
.wl-single-product-bottom
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.wl-single-product-bottom
.woocommerce-tabs ul.tabs li a {
    display: block;

    padding: 10px 18px !important;

    color: var(--wl-text) !important;

    font-size: 14px;
    font-weight: 700 !important;
}

.wl-single-product-bottom
.woocommerce-tabs ul.tabs li.active {
    background: var(--wl-purple) !important;
}

.wl-single-product-bottom
.woocommerce-tabs ul.tabs li.active a {
    color: #fff !important;
}


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

.wl-single-product-bottom
.related.products,
.wl-single-product-bottom
.up-sells {
    width: 100% !important;

    float: none !important;
    clear: both !important;

    margin-top: 60px;
}

.wl-single-product-bottom
.related.products > h2,
.wl-single-product-bottom
.up-sells > h2 {
    margin-bottom: 24px;

    color: var(--wl-text);

    font-size: 30px;
    font-weight: 800;
}


/* ========================================
   MEDIUM DESKTOP / TABLET LANDSCAPE
   768px - 1100px
======================================== */

@media (max-width: 1100px) and (min-width: 768px) {

    body.single-product .site-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .wl-single-product-main {
        grid-template-columns:
            minmax(280px, 420px)
            minmax(300px, 1fr) !important;

        column-gap: 32px !important;
    }

    .wl-single-product-summary
    .product_title {
        font-size: 34px;
    }

    .wl-single-product-summary
    .price {
        font-size: 27px !important;
    }

    .wl-single-product-summary
    form.cart {
        align-items: stretch;
    }

}


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

@media (max-width: 767px) {

    body.single-product .site-main {
        padding:
            22px
            12px
            50px;
    }

    .wl-single-product-main {
        grid-template-columns: 1fr !important;

        gap: 28px !important;
    }

    .wl-single-product-main > .wl-single-product-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .wl-single-product-main > .wl-single-product-summary {
        grid-column: 1 !important;
        grid-row: 2 !important;

        max-width: none !important;
    }

    .wl-single-product-summary
    .product_title {
        font-size: 29px;
    }

    .wl-single-product-summary
    .price {
        font-size: 25px !important;
    }

    .wl-single-product-summary
    form.cart {
        flex-direction: column;

        align-items: stretch;
    }

    .wl-single-product-summary
    .quantity {
        width: 100%;

        justify-content: center;
    }

    .wl-single-product-summary
    .single_add_to_cart_button {
        width: 100%;
    }

    .wl-single-product-gallery
    .flex-control-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

}
