/* ===== RESET & BASE ===== */
* {
    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-color: #fefefe;
    padding-top: 70px; /* Space for fixed header */
}

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

/* ===== SIMPLE HEADER (from header.php) ===== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #2c3e50;
    font-size: 20px;
    text-decoration: none;
}

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

/* Buttons */
.admin-btn, .login-btn {
    padding: 8px 20px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-btn:hover, .login-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.hero-banner h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-banner p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #667eea;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
    padding: 25px 0;
    background: #f8f9ff;
    margin-bottom: 40px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 30px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 50px;
    font-weight: 700;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.no-products i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-products h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-products p {
    color: #999;
    margin-bottom: 30px;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    background: #f5f5f5;
}

.no-image i {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ddd;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.quick-view {
    background: white;
    color: #333;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.quick-view:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.product-category {
    display: inline-block;
    background: #f0f4ff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

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

.btn-add-to-cart:hover {
    background: #667eea;
    transform: translateY(-2px);
}

.btn-view-details {
    flex: 1;
    background: #f8f9ff;
    color: #667eea;
    border: 1px solid #e0e4ff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.btn-view-details:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 16px 22px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    z-index: 99;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
    font-size: 22px;
}

/* ===== FOOTER ===== */
.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer-column h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 20px;
}

.footer-column p {
    color: #b0b7c3;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    color: #b0b7c3;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-column a:hover {
    color: #667eea;
    padding-left: 5px;
}

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

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #667eea;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8a94a6;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-header {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .cart-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    body {
        padding-top: 60px;
    }
    
    .hero-banner {
        padding: 60px 20px;
    }
    
    .hero-banner h2 {
        font-size: 32px;
    }
    
    .hero-banner p {
        font-size: 16px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0 15px;
        gap: 10px;
    }
    
    .filter-btn {
        white-space: nowrap;
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 14px 16px;
        font-size: 0;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .whatsapp-float span {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner h2 {
        font-size: 28px;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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