/* =========================================================
   PRODUCT SECTION
   Product-specific styles only.
   Global body/html/reset styles are handled by main.css.
========================================================= */

.product {
    width: 100%;

    padding: 60px 20px;

    background: #ffffff;
}


/* =========================================================
   MAIN PRODUCT CONTAINER
========================================================= */

.product-container {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;

    display: grid;

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

    gap: 0;

    align-items: stretch;

    background: #ffffff;

    border: 1px solid #dedede;
}


/* =========================================================
   LEFT - PRODUCT GALLERY
========================================================= */

.product-gallery {
    width: 100%;

    padding: 25px;

    background: #ffffff;

    border-right: 1px solid #dedede;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* =========================================================
   MAIN IMAGE CONTAINER
========================================================= */

.product-image {
    position: relative;

    width: 100%;

    height: 570px;

    background: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


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

.product-image img {
    width: 96%;
    height: 96%;

    object-fit: contain;

    display: block;

    opacity: 1;

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

.product-image img:hover {
    transform: scale(1.015);
}


/* =========================================================
   PRODUCT ARROWS
========================================================= */

.product-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 10;

    width: 40px;
    height: 40px;

    padding: 0;

    border: none;

    border-radius: 50%;

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

    color: #666666;

    font-size: 18px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.product-arrow:hover {
    background: #222222;

    color: #ffffff;
}


.product-arrow-left {
    left: 8px;
}


.product-arrow-right {
    right: 8px;
}


/* =========================================================
   THUMBNAILS CONTAINER
========================================================= */

.product-thumbnails {
    width: 100%;

    height: 70px;

    margin-top: 15px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 10px;

    overflow-x: auto;

    overflow-y: hidden;

    scrollbar-width: none;
}


.product-thumbnails::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   THUMBNAIL
========================================================= */

.thumbnail {
    width: 70px;
    height: 70px;

    min-width: 70px;
    max-width: 70px;

    padding: 3px;

    border: 1px solid #d8d8d8;

    background: #ffffff;

    border-radius: 2px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        opacity 0.2s ease;
}


.thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


.thumbnail:hover {
    border-color: #777777;
}


.thumbnail.active {
    border: 2px solid #222222;
}


/* =========================================================
   RIGHT - PRODUCT INFORMATION
========================================================= */

.product-info {
    width: 100%;

    padding: 40px 45px 45px;

    background: #ffffff;

    display: flex;

    flex-direction: column;

    min-height: 100%;
}


/* =========================================================
   PRODUCT HEADING
========================================================= */

.product-heading {
    margin-bottom: 22px;
}


.product-heading h1 {
    margin: 0 0 10px;

    padding: 0;

    color: #222222;

    font-size: 42px;

    font-weight: 500;

    line-height: 1.15;

    letter-spacing: -0.5px;
}


/* =========================================================
   PRODUCT SUBTITLE / ARTICLE
========================================================= */

.product-article {
    color: #818080;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   PRODUCT DESCRIPTION
========================================================= */

.product-description {
    margin-bottom: 30px;
}


.product-description ul {
    margin: 0;

    padding-left: 20px;
}


.product-description li {
    margin: 0 0 10px;

    padding-left: 2px;

    color: #444444;

    font-size: 14px;

    line-height: 1.5;

    text-transform: uppercase;
}


.product-description li:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SPECIFICATION TABLE
========================================================= */

.specifications {
    width: 100%;

    margin-top: auto;
}


.spec-row {
    width: 100%;

    display: grid;

    grid-template-columns: 44% 56%;

    border-top: 1px solid #dddddd;
}


.spec-row:last-child {
    border-bottom: 1px solid #dddddd;
}


/* =========================================================
   SPECIFICATION LABEL
========================================================= */

.spec-label {
    padding: 14px 12px;

    background: #f8f8f8;

    color: #555555;

    font-size: 14px;

    font-weight: 500;

    line-height: 1.45;
}


/* =========================================================
   SPECIFICATION VALUE
========================================================= */

.spec-value {
    padding: 14px 12px;

    background: #ffffff;

    color: #222222;

    font-size: 14px;

    font-weight: 400;

    line-height: 1.45;
}


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

@media (max-width: 991px) {

    .product {
        padding: 45px 20px;
    }


    .product-container {
        grid-template-columns: 1fr;
    }


    .product-gallery {
        padding: 25px;

        border-right: none;

        border-bottom: 1px solid #dedede;
    }


    .product-image {
        height: 520px;
    }


    .product-info {
        padding: 35px 30px 40px;
    }


    .product-heading h1 {
        font-size: 38px;
    }

}


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

@media (max-width: 600px) {

    .product {
        padding: 20px 10px;
    }


    .product-gallery {
        padding: 15px;
    }


    .product-image {
        height: 360px;
    }


    .product-image img {
        width: 95%;
        height: 95%;
    }


    /* Arrows */

    .product-arrow {
        width: 34px;
        height: 34px;

        font-size: 16px;
    }


    .product-arrow-left {
        left: 5px;
    }


    .product-arrow-right {
        right: 5px;
    }


    /* Thumbnails */

    .product-thumbnails {
        height: 60px;

        margin-top: 10px;

        gap: 8px;
    }


    .thumbnail {
        width: 60px;
        height: 60px;

        min-width: 60px;
        max-width: 60px;
    }


    /* Information */

    .product-info {
        padding: 30px 20px 35px;
    }


    .product-heading {
        margin-bottom: 20px;
    }


    .product-heading h1 {
        font-size: 30px;

        line-height: 1.2;
    }


    .product-article {
        font-size: 13px;
    }


    .product-description {
        margin-bottom: 25px;
    }


    .product-description li {
        font-size: 13px;

        margin-bottom: 8px;
    }


    /* Specification */

    .spec-row {
        grid-template-columns: 45% 55%;
    }


    .spec-label,
    .spec-value {
        padding: 12px 9px;

        font-size: 13px;
    }

}


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

@media (max-width: 400px) {

    .product {
        padding: 10px 5px;
    }


    .product-gallery {
        padding: 10px;
    }


    .product-image {
        height: 300px;
    }


    .product-info {
        padding: 25px 15px 30px;
    }


    .product-heading h1 {
        font-size: 27px;
    }


    .product-description li {
        font-size: 12px;
    }


    .spec-row {
        grid-template-columns: 1fr;
    }


    .spec-label {
        padding-bottom: 6px;
    }


    .spec-value {
        padding-top: 6px;
    }

}
