* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    color: #333;
}

main {
    width: 90%;
    margin: auto;
}

.top-bar {
    width: 90%;
    margin: auto;
}

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.container1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.logo {
    height: 40px;
    width: auto;
}

.search-container {
    position: relative;
    flex-grow: 1;
    max-width: 600px;
}

.input1 {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgb(208, 206, 206);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 3px;
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons {
    display: flex;
    gap: 15px;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
}

.icon {
    height: 24px;
    width: auto;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4747;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-dropdown {
display: none;
position: absolute;
top: 60px;
right: 20px;
width: 300px;
background: white;
border: 1px solid #ddd;
padding: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 1000;
}
.cart-dropdown.active {
display: block;
}
.cart-item {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
padding-bottom: 10px;
border-bottom: 1px solid #eee;
}

.container2 {
    display: flex;
    justify-content: space-evenly;
    margin-top: 10px;
    align-items: center;
}

.category {
    display: flex;
    gap: 8px;
    align-items: center;
    background-color: rgb(243, 243, 243);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    width: 250px;
    height: 40px;
    margin-bottom: 10px;
}

.category-icon, .arrow-down {
    height: 32px;
    width: auto;
}

.category-icon {
    height: 20px;
    padding-right: 8px;
}

.arrow-down {
    padding-left: 65px;
}

.container2 a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    padding: 8px 12px;
    transition: all 0.3s;
}

.container2 a:hover {
    color: rgb(239, 3, 3);
}

.red {
    color: red;
    font-weight: bold;
}

.section-title {
    text-align: center;
    padding: 30px 0 20px;
    color: #333;
}

.deals-container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.deal-card {
    width: 280px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.deal-item {
    text-align: center;
}

.deal-item img {
    width: 100px;
}

.deal-promo {
    text-align: center;
    background: #FFF6DD;
    padding: 6px 12px;;
    width: fit-content;
    border-radius: 20px;
    margin-left: 60px;
}

.deal-tittle {
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: normal;
    height: 40px;
    overflow: hidden;
}

.product-price {
    color: #ff4747;
    font-weight: bold;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #ffb800;
    margin-bottom: 10px;
}

.add-to-cart {
    width: 100%;
    padding: 8px;
    background: #ff4747;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #e63e3e;
}

footer {
    background: #f8f8f8;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 0;
}

.no-results i {
    font-size: 50px;
    color: #ff4747;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    color: #666;
    font-size: 16px;
}

@media (max-width: 768px) {
    .container1 {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .container2 {
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        padding: 10px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

.deal-items {
    display: flex;
}
