*, *::before, *::after {
    box-sizing: border-box;
}


@media (max-width: 768px) {
    .category-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .category-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    /* background: #fff;
    color: #272626;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center; */
      display: flex;
    align-items: center;
    padding: 12px 20px;
}

.logo img {
    height: 70px;      
    width: auto;
     margin-right: auto;
}

/* .nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
} */

/* SEARCH BAR */
.search-box {
    display: flex;
    align-items: center;
    gap: 0;

    background: white;
    border-radius: 15px;
    overflow: hidden;

    width: 100%;
    max-width: 450px;   /* CONTROL SIZE */
    margin: 0 auto;     /* CENTER IT */
     border: 2px solid rgb(49, 48, 48);   
      
}


.search-box input {
 flex: 1;
    border: none;
    padding: 10px 12px 10px 40px; /* LEFT padding for icon */
    outline: none;
    font-size: 14px;

    background-image: url("images/searchicon.png");
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 30px;
    
}

/* .search-box button {
    padding: 8px 12px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
} */

/* CART */
.cart {
    font-weight: bold;
    cursor: pointer;
    margin-left: auto;
}

.image-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    width: 100%;
    padding: 10px 15px;
}


.img-card {
    flex: 0 0 auto;
    text-align: center;
    text-decoration: none;
    color: #333;
    width: 120px;
     transition: transform 0.3s ease;
}


.img-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
     transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.img-card span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
     transition: color 0.3s ease;
}
/* Hover effects */
.img-card:hover img {
    transform: scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.img-card:hover span {
    color: #ff6600; /* ecommerce orange */
    font-weight: 500;
}

.img-card:hover {
    transform: translateY(-4px);
}


.banner-slider {
    width: 100%;
    height: 500px;         
    position: relative;
    overflow: hidden;
}

/* each slide */
.slide {
    position: absolute;
    inset: 0;               /* top:0 right:0 bottom:0 left:0 */
    width: 100%;
    height: 100%;           

    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;

    width: 45px;
    height: 45px;
    border-radius: 50%;

    font-size: 22px;
    cursor: pointer;
    z-index: 10;
}

.slider-arrow.left {
    left: 15px;
}

.slider-arrow.right {
    right: 15px;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

body {
    margin: 0;
    overflow-x: hidden;
}


.categories {
    width: 100%;
    padding: 20px 0;
    background: #f4f4f4;
}

.category-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 10px 20px;
    box-sizing: border-box;
}

.category-card {
    display: block;          
    text-align: center;
    text-decoration: none;
    color: #333;
}

.category-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.category-card span {
    display: block;
    margin-top: 8px;
}



.cat-list button {
    margin: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

.products {
    padding: 20px;
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px;
    display: inline-block;
    width: 180px;
    text-align: center;
}

.footer {
    text-align: center;
    padding: 12px;
    background: #fff;
    color: #cb4545;
}


