/* 🌟 Asosiy dizayn */
body {
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #f4f4f9;
}

/* 🔘 Kategoriya tugmalari */
.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.categories button {
    text-transform: none;
    padding: 12px 18px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.categories button:hover {
    background: linear-gradient(135deg, #0056b3, #003c80);
    transform: scale(1.05);
}

/* 🛍️ Mahsulotlar bo‘limi */
.products-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5ta yonma-yon */
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 📦 Mahsulot kartochkasi */
.product {
    padding: 15px;
    background: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.product img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.product h3 {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.product p {
    font-size: 14px;
}

/* 🎖️ Skidka va Novinka belgisi */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: red;
    color: white;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
}

.badge.new {
    background: green;
}

/* Narx*/

.price-btn {
    background: #17bb08;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.price-btn:hover {
    background-color: #046b11;
}



/* Zakaz btn */
.product-order-btn {
    background: #1d72e0;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    margin-top: 10px;
    transition: 0.3s;
}

.product-order-btn:hover {
    background: #085edf;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
}

.image-modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 10px #fff;
    transition: transform 0.4s ease;
    
}

.image-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .image-modal-content {
        max-width: 95vw;
        max-height: 85vh;
    }

    .image-modal .close {
        font-size: 28px;
        right: 20px;
        top: 15px;
    }
}


/* 📱 Responsiv dizayn */
@media (max-width: 1200px) {
    .products-container {
        grid-template-columns: repeat(4, 1fr);
        /* O‘rta ekranlar – 4 ta */
    }
}

@media (max-width: 992px) {
    .products-container {
        grid-template-columns: repeat(3, 1fr);
        /* Planshet – 3 ta */
    }
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        /* Kichik planshet – 2 ta */
    }
}

@media (max-width: 480px) {
    .products-container {
        grid-template-columns: repeat(1, 1fr);
        /* Telefon – 1 ta */
    }
}