/*
Theme Name: سپاهان
Theme URI: https://www.rtl-theme.com/author/i-m-ghasemi/
Author: همیار جوان
Author URI: https://www.rtl-theme.com/author/i-m-ghasemi/
Description: قالب سپاهان مناسب هر نوع فروشگاه آنلاینی | مناسب کاربران ایرانی
Version: 2.1.0
Update URI: false
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: sepahan
Tags: e-commerce, rtl, responsive, woocommerce, elementor
*/

/* NOTE:
 * All visual styling is handled via Tailwind build output in /assets/css/app.css
 */

/* WPVibe draft: accessible checkout controls and mobile cart/checkout readability. */
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea,
.woocommerce-cart input.input-text { max-width: 100%; min-height: 44px; }
.woocommerce-checkout :is(input,select,textarea,button):focus-visible,
.woocommerce-cart :is(input,select,textarea,button,a):focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (max-width: 767px) {
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
  .woocommerce-checkout #order_review,
  .woocommerce-cart .cart_totals { max-width: 100%; overflow-wrap: anywhere; }
  .woocommerce-checkout #place_order { min-height: 48px; }
}
/* Homepage category navigation: tidy two-column mobile grid. */
.sepahan-home-category-nav{padding:16px 12px 8px}
.sepahan-home-category-nav h2{font-size:1.15rem;font-weight:700;margin:0 0 12px}
.sepahan-home-category-grid{display:flex;flex-wrap:wrap;gap:10px}
.sepahan-home-category-link{display:flex;align-items:center;justify-content:center;padding:10px 15px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:#1e293b;text-decoration:none;font-weight:600;line-height:1.6;text-align:center}
@media(max-width:767px){
.sepahan-home-category-nav{padding:12px 12px 6px!important}
.sepahan-home-category-nav h2{font-size:16px!important;margin:0 0 10px!important}
.sepahan-home-category-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.sepahan-home-category-grid>.sepahan-home-category-link{box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:52px!important;padding:9px 7px!important;font-size:13px!important;font-weight:650!important;line-height:1.55!important;border-radius:12px!important;overflow-wrap:anywhere!important}
}
.dark .sepahan-home-category-link{background:#1f2937;color:#f9fafb;border-color:#475569}
/* Prevent mobile category titles and expand buttons from overlapping. */
@media(max-width:1279px){
#offcanvas-right .sepahan-mobile-subitem{height:auto!important;min-height:0!important;position:relative!important}
#offcanvas-right .sepahan-mobile-subhead{display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;height:auto!important;min-height:52px!important;padding:9px 12px!important;box-sizing:border-box!important}
#offcanvas-right .sepahan-mobile-subhead>a{display:block!important;flex:1 1 0%!important;width:auto!important;min-width:0!important;height:auto!important;line-height:1.8!important;white-space:normal!important;overflow-wrap:anywhere!important;position:static!important;transform:none!important}
#offcanvas-right .sepahan-mobile-subhead>button[data-mobile-sub-toggle]{display:inline-flex!important;flex:0 0 40px!important;width:40px!important;height:40px!important;position:static!important;transform:none!important;align-items:center!important;justify-content:center!important}
#offcanvas-right .sepahan-mobile-subbody.hidden{display:none!important}
#offcanvas-right .sepahan-mobile-subbody:not(.hidden){display:block!important;height:auto!important;max-height:none!important}
#offcanvas-right .sepahan-mobile-leaf{display:block!important;height:auto!important;min-height:40px!important;line-height:1.8!important;white-space:normal!important;overflow-wrap:anywhere!important}
}
