:root {
    --primary: #0f2a1d;
    --primary-light: #1b4332;
    --accent: #d4a373;
    --bg-color: #f4f6f3;
    --card-bg: #ffffff;
    --text-main: #2b2b2b;
    --text-muted: #6c757d;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 163, 115, 0.12);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(212, 163, 115, 0.3);
    transition: var(--transition);
}

.header-phone:hover {
    background: var(--accent);
    color: #fff;
}

.cart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary-light);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(15, 42, 29, 0.9), rgba(27, 67, 50, 0.85)), url('https://images.unsplash.com/photo-1563245372-f21724e3856d?auto=format&fit=crop&w=1920&q=80') center/cover;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-subtitle {
    display: inline-block;
    background: rgba(212, 163, 115, 0.2);
    color: var(--accent);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid var(--accent);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    background: #b98b5c;
    transform: translateY(-3px);
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.4rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.shop-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.search-box i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border-radius: 30px;
    border: 1px solid #dce1dd;
    background: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 42, 29, 0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 1px solid #dce1dd;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.product-img-wrapper {
    height: 260px;
    overflow: hidden;
    background-color: #eee;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.product-price {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
}

.add-to-cart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary-light);
}

.no-result {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.no-result i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* About Section */
.about-section {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.about-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-card-badge {
    background: var(--bg-color);
    border: 2px dashed var(--accent);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    color: var(--primary);
}

.about-card-badge i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.about-card-badge span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col h3 {
    color: var(--accent);
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.footer-col p {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-info {
    text-align: left;
}

.copyright {
    margin-top: 8px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    left: 0;
}

.cart-header {
    padding: 20px;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.cart-items {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-details h4 {
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.cart-item-details span {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: bold;
}

.remove-item {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cart-footer {
    padding: 20px;
    background: #f9fbf9;
    border-top: 1px solid #eaeaea;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    text-align: center;
    border-radius: 12px;
}

/* Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-details h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.modal-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.modal-price {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 15px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1200;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    font-weight: 600;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 991px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transition: var(--transition);
        gap: 20px;
        border-bottom: 1px solid #eee;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .contact-info {
        text-align: right;
    }
    
    .header-phone span {
        display: none;
    }

    .header-phone {
        padding: 8px 10px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        left: -100%;
    }
}