/* ===========================================
   GLOBAL STYLES + BACKGROUND IMAGE
=========================================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url("./shop-bg.webp") no-repeat center/cover fixed;
    backdrop-filter: brightness(0.95);
}

.container {
    max-width: 1300px;
    margin: auto;
    padding: 20px;
}

/* ===========================================
   PRODUCT SECTION (Gallery + Info)
=========================================== */
.product-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.92);
    padding: 20px;
    border-radius: 15px;
}

/* IMAGE GALLERY */
.product-images {
    text-align: center;
}

.product-images img {
    width: 100%;
    border-radius: 10px;
}

.image-slider {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.image-slider img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.image-slider img:hover {
    border: 2px solid #ff4b5c;
}

/* ===========================================
   PRODUCT INFO
=========================================== */
.product-info {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.product-info h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.price {
    font-size: 1.8rem;
    color: #e60023;
}

.stock {
    color: green;
}

.stars span {
    font-size: 1.5rem;
    color: gold;
}

.btn {
    background: #ff4b5c;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-top: 12px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.btn:hover {
    background: #d93c4a;
}

/* ===========================================
   MODAL
=========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
}

/* ===========================================
   RELATED PRODUCTS
=========================================== */
.related-products {
    margin: 50px auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    padding: 30px;
    border-radius: 15px;
    max-width: 1300px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.related-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.related-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.related-btn {
    margin-top: 10px;
    background: #ff4b5c;
    padding: 10px;
    border: none;
    width: 100%;
    color: white;
    border-radius: 8px;
}

.related-btn:hover {
    background: #d93c4a;
}

/* ===========================================
   FREQUENTLY BOUGHT TOGETHER
=========================================== */
.fbt-section {
    max-width: 1300px;
    margin: 40px auto;
    text-align: center;
    background: rgba(255,255,255,0.92);
    padding: 40px 20px;
    border-radius: 15px;
}

.fbt-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
}

.fbt-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.fbt-plus {
    font-size: 2.8rem;
    font-weight: bold;
}

/* ===========================================
   RESPONSIVE MEDIA QUERIES
=========================================== */

/* ---------- TABLET VIEW (768px) ---------- */
@media (max-width: 900px) {
    .product-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fbt-img {
        width: 120px;
        height: 120px;
    }
}

/* ---------- MOBILE VIEW (480px) ---------- */
@media (max-width: 600px) {
    .product-info h2 {
        font-size: 1.6rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .fbt-box {
        flex-direction: column;
    }

    .fbt-plus {
        font-size: 2rem;
        margin: 10px 0;
    }
}

/* ---------- SMALL MOBILE (360px) ---------- */
@media (max-width: 400px) {
    .fbt-img {
        width: 100px;
        height: 100px;
    }

    .image-slider img {
        width: 55px;
        height: 55px;
    }
}
