:root {
    --primary: #1e88e5;
    --primary-dark: #1565c0;
    --secondary: #4caf50;
    --accent: #ff9800;
    --light: #f5f5f5;
    --dark: #212121;
    --gray: #757575;
    --light-gray: #e0e0e0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #f8f9fa;
    color: #333;
}
/* Header Styles */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 28px;
    font-weight: 700;
    margin-right: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
}
.logo i {
    margin-right: 8px;
    color: var(--accent);
}
.deliver-to {
    display: flex;
    align-items: center;
    margin-right: 15px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}
.deliver-to:hover {
    background-color: var(--light);
}
.deliver-to i {
    margin-right: 5px;
    color: var(--gray);
}
.search-bar {
    flex-grow: 1;
    display: flex;
    margin: 0 15px;
    max-width: 600px;
}
.search-bar select {
    background-color: var(--light);
    border: 1px solid var(--light-gray);
    border-radius: 4px 0 0 4px;
    padding: 10px 15px;
    border-right: 1px solid var(--light-gray);
    min-width: 120px;
}
.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--light-gray);
    border-left: none;
    font-size: 15px;
}
.search-bar button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.search-bar button:hover {
    background-color: var(--primary-dark);
}
.header-nav {
    display: flex;
    align-items: center;
}
.nav-item {
    padding: 8px 12px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.nav-item:hover {
    background-color: var(--light);
}
.nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
}
.cart {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-left: 15px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.cart:hover {
    background-color: var(--light);
}
.cart-count {
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: 5px;
}
/* Navigation Bar */
.navbar {
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar-item {
    padding: 8px 15px;
    margin-right: 10px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
}
.navbar-item:hover {
    background-color: rgba(255,255,255,0.2);
}
.navbar-item i {
    margin-right: 8px;
}
/* Hero Section */
.hero {
    height: 350px;
    background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,100 0,100" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100% 100%;
}
.hero-content {
    max-width: 800px;
    z-index: 1;
}
.hero-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}
.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}
.hero-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.hero-btn:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}
/* Categories Section */
.categories {
    background-color: white;
    padding: 30px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 10px;
    color: var(--primary);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.category-card {
    text-align: center;
    padding: 20px 10px;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    background-color: var(--light);
}
.category-card:hover {
    background-color: #e3f2fd;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.category-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--primary);
}
.category-name {
    font-size: 14px;
    font-weight: 500;
}
/* Product Grid */
.container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}
.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 20px;
    position: relative;
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.3s;
    object-fit: contain;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-info {
    padding: 20px;
}
.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
    font-weight: 500;
}
.product-company {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 10px;
}
.product-rating {
    color: #ffa41c;
    margin-bottom: 10px;
    font-size: 14px;
}
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
}
.product-price span {
    font-size: 14px;
    color: var(--gray);
    font-weight: normal;
    margin-left: 5px;
}
.product-actions {
    display: flex;
    justify-content: space-between;
}
.add-to-cart {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    flex-grow: 1;
    margin-right: 10px;
    transition: background-color 0.3s;
}
.add-to-cart:hover {
    background-color: var(--primary-dark);
}
.wishlist {
    background-color: white;
    border: 1px solid var(--light-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}
.wishlist:hover {
    border-color: var(--primary);
    color: var(--primary);
}
/* Footer */
.footer-links {
    background-color: var(--dark);
    color: white;
    padding: 50px 0 20px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px;
}
.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #bbb;
    cursor: pointer;
}
.footer-column ul li:hover {
    color: white;
    text-decoration: underline;
}
.footer-bar {
    background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}
.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo i {
    margin-right: 8px;
    color: var(--accent);
}
/* Responsive Design */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .header {
        justify-content: space-between;
    }
    .search-bar {
        order: 3;
        margin: 15px 0;
        width: 100%;
    }
    .navbar {
        overflow-x: auto;
        justify-content: flex-start;
    }
    .navbar-item {
        white-space: nowrap;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hero-content p {
        font-size: 18px;
    }
}
@media (max-width: 576px) {
    .header-nav .nav-item:not(:first-child) {
        display: none;
    }
    .deliver-to {
        display: none;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}