/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf6 35%, rgba(var(--accent-rgb), 0.07) 100%);
}

/* Theme */
:root {
    --accent: #4caf50;
    --accent-hover: #66bb6a;
    --accent-rgb: 76, 175, 80;
}

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

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.12) 0%, #eaf5ea 55%, #ffffff 100%);
    padding: 120px 0 80px;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: var(--accent-hover);
}

/* Products Section */
.products {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 250px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* Delivery Section */
.delivery {
    padding: 80px 0;
    background: #f8f9fa;
}

.delivery-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.delivery-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.delivery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: rgba(var(--accent-rgb), 0.3);
}

.delivery-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.delivery-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.delivery-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}


.payment-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

/* Contacts Section */
.contacts {
    padding: 100px 0;
    background: #fff;
}

.contacts-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 720px;
    width: 100%;
}

.contact-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    background: #fff;
    padding: 1.25rem;
    border: 1px solid #eee;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.contact-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper {
    background: var(--accent);
    color: white;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: #2c3e50;
    font-weight: 600;
}

.contact-details p {
    color: #666;
    font-size: 1rem;
}

/* Social Links */
.social-links-container {
    margin-top: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.social-links-container h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

.social-icon.whatsapp:hover { background: #25D366; }
.social-icon.instagram:hover { background: #E1306C; }
.social-icon.telegram:hover { background: #0088cc; }

/* Contact links */
.contact-link {
    color: #666;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}
/* Contact Form */
.contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.contact-form h3 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.2);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto; /* Allow modal container to scroll if needed on small screens */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 900px; /* Increased width for side-by-side layout */
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.product-detail {
    overflow-y: auto;
    padding-right: 5px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .product-detail {
        flex-direction: row;
        align-items: flex-start;
    }
}

.product-detail-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .product-detail-image {
        width: 45%;
        margin-bottom: 0;
        height: auto; /* Allow height to adjust */
        min-height: 300px;
    }
}

.product-detail-info {
    flex: 1;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 400px; /* Increased max-height for side-by-side */
    object-fit: contain;
    border-radius: 10px;
}

.product-detail-image {
    font-size: 5rem; /* For emoji fallback */
}

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

.close:hover {
    color: #000;
}

.cart-total {
    text-align: right;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.checkout-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    width: 100%;
    transition: background 0.3s ease;
}

.checkout-btn:hover {
    background: #2ecc71;
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cart-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cart-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-title {
    font-weight: 600;
    color: #2c3e50;
}

.cart-price {
    color: #8b4513;
    font-weight: 500;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f9fafb;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    color: #2c3e50;
    cursor: pointer;
}

.qty {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
}

.item-total {
    min-width: 70px;
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

.remove-btn {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #e74c3c;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.remove-btn:hover {
    border-color: #e74c3c;
    background: #fff0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .delivery-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contacts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    /* Mobile Cart Optimization */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-left {
        width: 100%;
    }

    .cart-item-right {
        width: 100%;
        justify-content: space-between;
    }

    .item-total {
        text-align: center;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .products,
    .delivery,
    .contacts {
        padding: 60px 0;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
