/*
Theme Name: IranSeke 98
Author: Mehdi
Description: قالب اختصاصی فروشگاه سکه (نسخه ۱۳.۰ - فرم ورود تک‌کارتی هوشمند)
Version: 13.0
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.0/Vazirmatn-font-face.css');

body {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
    background-color: #fdfaf4 !important; 
    margin: 0;
    padding: 0;
    direction: rtl;
    padding-bottom: 60px;
}

a, .site-header a, .woocommerce ul.products li.product a {
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #1a2b4c !important;
}

/* =========================================
   هدر سایت (قفل شده روی 75 پیکسل)
   ========================================= */
.site-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 75px !important;
    max-height: 75px !important;
    padding: 0 20px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e0d5c1 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.site-header .header-right, 
.site-header .header-left {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    gap: 15px !important;
    flex: 1 !important; 
}

.site-header .header-left { justify-content: flex-end !important; }
.site-header .header-right { justify-content: flex-start !important; }

.site-header svg {
    color: #1a2b4c !important;
    width: 26px !important;
    height: 26px !important;
    transition: 0.3s !important;
}

.site-header a:hover svg, .dropbtn:hover svg {
    color: #c59b5f !important;
}

.site-header .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    flex: 1 !important;
    text-align: center !important;
}

.site-header .logo img, 
.site-header .logo .custom-logo {
    max-height: 50px !important; 
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
}

/* =========================================
   منوی کشویی
   ========================================= */
.dropdown {
    position: relative;
    display: inline-block;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100% !important;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    background-color: #ffffff;
    min-width: 170px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-radius: 12px;
    border: 1px solid #e0d5c1;
    z-index: 1001;
    overflow: hidden;
}

.dropdown-content a {
    color: #1a2b4c !important;
    padding: 14px 18px;
    text-decoration: none;
    display: block;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 1px solid #f9f9f9;
    transition: 0.3s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #fdfaf4;
    color: #c59b5f !important;
    padding-right: 25px;
}

.dropdown-content.show {
    display: block !important;
}

/* =========================================
   ویترین صفحه اصلی (محصولات)
   ========================================= */
.site-main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.woocommerce ul.products, 
.woocommerce-page ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px;
    padding: 0 !important;
    list-style: none !important;
}

.woocommerce ul.products li.product {
    float: none !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 25px auto !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    border: 1px solid #e0d5c1 !important;
    padding: 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important;
}

.woocommerce ul.products li.product img {
    max-width: 90% !important;
    margin: 0 auto 15px !important;
    display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #000 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product .price {
    color: #1a2b4c !important;
    font-size: 15px !important;
    margin-bottom: 20px !important;
}
.woocommerce ul.products li.product .price bdi {
    font-weight: 800 !important;
    font-size: 18px !important;
    color: #1a2b4c !important;
}

.woocommerce ul.products li.product .button {
    background: #1a2b4c !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    display: block !important;
    margin-top: 15px !important;
    border: 2px solid #c59b5f !important;
    text-align: center !important;
    transition: 0.3s;
}

.woocommerce ul.products li.product .button:hover {
    background: #ffffff !important;
    color: #1a2b4c !important;
    border: 2px solid #1a2b4c !important;
}

/* =========================================
   نوار قیمت چسبان پایین صفحه
   ========================================= */
.sticky-price-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e0d5c1;
    padding: 12px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #c59b5f;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    box-sizing: border-box;
}
.sticky-price-bar .price-up { color: #28a745; margin-left: 5px; }

/* =========================================
   صفحه تکی محصول (پاکسازی و تراز دقیق)
   ========================================= */
.woocommerce-tabs, 
#woocommerce-tabs,
.wc-tabs-wrapper,
.widget, 
.widget-area, 
#secondary, 
aside,
.sidebar,
#sidebar,
.site-footer,
.site-info,
.storefront-breadcrumb,
.related.products,
.upsells.products,
.product_meta,
.widget_search,
.widget_pages,
.widget_archive,
.widget_categories {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .site-main {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 30px 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important;
    border: 1px solid #e0d5c1 !important;
    margin-bottom: 40px !important;
}

.single-product div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

.single-product div.product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
}

.single-product div.product .summary.entry-summary {
    width: 100% !important;
    flex: 1 !important;
    min-width: 300px !important;
    text-align: right !important;
}

.single-product .price {
    font-size: 16px !important;
    white-space: nowrap !important; 
    text-align: center !important;
    display: block !important;
    margin-bottom: 25px !important;
    color: #1a2b4c !important;
    font-weight: 800 !important;
}
.single-product .price bdi {
    font-size: 18px !important;
}

.single-product .single_add_to_cart_button {
    background: #1a2b4c !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border: 2px solid #c59b5f !important;
    transition: 0.3s !important;
    margin-top: 20px !important;
    width: 100% !important;
}
.single-product .single_add_to_cart_button:hover {
    background: #ffffff !important;
    color: #1a2b4c !important;
}

.single-product table.variations {
    width: 100% !important;
    margin-bottom: 15px !important;
}
.single-product table.variations tr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}
.single-product table.variations td.label {
    width: 30% !important; 
    text-align: right !important;
    padding: 0 !important;
    font-size: 16px !important; 
    font-weight: 800 !important;
    color: #000 !important;
    line-height: 45px !important; 
}
.single-product table.variations td.value {
    width: 70% !important; 
    padding: 0 !important;
}
.single-product table.variations select {
    width: 100% !important;
    height: 45px !important; 
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e0d5c1 !important;
    font-family: 'Vazirmatn' !important;
    background: #fdfaf4 !important;
    margin: 0 !important;
}

.woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: column !important;
}
.woocommerce-variation-add-to-cart .quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}
.woocommerce-variation-add-to-cart .quantity::before {
    content: "\062A\0639\062F\0627\062F" !important; 
    font-weight: 800 !important;
    color: #000 !important;
    width: 30% !important; 
    text-align: right !important;
    font-size: 16px !important; 
    line-height: 45px !important; 
}

.woocommerce-variation-add-to-cart .quantity .qty {
    width: 70% !important; 
    max-width: 100% !important;
    height: 45px !important; 
    padding: 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid #e0d5c1 !important;
    text-align: center !important;
    background: #fdfaf4 !important;
    margin: 0 !important;
    font-family: 'Vazirmatn' !important;
}
.woocommerce-variation-add-to-cart .quantity .screen-reader-text {
    display: none !important;
}

/* =========================================
   سازماندهی فرم ورود و ثبت‌نام (تک کارتی هوشمند)
   ========================================= */

/* حذف عناوین مزاحم بالای صفحه */
body.woocommerce-account header.entry-header,
body.woocommerce-account .page-title,
body.woocommerce-account .entry-title,
body.woocommerce-account h1 {
    display: none !important;
}

/* حذف کادر پس زمینه اضافی در این صفحه */
body.woocommerce-account .site-main,
body.woocommerce-account .type-page {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* تنظیم عرض محتوای اصلی حساب کاربری */
body.woocommerce-account .woocommerce {
    max-width: 900px !important;
    margin: 40px auto !important;
    padding: 0 15px !important;
}

/* لغو حالت دو ستونه و وسط‌چین کردن فرم فعال */
.u-columns.col2-set {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.u-column1.col-1, .u-column2.col-2 {
    max-width: 420px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    padding: 35px 30px !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04) !important;
    border: 1px solid #e0d5c1 !important;
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
}

/* تیترهای فرم (ورود / عضویت) */
.u-column1.col-1 h2, .u-column2.col-2 h2 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #1a2b4c !important;
    margin-bottom: 25px !important;
    text-align: right !important;
    border-bottom: 2px solid #fdfaf4 !important;
    padding-bottom: 15px !important;
    display: block !important;
}

/* راست‌چین کردن لیبل‌ها */
.woocommerce-form-row label {
    font-weight: 800 !important;
    color: #1a2b4c !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
    text-align: right !important; 
}

/* کادرهای ورودی متن */
.woocommerce-form-login input.input-text, .woocommerce-form-register input.input-text {
    width: 100% !important;
    height: 50px !important;
    padding: 0 15px !important;
    border-radius: 10px !important;
    border: 1px solid #e0d5c1 !important;
    background: #fdfaf4 !important;
    font-family: 'Vazirmatn' !important;
    margin-bottom: 20px !important;
    box-sizing: border-box !important;
    transition: 0.3s !important;
    text-align: left !important; 
    direction: ltr !important;
}

.woocommerce-form-login input.input-text:focus, .woocommerce-form-register input.input-text:focus {
    border-color: #c59b5f !important;
    outline: none !important;
}

/* تنظیم چک‌باکس مرا به خاطر بسپار */
.woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-direction: row-reverse !important; 
    gap: 8px !important;
    margin-bottom: 20px !important;
    font-weight: 700 !important;
    color: #1a2b4c !important;
    font-size: 14px !important;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    margin: 0 !important;
    cursor: pointer !important;
}

/* دکمه‌های ورود و عضویت */
.woocommerce-form-login .button, .woocommerce-form-register .button {
    width: 100% !important;
    background: #1a2b4c !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    border: 2px solid #1a2b4c !important;
    transition: 0.3s !important;
    cursor: pointer !important;
    margin-bottom: 15px !important;
}

.woocommerce-form-login .button:hover, .woocommerce-form-register .button:hover {
    background: #ffffff !important;
    color: #1a2b4c !important;
}

/* مخفی کردن لینک فراموشی رمز ووکامرس (چون در functions.php خودمون ساختیم) */
.woocommerce-LostPassword {
    display: none !important;
}

/* چیدمان لینک‌های سفارشی پایین فرم */
.custom-login-links {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 5px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e0d5c1 !important;
}
.custom-login-links a {
    font-size: 14px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    transition: 0.3s !important;
    cursor: pointer !important;
}
.custom-login-links .register-link,
.custom-login-links .login-link {
    color: #c59b5f !important;
}
.custom-login-links .lost-pass-link {
    color: #888888 !important;
}
.custom-login-links a:hover {
    color: #1a2b4c !important;
}

/* نمایش متن راهنمای ثبت‌نام (در صورت وجود) */
.woocommerce-form-register p {
    text-align: right !important;
    font-size: 13px !important;
    color: #666 !important;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
}
/* =========================================
   نابود کردن قطعی کلمه مزاحم "حساب کاربری" و مسیرنماها
   ========================================= */
body.woocommerce-account .woocommerce-breadcrumb,
body.woocommerce-account .breadcrumbs,
body.woocommerce-account nav.woocommerce-breadcrumb,
body.woocommerce-account .entry-header,
body.woocommerce-account h1.entry-title,
body.woocommerce-account h1.page-title,
body.woocommerce-account .storefront-breadcrumb {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* =========================================
   تیر خلاص برای حذف عنوان "حساب کاربری" و اضافات
   ========================================= */
body.woocommerce-account .site-main header,
body.woocommerce-account .site-main .page-header,
body.woocommerce-account .site-main h1,
body.woocommerce-account .site-main .page-title,
body.woocommerce-account .type-page > header,
body.woocommerce-account .type-page > h1,
body.woocommerce-account .entry-content > h1,
body.woocommerce-account .entry-content > header,
body.woocommerce-account #main > header,
body.woocommerce-account #main > h1 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}