:root {
    --primary-color: #1a5e1a;
    --secondary-color: #f8f1e5;
    --accent-color: #d4af37;
    --text-color: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links i {
    margin-right: 5px;
}

.order-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background-color: #e8c252;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
        url('https://images.unsplash.com/photo-1582213782179-e0d53f98f2ca?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background-color: #e8c252;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Products Section */
.products-section {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-info {
    padding: 1rem;
}

.product-code {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-material {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.add-to-cart, .view-details {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
}

.add-to-cart {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.add-to-cart:hover {
    background-color: #e8c252;
}

.view-details {
    background-color: var(--primary-color);
    color: var(--white);
}

.view-details:hover {
    background-color: #0d3b0d;
} 


/* Order Modal */
.modal {
    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;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
    color: #777;
}

.order-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.order-details {
    flex: 1;
    margin-left: 1rem;
    font-size: 0.9rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
}

.checkout-btn {
    background-color: var(--primary-color);
    color: white;
    margin-top: 1rem;
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

/* Product Details Content */
.product-details-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto;
}

.product-details-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details-info {
    width: 100%;
}

.product-details-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.product-details-info p {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.order-now-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.order-now-btn:hover {
    background-color: #e8c252;
}

/* Order Form Modal */
.order-form-modal {
    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;
}

.order-form-content {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

.order-form-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.order-form-content form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.order-form-content label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
}

.order-form-content input, .order-form-content select, .order-form-content textarea {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
}

.order-form-content select {
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23333" d="M6 9L2 5h8z"/></svg>') no-repeat right 0.5rem center/12px 12px;
    background-color: var(--white);
}

.order-form-content textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-order-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-order-btn:hover {
    background-color: #0d3b0d;
}

/* Success Message 
.success-message {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    z-index: 1100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
} */
.success-message {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the element */
    background-color: var(--primary-color, #28a745); /* Green fallback */
    color: var(--white, #ffffff); /* White fallback */
    padding: 1rem 2rem;
    border-radius: 8px;
    z-index: 1100;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    text-align: center;
    opacity: 0; /* Start hidden for animation */
    animation: fadeInOut 3s ease-in-out forwards; /* 3-second fade-in/out */
}

/* Animation for smooth appearance and disappearance */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}
/* Footer Styles */
footer {
    background-color: #0d3b0d;
    color: #f8f1e5;
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.footer-about h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #d4af37;
    display: flex;
    align-items: center;
}

.footer-about p {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #f8f1e5;
    font-size: 1.1rem;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.footer-links ul {
    list-style: none;
    line-height: 2;
}

.footer-links a {
    color: #f8f1e5;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-links i {
    margin-right: 8px;
    color: #d4af37;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 0.8rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: var(--primary-color);
        padding: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero {
        height: 60vh;
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        max-width: 90%;
    }
    
    .cta-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .products-section {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-img {
        height: 180px;
    }
    
    .product-info {
        padding: 0.8rem;
    }
    
    .product-title, .product-price {
        font-size: 0.9rem;
    }
    
    .product-code, .product-material {
        font-size: 0.7rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .order-item img {
        width: 50px;
        height: 50px;
    }
    
    .order-details {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .order-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .product-details-content {
        padding: 1rem;
    }
    
    .product-details-info h2 {
        font-size: 1.3rem;
    }
    
    .product-details-info p {
        font-size: 0.8rem;
    }
    
    .order-form-content {
        width: 95%;
        padding: 1rem;
    }
    
    .order-form-content h2 {
        font-size: 1.3rem;
    }
    
    .order-form-content input, .order-form-content select, .order-form-content textarea {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about h3, .footer-links h3 {
        font-size: 1.2rem;
    }
    
    .footer-links ul {
        text-align: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .product-img {
        height: 160px;
    }
    
    .add-to-cart, .view-details {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}