* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
:root {
    --primary-color: rgb(75, 75, 228);
    --secondary-color: #fff;
    --font-color: #333;
}


body {
    background-color: #dded;
    display: grid;
    place-items: center;
}
html{
    scroll-behavior:smooth;
 }

.header {
    max-width: 100%;
    display: flex;
    position: fixed;
    padding: 25px;
    background-color: rgb(75, 75, 228);
    z-index: 1;
}
.logo{
    display: flex;
}
.logo h1 {
    padding-top: 7px;
    font-size: 30px;
    color: #fff;
    letter-spacing: 0.5px;
}
.logo > img{
    width: 43px;
    height: 40px;
    border-radius: 50%;
    margin: 5px;
}

.search {
    flex: 1;
    margin:5px  20px;
}

.search > input {
    padding:12px;
    width: 100%;
    border: none;
    border-radius: 5px;
}

.search > input::placeholder {
    font-size: 16px;
    color: black;
}

nav ul {
    display: flex;
    align-items: center;
    padding: 10px;
}

nav ul li {
    display: block;
    list-style: none;
    margin: 0 4px;
}
nav ul li i{
    color: #fff;
    font-size: 15px;
}
nav ul li a::before{
    content: "";
}
nav ul li a {
    
    font-size: 17px;
    text-decoration: none;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(45, 45, 68, 0.867);
    transform: scale(1.1);
}
#home{
    padding-top: 80px;
}

/* Menu uchun style */
#check{
    display: none;
}

label #menu, label #cancel{
    color: #fff;
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    display: none;
}

@media (max-width: 600px) {
    .logo h1{
        padding-top: 12px;
        font-size: 10px;
    }
    .logo > img{
        width: 20px;
        height: 20px;
        border-radius: 50%;

    }
    label #menu, label #cancel{
        top: 20px;
    }
    .search{
        width: 70%;
        margin-right: 60px;
    }
    .search > input{
        padding: 5px;
        width: 100%;
        border:none;
    }
    .header {
        position: fixed;
        width: 100%;
    }
    label #menu {
        display: block;
    }
    .search > input::placeholder{
        font-size: 10px;
        letter-spacing: normal;
    }
    nav {
        position: absolute;
        top: 67px;
        right: -100%;
        width: 100%;
        height: 100vh;
        background:rgb(75, 75, 228);
        transition: 0.5s;
        display: flex;    
        text-align: start; 
    }
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px 5px;
       
    }
    nav ul li {
        display: flex;
        margin: 15px 0;
       
    }
    nav ul li a {
        display: block;
        font-size: 10px;
        color: white;
        text-decoration: none;
        padding: 10px;
        line-height: 5px;
    
    }
    #check:checked ~ nav {
        right: -55%;
    }
    #check:checked ~ label #menu {
        display: none;
    }
    #check:checked ~ label #cancel {
        display: block;
    } 
    .shior h2{
        font-size: 20px;
    }
    .content{
        width: 90%;
        margin: 0 auto;
        flex-direction: column;
        align-items: center;
    }
    .much img{
        width: 350px;
        height: 300px;
    }
    .btn{
        margin: 5px 0;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .category-item {
        padding: 10px;
    }
    .category-item img{
        height: 200px
    };
    .category-info p {
        font-size: 1em;
    }

    .add-to-cart {
        font-size: 0.9em;
        padding: 8px 16px;
    }
    .promotions{
        flex-direction: column;
        place-items: center;
        width: 90%;
        margin: 0 auto;
    }
    .promotion-item{
        min-width: 90%;
        background-size: cover;
    }
  
    #contact{
    
        width: 85%;
        margin: 0 auto;
    }
    #contact h1 {
        font-size: 1.8rem;
    }
   
    #categories{
        width: 100%;
        margin: 0 auto;
    }
    .contact-form {
        padding: 10px;
        width: 90%;
    }
   
    .footer-container {
        text-align: center;
        display: flex;
        
    }

    
    .footer-info > h3, .social-media > h3{
        font-size: 10px;
    } 
    .footer-info p{
        font-size: 5px;
    }
    
    .social-media i, .social-media a{
        font-size:15px ;
    }
    .social-media a:hover{
        background-color: #45a049;
        transition: 0.3s;
        margin-left: 15px;
        border-radius: 2px;
    }
}

/*homepage uchun stayl*/
.container{
    background-color: #ddeedd;
    padding: 0 5px;
}
.shior{
    padding: 30px 0;
    color: rgb(75, 75, 228);
    text-align: center;
    font-size: 30px;
}

.content{
place-items: center;
display: flex;
text-align: center;
}


.much > img{
    border-radius: 5px;
    width: 90%;
    margin: 0 auto;
    height: 400px;
    background-size: cover;
    margin: 5px 10px;
    -moz-box-shadow: 16px 19px 5px -5px rgba(34, 60, 80, 0.6);
    box-shadow: 16px 19px 5px -5px rgba(34, 60, 80, 0.6);
}
.label{
   width: 90%;
   margin: 30px auto;
   text-align: center;
}
.label > p{
    padding: 5px;
    font-size: 35px;
    color:rgb(75, 75, 228) ;
}
.btn{
    background-color:rgb(75, 75, 228) ;
    color: #fff;
    text-align: center;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size:15px;
}
#categories {
    padding-top: 100px;
    padding-left: 20px;
    padding-right: 20px;
}
#categories h1{
    text-align: center;
    color:rgb(75, 75, 228);
    font-size: 30px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.category-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    background-color: #fff;
    -webkit-box-shadow: 32px 29px 21px -5px rgba(34, 60, 80, 0.6);
-moz-box-shadow: 32px 29px 21px -5px rgba(34, 60, 80, 0.6);
box-shadow: 32px 29px 21px -5px rgba(34, 60, 80, 0.6);
    
}

.category-item img {
    width: 100%;
    height: 300px;
    border-bottom: 1px solid #ddd;
}

.category-info {
    margin-top: 10px;
}

.category-info p {
    font-size: 1.1em;
    font-weight: bold;
}

.add-to-cart {
    background-color: rgb(75, 75, 228);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    color: white;
}

.add-to-cart:hover {
    background-color: #e67e22;
}
/* Kontakt bo'limi uchun stil */
#contact {
    padding-top: 110px;
    text-align: center;
}
#contact h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    color: rgb(75, 75, 228);
}
/* Kontakt formasi */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 32px 29px 21px -5px rgba(34, 60, 80, 0.6);
    -moz-box-shadow: 32px 29px 21px -5px rgba(34, 60, 80, 0.6);
    box-shadow: 32px 29px 21px -5px rgba(34, 60, 80, 0.6);
}
.contact-form .input-field {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #555;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    max-height: 340px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    
}
.contact-form textarea {
    resize: vertical;
    max-height: 78px;
}
.contact-form .submit-btn {
    background-color: rgb(75, 75, 228) ;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.contact-form .submit-btn:hover {
    background-color: #45a049;
}
/* Kontakt ma'lumotlari */
.contact-info {
    margin-top: 20px;
}
.contact-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}
.contact-info p {
    font-size: 1rem;
    color: #555;
}
/* Aksiyalar bo‘limi */
#promotions {
    padding-top: 95px;
    background-color: #f8f8f8;
    text-align: center;
    margin-top: 50px;
}
#promotions h1 {
    font-size: 2.5rem;
    color: rgb(75, 75, 228);
    margin-bottom: 25px;
}
.promotions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 15px;
    
}
.promotion-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 30%; /* Standart o‘lcham: 3 ustun */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-box-shadow: -18px 18px 7px -11px rgba(34, 60, 80, 0.57) inset;
    -moz-box-shadow: -18px 18px 7px -11px rgba(34, 60, 80, 0.57) inset;
    box-shadow: -18px 18px 7px -11px rgba(34, 60, 80, 0.57) inset;
   
}

.promotion-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.promotion-item h2 {
    font-size: 1.5rem;
    color: rgb(75, 75, 228);
    margin: 15px 0 10px;
}
.promotion-item p {
    color: #666;
    font-size: 1rem;
    padding: 0 15px;
    margin-bottom: 10px;
}
.promotion-item .btn {
    display: block;
    margin: 10px auto 20px;
    padding: 10px 20px;
    background-color: rgb(75, 75, 228);
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.promotion-item .btn:hover {
    background-color: #4CAF50;
}
.promotion-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Footer bo'limi uchun umumiy stil */
footer{
    background-color: #333;
    color: #fff;
}
.footer-container{
    display: flex;
}

.footer-info, .social-media{
    text-align: center;
    width: 45%;
    margin: 20px;
}
.footer-info h3, .social-media h3{
    font-size: 20px;
    margin-bottom: 10px;
}
.footer-info p, .social-media p{
    font-size: 15px;
    padding: 5px;
}
.social-media li{
    list-style: none;
    
}
.social-media a{
    text-decoration: none;
    font-size: 20px;
    padding: 5px;
    color: #fff;
}
.social-media a:hover{
    background-color: #45a049;
    transition: 0.3s;
    margin-left: 15px;
    border-radius: 2px;
}
/* Ikonkalar uchun stil */
.bx {
    margin-right: 10px;
    font-size: 1.5rem;
}
