/*
Theme Name: Daroozhi Theme
Theme URI: Daroozhi.com
Author: ViraPeak Team
Author URI: https://virapeak.ir
Description: A Custom Theme For Daroozhi Co.
Version: 1.0.1
Text Domain: daroozhi
Tags: e-commerce, woocommerce, tailwindcss
*/

/**
 * 1. تنظیمات عمومی و ریست‌ها
 */
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* جلوگیری از نمایش المان‌های آلپاین قبل از لود کامل */
[x-cloak] {
    display: none !important;
}

/**
 * 2. اسکرول‌بار مخفی (Hide Scrollbar)
 * استفاده شده در تب‌ها و اسلایدرها
 */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/**
 * 3. انیمیشن‌های شناور (Floating Animations)
 * انتقال یافته از تگ <style> در هدر
 */
@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-medium {

    0%,
    100% {
        transform: translateY(0px) translateX(0px);
    }

    50% {
        transform: translateY(-15px) translateX(5px);
    }
}

@keyframes float-fast {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float-slow {
    animation: float-slow 7s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 5s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 3s ease-in-out infinite;
}

/**
 * 4. مگا منو (Mega Menu)
 */
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease-out;
}

.group:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/**
 * 5. استایل‌های اسلایدر (Swiper JS Customization)
 */
.swiper-pagination-bullet-active {
    background-color: #405a6b !important;
    width: 24px !important;
    border-radius: 12px !important;
    transition: width 0.3s ease;
}

.swiper-slide-thumb-active {
    border-color: #405a6b !important;
    opacity: 1 !important;
    transform: scale(0.95);
}

.gallery-thumbs .swiper-slide {
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.gallery-thumbs .swiper-slide:hover {
    opacity: 0.8;
}

/**
 * 6. تایپوگرافی محتوا (Prose / Content)
 * برای بخش توضیحات طولانی محصول یا پست‌های وبلاگ
 */
.prose p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: #2c3e4a;
    font-weight: 800;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.prose h2 {
    font-size: 1.5rem;
}

.prose h3 {
    font-size: 1.25rem;
}

.prose ul {
    list-style-type: disc;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    border-radius: 1rem;
    margin: 1rem 0;
    max-width: 100%;
    height: auto;
}

/**
 * 7. کلاس‌های استاندارد وردپرس (WordPress Alignment Classes)
 * این کلاس‌ها توسط ادیتور وردپرس تولید می‌شوند و باید هندل شوند.
 */
.aligncenter {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.wp-caption {
    max-width: 100%;
    border: 1px solid #eee;
    background: #f9f9f9;
    padding: 5px;
    border-radius: 10px;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.8em;
    padding-top: 5px;
    color: #666;
}

/**
 * 8. اصلاحات جزئی ووکامرس (WooCommerce Tweaks)
 * برای هماهنگی بیشتر با طراحی اختصاصی شما
 */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #2c3e4a;
    /* Secondary Color */
}

/* مخفی کردن دکمه پیش‌فرض افزودن به سبد در جاهایی که دکمه اختصاصی داریم */
/* (اختیاری: اگر از دکمه‌های ایجکس خود ووکامرس استفاده نمی‌کنید) */
