﻿/* =========================================================
   PRODUCT VARIANTS
========================================================= */

.product-variants-new {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
}

.variant-item {
    margin-bottom: 22px;
}

.variant-item-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

    .variant-item-label label {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: #222;
    }

.variant-selected-value {
    font-size: 12px;
    color: #777;
    font-weight: 500;
}


/* =========================================================
   COLOR OPTIONS
========================================================= */

.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.color-option {
    position: relative;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

    .color-option::before {
        content: "";
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: var(--color, #cccccc);
        border: 1px solid rgba(0,0,0,.12);
        box-shadow: 0 2px 7px rgba(0,0,0,.12);
        transition: all .2s ease;
    }

    .color-option:hover {
        transform: translateY(-2px);
    }

        .color-option:hover::before {
            transform: scale(1.06);
        }

    .color-option.active {
        border-color: #222;
    }

        .color-option.active::after {
            content: "\2713";
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(0,0,0,.72);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: bold;
        }


    /* =========================================================
   LIGHT COLORS
========================================================= */

    .color-option[data-light="true"]::before {
        border-color: rgba(0,0,0,.18);
    }

    .color-option[data-light="true"].active::after {
        background: rgba(0,0,0,.7);
    }


/* =========================================================
   NORMAL VARIANT BUTTONS
========================================================= */

.variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.variant-button {
    min-width: 60px;
    min-height: 42px;
    padding: 8px 15px;
    border: 1px solid #dddddd;
    background: #fff;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    transition: all .2s ease;
}

    .variant-button:hover {
        border-color: #222;
        transform: translateY(-1px);
    }

    .variant-button.active {
        color: #fff;
        background: #222;
        border-color: #222;
    }


/* =========================================================
   PRICE AREA
========================================================= */

#price-box {
    margin-top: 20px;
}

.product-purchase-box {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #eeeeee;
    border-radius: 14px;
    background: #fff;
}


/* =========================================================
   CART
========================================================= */

.cart-part {
    margin-top: 15px;
}

    .cart-part form {
        width: 100%;
    }

    .cart-part button {
        width: 100%;
        min-height: 54px;
        border: 0;
        border-radius: 11px;
        background: #222;
        color: #fff;
        cursor: pointer;
        font-family: inherit;
        font-size: 15px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: all .2s ease;
    }

        .cart-part button:hover {
            background: #000;
            transform: translateY(-2px);
            box-shadow: 0 7px 20px rgba(0,0,0,.15);
        }

        .cart-part button i {
            font-size: 21px;
        }

        .cart-part button:disabled {
            background: #d6d6d6;
            color: #777;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }


/* =========================================================
   SELLER / CATEGORY
========================================================= */

.product-seller-new,
.product-category-new {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    line-height: 1.8;
}

    .product-seller-new i,
    .product-category-new i {
        font-size: 20px;
    }

.product-category-new {
    align-items: flex-start;
}

    .product-category-new > div {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .product-category-new a {
        border-bottom: 1px dashed currentColor;
    }


/* =========================================================
   GALLERY
========================================================= */

.gallery-container {
    position: relative;
}

.gallery-options-new {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.gallery-option,
.meta-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.gallery-option {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    background: #fff;
    font-size: 20px;
    transition: all .2s ease;
}

    .gallery-option:hover {
        transform: translateY(-2px);
    }

.favorite-active {
    color: #e53935 !important;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.product-short-description {
    line-height: 2.1;
    margin-top: 15px;
}

    .product-short-description img {
        max-width: 100%;
        height: auto;
    }


/* =========================================================
   PROPERTIES
========================================================= */

.product-main-properties {
    margin-top: 25px;
}

    .product-main-properties ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .product-main-properties li {
        display: flex;
        gap: 8px;
        margin-bottom: 10px;
        line-height: 1.9;
    }

    .product-main-properties strong {
        font-weight: 600;
    }


/* =========================================================
   METAS
========================================================= */

.metas {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-button {
    padding: 0;
    color: inherit;
    font-size: inherit;
}

    .meta-button i {
        font-size: 20px;
    }


/* =========================================================
   GALLERY SWIPER
========================================================= */

.galleySwiper {
    width: 100%;
    overflow: hidden;
}

    .galleySwiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

        .galleySwiper .swiper-slide img {
            width: 100%;
            height: auto;
            max-height: 550px;
            object-fit: contain;
            display: block;
        }

.no-product-image {
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.thumbsSwiper {
    margin-top: 12px;
}

    .thumbsSwiper .swiper-slide {
        opacity: .6;
        cursor: pointer;
        border: 1px solid transparent;
        border-radius: 8px;
        overflow: hidden;
    }

    .thumbsSwiper .swiper-slide-thumb-active {
        opacity: 1;
        border-color: #222;
    }

    .thumbsSwiper img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        display: block;
    }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .product-detail-top-part-layout {
        grid-template-columns: 1fr !important;
    }

        .product-detail-top-part-layout .right-part,
        .product-detail-top-part-layout .middle-part,
        .product-detail-top-part-layout .left-part {
            width: 100%;
        }
}


@media (max-width: 576px) {

    .product-name {
        font-size: 20px !important;
        line-height: 1.8;
    }

    .icon-box {
        font-size: 13px;
    }

    .thumbsSwiper img {
        height: 65px;
    }

    .product-main-properties li {
        display: block;
    }

    .product-main-properties strong {
        display: block;
        margin-bottom: 3px;
    }

    .product-variants-new {
        margin-top: 20px;
        padding-top: 17px;
    }

    .color-options {
        gap: 8px;
    }

    .color-option {
        width: 40px;
        height: 40px;
    }

        .color-option::before {
            width: 31px;
            height: 31px;
        }

    .variant-button {
        min-width: 55px;
        min-height: 40px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .product-purchase-box {
        padding: 14px;
    }

    .cart-part button {
        min-height: 52px;
        font-size: 14px;
    }
}
