/* Base Styles */
:root {
    --primary-color: #e67e22;
    --secondary-color: #f39c12;
    --accent-color: #d35400;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --error-color: #e74c3c;
    
    /* African Theme Colors */
    --pattern-primary: #5C3D2E;
    --pattern-secondary: #B85C38;
    --pattern-accent: #E0A96D;
    --pattern-light: #F2EBE9;
    --mud-cloth-dark: #4A3933;
    --mud-cloth-medium: #8B5A2B;
    --mud-cloth-light: #D7B377;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* African-inspired colors */
    --pattern-primary: #E57C23;
    --pattern-secondary: #8B4513;
    --pattern-accent: #F8B400;
    --pattern-dark: #5C3D2E;
    --pattern-light: #F9F5EB;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cart-icon i {
    font-size: 18px;
    margin-right: 8px;
}

.cart-text {
    font-size: 16px;
    letter-spacing: 0.5px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--dark-color);
    color: white;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/jollof-chicken.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 180px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Featured Section */
.featured {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.featured-dishes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.dish-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.dish-img {
    height: 200px;
    overflow: hidden;
}

.dish-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.dish-info {
    padding: 20px;
}

.cart-item-line-total {
    margin-top: 5px;
    font-size: 14px;
    color: #e67e22;
    font-weight: 600;
}

.dish-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Price and button container styling */
.price-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

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

.add-to-cart-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    font-size: 14px;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Menu Section */
.menu-section {
    padding: 80px 0;
}

.menu-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    background-color: transparent;
    border: none;
    padding: 8px 16px;
    margin: 0 10px 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.category-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.category-btn:hover::after,
.category-btn.active::after {
    width: 100%;
}

.category-btn.active {
    color: var(--primary-color);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.menu-item {
    display: flex;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.item-img {
    width: 100%;
    min-width: 120px;
    height: 120px;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    padding: 15px;
    flex-grow: 1;
}

.item-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.item-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.item-footer .price {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
    color: var(--primary-color);
}

.item-footer .add-to-cart-btn {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Order Process Section */
.order-process {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.process-step {
    padding: 30px 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    overflow: hidden;
    padding: 15px;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.process-step h3 {
    margin-bottom: 10px;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 15px;
}

.about-img {
    flex: 1;
}

/* About Section - New Styling */
.about {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: flex-start;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.about-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.about-text li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.contact-item i,
.contact-item .contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    padding: 8px;
    object-fit: contain;
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links ul li a {
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: var(--transition);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

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

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

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.empty-cart-message {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.cart-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    text-align: center;
}

.checkout-btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.shop-closed-message {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    margin: 10px 0;
    border-radius: var(--border-radius);
    border-left: 4px solid #ffeeba;
    font-weight: 500;
    text-align: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Checkout Styles */
.checkout-section {
    padding: 120px 0 80px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.order-summary {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-item-img {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-right: 15px;
}

.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex-grow: 1;
}

.order-item-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.order-total {
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.order-total p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    align-items: center;
}

.order-total p span.label {
    font-weight: 400;
    min-width: 100px;
    display: inline-block;
}

.order-total p span:not(.label) {
    font-weight: 500;
    text-align: right;
}

.order-total p.total {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

.checkout-form {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input {
    margin-right: 10px;
}

.momo-details {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    display: none;
}

.momo-details.active {
    display: block;
}

.place-order-btn {
    margin-top: 20px;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 32px;
    }
    
    .menu-item {
        flex-direction: column;
    }
    
    .item-img {
        width: 100%;
        height: 180px;
    }
    
    .cart-sidebar {
        width: 300px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
}
