/*
Theme Name: Miniture Child
Theme URI: http://miniture.novaworks.net
Description: This is a child theme for Miniture Theme.
Author: Novaworks
Author URI: http: //www.novaworks.net/
Template: miniture
Version: 2.0
*/

/****************************************************************/
/*************** ADD YOUR CUSTOM CSS IN THIS AREA ***************/
/****************************************************************/

/* ============================================================ *
 * YEKAN BAKH for Persian (RTL) — site-wide.                    *
 * Lives here (versioned style.css) rather than the unversioned *
 * rtl.css so cache-busting works. @font-face is declared in    *
 * rtl.css. Scoped to body.rtl / html[lang^="fa"] so the EN     *
 * (LTR) side keeps its Latin 'Outfit' typography untouched.    *
 * The theme drives typography off --site-main-font /           *
 * --site-secondary-font (reset to 'Outfit' by theme-options    *
 * inline CSS); override with !important. Elementor global      *
 * typography vars overridden too. Icon @font-faces untouched.  */
@font-face{font-family:'YekanBakh';font-style:normal;font-weight:400;font-display:swap;src:url('fa-fonts/YekanBakhFaNum-Regular.woff2') format('woff2');}
@font-face{font-family:'YekanBakh';font-style:normal;font-weight:700;font-display:swap;src:url('fa-fonts/YekanBakhFaNum-Bold.woff2') format('woff2');}

html[lang^="fa"],
body.rtl {
  --site-main-font: 'YekanBakh', sans-serif !important;
  --site-secondary-font: 'YekanBakh', sans-serif !important;
  --e-global-typography-primary-font-family: "YekanBakh" !important;
  --e-global-typography-secondary-font-family: "YekanBakh" !important;
  --e-global-typography-text-font-family: "YekanBakh" !important;
  --e-global-typography-accent-font-family: "YekanBakh" !important;
}

body.rtl,
body.rtl input, body.rtl select, body.rtl textarea,
body.rtl button, body.rtl .button, body.rtl .elementor-button,
body.rtl .elementor-heading-title, body.rtl .elementor-widget-text-editor,
body.rtl .woocommerce-Price-amount, body.rtl .price, body.rtl .product_title,
body.rtl .nova-menu a, body.rtl .main-navigation a, body.rtl .menu-item a {
  font-family: 'YekanBakh', sans-serif !important;
}

/* ============================================================ *
 * Language switcher dropdown (فارسی / English).                *
 * Markup is the .tis-lang-switcher HTML widget in the header & *
 * footer Elementor templates; behaviour is the wp_footer JS in *
 * the tis-* mu-plugin. This is the styling (none existed).     */
.tis-lang-switcher { position: relative; display: inline-block; line-height: 1; }
.tis-lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--site-border-color, #e3e3e3);
  border-radius: 6px; padding: 7px 12px; cursor: pointer;
  font: inherit; font-size: 14px; color: inherit; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.tis-lang-toggle:hover { border-color: var(--site-accent-color, #FFA832); }
.tis-lang-caret {
  width: 0; height: 0; border-left: 4px solid transparent;
  border-right: 4px solid transparent; border-top: 5px solid currentColor;
  transition: transform .15s ease;
}
.tis-lang-toggle[aria-expanded="true"] .tis-lang-caret { transform: rotate(180deg); }
.tis-lang-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 9999;
  min-width: 130px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--site-border-color, #e3e3e3);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.tis-lang-menu[hidden] { display: none; }
.tis-lang-menu li { margin: 0; }
.tis-lang-menu li a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: #333; text-decoration: none; font-size: 14px;
}
.tis-lang-menu li a:hover { background: #f5f5f5; }
.tis-lang-menu li.is-active a { color: var(--site-accent-color, #FFA832); font-weight: 700; }
/* Footer variant sits on a dark background → light text + border. */
.site-footer .tis-lang-toggle,
.elementor-location-footer .tis-lang-toggle { color: #fff; border-color: rgba(255,255,255,.25); }
/* In the footer the dropdown must open UPWARD (no room below). */
.site-footer .tis-lang-menu,
.elementor-location-footer .tis-lang-menu { top: auto; bottom: calc(100% + 6px); }

/* Footer social: Instagram + Bale only. */
.tis-social { display: flex; gap: 10px; align-items: center; }
.tis-social a {
  width: 38px; height: 38px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; background: rgba(255,255,255,.10);
  color: #fff; transition: background .15s ease;
}
.tis-social a:hover { background: var(--site-accent-color, #FFA832); }
.tis-social i { font-size: 16px; line-height: 1; }
/* Bale icon ships as a black SVG → force white to match the Instagram glyph. */
.tis-social img { width: 20px; height: 20px; object-fit: contain; display: block; filter: brightness(0) invert(1); }

/* Bottom-bar language switcher → END side, opposite the copyright:
 * EN (LTR) = right, FA (RTL) = left. */
.elementor-element-9effd72 { text-align: end !important; }
.elementor-element-9effd72 .tis-lang-switcher { margin-inline-start: auto !important; margin-inline-end: 0 !important; }

/* Trust badges box in the footer (Enamad + Zarinpal). */
.tis-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.tis-trust .tis-enamad img { width: 80px; height: auto; display: block; }
#zarinpal { margin: 0; text-align: center; }
#zarinpal img { width: 80px; height: auto; }

/* Homepage "popular categories" (banner-list #d3036b3): force every
 * category thumbnail to a uniform circle regardless of source aspect
 * ratio (kitify sets a per-image --img-height inline that breaks it). */
.elementor-element-d3036b3 .kitify-bannerlist__image {
  width: 160px; height: 160px; margin-inline: auto; border-radius: 50%; overflow: hidden;
}
.elementor-element-d3036b3 .kitify-bannerlist__image-instance {
  width: 100% !important; height: 100% !important; object-fit: cover !important;
  --img-height: 160px !important; border-radius: 50%;
}
@media (max-width: 767px){
  .elementor-element-d3036b3 .kitify-bannerlist__image { width: 120px; height: 120px; }
  .elementor-element-d3036b3 .kitify-bannerlist__image-instance { --img-height: 120px !important; }
}

/* Blog single/archive: add a gap between the main content and the sidebar
 * (Foundation grid-x cells sit flush by default). Logical padding works
 * for both RTL and LTR. */
@media (min-width: 1024px){
  .site-content.single_post_content .nova-sidebar,
  .site-content.sidebar-status .nova-sidebar { padding-inline-start: 36px; }
}

/* ---- Home hero (Elementor section 830c427) -------------------- *
 * Full-bleed, square corners, one aligned content band.
 * RTL (fa) aligns the stack right, LTR (en) aligns it left.        */

/* 1. No radius on the slide image (was 10px). */
.elementor-element-830c427 .kitify-bannerlist__image,
.elementor-element-830c427 .kitify-bannerlist__image-instance {
  border-radius: 0 !important;
}

/* 2. Full-bleed section safety (matches the _elementor_data reshape). */
.elementor-element-830c427.elementor-top-section,
.elementor-element-830c427.e-con {
  max-width: 100% !important;
  --container-max-width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 3. Overlay content → one vertically-centred stack on the RIGHT side
 *    (the slide photo's subject sits on the left, clear space on the
 *    right) for BOTH languages. fa text reads right-aligned, en left.
 *    !important is required: Elementor's per-widget generated CSS and
 *    kitify's base CSS otherwise win the specificity tie and pin the
 *    box absolute with a stale right/center offset. */
/* Don't fight kitify's absolute model — drive it explicitly. __content
 * already covers the slide (position:absolute; inset:0), so it is the
 * positioning context. Pin the inner box to the right, vertically
 * centred, for BOTH languages. */
.elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__content {
  display: block !important;
}
.elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__content-inner {
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  right: 6% !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: var(--kitify-bannerlist-content-width, 680px);
  max-width: 46%;
}

/* All four text rows share the same edges → one aligned stack.
 * Kills the demo's 35% side margin on title/desc that broke alignment. */
.elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__subtitle,
.elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__title,
.elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__desc,
.elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__btn {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Reading direction inside the band. */
html[dir="rtl"] .elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__content-inner {
  text-align: right !important;
}
html:not([dir="rtl"]) .elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__content-inner {
  text-align: left !important;
}

/* 4. Height cap — keep the hero a clean band, crop the tall slide
 *    photos instead of letting them dictate a huge height. */
.elementor-element-830c427,
.elementor-element-830c427 .e-con-inner,
.elementor-element-830c427 .kitify-bannerlist,
.elementor-element-830c427 .kitify-bannerlist__list_wrapper,
.elementor-element-830c427 .kitify-bannerlist__item,
.elementor-element-830c427 .kitify-bannerlist__inner,
.elementor-element-830c427 .kitify-bannerlist__link,
.elementor-element-830c427 .kitify-bannerlist__image {
  height: 600px !important;
  max-height: 600px !important;
  min-height: 0 !important;
}
.elementor-element-830c427 .kitify-bannerlist__image-instance {
  height: 600px !important;
  object-fit: cover;
}

/* 5. Pagination dots — centred, clear of the text. */
.elementor-element-830c427 .kitify-bannerlist .swiper-pagination,
.elementor-element-830c427 .kitify-carousel__dots {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 1024px) {
  .elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__content-inner {
    max-width: 80%;
  }
  .elementor-element-830c427 .kitify-bannerlist.layout-type-overlay .kitify-bannerlist__content {
    padding-right: 5% !important;
  }
}
@media (max-width: 767px) {
  .elementor-element-830c427,
  .elementor-element-830c427 .e-con-inner,
  .elementor-element-830c427 .kitify-bannerlist,
  .elementor-element-830c427 .kitify-bannerlist__list_wrapper,
  .elementor-element-830c427 .kitify-bannerlist__item,
  .elementor-element-830c427 .kitify-bannerlist__inner,
  .elementor-element-830c427 .kitify-bannerlist__link,
  .elementor-element-830c427 .kitify-bannerlist__image,
  .elementor-element-830c427 .kitify-bannerlist__image-instance {
    height: 460px !important;
    max-height: 460px !important;
  }
}




/* ---- Shop: gutter between product grid and sidebar -------------- *
 * Shop is Elementor/kitify. Verified in-browser: the two-column flex
 * row is `.elementor-element-64c5fe47 > .e-con-inner`
 * (display:flex; flex-direction:row-reverse; gap:0). Its children are
 * the product-grid column and the sidebar column (`29d3d1d0` ->
 * `24a8122e` -> kitify-sidebar `c8f5d2d`). With gap 0 the sidebar
 * (x≈1000) actually OVERLAPS the product list (ends x≈1015) by ~15px.
 * fa gets spacing from `rtl.css` (loaded only for fa); en/LTR has none.
 * The page sets direction via BODY class `.ltr`/`.rtl` (html has no
 * dir attr), so scope on `body.woocommerce-shop.ltr` — fa (body.rtl)
 * is untouched, no double gap. column-gap works on row-reverse and
 * does not wrap (flex widths absorb it). Desktop only. */
@media (min-width: 1025px) {
  body.woocommerce-shop.ltr .elementor-element.elementor-element-64c5fe47 > .e-con-inner {
    column-gap: 48px !important;
  }
}

/****************************************************************/
/****************************************************************/
/****************************************************************/
