/* Layout content remains editable through native Elementor widgets. */
body { direction: rtl; font-family: 'IRANSansX', Tahoma, sans-serif; }
.woocommerce, .woocommerce-page { text-align: right; font-family: 'IRANSansX', Tahoma, sans-serif; }
.woocommerce input[type=email], .woocommerce input[type=tel], .woocommerce input[type=password] { direction: ltr; text-align: left; }
.woocommerce a { color: #247e78; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button { background: #34b8b1; color: #143330; border-radius: 4px; }
.woocommerce button.button:hover, .woocommerce a.button:hover { background: #248e88; color: #fff; }
.woocommerce-MyAccount-navigation a { display: block; padding: 14px 18px; }
.woocommerce-MyAccount-navigation .is-active a { background: #eef3ef; color: #143330; }
@media (max-width: 767px) { .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none; width: 100%; } }

body, .elementor h1, .elementor h2, .elementor h3, .elementor p, .elementor input,
.elementor button, .elementor a.elementor-button, .woocommerce input, .woocommerce button {
    font-family: 'IRANSansX', Tahoma, sans-serif;
}
.woocommerce ul.products li.product img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; line-height: 1.9; }
.woocommerce ul.products li.product .button { border-radius: 3px; margin-top: 12px; }
.tarfandooni-empty-recommendations { max-width: 960px; margin: 32px auto; }
.tarfandooni-drawer-recommendations { margin-top: 24px; padding: 20px 0; border-top: 1px solid #e3e6df; }
.tarfandooni-drawer-recommendations .elementor-heading-title { font-size: 20px; }
.tarfandooni-drawer-recommendations .woocommerce ul.products {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 14px; padding: 0; margin: 20px 0;
}
.tarfandooni-drawer-recommendations .woocommerce ul.products::before,
.tarfandooni-drawer-recommendations .woocommerce ul.products::after { display: none; }
.tarfandooni-drawer-recommendations .woocommerce ul.products li.product { width: 100%; float: none; margin: 0; }
.tarfandooni-drawer-recommendations .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; }
.tarfandooni-drawer-recommendations .woocommerce ul.products li.product .price { font-size: 13px; }
.tarfandooni-drawer-recommendations .woocommerce ul.products li.product .button { font-size: 12px; padding: 10px 12px; }
.elementor-menu-cart__main { overflow-y: auto; overscroll-behavior: contain; }
@media (max-width:767px) {
    .tarfandooni-empty-recommendations .woocommerce ul.products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
    .tarfandooni-empty-recommendations .woocommerce ul.products::before,
    .tarfandooni-empty-recommendations .woocommerce ul.products::after { display:none; }
    .tarfandooni-empty-recommendations .woocommerce ul.products li.product { width:100%; margin:0; }
}

/* Empty bag: calm upper panel and edge-to-edge recommendation slider. */
.elementor-menu-cart__main .tarfandooni-empty-panel {
    min-height:300px; display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:28px; background:#f8f7f5; margin:0 -20px; padding:40px 22px; text-align:center;
}
.elementor-menu-cart__main .tarfandooni-empty-panel p,
.elementor-menu-cart__main .tarfandooni-empty-panel .elementor-menu-cart__empty-message { margin:0; padding:0; font-size:15px; color:#262b29; }
.tarfandooni-browse-products { display:inline-flex; min-width:180px; justify-content:center; padding:14px 24px; border:1px solid #262b29; color:#262b29!important; background:transparent; font-size:14px; text-decoration:none; }
.tarfandooni-browse-products:hover { background:#262b29; color:#fff!important; }
.tarfandooni-drawer-recommendations { border:0; padding:24px 0 8px; margin:0; background:#fff; }
.tarfandooni-drawer-recommendations .elementor-widget-button { display:none; }
.tarfandooni-slider { position:relative; min-width:0; width:100%; }
.tarfandooni-drawer-recommendations .woocommerce ul.products,
.tarfandooni-empty-recommendations .woocommerce ul.products {
    display:flex; flex-wrap:nowrap; overflow-x:auto; gap:16px; scroll-snap-type:x mandatory; scroll-padding-inline:0;
    scrollbar-width:none; -webkit-overflow-scrolling:touch; margin:18px 0 0; padding:0 0 8px; touch-action:pan-x pan-y;
}
.tarfandooni-slider ul.products::-webkit-scrollbar { display:none; }
.tarfandooni-drawer-recommendations .woocommerce ul.products li.product,
.tarfandooni-empty-recommendations .woocommerce ul.products li.product {
    flex:0 0 40%; width:40%; min-width:0; float:none; margin:0; scroll-snap-align:start; display:flex; flex-direction:column;
}
.tarfandooni-empty-recommendations .woocommerce ul.products li.product { flex-basis:30%; width:30%; }
.tarfandooni-slider ul.products::before,.tarfandooni-slider ul.products::after { display:none!important; }
.tarfandooni-slider li.product img { border-radius:0!important; margin-bottom:8px!important; }
.tarfandooni-slider li.product .woocommerce-loop-product__title { font-size:13px; line-height:1.7; min-height:44px; padding:0!important; }
.tarfandooni-slider li.product .button {
    margin-top:auto!important; margin-bottom:0; border:1px solid #262b29!important; color:#262b29!important;
    background:#fff!important; border-radius:0!important; text-align:center; font-weight:500; width:100%; box-sizing:border-box;
}
.tarfandooni-slider li.product .button:hover { background:#262b29!important; color:#fff!important; }
.tarfandooni-slider-arrow {
    position:absolute; top:145px; transform:translateY(-50%); z-index:2; display:flex; justify-content:center; align-items:center;
    width:40px; height:40px; padding:0; border:1px solid #262b29; border-radius:0; color:#262b29; background:#fff; font:28px/1 sans-serif;
}
.tarfandooni-slider-previous { left:8px; right:auto; }
.tarfandooni-slider-next { right:8px; left:auto; }
.tarfandooni-slider-arrow:disabled { opacity:.35; cursor:default; }
.tarfandooni-slider-arrow[hidden] { display:none; }
.tarfandooni-slider-arrow:focus-visible,.tarfandooni-slider ul.products:focus-visible { outline:2px solid #34b8b1; outline-offset:3px; }
.tarfandooni-slider ul.products { cursor:grab; }
.tarfandooni-slider ul.products.is-dragging { cursor:grabbing; scroll-snap-type:none!important; user-select:none; }
.tarfandooni-slider ul.products img { -webkit-user-drag:none; user-select:none; }
/* Keep the carousel from being overridden by theme/Elementor product-grid rules. */
.tarfandooni-drawer-recommendations .woocommerce .tarfandooni-slider ul.products,
.tarfandooni-empty-recommendations .woocommerce .tarfandooni-slider ul.products {
    display:flex!important; flex-wrap:nowrap!important; overflow-x:auto!important; overflow-y:hidden; max-width:100%;
}
.tarfandooni-drawer-recommendations .woocommerce .tarfandooni-slider ul.products li.product {
    flex:0 0 40%!important; width:40%!important; max-width:40%!important; margin:0!important;
}
.tarfandooni-slider { overflow:hidden; }
.tarfandooni-drawer-recommendations .elementor-widget-shortcode,
.tarfandooni-empty-recommendations .elementor-widget-shortcode { min-width:0; width:100%; max-width:100%; }
.tarfandooni-drawer-recommendations .e-con,.tarfandooni-drawer-recommendations .e-con-inner { min-width:0; max-width:100%; }
.tarfandooni-slider-arrow { touch-action:manipulation; cursor:pointer; }
@media(min-width:1025px) {
    .tarfandooni-header-row > .e-con-inner { direction:rtl; flex-direction:row; flex-wrap:nowrap; }
    .tarfandooni-header-logo { order:0; flex:0 0 72px; }
    .tarfandooni-header-navigation { order:1; flex:1 1 auto; min-width:0; }
    .tarfandooni-header-actions { order:2; flex:0 0 auto; margin-inline-start:auto; }
}
@media(max-width:767px) {
    .tarfandooni-empty-recommendations .woocommerce ul.products li.product { flex-basis:40%; width:40%; }
    .tarfandooni-slider-arrow { top:110px; width:36px; height:36px; }
}
@media(prefers-reduced-motion:reduce) { .tarfandooni-slider ul.products { scroll-behavior:auto; } }

/* Readable item details in both desktop and mobile cart drawers. */
.elementor-menu-cart__main .elementor-menu-cart__product-name,
.elementor-menu-cart__main .elementor-menu-cart__product-name a,
.elementor-menu-cart__main .woocommerce-mini-cart-item a:not(.remove) { color:#262b29!important; opacity:1!important; }
.elementor-menu-cart__main .elementor-menu-cart__product-price,
.elementor-menu-cart__main .elementor-menu-cart__product-price *,
.elementor-menu-cart__main .woocommerce-mini-cart-item .quantity,
.elementor-menu-cart__main .woocommerce-mini-cart-item .quantity * { color:#4b5551!important; opacity:1!important; }
.elementor-menu-cart__main .elementor-menu-cart__product-remove a,
.elementor-menu-cart__main a.remove { color:#4b5551!important; border-color:#89938e!important; opacity:1!important; }
.elementor-menu-cart__main .elementor-menu-cart__product-name a:hover { color:#247e78!important; }

.elementor-menu-cart__main .widget_shopping_cart_content { height:auto!important; flex:0 0 auto!important; }
.elementor-menu-cart__main .tarfandooni-slider-arrow { color:#262b29!important; background:#fff!important; border:1px solid #262b29!important; }
.elementor-menu-cart__main .tarfandooni-slider-arrow:hover:not(:disabled) { color:#fff!important; background:#262b29!important; }

/* Reference storefront: native Elementor sliders, filters and WooCommerce cards. */
.tarfandooni-landing { direction:rtl; background:#fff; }
.tarfandooni-reference-hero { max-width:1440px; margin:0 auto; }
.tarfandooni-reference-slides .elementor-slide-heading { max-width:480px; }
.tarfandooni-reference-slides .elementor-slide-description { line-height:1.9; }
.tarfandooni-reference-slides .elementor-slide-button { min-width:170px; border:0!important; }
.tarfandooni-reference-slides .swiper-slide-contents { text-align:right; }
.tarfandooni-reference-catalog .elementor-widget-text-editor p { margin:0; }
.tarfandooni-reference-tabs .e-n-tabs-heading { padding:0 0 8px; }
.tarfandooni-reference-tabs .e-n-tab-title { white-space:nowrap; }
.tarfandooni-filter-stage { position:relative; overflow-anchor:none; }
.tarfandooni-filter-stage.is-filtering { isolation:isolate; }
.tarfandooni-filter-stage.is-filtering > .e-active li.product { transform-origin:center; will-change:transform,opacity; }
.tarfandooni-filter-exit-layer { position:absolute; inset:0; z-index:2; pointer-events:none; }
.tarfandooni-filter-exit-layer > div { position:static!important; }
.tarfandooni-filter-exit-layer .woocommerce ul.products { position:static!important; display:block!important; margin:0!important; padding:0!important; }
.tarfandooni-filter-exit-layer li.product { transform-origin:center; will-change:transform,opacity; }
.tarfandooni-reference-products .woocommerce ul.products { direction:rtl; }
.tarfandooni-reference-products .woocommerce ul.products li.product { padding:6px 6px 8px!important; border:1px solid #e9e7e1!important; border-radius:7px; background:#fff; box-sizing:border-box; }
.tarfandooni-reference-products .woocommerce ul.products li.product img { aspect-ratio:1.65; object-fit:cover; border-radius:4px!important; }
.tarfandooni-reference-products .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height:48px; font-size:16px; line-height:1.5; padding:4px 5px 0!important; margin:0!important; }
.tarfandooni-product-duration { font-size:12px; line-height:1.7; color:#7a7e77; margin:3px 0!important; }
.tarfandooni-product-stock { font-size:12px; line-height:1.7; color:#3d4841; margin:5px 0 9px!important; }
.tarfandooni-product-stock::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:#13ae91; margin-inline-end:5px; }
.tarfandooni-product-stock.is-outofstock::before { background:#f15a59; }
.tarfandooni-reference-products .woocommerce ul.products li.product .button { display:block; width:100%; box-sizing:border-box; margin-top:8px!important; color:#172b29!important; background:#2cbfbc!important; font-size:13px; padding:11px 8px; border:0!important; border-radius:5px!important; }
.tarfandooni-reference-products .woocommerce ul.products li.product .button:hover { color:#fff!important; background:#239b99!important; }
.tarfandooni-reference-products .woocommerce ul.products li.product .button::before { content:'\f07a'; font-family:'Font Awesome 5 Free'; font-weight:900; display:inline-block; margin-inline-end:7px; }
.tarfandooni-reference-products .woocommerce ul.products li.product .price { color:#1d201e!important; font-size:15px; font-weight:700; margin:5px 0!important; }
.tarfandooni-category-banner .elementor-heading-title { line-height:1.35; }
.tarfandooni-category-banner .elementor-widget-text-editor p { margin:0; color:#353c34; }
.tarfandooni-category-banner .elementor-button { background:#fff!important; color:#1d201e!important; }
.tarfandooni-reference-faq .elementor-accordion-item { margin-bottom:7px; border-radius:5px; overflow:hidden; }
@media(max-width:767px) {
 .tarfandooni-reference-products .woocommerce ul.products { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:12px!important; }
 .tarfandooni-reference-products .woocommerce ul.products::before,.tarfandooni-reference-products .woocommerce ul.products::after { display:none!important; }
 .tarfandooni-reference-products .woocommerce ul.products li.product { width:100%!important; margin:0!important; float:none!important; }
 .tarfandooni-reference-products .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:12px; min-height:40px; }
 .tarfandooni-reference-products .woocommerce ul.products li.product .price { font-size:12px; }
 .tarfandooni-reference-products .woocommerce ul.products li.product .button { font-size:11px; padding:10px 4px; }
 .tarfandooni-product-duration,.tarfandooni-product-stock { font-size:10px; }
 .tarfandooni-reference-slides .elementor-slide-description { font-size:12px; margin-bottom:12px; }
 .tarfandooni-reference-slides .elementor-slide-heading { font-size:25px; line-height:1.45; margin-bottom:8px; }
 .tarfandooni-reference-slides .swiper-slide-bg { background-position:35% center!important; }
 .tarfandooni-reference-slides .swiper-slide:nth-child(2) .swiper-slide-bg,.tarfandooni-reference-slides .swiper-slide:nth-child(3) .swiper-slide-bg { background-position:65% center!important; }
 .tarfandooni-reference-slides .elementor-slide-button { min-width:0; font-size:11px; padding:10px 13px; }
 .tarfandooni-reference-tabs .e-n-tabs-heading { scrollbar-width:none; }
 .tarfandooni-reference-tabs .e-n-tab-title { padding:9px 15px; }
 .tarfandooni-benefits .elementor-icon-box-title { font-size:11px; line-height:1.7; }
}
