/* 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: #333;
    background: #fff;
}

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

/* Top Header */
.top-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-links {
    display: flex;
    gap: 15px;
}

.auth-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-links a:hover {
    color: #3498db;
}

/* Main Header */
.main-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-bar form {
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
}

.search-bar form:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
}

.search-bar button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.search-bar button:hover {
    background: #2980b9;
}

.cart-icon {
    position: relative;
    color: #2c3e50;
    font-size: 22px;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.cart-icon:hover {
    background: #f8f9fa;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Navigation */
.main-nav {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: all 0.3s;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.15);
    border-bottom-color: white;
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    color: white;
}

/* Categories Section */
.categories {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #2c3e50;
    font-weight: 700;
    font-family:arial;
}

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

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: #333;
}

.category-icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.category-card p {
    color: #7f8c8d;
    font-size: 13px;
}

/* Featured Products Slider */
.featured-products-slider {
    padding: 60px 0;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-btn {
    width: 45px;
    height: 45px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.slider-btn:hover {
    background: #3498db;
    color: white;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 -10px;
}

.slider-container {
    overflow: hidden;
    padding: 10px 0;
}

.products-slider {
    display: flex;
    transition: transform 0.5s ease;
    gap: 0;
}

.slider-item {
    flex: 0 0 25%;
    padding: 0 10px;
    transition: transform 0.3s ease;
}

/* Product Card Styles */
.slider-item .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #f1f3f4;
}

.slider-item .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.product-image-container {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-item .product-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.slider-item .product-card:hover .product-image {
    transform: scale(1.05);
}

.slider-item .product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-item .product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.slider-item .product-category {
    color: #7f8c8d;
    font-size: 12px;
    margin: 0;
}

.slider-item .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.slider-item .current-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.slider-item .original-price {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.slider-item .stock-info {
    margin: 0;
}

.slider-item .in-stock {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.slider-item .in-stock.available {
    background: #d4edda;
    color: #155724;
}

.slider-item .expiry-info {
    font-size: 11px;
    color: #e67e22;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-to-cart-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart-btn:hover {
    background: #2980b9;
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 25px 0 15px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #bdc3c7;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator.active {
    background: #3498db;
    transform: scale(1.2);
}

/* View All Button */
.btn-view-all {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-view-all:hover {
    background: #219a52;
    color: white;
}

/* Health Tips Section */
.health-tips {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.health-tips .section-title {
    color: white;
}

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

.tip-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #fff;
}

.tip-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.tip-card p {
    opacity: 0.9;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    margin-bottom: 20px;
    color: #3498db;
    font-size: 1.2rem;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

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

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-section a:hover {
    color: #3498db;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification.success {
    background: #27ae60;
}

.notification.error {
    background: #e74c3c;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .slider-item {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 992px) {
    .slider-item {
        flex: 0 0 50%;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .top-header-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #3498db;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .slider-item {
        flex: 0 0 100%;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .slider-item {
        flex: 0 0 100%;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .categories {
        padding: 50px 0;
    }
    
    .featured-products-slider {
        padding: 50px 0;
    }
    
    .health-tips {
        padding: 50px 0;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .tip-card {
        padding: 25px 20px;
    }
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-item {
    animation: slideIn 0.5s ease;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Fix cart icon overlap */
.cart-icon {
    position: relative;
    display: inline-block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

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

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    border-left: 4px solid #28a745;
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.info {
    border-left-color: #17a2b8;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}