/*
Theme Name: Iran Koole Theme
Theme URI: https://irankoole.com
Author: Arpina
Author URI: https://irankoole.com
Description: A high-performance tactical WooCommerce theme based on Tailwind CSS.
Version: 1.0.0
Text Domain: irankoole
*/
@font-face {
    font-family: 'Dana';
    src: url('assets/fonts/DanaVF.woff2') format('woff2 supports variations'),
         url('assets/fonts/DanaVF.woff2') format('woff2-variations'),
         url('assets/fonts/DanaVF.woff2') format('woff2');
    font-weight: 100 900; /* این خط کلید جادویی فونت وریبل است */
    font-style: normal;
    font-display: swap; /* برای سئو و پرفورمنس حیاتی است */
}

/* --- Header Styles --- */
header.glass-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dark Mode Glass Header */
.dark header.glass-header {
    background: rgba(15, 23, 42, 0.85); /* سرمه‌ای تیره شیشه‌ای */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mega Menu Transition */
.group:hover .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Glass Style (Light & Dark) */
.mega-menu-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.dark .mega-menu-panel {
    background: rgba(30, 41, 59, 0.95); /* سرمه‌ای شیشه‌ای */
    border-top-color: #FF6B00;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sidebar Widget Styles */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(150, 150, 150, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.widget ul li a {
    color: #64748b; /* text-slate-500 */
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.dark .widget ul li a {
    color: #cbd5e1; /* text-slate-300 */
}
.widget ul li a:hover {
    color: #FF6B00;
    padding-right: 5px;
}

/* Widget Search */
.widget_search input[type="search"] {
    width: 100%;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    color: inherit;
    outline: none;
}
.dark .widget_search input[type="search"] {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.widget_search button {
    display: none; /* معمولاً دکمه جستجو در ابزارک دیفالت زشت است، اینتر کافیست */
}

/* Shop Pagination */
.nav-links-container ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.nav-links-container ul li {
    list-style: none;
}
.nav-links-container .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.1);
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}
.dark .nav-links-container .page-numbers {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: #ccc;
}
.nav-links-container .page-numbers.current,
.nav-links-container .page-numbers:hover {
    background: #FF6B00;
    color: white;
    border-color: #FF6B00;
}

/* =========================================
   WooCommerce Notifications & Messages
   ========================================= */

/* 1. کانتینر اصلی پیام‌ها (موفقیت، خطا، اطلاعات) */
.woocommerce-message, 
.woocommerce-error, 
.woocommerce-info {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 1rem; /* گردی گوشه‌ها */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
    
    /* افکت شیشه‌ای و سایه */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    
    /* خط رنگی سمت راست برای تاکید (RTL) */
    border-right-width: 4px;
    border-right-style: solid;
    transition: all 0.3s ease;
}

/* حالت دارک مود */
.dark .woocommerce-message, 
.dark .woocommerce-error, 
.dark .woocommerce-info {
    background: rgba(30, 41, 59, 0.6); /* navy-light alpha */
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.05);
}

/* 2. استایل اختصاصی برای هر نوع پیام */

/* پیام موفقیت (مثل افزودن به سبد یا حذف) - سبز */
.woocommerce-message {
    border-right-color: #22c55e; /* Green-500 */
}
.woocommerce-message::before {
    content: "\f00c"; /* FontAwesome Check Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #22c55e;
    margin-left: 10px;
    font-size: 1.2em;
}

/* پیام خطا - قرمز */
.woocommerce-error {
    border-right-color: #ef4444; /* Red-500 */
    list-style: none !important; /* حذف بالت‌های لیست */
}
.woocommerce-error::before {
    content: "\f071"; /* FontAwesome Warning Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ef4444;
    margin-left: 10px;
    font-size: 1.2em;
}
.woocommerce-error li {
    width: 100%;
}

/* پیام اطلاعات - آبی/نارنجی برند */
.woocommerce-info {
    border-right-color: #FF6B00; /* Brand Orange */
}
.woocommerce-info::before {
    content: "\f05a"; /* FontAwesome Info Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #FF6B00;
    margin-left: 10px;
    font-size: 1.2em;
}

/* 3. دکمه‌ها و لینک‌های داخل پیام (مثل بازگشت، ورود و...) */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
    order: 2; /* انتقال دکمه به سمت چپ */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* استایل دکمه بازگشت (Undo) */
.woocommerce-message a.restore-item {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.woocommerce-message a.restore-item:hover {
    background-color: #16a34a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* استایل دکمه‌های عمومی دیگر داخل پیام‌ها */
.woocommerce-info a.button,
.woocommerce-error a.button {
    background-color: rgba(255, 107, 0, 0.1);
    color: #FF6B00;
    border: 1px solid rgba(255, 107, 0, 0.2);
}
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover {
    background-color: #FF6B00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

/* 4. اصلاح ریسپانسیو (موبایل) */
@media (max-width: 640px) {
    .woocommerce-message, 
    .woocommerce-error, 
    .woocommerce-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
    
    .woocommerce-message a,
    .woocommerce-error a,
    .woocommerce-info a {
        width: 100%; /* دکمه تمام عرض در موبایل */
        margin-top: 0.5rem;
    }
}
/* =========================================
   Cinematic Checkout & Form Styles
   ========================================= */

/* 1. کانتینر فیلدها */
.woocommerce-checkout .form-row {
    margin-bottom: 20px;
    position: relative;
}

/* 2. استایل لیبل‌ها */
.woocommerce-checkout label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569; /* slate-600 */
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s;
}
.dark .woocommerce-checkout label {
    color: #cbd5e1; /* slate-300 */
}

/* 3. استایل اینپوت‌ها و تکست‌اریا */
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0; /* slate-200 */
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: #1e293b; /* brand-navy */
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

/* حالت دارک مود فیلدها */
.dark .woocommerce-checkout input.input-text,
.dark .woocommerce-checkout textarea,
.dark .woocommerce-checkout select {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    box-shadow: none;
}

/* 4. حالت فوکوس (زمانی که کاربر تایپ می‌کند) */
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #FF6B00; /* Brand Orange */
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1); /* حلقه درخشان */
    transform: translateY(-1px);
}
.dark .woocommerce-checkout input.input-text:focus,
.dark .woocommerce-checkout textarea:focus,
.dark .woocommerce-checkout select:focus {
    background-color: rgba(255, 255, 255, 0.08);
}

/* 5. استایل Placeholder (متن راهنما داخل فیلد) */
.woocommerce-checkout ::placeholder {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* 6. دکمه پرداخت نهایی (Pay Button) */
#place_order {
    width: 100%;
    background: linear-gradient(135deg, #FF6B00 0%, #e05e00 100%);
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 18px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    margin-top: 25px;
    box-shadow: 0 10px 30px -10px rgba(255, 107, 0, 0.6);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#place_order:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px rgba(255, 107, 0, 0.8);
}

/* آیکون قفل کنار دکمه (با CSS اضافه می‌شود) */
#place_order::before {
    content: "\f023"; /* FontAwesome Lock */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
}

/* 7. چک‌باکس‌ها (قوانین و...) */
.woocommerce-form__input-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid #cbd5e1;
    accent-color: #FF6B00;
    margin-left: 8px;
    vertical-align: middle;
}

/* 8. پیام‌های خطا در فرم */
.woocommerce-invalid input {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}
.woocommerce-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-weight: bold;
}


/* اصلاح استایل شماره‌گذاری صفحات */
.nav-links-container ul.page-numbers {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none !important;
}

.nav-links-container ul.page-numbers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* اطمینان از اینکه دکمه‌ها شکل مربعی خود را حفظ می‌کنند */
.nav-links-container .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    text-decoration: none;
    line-height: 1;
}