/*
Theme Name: VTM Theme
Theme URI: https://vazinteb.com
Author: FIXES
Description: A custom theme based on the provided HTML.
Version: 1.0
*/


/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e0d6 25%, #e0d8c8 50%, #d8d0c0 75%, #f0e8e0 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-attachment: fixed;
    padding: 20px;
}


/* Parallax background layers */

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e0d6 25%, #e0d8c8 50%, #d8d0c0 75%, #f0e8e0 100%);
    opacity: 0.6;
}

.parallax-layer-1 {
    z-index: 1;
    background: radial-gradient(circle at 30% 30%, rgba(210, 200, 180, 0.4) 0%, rgba(210, 200, 180, 0) 50%);
}

.parallax-layer-2 {
    z-index: 2;
    background: radial-gradient(circle at 70% 70%, rgba(200, 190, 170, 0.4) 0%, rgba(200, 190, 170, 0) 50%);
}

.parallax-layer-3 {
    z-index: 3;
    background: radial-gradient(circle at 20% 80%, rgba(220, 210, 190, 0.4) 0%, rgba(220, 210, 190, 0) 50%);
}

.parallax-layer-4 {
    z-index: 4;
    background: radial-gradient(circle at 80% 20%, rgba(190, 180, 160, 0.4) 0%, rgba(190, 180, 160, 0) 50%);
}


/* Floating elements */

.floating-element {
    position: absolute;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

.leaf-1 {
    top: 10%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 C60,20 80,30 70,50 C80,70 60,90 50,90 C40,90 20,70 30,50 C20,30 40,20 50,10 Z" fill="%23A0A080" opacity="0.3"/></svg>') no-repeat center/contain;
    animation: float 8s ease-in-out infinite;
}

.leaf-2 {
    top: 70%;
    right: 20%;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 C60,20 80,30 70,50 C80,70 60,90 50,90 C40,90 20,70 30,50 C20,30 40,20 50,10 Z" fill="%23B0B090" opacity="0.2"/></svg>') no-repeat center/contain;
    animation: float 10s ease-in-out infinite 1s;
}

.leaf-3 {
    bottom: 15%;
    left: 25%;
    width: 50px;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,10 C60,20 80,30 70,50 C80,70 60,90 50,90 C40,90 20,70 30,50 C20,30 40,20 50,10 Z" fill="%23909070" opacity="0.25"/></svg>') no-repeat center/contain;
    animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}


/* Content container */

.content-container {
    position: relative;
    z-index: 10;
}


/* Categories Section - Updated */

.categories-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    margin: 2rem 1rem;
    transition: all 0.3s ease;
}

.categories-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    justify-content: center;
    /* عنوان در وسط */
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #8A9A5B;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    /* خط زیر عنوان در وسط */
    width: 80px;
    height: 3px;
    background-color: #8A9A5B;
    border-radius: 3px;
}

.section-title:hover {
    transform: scale(1.05);
}

.categories-container {
    position: relative;
    /* overflow: hidden; */
    /* حذف شد تا دکمه‌ها در حالت دسکتاپ نمایش داده شوند */
}


/* حالت دسکتاپ - آیتم‌ها در وسط */

.categories-wrapper {
    display: flex;
    justify-content: center;
    /* آیتم‌ها در وسط کانتینر اصلی */
    flex-wrap: wrap;
    /* رفتن به خط بعدی اگر فضا کافی نباشد */
    gap: 16px;
    padding: 8px 4px;
    /* overflow-x: hidden; */
    /* اسکرول افقی غیرفعال */
}


/* حالت موبایل - آیتم‌ها اسکرول‌پذیر */

@media (max-width: 768px) {
    .categories-wrapper {
        display: flex;
        justify-content: flex-start;
        /* در موبایل به چپ تراز می‌شود */
        flex-wrap: nowrap;
        /* در یک خط باقی می‌ماند */
        overflow-x: auto;
        /* اسکرول افقی فعال */
        scroll-behavior: smooth;
        scrollbar-width: none;
        /* مخفی کردن اسکرول‌بار فایرفاکس */
    }
    .categories-wrapper::-webkit-scrollbar {
        display: none;
        /* مخفی کردن اسکرول‌بار کروم/سفاری */
    }
}

.category-item {
    flex: 0 1 auto;
    /* اندازه خودکار، اما اجازه کوچک شدن می‌دهد */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 154, 91, 0.1);
    /* برای حالت دسکتاپ که wrap می‌شود */
    margin: 0;
    /* حاشیه خارجی صفر */
}

.category-item:hover {
    transform: translateY(-15px) scale(1.03) rotateX(10deg);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    border-color: rgba(138, 154, 91, 0.3);
}


/* حذف استایل قبلی .category-icon و جایگزینی با استایل شما */

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* حذف رنگ پس‌زمینه گرادیانتی */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: transparent;
    /* پس‌زمینه شفاف */
    /* border-radius: 50%; */
    /* حذف این خط برای حذف دایره کامل */
    margin-bottom: 12px;
    /* تغییر: رنگ ایکون به سبز */
    color: #8A9A5B;
    /* رنگ سبز VTM */
    font-size: 20px;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

.category-name {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.category-item:hover .category-name {
    color: #7A8A4B;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: none;
    /* در حالت دسکتاپ پیش‌فرض مخفی */
}

@media (max-width: 768px) {
    .nav-button {
        display: flex;
        /* در حالت موبایل نمایش */
    }
}

.nav-button:hover {
    background: #f8f9fa;
    transform: translateY(-50%) scale(1.05);
}

.nav-button.prev {
    right: 16px;
}

.nav-button.next {
    left: 16px;
}

.nav-button i {
    color: #666;
    font-size: 18px;
}


/* Mobile Menu Button */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #8A9A5B;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: rgba(138, 154, 91, 0.1);
}


/* Header Styles */

header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(138, 154, 91, 0.1);
    margin-bottom: 20px;
}

header:hover {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #8A9A5B;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.logo img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(2deg);
}


/* Main Navigation - Updated for WordPress Menu */

.nav-links {
    display: flex;
    gap: 2rem;
}


/* استایل برای ul اصلی */

.menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}


/* استایل برای li */

.nav-link-item {
    /* اگر نیاز به استایل خاصی برای li باشه */
}


/* استایل برای لینک‌ها - هم برای a دستی و هم برای a وردپرسی */

.nav-links a,
.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    z-index: 1;
    display: block;
    /* اضافه شد */
}

.nav-links a:hover,
.nav-link:hover {
    color: #8A9A5B;
    transform: translateY(-2px);
}

.nav-links a::after,
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8A9A5B;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-link:hover::after {
    width: 100%;
}


/* Header Icons */

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-icons .icon-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icons i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 1;
    color: #333;
    /* رنگ پیش‌فرض سیاه */
}

.header-icons i:hover {
    background-color: rgba(138, 154, 91, 0.1);
    color: #8A9A5B;
    transform: translateY(-3px) scale(1.1);
}


/* Mobile Menu Button */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #8A9A5B;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 101;
    /* بالاتر از منو */
}

.mobile-menu-btn:hover {
    background-color: rgba(138, 154, 91, 0.1);
}


/* Mobile Menu */

.mobile-menu {
    display: none;
    /* این خط بسیار مهم است */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    display: block;
    /* نمایش منو */
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -300px;
    /* شروع از خارج از صفحه */
    width: 280px;
    height: 100%;
    background: white;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    left: 0;
    /* وقتی active شد، بیاید داخل صفحه */
}

.close-menu {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #8A9A5B;
    z-index: 101;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}


/* استایل منوی وردپرسی موبایل */

.mobile-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links li {
    margin: 0;
    padding: 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
}

.mobile-nav-links a:hover {
    background-color: rgba(138, 154, 91, 0.1);
    color: #8A9A5B;
}


/* نمایش دکمه موبایل در صفحات کوچک */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
}


/* Hero Section */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(138, 154, 91, 0.1), rgba(138, 154, 91, 0.05));
    z-index: 1;
    border-radius: 0;
}

.hero:hover {
    transform: none;
    box-shadow: none;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.hero-content-container {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.hero-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(138, 154, 91, 0.2);
    transition: all 0.3s ease;
}

.hero-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #8A9A5B;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #8A9A5B;
    border-radius: 3px;
    opacity: 1;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #555;
    transition: all 0.3s ease;
    line-height: 1.8;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #8A9A5B, #A0A080);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 154, 91, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(138, 154, 91, 0.4);
    background: linear-gradient(135deg, #7A8A4B, #8A9A5B);
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-load-more {
    display: block;
    margin: 2rem auto;
    background: linear-gradient(135deg, #A0A080, #8A9A5B);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 154, 91, 0.3);
    text-align: center;
    max-width: 200px;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(138, 154, 91, 0.4);
}


/* Featured Products */

.section {
    padding: 3rem 1rem;
    margin: 2rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    border: 1px solid rgba(138, 154, 91, 0.1);
}

.featured-image:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(138, 154, 91, 0.3);
}

.featured-text {
    text-align: center;
    padding: 2rem;
    background: rgba(200, 190, 170, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.featured-text:hover {
    background: rgba(200, 190, 170, 0.5);
    transform: scale(1.01) rotateX(5deg);
    transform: translateZ(20px);
}

.featured-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8A9A5B;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.featured-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #8A9A5B;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-text:hover h2 {
    color: #7A8A4B;
}

.featured-text:hover h2::after {
    opacity: 1;
}

.featured-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(138, 154, 91, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(10deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(138, 154, 91, 0.3);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1) rotate(2deg);
}

.product-content {
    padding: 1.5rem;
    position: relative;
    transform: translateZ(20px);
}

.product-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8A9A5B, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-content::before {
    opacity: 1;
}

.product-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #8A9A5B;
    transition: color 0.3s ease;
}

.product-card:hover .product-content h3 {
    color: #7A8A4B;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8A9A5B;
    margin-bottom: 0.5rem;
}

.product-original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 1rem;
}

.product-discount {
    font-size: 0.9rem;
    color: #8A9A5B;
    font-weight: 600;
}

footer {
    padding: 3rem 1rem;
    margin: 2rem 1rem;
    border-radius: 20px;
    background: rgba(138, 154, 91, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

footer:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #D4E157;
}

.footer-col h3:hover {
    transform: translateX(5px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 15px;
}

.footer-col ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #D4E157;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-col ul li:hover::before {
    opacity: 1;
    transform: translateX(3px);
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links i {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links i:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    font-size: 0.9rem;
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1px;
    background-color: #D4E157;
}


/* Responsive Design */

@media (max-width: 1200px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    .logo img {
        height: 70px;
    }
    .nav-links {
        gap: 1.5rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .hero-content {
        padding: 2.5rem;
        max-width: 700px;
    }
    .section-title {
        font-size: 22px;
    }
    .section {
        padding: 2.5rem 1rem;
        margin: 1.5rem 1rem;
    }
    .categories-section {
        padding: 22px;
        margin: 1.5rem 1rem;
    }
    .category-item {
        width: 95px;
        padding: 18px 14px;
    }
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    .category-name {
        font-size: 13px;
    }
    .nav-button {
        width: 38px;
        height: 38px;
    }
    .nav-button.prev {
        right: 14px;
    }
    .nav-button.next {
        left: 14px;
    }
    .featured-image {
        height: 350px;
    }
    .featured-text h2 {
        font-size: 1.8rem;
    }
    .featured-text p {
        font-size: 1rem;
    }
    .product-img {
        height: 230px;
    }
    .product-content {
        padding: 1.3rem;
    }
    .product-content h3 {
        font-size: 1.1rem;
    }
    .product-price {
        font-size: 1rem;
    }
    .product-original-price {
        font-size: 0.85rem;
    }
    .product-discount {
        font-size: 0.85rem;
    }
    .footer-container {
        gap: 1.5rem;
    }
    .footer-col h3 {
        font-size: 1.2rem;
    }
    .btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .header-container {
        padding: 1rem 1.2rem;
    }
    .logo img {
        height: 65px;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-content {
        padding: 2rem;
        max-width: 600px;
    }
    .section-title {
        font-size: 21px;
    }
    .section {
        padding: 2rem 1rem;
        margin: 1.2rem 1rem;
    }
    .categories-section {
        padding: 20px;
        margin: 1.2rem 1rem;
    }
    .category-item {
        width: 90px;
        padding: 16px 12px;
    }
    .category-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
    .category-name {
        font-size: 12px;
    }
    .nav-button {
        width: 36px;
        height: 36px;
    }
    .nav-button.prev {
        right: 12px;
    }
    .nav-button.next {
        left: 12px;
    }
    .featured-image {
        height: 300px;
    }
    .featured-text h2 {
        font-size: 1.6rem;
    }
    .featured-text p {
        font-size: 0.95rem;
    }
    .product-img {
        height: 200px;
    }
    .product-content {
        padding: 1rem;
    }
    .product-content h3 {
        font-size: 1rem;
    }
    .product-price {
        font-size: 0.95rem;
    }
    .product-original-price {
        font-size: 0.8rem;
    }
    .product-discount {
        font-size: 0.8rem;
    }
    .footer-container {
        gap: 1.2rem;
    }
    .footer-col h3 {
        font-size: 1.1rem;
    }
    .btn {
        padding: 0.6rem 1.6rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    .header-container {
        flex-direction: row;
        padding: 1rem;
        justify-content: space-between;
    }
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .hero-content {
        padding: 2rem 1.5rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .section {
        margin: 1rem;
        padding: 2rem 0.5rem;
    }
    .categories-section {
        padding: 20px 16px;
        margin: 1rem;
    }
    .section-title {
        font-size: 20px;
    }
    .category-item {
        width: 90px;
        padding: 16px 12px;
        flex: 0 0 auto;
        /* در موبایل اندازه ثابت */
    }
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .category-name {
        font-size: 12px;
    }
    .nav-button {
        width: 36px;
        height: 36px;
    }
    .nav-button.prev {
        right: 8px;
    }
    .nav-button.next {
        left: 8px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .product-img {
        height: 180px;
    }
    .product-content {
        padding: 1rem;
    }
    .product-content h3 {
        font-size: 1rem;
    }
    .product-price {
        font-size: 0.9rem;
    }
    .product-original-price {
        font-size: 0.8rem;
    }
    .product-discount {
        font-size: 0.8rem;
    }
    .featured-text h2 {
        font-size: 1.5rem;
    }
    .featured-text p {
        font-size: 0.9rem;
    }
    .featured-image {
        height: 250px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-col h3 {
        font-size: 1.1rem;
    }
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0.8rem 1rem;
    }
    .logo img {
        height: 55px;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .hero-content {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .categories-section {
        padding: 18px 14px;
        margin: 0.8rem;
    }
    .section-title {
        font-size: 18px;
    }
    .category-item {
        width: 85px;
        padding: 14px 10px;
    }
    .category-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .category-name {
        font-size: 11px;
    }
    .nav-button {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .nav-button.prev {
        right: 6px;
    }
    .nav-button.next {
        left: 6px;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .product-img {
        height: 220px;
    }
    .product-content {
        padding: 0.8rem;
    }
    .product-content h3 {
        font-size: 0.95rem;
    }
    .product-price {
        font-size: 0.85rem;
    }
    .product-original-price {
        font-size: 0.75rem;
    }
    .product-discount {
        font-size: 0.75rem;
    }
    .featured-text h2 {
        font-size: 1.3rem;
    }
    .featured-text p {
        font-size: 0.85rem;
    }
    .featured-image {
        height: 200px;
    }
    .footer-col h3 {
        font-size: 1rem;
    }
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    .btn-load-more {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 1rem;
    }
    .logo img {
        height: 50px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.8rem;
    }
    .hero-content {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .category-item {
        width: 80px;
        padding: 12px 8px;
    }
    .category-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .category-name {
        font-size: 11px;
    }
    .nav-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .nav-button.prev {
        right: 4px;
    }
    .nav-button.next {
        left: 4px;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .featured-text {
        padding: 1rem;
    }
    .featured-text h2 {
        font-size: 1.3rem;
    }
    .featured-text p {
        font-size: 0.8rem;
    }
    .footer-col h3 {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .header-container {
        padding: 0.4rem 0.8rem;
    }
    .logo img {
        height: 45px;
    }
    .hero h1 {
        font-size: 1.3rem;
    }
    .hero p {
        font-size: 0.75rem;
    }
    .hero-content {
        padding: 1.2rem 0.8rem;
        margin: 0 0.8rem;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .categories-section {
        padding: 16px 12px;
        margin: 0.6rem;
    }
    .category-item {
        width: 75px;
        padding: 10px 6px;
    }
    .category-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .category-name {
        font-size: 10px;
    }
    .nav-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .nav-button.prev {
        right: 3px;
    }
    .nav-button.next {
        left: 3px;
    }
    .product-img {
        height: 180px;
    }
    .product-content {
        padding: 0.7rem;
    }
    .product-content h3 {
        font-size: 0.9rem;
    }
    .product-price {
        font-size: 0.8rem;
    }
    .product-original-price {
        font-size: 0.7rem;
    }
    .product-discount {
        font-size: 0.7rem;
    }
    .featured-text h2 {
        font-size: 1.1rem;
    }
    .featured-text p {
        font-size: 0.75rem;
    }
    .featured-image {
        height: 180px;
    }
    .footer-col h3 {
        font-size: 0.9rem;
    }
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    .btn-load-more {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
}


/* Animation */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}


/* Search Styles */
/* =======================
   Search Styles - Desktop
======================= */
.search-container {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

.search-icon {
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.search-icon:hover {
    background-color: rgba(138, 154, 91, 0.1);
    color: #8A9A5B;
    transform: translateY(-3px) scale(1.1);
}

.search-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 300px;
    z-index: 1002; /* بالاتر از منوی موبایل */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 154, 91, 0.2);
}

.search-container:hover .search-popup,
.search-popup:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-form {
    display: flex;
    gap: 5px;
    align-items: stretch;
}

.search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    direction: rtl;
    min-width: 0;
    line-height: 1.4;
}

.search-field::placeholder {
    color: #999;
    opacity: 1;
}

.search-field:focus {
    outline: none;
    border-color: #8A9A5B;
    box-shadow: 0 0 0 2px rgba(138, 154, 91, 0.2);
}

.search-submit {
    background: #8A9A5B;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 44px;
    height: auto;
}

.search-submit:hover {
    background: #7A8A4B;
}

/* =======================
   Mobile / Tablet Full Width
======================= */

/* Large Mobile / Small Tablet */
/* Mobile / Tablet Full Width - اصلاح overflow */
/* Mobile / Tablet Full Width */
@media (max-width: 1024px) {
    .search-popup {
        position: fixed; /* از کل صفحه استفاده می‌کند */
        top: 70px;       /* فاصله از هدر */
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        padding: 15px;
        border-radius: 0;
        box-sizing: border-box;
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    .search-form {
        flex-direction: column;
        gap: 12px;
    }

    .search-field {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        line-height: 1.4;
        box-sizing: border-box;
    }

    .search-submit {
        width: 100%;
        height: 48px;
        font-size: 1rem;
        padding: 0;
        box-sizing: border-box;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .search-popup {
        padding: 10px 12px;
    }

    .search-field {
        font-size: 0.95rem;
        padding: 10px;
    }

    .search-submit {
        font-size: 0.95rem;
        height: 42px;
    }
}

/* Medium Mobile / Tablet */
@media (max-width: 768px) {
    .search-popup {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        padding: 12px 15px;
        border-radius: 0;
        box-sizing: border-box;
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        z-index: 9999;
    }

    .search-form {
        flex-direction: column;
        gap: 12px;
    }

    .search-field {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        line-height: 1.4;
        box-sizing: border-box;
    }

    .search-submit {
        width: 100%;
        height: 48px;
        font-size: 1rem;
        padding: 0;
        box-sizing: border-box;
    }
}




/*end icon search*/

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    right: 0;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    position: relative;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.close-popup:hover {
    color: #333;
}


.popup-body {
    padding: 25px 30px;
}

.form-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: black; 
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #7fad33;
}

.form-container {
    display: none;
}

.form-container.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

input {
    width: 100%;
    padding: 14px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #7fad33;
    box-shadow: 0 0 0 3px rgba(127, 173, 51, 0.2);
}

.submit-btn {
    background: #7fad33;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #6da12a;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #7fad33;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
}

.register-link a {
    color: #7fad33;
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}


/* WooCommerce My Account Link */

.woocommerce-account-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.woocommerce-account-link:hover {
    background: #7fad33;
    color: white;
}

.woocommerce-account-link i {
    margin-right: 8px;
}

#11{
    color:black;
}
        .campaign-a {
            text-decoration: none;
        }
       .campaign-bar {
            background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
            color: white;
            text-align: center;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 1000;
        }
        
        .campaign-bar {
            margin: 0;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        
        @media (max-width: 768px) {
            .campaign-bar {
                font-size: 12px;
                padding: 6px 12px;
            }
        }
        
        @media (max-width: 480px) {
            .campaign-bar {
                font-size: 11px;
                padding: 5px 10px;
            }
        }
        
.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* فاصله بین دسته‌ها */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none; /* حذف خط زیر لینک */
    color: inherit; /* استفاده از رنگ متن والد */
    padding: 10px;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 16px;
    text-align: center;
}

.category-thumb img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%; /* گرد شدن تصویر */
    margin-bottom: 10px;
}

/*برای کارت های نمایش محصول صفحه لندینگ*/
#featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.featured-text {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: 0.3s ease;
}

.featured-text:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.featured-text img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}
/*---------------*/
.categories-container {
    position: relative;
    overflow-x: auto; /* فعال کردن اسکرول افقی */
    -webkit-overflow-scrolling: touch; /* اسکرول روان در موبایل */
}

.categories-wrapper {
    display: flex;
    flex-wrap: nowrap; /* جلوگیری از پیچیدن آیتم‌ها */
    gap: 15px; /* فاصله بین آیتم‌ها */
}

.category-item {
    flex: 0 0 auto; /* آیتم‌ها اندازه ثابت دارند و خم نمی‌شوند */
    width: 120px; /* یا هر اندازه دلخواه */
    text-align: center;
}

/* دکمه‌ها */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.nav-button.prev {
    right: 0;
}

.nav-button.next {
    left: 0;
}
