/* CSS Reset and Variables */
:root {
    --primary: #D4A373; /* Warm beige-brown - primary accent color */
    --secondary: #7F5539; /* Dark brown - for text and important elements */
    --light: #FEFAE0; /* Light beige - background color */
    --accent: #B08968; /* Medium beige - secondary accent color */
    --dark-beige: #A68A64; /* Dark beige - for borders and details */
    --white: #FFFFFF;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: var(--light); 
    color: var(--secondary); 
    line-height: 1.6; 
}

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

/* Header Styles */
header { 
    background: linear-gradient(to right, var(--primary), #e3967e); 
    padding: 10px 0; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

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

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

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 50%;
}

.logo-text { 
    text-align: center; 
}

.logo-text h1 { 
    font-size: 28px; 
    font-weight: 800; 
    color: var(--white); 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); 
    line-height: 1.2; 
}

.logo-text span { 
    display: block; 
    font-size: 20px; 
    font-weight: 600; 
    letter-spacing: 2px; 
}

nav ul { 
    display: flex; 
    list-style: none; 
}

nav ul li { 
    margin-left: 25px; 
    position: relative; 
}

nav ul li a { 
    text-decoration: none; 
    color: var(--white); 
    font-weight: 500; 
    font-size: 16px; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
    transition: all 0.3s; 
}

nav ul li a:hover { 
    text-decoration: underline; 
}



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

/* Page Styles */
.page { 
    display: none; 
    padding: 30px 0; 
    min-height: 70vh; 
}

.page.active { 
    display: block; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 30px; 
    color: var(--primary); 
    font-size: 28px; 
}

.section-subtitle { 
    text-align: center; 
    margin-bottom: 20px; 
    color: var(--primary); 
    font-size: 22px; 
}

/* Home Page */
.hero { 
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1578985545062-69928b1d9587?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1089&q=80'); 
    background-size: cover; 
    background-position: center; 
    padding: 80px 0; 
    text-align: center; 
    color: var(--white); 
}

.hero h2 { 
    font-size: 36px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); 
    line-height: 1.3; 
}

.btn { 
    display: inline-block; 
    background-color: var(--primary); 
    color: var(--white); 
    padding: 12px 30px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 16px; 
    margin-top: 15px; 
    transition: all 0.3s; 
    border: none; 
    cursor: pointer; 
}

.btn:hover { 
    background-color: #c86a50; 
    transform: translateY(-2px); 
}

.about-content { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
    justify-content: space-between; 
    margin: 60px 0; 
}

.card { 
    flex: 1; 
    min-width: 300px; 
    background-color: var(--white); 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: var(--shadow); 
    border-left: 4px solid var(--primary); 
}

.card h3 { 
    color: var(--primary); 
    margin-bottom: 15px; 
    font-size: 22px; 
}

.card p { 
    margin-bottom: 15px; 
    color: var(--secondary); 
    font-size: 16px; 
}

.values { 
    margin-top: 15px; 
}

.values li { 
    margin-bottom: 8px; 
    list-style-type: none; 
    display: flex; 
    align-items: center; 
    font-size: 16px; 
    color: var(--secondary); 
}

.values li:before { 
    content: "-"; 
    margin-right: 8px; 
    color: var(--primary); 
    font-weight: bold; 
}

/* Shop Page */
.product-categories { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 40px; 
    border-bottom: 2px solid var(--primary); 
    padding-bottom: 10px; 
    flex-wrap: wrap; 
}

.category-btn { 
    background: none; 
    border: none; 
    padding: 10px 20px; 
    margin: 0 10px; 
    font-size: 18px; 
    cursor: pointer; 
    color: var(--secondary); 
    font-weight: 500; 
    transition: all 0.3s; 
}

.category-btn.active { 
    color: var(--primary); 
    border-bottom: 3px solid var(--primary); 
}


/* Product Grid Layout - Jumia Style */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    margin: 0 auto;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

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

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.add-to-cart {
    display: block;
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: auto;
}

.add-to-cart:hover {
    background-color: #c86a50;
}

/* Product badges (optional) */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Rating stars (optional) */
.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-stars {
    color: #FFD700;
    margin-right: 5px;
}

.rating-count {
    font-size: 12px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-img-container {
        height: 150px;
    }
    
    .product-title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .product-desc {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-img-container {
        height: 120px;
    }
}

/* Shop page header improvements */
.shop-header {
    text-align: center;
    margin-bottom: 30px;
}

.shop-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
}

.shop-subtitle {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 30px;
}

/* Filter and sort options (optional) */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn, .sort-select {
    padding: 8px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.results-count {
    font-size: 14px;
    color: #666;
}

/* Loading animation for products */
.product-card.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Empty state */
.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-products i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-products h3 {
    margin-bottom: 10px;
    color: #444;
}

.empty-products p {
    margin-bottom: 20px;
}

/* Order Details Modal */
.order-details-content {
    margin: 20px 0;
}

.order-details-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-details-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.order-items-list {
    margin-top: 15px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #f9f9f9;
    margin-bottom: 8px;
    border-radius: 4px;
}

.order-summary {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
}

.order-summary p {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.order-summary p:last-child {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

.status-selector {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.status-selector label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* View button style */
.btn-view {
    background-color: #2196F3 !important;
    color: white !important;
}

.admin-btn { 
    padding: 8px 15px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 14px;
}

.btn-complete { 
    background-color: #4caf50; 
    color: white; 
}

.btn-view { 
    background-color: #2196F3; 
    color: white; 
}

.btn-delete { 
    background-color: #f44336; 
    color: white; 
}

.product-card { 
    background-color: var(--white); 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    transition: transform 0.3s;
    width: 100%;
}

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

.product-img { 
    height: 180px; 
    width: 100%; 
    object-fit: cover; 
    border-bottom: 2px solid #f0e6dc; 
}

.product-info { 
    padding: 20px; 
}

.product-title { 
    font-size: 18px; 
    margin-bottom: 8px; 
    color: var(--secondary); 
    font-weight: 600; 
}

.product-desc { 
    color: #8c6d56; 
    margin-bottom: 15px; 
    font-size: 14px; 
}

.product-price { 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 18px; 
    margin-bottom: 15px; 
}

.add-to-cart { 
    display: block; 
    width: 100%; 
    background-color: var(--primary); 
    color: var(--white); 
    border: none; 
    padding: 10px; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 600; 
    font-size: 16px; 
    transition: background-color 0.3s; 
}

.add-to-cart:hover { 
    background-color: #c86a50; 
}

/* Payment Page */
.payment-steps { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 50px; 
    flex-wrap: wrap; 
}

.step { 
    flex: 1; 
    min-width: 250px; 
    text-align: center; 
    padding: 20px; 
}

.step-number { 
    display: inline-block; 
    width: 40px; 
    height: 40px; 
    background-color: var(--primary); 
    color: var(--white); 
    border-radius: 50%; 
    line-height: 40px; 
    margin-bottom: 15px; 
    font-weight: bold; 
    font-size: 18px; 
}

.payment-details { 
    max-width: 600px; 
    margin: 0 auto; 
    background-color: var(--white); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: var(--shadow); 
}

.payment-info { 
    margin-bottom: 20px; 
}

.payment-info p { 
    margin-bottom: 10px; 
    font-size: 16px; 
}

.account-details { 
    background-color: #f9f1e8; 
    padding: 20px; 
    border-radius: 6px; 
    margin: 15px 0; 
    font-weight: 600; 
    text-align: center; 
}

/* Cart Section */
.cart-items { 
    margin-bottom: 20px; 
}

.cart-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px; 
    border-bottom: 1px solid #eee; 
}

.cart-item-details { 
    flex: 1; 
}

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

.delivery-fee {
    text-align: right;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary);
}

.cart-total { 
    text-align: right; 
    font-size: 20px; 
    font-weight: bold; 
    margin-bottom: 20px; 
    color: var(--primary); 
}

.shop-link {
    text-align: center;
    margin-top: 20px;
}

.shop-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.shop-link a:hover {
    text-decoration: underline;
}

.upload-area { 
    border: 2px dashed var(--primary); 
    padding: 30px; 
    text-align: center; 
    margin: 20px 0; 
    border-radius: 6px; 
    cursor: pointer; 
    background-color: #fdfaf7; 
}

.upload-area i { 
    font-size: 2rem; 
    color: var(--primary); 
    margin-bottom: 10px; 
}

.submit-btn { 
    display: block; 
    width: 100%; 
    background-color: var(--primary); 
    color: var(--white); 
    border: none; 
    padding: 15px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 18px; 
    font-weight: 600; 
    transition: background-color 0.3s; 
}

.submit-btn:hover { 
    background-color: #c86a50; 
}

/* Contact Page */
.contact-content { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.contact-info { 
    flex: 1; 
    min-width: 300px; 
}

.contact-info h3 { 
    color: var(--primary); 
    margin-bottom: 20px; 
    font-size: 22px; 
}

.contact-info p { 
    margin-bottom: 15px; 
}

.contact-info ul { 
    list-style: none; 
    margin-top: 20px; 
}

.contact-info ul li { 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
}

.contact-info ul li i { 
    color: var(--primary); 
    margin-right: 10px; 
    width: 20px; 
}

.contact-form { 
    flex: 1; 
    min-width: 300px; 
    background-color: var(--white); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: var(--shadow); 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: 500; 
}

.form-group input, 
.form-group textarea, 
.form-group select { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    font-size: 16px; 
}

.form-group textarea { 
    min-height: 120px; 
    resize: vertical; 
}

/* Admin Page */
.admin-tabs {
    display: flex;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 30px;
}

.admin-tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    color: var(--secondary);
    font-weight: 500;
    transition: all 0.3s;
}

.admin-tab-btn.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-panel { 
    background-color: var(--white); 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: var(--shadow); 
}

.admin-section { 
    margin-bottom: 40px; 
}

.admin-section h3 { 
    color: var(--primary); 
    margin-bottom: 20px; 
    font-size: 22px; 
    border-bottom: 2px solid var(--primary); 
    padding-bottom: 10px; 
    display: flex; 
    align-items: center; 
}

.notification-dot { 
    width: 20px; 
    height: 20px; 
    background-color: #ff4d4d; 
    border-radius: 50%; 
    margin-left: 10px; 
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-item, 
.product-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px; 
    border-bottom: 1px solid #eee; 
    margin-bottom: 15px;
}

.order-details, 
.product-details { 
    flex: 1; 
}

.order-details h4, 
.product-details h4 { 
    font-size: 18px; 
    margin-bottom: 5px; 
}

.order-details p, 
.product-details p { 
    font-size: 14px; 
    margin-bottom: 3px; 
}

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

.admin-btn { 
    padding: 8px 15px; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: 600; 
}

.btn-complete { 
    background-color: #4caf50; 
    color: white; 
}

.btn-delete { 
    background-color: #f44336; 
    color: white; 
}

.add-product-section { 
    background-color: #f9f9f9; 
    padding: 20px; 
    border-radius: 8px; 
    margin-top: 30px;
}

.add-product-section h3 { 
    margin-bottom: 15px; 
    color: var(--primary); 
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Orders Table */
.orders-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.orders-table th,
.orders-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.orders-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.orders-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.orders-table tr:hover {
    background-color: #f5f5f5;
}

.status-pending {
    color: #ff9800;
    font-weight: 600;
}

.status-processing {
    color: #2196f3;
    font-weight: 600;
}

.status-completed {
    color: #4caf50;
    font-weight: 600;
}

/* Footer */
footer { 
    background: linear-gradient(to right, var(--primary), #e3967e); 
    color: var(--white); 
    padding: 20px 0; 
    text-align: center; 
}

.social-icons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.social-icons a { 
    display: inline-block; 
    width: 40px; 
    height: 40px; 
    background-color: rgba(255, 255, 255, 0.2); 
    border-radius: 50%; 
    text-align: center; 
    line-height: 40px; 
    color: var(--white); 
    transition: background-color 0.3s; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
}

.social-icons a:hover { 
    background-color: rgba(255, 255, 255, 0.3); 
}

.copyright { 
    margin-top: 15px; 
    padding-top: 15px; 
    border-top: 1px solid rgba(255, 255, 255, 0.3); 
    font-size: 14px; 
}

/* Responsive Design */
@media(max-width: 768px) { 
    .header-content { 
        flex-direction: column; 
        text-align: center; 
        gap: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }

    .about-content {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .payment-steps {
        flex-direction: column;
        gap: 20px;
    }

    .contact-content {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .order-item, .product-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    /* Responsive table */
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 10px;
    }
}

@media(max-width: 480px) {
    .orders-table {
        font-size: 12px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 6px 8px;
    }
}

/* Login Modal */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content { 
    background-color: var(--white); 
    margin: 10% auto; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: var(--shadow); 
    width: 90%; 
    max-width: 400px; 
}

.modal-title { 
    text-align: center; 
    margin-bottom: 20px; 
    color: var(--primary); 
    font-size: 24px; 
}

.close { 
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
}

.close:hover { 
    color: var(--secondary); 
}

.admin-link { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    background-color: var(--primary); 
    color: var(--white); 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    box-shadow: var(--shadow); 
    z-index: 99; 
}

/* Shop Type Selector */
.shop-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.shop-type-btn {
    background: none;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    font-size: 18px;
    cursor: pointer;
    color: var(--secondary);
    font-weight: 500;
    transition: all 0.3s;
    border-radius: 4px;
}

.shop-type-btn.active {
    color: var(--primary);
    background-color: rgba(214, 123, 95, 0.1);
    border-bottom: 3px solid var(--primary);
}

.shop-subtitle {
    text-align: center;
    margin: 20px 0;
    color: var(--secondary);
    font-size: 20px;
    font-weight: 600;
}

.product-section {
    display: none;
}

.product-section.active {
    display: block;
}

/* Responsive adjustments */
@media(max-width: 768px) {
    .shop-type-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .shop-type-btn {
        margin: 5px 0;
        width: 100%;
        max-width: 300px;
    }
}

/* Shop Type Selection */
.shop-type-selection {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.shop-type-btn {
    padding: 12px 24px;
    margin: 0 10px;
    background-color: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-type-btn.active,
.shop-type-btn:hover {
    background-color: #d4a373;
    color: white;
    border-color: #d4a373;
}

/* Product Grid */
.product-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-grid.active {
    display: grid;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.product-info p {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.product-options {
    margin-bottom: 15px;
}

.product-option {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #f8f8f8;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-option:hover {
    background-color: #e9e9e9;
}

.product-option.selected {
    background-color: #d4a373;
    color: white;
}

.product-price {
    font-weight: bold;
    font-size: 18px;
    color: #d4a373;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background-color: #d4a373;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #c49363;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}
/* Product Grid Layout - Fixed Version */
#wednesday-product-grid,
#future-product-grid {
    display: none;
}

#wednesday-product-grid.active,
#future-product-grid.active {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    width: 100%;
    margin: 0 auto;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

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

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.add-to-cart {
    display: block;
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: auto;
}

.add-to-cart:hover {
    background-color: #c86a50;
}

/* No products message */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #wednesday-product-grid.active,
    #future-product-grid.active {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    #wednesday-product-grid.active,
    #future-product-grid.active {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .product-img-container {
        height: 150px;
    }
    
    .product-title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .product-desc {
        font-size: 12px;
    }
    
    .product-price {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #wednesday-product-grid.active,
    #future-product-grid.active {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-img-container {
        height: 120px;
    }
}
/* Product Title Fix - Show Full Name */
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
    line-height: 1.3;
    /* Remove the line clamping that causes ellipsis */
    display: block;
    overflow: visible;
    white-space: normal;
    min-height: auto; /* Remove fixed height */
    height: auto; /* Allow natural height */
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
    /* Keep description limited to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Adjust product card layout to accommodate longer titles */
.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 180px; /* Ensure consistent height */
}

/* Make product cards slightly taller to fit longer names */
.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px; /* Increased minimum height */
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .product-title {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .product-card {
        min-height: 350px; /* Slightly smaller on mobile */
    }
    
    .product-info {
        min-height: 160px; /* Slightly smaller on mobile */
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 13px;
    }
    
    .product-card {
        min-height: 320px; /* Even smaller on very small screens */
    }
}
/* Abuja Map Styles */
.abuja-map-container {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.abuja-map-container h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid var(--primary);
}

.delivery-areas {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.delivery-areas h4 {
    color: var(--primary);
    margin-bottom: 12px;
    text-align: center;
    font-size: 16px;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.areas-list span {
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 250px;
    }
    
    .areas-list {
        gap: 6px;
    }
    
    .areas-list span {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Popup Modal Styles */
        .delivery-popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .delivery-popup.active {
            display: flex;
        }

        .popup-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 10px;
            max-width: 500px;
            width: 90%;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .popup-content h2 {
            color: #8B4513;
            margin-bottom: 15px;
            font-size: 24px;
        }

        .popup-content p {
            margin-bottom: 15px;
            font-size: 16px;
            line-height: 1.5;
        }

        .popup-content .highlight {
            color: #8B4513;
            font-weight: bold;
        }

        .popup-content .contact-info {
            background-color: #f9f3e8;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
        }

        .close-popup {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 24px;
            cursor: pointer;
            color: #888;
        }

        .close-popup:hover {
            color: #333;
        }

        .understand-btn {
            background-color: #8B4513;
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 15px;
            transition: background-color 0.3s;
        }

        .understand-btn:hover {
            background-color: #6B3400;
        }

        .do-not-show {
            display: block;
            margin-top: 15px;
            font-size: 14px;
            color: #666;
        }
        
        .call-to-order {
    background-color: #8B4513 !important;
    color: white !important;
    border: none !important;
    padding: 10px 15px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    font-weight: bold !important;
    transition: background-color 0.3s !important;
}

.call-to-order:hover {
    background-color: #6B3400 !important;
}