/* =========================
   PRODUCT DETAIL LAYOUT
========================= */
.product-detail {
    display: grid;
    grid-template-columns: 90px minmax(300px, 550px) minmax(320px, 420px);
    justify-content: center;
    gap: 40px;

    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 0 20px;
    align-items: start;
}

/* =========================
   THUMBNAILS
========================= */
.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumbnails img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #f5f5f5;

    transition: 0.25s ease;
}

.thumbnails img:hover {
    border-color: #000;
    transform: scale(1.03);
}

/* =========================
   MAIN IMAGE
========================= */
.main-image {
    width: 100%;
    max-width: 550px;

    background: #f7f7f7;
    border-radius: 20px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.main-image img {
    width: 100%;
    max-height: 650px;
    object-fit: contain;
    display: block;
}

/* =========================
   PRODUCT INFO
========================= */
.product-info {
    width: 100%;
    max-width: 420px;
}

.product-info h1 {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 14px;
    font-weight: 700;
    color: #111;
}

.price {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* =========================
   VARIANTS
========================= */
.variants h3 {
    font-size: 15px;
    margin-bottom: 12px;
    color: #444;
}

.colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.colors .color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: 0.2s ease;
}

.colors .color:hover {
    transform: scale(1.08);
    border-color: #000;
}

.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.sizes .size {
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    cursor: pointer;

    background: #fff;
    transition: 0.2s ease;

    font-size: 14px;
}

.sizes .size:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* =========================
   DESCRIPTION
========================= */
.description {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #eee;

    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

/* =========================
   BUTTON
========================= */
.btn-primary {
    width: 100%;
    height: 54px;

    border: none;
    border-radius: 14px;

    background: #111;
    color: #fff;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;
    transition: 0.25s ease;

    margin-top: 20px;
}

.btn-primary:hover {
    background: #333;
}

/* =========================
   LARGE LAPTOPS
========================= */
@media (max-width: 1300px) {

    .product-detail {
        grid-template-columns: 80px minmax(280px, 480px) minmax(300px, 380px);
        gap: 30px;
    }

    .main-image {
        max-width: 480px;
    }
}

/* =========================
   TABLETS
========================= */
@media (max-width: 992px) {

    .product-detail {
        grid-template-columns: 80px 1fr;
        max-width: 900px;
    }

    .product-info {
        grid-column: span 2;
        max-width: 100%;
    }

    .main-image {
        max-width: 100%;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

     .product-detail {
        display: flex;
        flex-direction: column;
        gap: 18px;

        margin-top: 120px;
        padding: 0 14px 40px;
    }

    /* MAIN IMAGE FIRST */
    .main-image {
        order: 1;

        padding: 15px;
        border-radius: 16px;

        max-width: 100%;
    }

    .main-image img {
        max-height: 420px;
    }

    /* THUMBNAILS UNDER IMAGE */
    .thumbnails {
        order: 2;

        flex-direction: row;
        overflow-x: auto;
        gap: 10px;

        width: 100%;
        padding-bottom: 5px;
    }

    .thumbnails img {
        width: 75px;
        min-width: 75px;
        border-radius: 10px;
    }

    /* PRODUCT INFO LAST */
    .product-info {
        order: 3;
        max-width: 100%;
    }

    .product-info h1 {
        font-size: 26px;
    }

    .price {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .btn-primary {
        height: 50px;
    }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {

    .product-info h1 {
        font-size: 22px;
    }

    .price {
        font-size: 23px;
    }

    .main-image img {
        max-height: 340px;
    }

    .colors .color {
        width: 28px;
        height: 28px;
    }

    .sizes .size {
        font-size: 13px;
        padding: 9px 13px;
    }

    .description {
        font-size: 14px;
    }
}