* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #E1AD01;
    --secondary-gold: #D4A017;
    --mustard-yellow: #FFDB58;
    --dark-mustard: #C5A010;
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --border-color: rgba(225, 173, 1, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--light-text);
    min-height: 100vh;
}

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

/* Header */
.header {
    background: var(--darker-bg);
    border-bottom: 2px solid var(--primary-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.nav-item {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-gold);
    border-bottom-color: var(--primary-gold);
}

.category-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid rgba(225, 173, 1, 0.2);
}

.nav-link {
    padding: 8px 16px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--gray-text);
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--primary-gold);
}

.nav-link.active {
    background: var(--primary-gold);
    color: var(--dark-bg);
    font-weight: bold;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.cart-btn, .logout-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-gold);
    border-radius: 25px;
    background: transparent;
    color: var(--primary-gold);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
}

.logout-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Main Content */
.main {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 50px;
}

.page-title h2 {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-title p {
    font-size: 1.2rem;
    color: var(--gray-text);
    font-style: italic;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(225, 173, 1, 0.3);
}

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

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

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

.product-category {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-gold), var(--mustard-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 15px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--light-text);
    font-weight: bold;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 10px;
    line-height: 1.5;
    flex: 1;
}

.product-serving {
    font-size: 0.85rem;
    color: var(--mustard-yellow);
    margin-bottom: 15px;
    font-weight: 600;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.product-price {
    font-size: 1.8rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-to-cart-btn,
.buy-now-btn {
    padding: 10px 20px;
    color: var(--dark-bg);
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn {
    background: var(--primary-gold);
}

.add-to-cart-btn:hover {
    background: var(--secondary-gold);
    transform: scale(1.05);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.buy-now-btn {
    background: var(--secondary-gold);
}

.buy-now-btn:hover {
    background: var(--primary-gold);
    transform: scale(1.05);
}

.buy-now-btn:active {
    transform: scale(0.98);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: var(--darker-bg);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.7);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid var(--primary-gold);
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-item-name {
    font-weight: bold;
    color: var(--light-text);
    font-size: 1.1rem;
}

.remove-item {
    background: transparent;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.remove-item:hover {
    color: #ff4444;
    transform: scale(1.2);
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--secondary-gold);
}

.quantity {
    font-size: 1rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.cart-item-price {
    font-size: 1.2rem;
    color: var(--primary-gold);
    font-weight: bold;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-text);
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid var(--primary-gold);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--light-text);
}

.total-amount {
    color: var(--primary-gold);
}

.whatsapp-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.clear-cart-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .main-nav {
        order: 2;
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-item {
        font-size: 0.9rem;
    }
    
    .category-nav {
        order: 4;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .header-actions {
        order: 3;
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        max-width: 100%;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .page-title h2 {
        font-size: 2rem;
    }
    
    .page-title p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        margin-top: 50px;
        padding: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .nav-item {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .nav-link {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
    
    .cart-btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .page-title h2 {
        font-size: 1.5rem;
    }
    
    .page-title p {
        font-size: 0.9rem;
    }
    
    .product-card h3 {
        font-size: 1.1rem;
    }
    
    .product-card .price {
        font-size: 1.1rem;
    }
    
    .add-to-cart {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .product-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .cart-item h4 {
        font-size: 0.9rem;
    }
    
    .whatsapp-btn {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 2px solid var(--primary-gold);
    margin-top: 80px;
    padding: 50px 0 20px;
}

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

.footer-section h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--mustard-yellow);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

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

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

.footer-section ul li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 173, 1, 0.1);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    color: var(--primary-gold);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 173, 1, 0.3);
}

.social-links a i {
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--primary-gold);
    color: var(--dark-bg);
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--mustard-yellow);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(225, 173, 1, 0.2);
    color: var(--gray-text);
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Mobile Touch Optimization */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly targets */
    .nav-link,
    .nav-item,
    .add-to-cart,
    .cart-btn,
    button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }
    
    .add-to-cart:hover {
        transform: none;
    }
    
    /* Active states for touch feedback */
    .add-to-cart:active {
        transform: scale(0.95);
    }
    
    button:active {
        transform: scale(0.95);
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .nav-item {
        font-size: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
}

