/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212121;
    background-color: #f1f3f6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background: #2874f0;
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1 i {
    color: #ffc107;
}

.tagline {
    font-size: 11px;
    color: #f0f0f0;
    margin-top: -2px;
}

/* Search Bar Styles */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 36px;
}

.search-input {
    flex: 1;
    padding: 0 16px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #212121;
    height: 100%;
}

.search-input::placeholder {
    color: #878787;
}

.search-btn {
    background: #2874f0;
    border: none;
    padding: 0 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #1a5bb8;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.search-suggestion:hover {
    background-color: #f5f5f5;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    transition: color 0.2s ease;
    font-size: 12px;
}

.action-btn:hover {
    color: #ffc107;
}

.action-btn i {
    font-size: 18px;
}

.cart-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    transition: color 0.2s ease;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.cart-btn:hover {
    color: #ffc107;
}

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

.cart-text {
    font-size: 12px;
}

/* Navigation Menu */
.main-nav {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
}

.categories-btn {
    background: #2874f0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.categories-btn:hover {
    background: #1a5bb8;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #212121;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #2874f0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2874f0;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Banner Section */
.banner-section {
    padding: 20px 0;
    position: relative;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 300px;
}

.banner-slide {
    display: none;
    position: relative;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    color: white;
    max-width: 400px;
    z-index: 2;
}

.banner-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-btn {
    background: #ff6161;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.banner-btn:hover {
    background: #ff4757;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 97, 97, 0.3);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.carousel-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #212121;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0c0c0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: #2874f0;
    transform: scale(1.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 16px;
    color: #878787;
}

/* Categories Section */
.categories-section {
    padding: 40px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(40, 116, 240, 0.8), rgba(255, 97, 97, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay i {
    color: white;
    font-size: 24px;
}

.category-content {
    padding: 16px;
    text-align: center;
}

.category-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 4px;
}

.category-content p {
    color: #878787;
    font-size: 12px;
    line-height: 1.4;
}

/* Featured Products Section */
.featured-products-section {
    padding: 40px 0;
    background: #f8f9fa;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6161;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.product-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #4caf50;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.product-content {
    padding: 16px;
}

.product-brand {
    font-size: 12px;
    color: #878787;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rating-stars {
    color: #ffc107;
    font-size: 12px;
}

.rating-text {
    font-size: 12px;
    color: #878787;
}

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

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
}

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

.savings {
    font-size: 12px;
    color: #4caf50;
    font-weight: 600;
}

.product-specs {
    font-size: 12px;
    color: #878787;
    margin-bottom: 12px;
}

.add-to-cart-btn {
    width: 100%;
    background: #2874f0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
    background: #1a5bb8;
}

/* Services Section */
.services-section {
    padding: 40px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.service-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.service-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(40, 116, 240, 0.9);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.service-content {
    padding: 20px;
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.service-description {
    font-size: 14px;
    color: #878787;
    margin-bottom: 12px;
    line-height: 1.5;
}

.service-price {
    font-size: 16px;
    font-weight: 700;
    color: #2874f0;
    margin-bottom: 8px;
}

.service-duration {
    font-size: 12px;
    color: #878787;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    margin-bottom: 16px;
}

.service-features li {
    font-size: 12px;
    color: #878787;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
}

.service-btn {
    width: 100%;
    background: #2874f0;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.service-btn:hover {
    background: #1a5bb8;
}

/* Deals Section */
.deals-section {
    padding: 40px 0;
    background: #f8f9fa;
}

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

.deal-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #f0f0f0;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.deal-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6161;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

.deal-timer {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
}

/* Loading Spinner */
.loading-spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 9999;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2874f0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Error Message */
.error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ff6161;
    color: white;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(255, 97, 97, 0.3);
}

.error-message i {
    font-size: 24px;
    margin-bottom: 12px;
}

/* Footer */
.footer {
    background: #212121;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.footer-section p {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #2874f0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #424242;
    color: #b0b0b0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        padding: 16px 0;
    }
    
    .search-container {
        max-width: 100%;
        width: 100%;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .banner-content {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .banner-content h2 {
        font-size: 24px;
    }
    
    .banner-content p {
        font-size: 14px;
    }
    
    .categories-grid,
    .products-grid,
    .services-grid,
    .deals-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .carousel-controls {
        padding: 0 10px;
    }
    
    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .banner-slide {
        height: 200px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .categories-grid,
    .products-grid,
    .services-grid,
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        gap: 12px;
    }
    
    .action-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .action-btn i {
        font-size: 16px;
    }
}