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

body {
    background-color: #f1f3f6;
    color: #212121;
}

/* Header Styles */
header {
    background-color: #2874f0;
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

.logo img {
    height: 20px;
    margin-bottom: 3px;
}

.explore-plus {
    font-size: 11px;
    font-style: italic;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.explore-plus span {
    color: #ffe500;
    font-weight: 500;
    margin-right: 3px;
}

.explore-plus img {
    width: 10px;
    height: 10px;
}

.search-container {
    flex: 1;
    display: flex;
    height: 36px;
    max-width: 564px;
    margin: 0 15px;
}

.search-container input {
    width: 100%;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 14px;
    border-radius: 2px 0 0 2px;
}

.search-container button {
    width: 44px;
    height: 36px;
    border: none;
    background-color: white;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    color: #2874f0;
}

.login-btn {
    padding: 5px 40px;
    font-size: 16px;
    font-weight: 500;
    background-color: white;
    color: #2874f0;
    border: none;
    border-radius: 2px;
    margin: 0 20px;
    cursor: pointer;
}

.nav-links {
    display: flex;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    margin: 0 20px;
    display: flex;
    align-items: center;
}

.dropdown i {
    margin-left: 5px;
}

/* Category Navigation */
.category-nav {
    background-color: white;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 56px;
    z-index: 99;
}

.category-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    max-width: 120px;
}

.category-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
}

.category-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Product Listing */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #212121;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating {
    background-color: #388e3c;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.rating-count {
    color: #878787;
    font-size: 14px;
}

.product-features {
    list-style: none;
    margin-bottom: 10px;
}

.product-features li {
    font-size: 14px;
    color: #212121;
    margin-bottom: 4px;
    padding-left: 15px;
    position: relative;
}

.product-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #c2c2c2;
}

.product-price {
    margin: 10px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.current-price {
    font-size: 18px;
    font-weight: 500;
    margin-right: 10px;
}

.original-price {
    font-size: 14px;
    color: #878787;
    text-decoration: line-through;
    margin-right: 10px;
}

.discount {
    font-size: 14px;
    color: #388e3c;
    font-weight: 500;
}

.offer-text {
    font-size: 14px;
    color: #388e3c;
    font-weight: 500;
    margin-top: 5px;
}

/* Footer Styles */
footer {
    background-color: #172337;
    color: white;
    padding: 40px 0 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 0 20px;
    border-bottom: 1px solid #454d5e;
    padding-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 160px;
    margin-bottom: 20px;
}

.footer-column.address {
    flex: 1.5;
}

.footer-column h4 {
    color: #878787;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: white;
    font-size: 12px;
    text-decoration: none;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-column p {
    font-size: 12px;
    line-height: 1.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #454d5e;
}

.footer-payment {
    display: flex;
    flex-wrap: wrap;
}

.footer-payment span {
    font-size: 14px;
    color: white;
    margin-right: 30px;
    display: flex;
    align-items: center;
}

.footer-payment i {
    margin-right: 5px;
}

.payment-methods img {
    height: 28px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .logo-container {
        margin-right: 20px;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        margin: 10px 0;
        max-width: 100%;
    }
    
    .nav-links a {
        margin: 0 10px;
    }
    
    .category-container {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 10px;
    }
    
    .category-item {
        min-width: 80px;
        margin: 0 5px;
    }
    
    .footer-column {
        min-width: 120px;
    }
    
    .footer-column.address {
        flex: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .login-btn {
        padding: 5px 20px;
        margin: 0 10px;
    }
    
    .nav-links a {
        font-size: 14px;
        margin: 0 8px;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
    
    .footer-payment {
        margin-bottom: 15px;
    }
    
    .footer-payment span {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        justify-content: space-around;
        width: 100%;
    }
    
    .nav-links a {
        margin: 0 5px;
        font-size: 12px;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 20px;
    }
}

