/* =========================================
   ATELIER — PRODUCT DETAIL PAGE
========================================= */

.product-detail-page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 35px 5% 80px;
}

/* BREADCRUMB */

.product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 35px;
    font-size: 12px;
    color: #888;
}

    .product-breadcrumb a {
        color: #555;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .product-breadcrumb a:hover {
            color: #c46b55;
        }

/* MAIN LAYOUT */

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 80px;
    align-items: start;
}
/* PRODUCT GALLERY */

.product-gallery {
    width: 100%;
    max-width: 420px;
}

.product-main-image {
    width: 100%;
    height: 420px;
    background: #f4f2ef;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

    .product-main-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        transition: transform 0.4s ease;
    }

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

/* IMAGE THUMBNAILS */

.product-thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}

.product-thumbnail {
    width: 65px;
    height: 75px;
    flex-shrink: 0;
    object-fit: contain;
    background: #f4f2ef;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.7;
    transition: 0.2s ease;
}

    .product-thumbnail:hover {
        opacity: 1;
    }

    .product-thumbnail.active {
        border: 1px solid #c46b55;
        opacity: 1;
    }
.product-detail-info {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.detail-category {
    display: block;
    margin-bottom: 13px;
    color: #9a735f;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.product-detail-info h1 {
    margin: 0 0 15px;
    color: #202020;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
}

.detail-price {
    margin-bottom: 25px;
    color: #222;
    font-size: 19px;
    font-weight: 600;
}

.detail-divider {
    width: 100%;
    height: 1px;
    margin: 25px 0;
    background: #e8e5e1;
}

/* DESCRIPTION */

.detail-description h3 {
    margin-bottom: 12px;
    color: #222;
    font-size: 14px;
    font-weight: 600;
}

.detail-description p {
    max-width: 420px;
    color: #777;
    font-size: 14px;
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: break-word;
}
/* STOCK STATUS */

.detail-stock {
    margin: 25px 0;
    font-size: 12px;
}

.stock-available {
    color: green;
}

.stock-unavailable {
    color: #b54b4b;
}

/* ADD TO CART FORM */

.add-to-cart-form {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.product-option {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .product-option label {
        color: #333;
        font-size: 12px;
        font-weight: 600;
    }

    .product-option select,
    .product-option input {
        width: 100%;
        height: 46px;
        padding: 0 14px;
        border: 1px solid #dedbd7;
        border-radius: 10px;
        background: #fff;
        color: #242424;
        font-family: inherit;
        font-size: 13px;
        outline: none;
        transition: border-color 0.2s ease;
    }

        .product-option select:focus,
        .product-option input:focus {
            border-color: #c46b55;
        }

.add-to-cart-button {
    width: 100%;
    min-height: 48px;
    padding: 0 25px;
    border: none;
    border-radius: 10px;
    background: #242424;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.25s ease;
}

    .add-to-cart-button:hover {
        background: #c46b55;
    }

    .add-to-cart-button:disabled {
        background: #999;
        cursor: not-allowed;
    }

/* TABLET */

@media (max-width: 900px) {
    .product-detail-layout {
        gap: 35px;
    }

    .product-detail-info h1 {
        font-size: 25px;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .product-detail-page {
        padding: 25px 5% 55px;
    }

    .product-breadcrumb {
        margin-bottom: 25px;
        font-size: 11px;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-detail-info {
        padding-top: 0;
    }

        .product-detail-info h1 {
            font-size: 24px;
        }

    .detail-price {
        font-size: 17px;
    }
}
