/* ===== Umumiy uslublar ===== */
* {
    cursor: pointer;
}
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
}

/* ===== Header ===== */
header {
    background: linear-gradient(90deg, #1e90ff, #00bfff);
    color: white;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background 0.3s;
}

header:hover {
    background: linear-gradient(90deg, #00bfff, #1e90ff);
}

header h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s;
}

header h1:hover {
    transform: scale(1.05);
}

header nav a {
    color: white;
    margin-left: 25px;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

header nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

header nav a:hover::after {
    width: 100%;
}

header nav a:hover {
    color: #ffeb3b;
}

/* ===== Hero Banner ===== */
.hero {
    text-align: center;
    padding: 120px 10px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1511707171634-5f897ff02aa9') center/cover no-repeat;
    color: white;
    position: relative;
}

.hero h2 {
    font-size: 55px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.5);
}

.hero .btn {
    display: inline-block;
    padding: 18px 35px;
    background: linear-gradient(90deg, #ff6347, #ff4500);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.hero .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    background: linear-gradient(90deg, #ff4500, #ff6347);
}

/* Animatsiya */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Features ===== */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 50px 10%;
    background: white;
    gap: 20px;
}

.feature {
    background: #f9f9f9;
    width: 30%;
    text-align: center;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.feature h3 {
    margin-bottom: 15px;
    color: #1e90ff;
}

.feature p {
    color: #555;
}

/* ===== Product list ===== */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 10%;
}

.product {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    width: 300px;
    height: 450px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.product img {
    width: 200px;
    height: 250px;
    border-radius: 12px;
    
}

.product h3 {
    margin: 10px 0;
    font-size: 20px;
    color: #1e90ff;
}

.product p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #555;
}

/* Savatga qo‘shish tugmasi */
.product .add-to-cart {
    background: linear-gradient(90deg, #ff6347, #ff4500);
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.product .add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #ff4500, #ff6347);
}

/* ===== Form styling ===== */
form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

form label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

form input, form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s, box-shadow 0.3s;
}

form input:focus, form textarea:focus {
    border-color: #1e90ff;
    box-shadow: 0 0 5px rgba(30,144,255,0.5);
    outline: none;
}

form button {
    background: #1e90ff;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #104e8b;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 20px;
    background: #1e90ff;
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .features, .product-list {
        flex-direction: column;
        align-items: center;
    }
    .feature, .product {
        width: 80%;
    }
}
/* ===== Savat dizayni ===== */
.cart-items {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.cart-items div {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cart-items div:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.cart-items p {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.cart-items button {
    background: linear-gradient(90deg, #ff6347, #ff4500);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.cart-items button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #ff4500, #ff6347);
}

/* Jami narx */
#total {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Buyurtma berish tugmasi */
main button[type="button"] {
    background: #1e90ff;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

main button[type="button"]:hover {
    transform: translateY(-3px);
    background: #104e8b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .cart-items div {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-items button {
        margin-top: 10px;
    }
}

/* ===== Savat dizayni ===== */
.cart-items {
    max-width: 800px;
    margin: 0 auto 30px auto;
}
.btnone {
    background: linear-gradient(90deg, #ff6347, #ff4500);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.cart-items div {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cart-items div:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.cart-items p {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.cart-items button {
    background: linear-gradient(90deg, #ff6347, #ff4500);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.cart-items button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #ff4500, #ff6347);
}

/* Jami narx */
#total {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

/* Buyurtma berish tugmasi */
main button[type="button"] {
    display: block;
    margin: 0 auto 30px auto;
    background: #1e90ff;
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

main button[type="button"]:hover {
    transform: translateY(-3px);
    background: #104e8b;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .cart-items div {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-items button {
        margin-top: 10px;
    }
}
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

/* Header */
header {
    background: #6a00ff;
    color: #fff;
    padding: 15px;
    text-align: center;
}

nav a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Buttons */
.btnone {
    background: #6a00ff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
}

.btnone:hover {
    background: #5300cc;
}

/* Cart card */
.cart-item {
    background: white;
    padding: 15px;
    margin: 10px auto;
    width: 60%;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item button {
    background: #ff0055;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.cart-item button:hover {
    background: #cc0044;
}

/* Search input */
#search {
    padding: 12px;
    width: 60%;
    border-radius: 10px;
    border: 1px solid #aaa;
}

/* =========================
   MODAL CART
========================= */
.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal {
    background: white;
    width: 80%;
    max-width: 500px;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.close-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-top: 20px;
    border-radius: 10px;
    cursor: pointer;
}
/* === QIDIRUV DIZAYNI === */
.search-box {
    width: 100%;
    max-width: 700px;
    margin: 25px auto;
    display: flex;
    gap: 10px;
    justify-content: center;
}

#searchInput {
    width: 70%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    outline: none;
    transition: 0.3s;
}

#searchInput:focus {
    border-color: #0f8a10;
    box-shadow: 0 0 6px #4CAF50;
}

#clearSearch {
    padding: 12px 18px;
    background: #ff3b3b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

#clearSearch:hover {
    background: #cc0000;
}

/* highlight */
mark {
    background: yellow;
    color: black;
    padding: 2px 4px;
    border-radius: 3px;
}

