/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fff;
    color: #000;
}

/* ===== HEADER ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-bottom: 1px solid #ddd;
}
.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}
.search-box {
    width: 40%;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #000;
    outline: none;
}

.search-box i {
    position: absolute;
    right: 10px;
    top: 12px;
}  
.cart {
    position: relative;
}

.cart i {
    font-size: 22px;
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: black;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 50%;
}

/* ===== BANNER ===== */
.banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ===== CATEGORIES ===== */
/* ===== CATEGORIES ===== */
.categories {
    padding: 30px;
    text-align: center;
}

.categories h2 {
    margin-bottom: 20px;
}

.category-list {
    display: flex;
    flex-wrap: nowrap;      /* ❌ wrap band */
    overflow-x: auto;       /* ✅ horizontal scroll */
    gap: 15px;
    padding: 10px;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.category {
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.category-list::-webkit-scrollbar {
    display: none;
}
.category {
    text-decoration: none;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
}

.category img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    transition: 0.3s;
}

.category span {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.category:hover img {
    transform: scale(1.1);
    border-color: black;
}

/* ===== PRODUCTS ===== */
.products {
    padding: 30px;
}

.products h2 {
    text-align: center;
    margin-bottom: 20px;
}

.product-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; } /* 📱 Mobile fix */ @media (max-width: 768px) { .product-container { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.product-card {
    border: 1px solid #000000;
    padding: 15px;
    text-align: center;
    transition: 0.3s;
}

.product-card:hover {
    transform: scale(1.03);
}
.product-img {
    width: 100%;
    height: 350px;   /* 👈 height badha di */
    object-fit: contain;  /* 👈 full image show hogi */
    background: #f5f5f5;  /* empty space look clean lagega */
}

.product-card h3 {
    margin: 10px 0;
}

.product-card select {
    margin: 10px 0;
    padding: 5px;
    width: 100%;
}

.product-card p {
    font-weight: bold;
}

.product-card button {
    background: black;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

.product-card button:hover {
    background: #333;
}

/* ===== FOOTER ===== */
.footer {
    background: black;
    color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 40px;
    gap: 20px;
}

.footer h3 {
    margin-bottom: 10px;
}

.footer p {
    margin: 5px 0;
    cursor: pointer;
}

.footer p:hover {
    text-decoration: underline;
}






.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}





@media (max-width: 768px) {

    .product-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-img {
        height: 180px;
    }
}












/* PRODUCT GRID */
.products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 items per row */
    gap: 15px;
    padding: 10px;
}

/* PRODUCT CARD */
.product-card {
    background: #fff;
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}
