﻿body {
    font-family: 'Vazirmatn', sans-serif;
}
/* Revolution Slider Styles */
.rev-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.rev-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

    .rev-slide.active {
        opacity: 1;
    }

.rev-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.rev-parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.rev-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.rev-text {
    max-width: 600px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.rev-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.rev-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
}

.rev-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .rev-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

.rev-dog .rev-btn {
    background-color: #FF7F50;
    color: white;
}

.rev-cat .rev-btn {
    background-color: #8FBC8F;
    color: white;
}

.rev-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 3;
}

.rev-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .rev-dot.active {
        background-color: white;
    }

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s;
}

    .slider-arrow:hover {
        background-color: rgba(255,255,255,0.9);
    }

    .slider-arrow.prev {
        right: 20px;
    }

    .slider-arrow.next {
        left: 20px;
    }

/* Search Box Styles */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
    z-index: 20;
}

    .search-dropdown.active {
        max-height: 60px;
    }

.search-form {
    display: flex;
    align-items: center;
    padding: 10px;
}

.search-input {
    border: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 0 20px 20px 0;
    padding: 8px 15px;
    outline: none;
    width: 250px;
}

.search-button {
    background-color: #8FBC8F;
    color: white;
    border: none;
    border-radius: 20px 0 0 20px;
    padding: 8px 15px;
    cursor: pointer;
}

/* Category Icon Hover Effect */
.category-icon {
    transition: background-color 0.3s, transform 0.3s;
}

    .category-icon:hover {
        background-color: #8FBC8F !important;
        transform: scale(1.05);
    }

/* Cart Animation */
@keyframes cart-bounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.cart-icon-bounce {
    animation: cart-bounce 0.5s ease;
}

/* Profile Dropdown Animation */
.profile-dropdown {
    transform-origin: top right;
    transform: scale(0.95); /* حفظ انیمیشن کوچک شدن */
    opacity: 0; /* نامرئی کردن */
    /* ✅ تغییرات اصلی: این سه خط را اضافه کنید */
    visibility: hidden; /* غیرفعال کردن تعاملات موس و حذف از دسترس‌پذیری */
    pointer-events: none; /* اطمینان از عدم پاسخگویی به رویدادهای موس */
    /* اگر میخواهید در حالت پنهان فضا هم اشغال نکند، از display: none استفاده کنید و transition را بردارید */
    /* یا position: absolute را در حالت نمایش و hidden را در حالت عادی برای مدیریت فضا استفاده کنید */
    /* انیمیشن برای هر سه پراپرتی */
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

    .profile-dropdown.active {
        transform: scale(1);
        opacity: 1;
        /* ✅ فعال کردن تعاملات موس و نمایش */
        visibility: visible;
        pointer-events: auto;
    }

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 800px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

    .mega-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.mega-menu-content {
    display: flex;
    height: 400px;
}

.mega-menu-categories {
    width: 30%;
    background-color: #f8f9fa;
    border-radius: 0 8px 8px 0;
    padding: 20px 0;
}

.mega-menu-items {
    width: 70%;
    padding: 20px;
    overflow-y: auto;
}

.mega-category {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

    .mega-category:hover, .mega-category.active {
        background-color: #8FBC8F;
        color: white;
    }

    .mega-category i {
        margin-left: 10px;
    }

.mega-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mega-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

    .mega-item:hover {
        background-color: #f8f9fa;
    }

    .mega-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        margin-left: 15px;
    }

.mega-item-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.mega-item-content p {
    font-size: 14px;
    color: #6b7280;
}

.mega-view-more {
    margin-top: 20px;
    text-align: center;
}

    .mega-view-more a {
        display: inline-block;
        padding: 10px 20px;
        background-color: #8FBC8F;
        color: white;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s;
    }

        .mega-view-more a:hover {
            background-color: #7da87d;
        }

/* Theme Toggle Styles */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .theme-toggle.active {
        background-color: #8FBC8F;
    }

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle.active .theme-toggle-slider {
    transform: translateX(-30px);
}

.theme-toggle-slider i {
    font-size: 14px;
    color: #333;
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

    .dark-mode .bg-white {
        background-color: #2d2d2d !important;
    }

    .dark-mode .bg-light-gray {
        background-color: #2d2d2d !important;
    }

    .dark-mode .text-dark-gray {
        color: #e0e0e0 !important;
    }

    .dark-mode .text-gray-300 {
        color: #b0b0b0 !important;
    }

    .dark-mode .text-gray-400 {
        color: #a0a0a0 !important;
    }

    .dark-mode .border-gray-300 {
        border-color: #444 !important;
    }

    .dark-mode .border-t {
        border-color: #444 !important;
    }

    .dark-mode .shadow-md {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
    }

    .dark-mode .shadow-lg {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3) !important;
    }

    .dark-mode .mega-menu-categories {
        background-color: #2d2d2d !important;
    }

    .dark-mode .mega-item:hover {
        background-color: #3a3a3a !important;
    }

    .dark-mode .search-input {
        background-color: #3a3a3a;
        color: #e0e0e0;
        border-color: #444;
    }

    .dark-mode .search-dropdown {
        background-color: #2d2d2d;
    }

    .dark-mode .profile-dropdown {
        background-color: #2d2d2d;
    }

    .dark-mode .bg-warm-coral {
        background-color: #e85d3d !important;
    }

    /* Dark Mode Text Styles */
    .dark-mode .rev-text {
        color: #e0e0e0;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }

    .dark-mode .rev-title {
        color: #e0e0e0;
    }

    .dark-mode .rev-subtitle {
        color: #e0e0e0;
    }

    .dark-mode .rev-text h2,
    .dark-mode .rev-text p {
        color: #e0e0e0;
    }

    .dark-mode .section-title {
        color: #e0e0e0;
    }

    .dark-mode .category-card h3 {
        color: #e0e0e0;
    }

    .dark-mode .product-card h3 {
        color: #e0e0e0;
    }

    .dark-mode .product-card .product-price {
        color: #e0e0e0;
    }

    .dark-mode .offer-content h2 {
        color: #e0e0e0;
    }

    .dark-mode .offer-content p {
        color: #e0e0e0;
    }

    .dark-mode .offer-content .original-price {
        color: #b0b0b0;
    }

    .dark-mode .offer-content .discount-price {
        color: #e0e0e0;
    }

    .dark-mode .footer-column h3 {
        color: #e0e0e0;
    }

    .dark-mode .footer-column p {
        color: #b0b0b0;
    }

    .dark-mode .footer-column ul li a {
        color: #b0b0b0;
    }

    .dark-mode .footer-column ul li i {
        color: #8FBC8F;
    }

    .dark-mode .footer-bottom p {
        color: #a0a0a0;
    }

    /* Dark Mode Hover Styles */
    .dark-mode .text-sage-green:hover,
    .dark-mode .text-sage-green {
        color: #8FBC8F !important;
    }

    .dark-mode .text-warm-coral:hover,
    .dark-mode .text-warm-coral {
        color: #FF7F50 !important;
    }

    .dark-mode .category-icon:hover {
        background-color: #8FBC8F !important;
    }

    .dark-mode .add-to-cart:hover {
        background-color: #8FBC8F !important;
        color: white !important;
    }

    .dark-mode .rev-btn:hover {
        box-shadow: 0 5px 15px rgba(0,0,0,0.5) !important;
    }

    .dark-mode .mega-view-more a:hover {
        background-color: #7da87d !important;
    }

    .dark-mode .social-icons a:hover {
        background-color: #8FBC8F !important;
    }



    /*dfgdfd*/
.tab-content {
    display: none
}

    .tab-content.active {
        display: block;
        animation: fade .35s ease;
    }

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.tab-btn {
    padding-bottom: .75rem;
    border-bottom: 3px solid transparent;
    transition: .25s;
}

    .tab-btn.active {
        color: #8FBC8F;
        border-color: #8FBC8F;
        font-weight: 700;
    }

.thumb {
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: .25s;
    object-fit: cover
}

    .thumb:hover {
        transform: scale(1.08)
    }

.active-thumb {
    outline: 3px solid #8FBC8F
}
.bg-sage/5 {
    background-color: rgb(143 188 143 / 0.05);
}

@keyframes flash {
    0% {
        background-color: transparent;
    }

    25% {
        background-color: #eaf3e5;
    }
    /* یک رنگ سبز بسیار روشن */
    100% {
        background-color: transparent;
    }
}

.animate-flash {
    animation: flash 0.6s ease-out;
}