@font-face { font-family: 'BNazanin'; src: url('../Fonts/BNazanin.ttf') format('truetype'), url('../Fonts/BNazanin.woff') format('woff'), url('../Fonts/BNazanin.eot') format('embedded-opentype'); }
/* Woodmart FA RTL v8 - RTL and production polish */
:root{--font:Vazirmatn,IRANSansX,"IRANSans","Tahoma","Segoe UI",sans-serif}
html{direction:rtl;scroll-behavior:smooth}
body{direction:rtl;text-align:right;font-family:'BNazanin';font-variant-numeric:tabular-nums}
button,input,select,textarea{font:inherit}
input,select,textarea{direction:rtl;text-align:right}
.fa-solid,.fa-regular,.fa-brands{line-height:1}

/* permanent desktop rail moves to the right */
.site-shell{margin-left:0;margin-right:var(--rail)}
.rail{inset:0 0 0 auto;border-right:0;border-left:1px solid var(--line)}
.rail a,.rail button{flex:0 0 auto}

/* header */
.top-links a,.top-actions>a,.account-trigger{border-right:0;border-left:1px solid var(--line)}
.top-links a:first-child{padding-left:16px;padding-right:0}
.top-actions>*:last-child{border-left:0}
.account-dropdown{right:auto;left:0;text-align:right}
.logo{gap:9px}
.logo strong{letter-spacing:-.7px}
.search-trigger{text-align:right}
.search-trigger i{font-size:18px}
.primary-nav{margin-left:0;margin-right:auto}
.cart-btn b,.mobile-bottom-nav b{right:auto;left:-1px}

/* compact visual images */
.quick-circle img{width:62%;height:62%;object-fit:contain;display:block}
.produce-art img{position:absolute;inset:auto 5% 2% auto;width:92%;height:92%;object-fit:contain;filter:drop-shadow(0 12px 10px rgba(60,80,45,.12))}
.promo-emoji{letter-spacing:0;margin:42px auto 0;width:76%;height:140px}
.promo-emoji img{width:100%;height:100%;object-fit:contain}

/* hero */
.hero-main__content{padding:60px 35px 0 0}
.produce-art{right:auto;left:-28px;border-radius:0 50% 0 0}
.slider-arrow--prev{left:auto;right:12px}
.slider-arrow--next{right:auto;left:12px}
.slider-dots{left:auto;right:50%;translate:50% 0}
.benefits>div{border-right:0;border-left:1px solid #eee}
.benefits>div:last-child{border-left:0}

/* mega menu: categories live on the right in RTL */
.mega-menu{grid-template-columns:minmax(0,1fr) 230px}
.mega-sidebar{grid-column:2;grid-row:1;border-right:0;border-left:1px solid var(--line)}
.mega-content{grid-column:1;grid-row:1}
.mega-category,.mega-discount{text-align:right}
.mega-category b{margin-left:0;margin-right:auto}
.subcategory-grid a{justify-content:flex-start}
.subcategory-grid i{width:28px;text-align:center;font-size:20px;color:var(--green)}
.category-banner .banner-art{right:auto;left:18px;bottom:-12px;width:180px;height:180px}
.category-banner .banner-art img{width:100%;height:100%;object-fit:contain}
.popular-products{direction:rtl;scroll-snap-type:x proximity}
.mega-products-empty{width:100%;padding:28px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);text-align:center}

/* product cards */
.product-wish{right:auto;left:16px;background:transparent;color: #ffb524;}
.product-badge{left:auto;right:14px}
.product-card .price del{margin-right:0;margin-left:4px}
.product-qty>*{border-right:0;border-left:1px solid var(--line)}
.product-qty>*:last-child{border-left:0}
.product-card h4,.product-card .price{text-align:right}
.product-card .price{direction:rtl}
.carousel__viewport{direction:rtl;cursor:grab;touch-action:pan-y}
.carousel__viewport.is-dragging{cursor:grabbing;scroll-behavior:auto;user-select:none}
.carousel-scrollbar__thumb{left:auto;right:0}
.category-card{direction:rtl}
.category-card__visual img{width:100%;height:100%;object-fit:contain;display:block}
.heading-icon{margin-right:0;margin-left:12px}
i{font-style:inherit}
/* banners */
.wide-banner__art,.wide-banner__art-image{right:auto;left:-10px}
.wide-banner__art-image{position:absolute;bottom:0;width:44%;height:92%;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.12))}
.content-section__body ul{padding-left:0;padding-right:18px}

/* search */
.search-modal__content{text-align:center}
.search-modal__bar select{border-left:0;border-right:1px solid var(--line)}
.search-modal .search-results{text-align:right;direction:rtl}
.search-modal .search-result{grid-template-columns:112px minmax(0,1fr);direction:rtl}
.search-modal .search-result>b{grid-column:2;text-align:right}
.search-empty,.search-loading{display:grid;gap:10px;place-items:center}
.search-empty i,.search-loading i{font-size:28px;color:var(--green)}

/* drawers swap sides for RTL */
.drawer--cart,.drawer--account{right:auto;left:0;transform:translateX(-105%)}
.drawer--mobile{left:auto;right:0;transform:translateX(105%)}
.drawer.is-active{transform:none}
.cart-item{grid-template-columns:68px 1fr auto}
.password-wrap button{right:auto;left:10px}
.mobile-category-list button,.mobile-category-list a,.mobile-links a,.mobile-links>button,.mobile-back{text-align:right}
.mobile-category-list b,.mobile-links b{margin-left:0;margin-right:auto}
.mobile-back{display:flex;align-items:center;gap:8px}
.account-links a{display:flex;gap:10px;align-items:center}
.empty-state{display:grid;place-items:center;gap:12px}
.empty-state i{font-size:44px;color:#d6dfd1}

/* footer */
.footer-brand p{margin-right:0}
.newsletter form{direction:rtl}
.footer-bottom nav{direction:rtl}
.back-to-top{right:auto;left:24px}
.toast-region{right:auto;left:20px}
.toast--error{background:#9b2525}

/* mobile polish */
@media(max-width:820px){
  .site-shell{margin-right:0}
  .rail{display:none}
  .mainbar__inner{direction:rtl}
  .header-user-btn{grid-column:1;grid-row:2}
  .search-trigger{grid-column:2/4;grid-row:2;min-width:0;max-width:none}
  .hero-main__content{padding:55px 24px 0}
  .produce-art{left:0;right:auto}
  .mobile-bottom-nav b{left:calc(50% - 22px);right:auto}
  .toast-region{left:12px;right:12px}
  .search-modal__bar select{border-right:0;border-top:1px solid var(--line)}
  .wide-banner__art-image{width:52%;opacity:.85}
  .footer-bottom{align-items:flex-start}
}

@media(max-width:480px){
  .hero-main__content{padding:42px 20px 0}
  .hero-main h1{font-size:23px}
  .hero-offer>strong{font-size:21px}
  .product-carousel .product-card{min-width:64vw}
}

/* accessibility / performance */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* physical-edge fixes loaded after responsive.css */
.modal-close{right:auto;left:35px}
@media(max-width:1024px){.site-shell{margin-right:0}}
@media(max-width:767px){
  .quick-categories{padding-left:0;padding-right:13px}
  .quick-categories__track{padding-right:0;padding-left:18px}
  .modal-close{right:auto;left:18px}
}
@media(max-width:820px){
  .header-user-btn{grid-column:3;grid-row:2}
  .search-trigger{grid-column:1/3;grid-row:2}
}


/* v9 RTL additions */
.cart-item__prices,.cart-summary>div,.form-inline{direction:rtl}
.account-links--cards a{direction:rtl}
.account-links--cards a>i:last-child{margin-right:auto}
.qty-controls{direction:ltr}
.qty-controls input{direction:ltr}
.account-tabs{direction:rtl}

/* v10 RTL: open the mega menu from the physical right and keep content/sidebar widths correct. */
.mega-menu{left:auto;right:0;transform:translateX(102%);grid-template-columns:0 268px;box-shadow:-14px 0 34px rgba(0,0,0,.16)}
.mega-menu.is-active{transform:none}
.mega-menu.has-content{grid-template-columns:minmax(0,572px) 268px}
.mega-sidebar{grid-column:2;border-left:1px solid var(--line);border-right:0}
.mega-content{grid-column:1;border-radius:12px 0 0 12px;transform:translateX(12px)}
.mega-menu.has-content .mega-content{transform:none}
.mega-products-carousel .carousel-scrollbar__thumb{right:0;left:auto}

/* Wishlist bottom sheet is symmetric; its product content stays RTL. */
.drawer--wishlist{right:0;left:0;transform:translateY(105%)}
.drawer--wishlist.is-active{transform:none}
.wishlist-item,.wishlist-item__info,.wishlist-item__actions{direction:rtl}

@media (pointer:coarse){.carousel__viewport{touch-action:auto;scroll-snap-type:x proximity}}
