/* ==========================================================================
   YARSAHOME PRO — MASTER STOREFRONT STYLESHEET
   Theme release 3.3.1 | Blocks-ready | RTL-first
   RTL Native | Fully Responsive | Accessible | Brand Colors Preserved
   ========================================================================== */

/* ==========================================================================
   1. FONT-FACE & DESIGN TOKENS
   ========================================================================== */
@font-face {
  font-family: 'DoranFaNum';
  src: url('../../assets/font/DoranFaNum-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Brand palette */
  --yarsa-green: #1e6253;
  --yarsa-green-dark: #15473c;
  --yarsa-tan: #c2773d;
  --yarsa-tan-hover: #aa6530;
  --yarsa-white: #ffffff;
  --yarsa-danger: #d32f2f; /* دیباگ: اصلاح رنگ خطا به قرمز استاندارد */

  /* Derived tones */
  --yarsa-soft-green: rgba(30, 98, 83, 0.055);
  --yarsa-soft-tan: rgba(194, 119, 61, 0.10);
  --yarsa-ink: #1e6253;
  --yarsa-muted: rgba(30, 98, 83, 0.69);
  --yarsa-line: rgba(30, 98, 83, 0.16);
  --yarsa-bg-light: rgba(30, 98, 83, 0.025);

  /* Layout */
  --yarsa-radius-sm: 8px;
  --yarsa-radius: 14px;
  --yarsa-radius-lg: 18px;
  --yarsa-shadow-sm: 0 4px 12px rgba(30, 98, 83, 0.06);
  --yarsa-shadow: 0 10px 30px rgba(30, 98, 83, 0.10);
  --yarsa-shadow-hover: 0 14px 34px rgba(30, 98, 83, 0.16);
  --yarsa-container: 1360px;

  /* Motion */
  --yarsa-transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL BASE & RESETS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

.yarsa-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  -webkit-text-size-adjust: 100%;
}

body.yarsa-pro {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--yarsa-ink);
  background-color: var(--yarsa-white);
  font-family: 'DoranFaNum', Tahoma, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  text-align: right;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.yarsa-pro *:not(i):not([class*="fa-"]):not([class*="dashicons"]) {
  font-family: inherit;
}

body.yarsa-pro a {
  color: inherit;
  text-decoration: none;
  transition: color var(--yarsa-transition), background-color var(--yarsa-transition), transform var(--yarsa-transition);
}

body.yarsa-pro img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.yarsa-pro button,
body.yarsa-pro input,
body.yarsa-pro select,
body.yarsa-pro textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  -webkit-tap-highlight-color: transparent;
}

body.yarsa-pro h1,
body.yarsa-pro h2,
body.yarsa-pro h3,
body.yarsa-pro h4,
body.yarsa-pro p {
  margin-top: 0;
}

body.yarsa-pro :focus-visible {
  outline: 3px solid rgba(194, 119, 61, 0.50);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.yarsa-skip-link:focus {
  z-index: 10000;
  top: 12px;
  right: 12px;
  width: auto !important;
  height: auto !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border-radius: var(--yarsa-radius-sm);
  color: var(--yarsa-white);
  background: var(--yarsa-green);
}

/* WP admin bar offset */
body.admin-bar .yh-header { top: 32px; }

@media (max-width: 782px) {
  body.admin-bar .yh-header { top: 46px; }
}

@media (max-width: 600px) {
  body.admin-bar .yh-header { top: 0; }
}

.yarsa-container {
  width: min(100% - 32px, var(--yarsa-container));
  margin-inline: auto;
}

.yarsa-section { padding: 48px 0; }
.yarsa-section--soft { background: var(--yarsa-soft-green); }

.yarsa-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.yarsa-section-heading__copy span {
  display: block;
  margin-bottom: 4px;
  color: var(--yarsa-tan);
  font-size: 11px;
  font-weight: 800;
}

.yarsa-section-heading h2 {
  margin: 0;
  color: var(--yarsa-green);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 900;
  line-height: 1.4;
}

/* Homepage FAQ accordion */
.yarsa-home-faq {
  border-top: 1px solid var(--yarsa-line);
  background: var(--yarsa-white);
}

.yarsa-home-faq__heading { margin-bottom: 20px; }

.yarsa-home-faq__list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}

.yarsa-home-faq__item {
  overflow: hidden;
  border: 1px solid var(--yarsa-line);
  border-radius: 14px;
  background: var(--yarsa-white);
  transition: border-color var(--yarsa-transition), box-shadow var(--yarsa-transition);
}

.yarsa-home-faq__item[open] {
  border-color: color-mix(in srgb, var(--yarsa-tan) 55%, var(--yarsa-line));
  box-shadow: 0 10px 28px rgba(26, 84, 71, 0.08);
}

.yarsa-home-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  color: var(--yarsa-green);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.8;
  cursor: pointer;
  list-style: none;
}

.yarsa-home-faq__question::-webkit-details-marker { display: none; }

.yarsa-home-faq__question:focus-visible {
  outline: 2px solid var(--yarsa-tan);
  outline-offset: -3px;
  border-radius: 12px;
}

.yarsa-home-faq__question i {
  flex: 0 0 auto;
  color: var(--yarsa-tan);
  font-size: 13px;
  transition: transform var(--yarsa-transition);
}

.yarsa-home-faq__item[open] .yarsa-home-faq__question i { transform: rotate(45deg); }

.yarsa-home-faq__answer {
  padding: 0 20px 18px;
  color: var(--yarsa-muted);
  font-size: 13px;
  line-height: 2;
}

.yarsa-home-faq__answer > :first-child { margin-top: 0; }
.yarsa-home-faq__answer > :last-child { margin-bottom: 0; }

/* Page hero / breadcrumbs */
.yarsa-page-hero {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--yarsa-line);
  background: var(--yarsa-soft-green);
}

.yarsa-page-hero h1,
.yarsa-archive-title {
  margin: 8px 0 0;
  color: var(--yarsa-green);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.45;
}

.yarsa-archive-description {
  max-width: 720px;
  margin-top: 8px;
  color: var(--yarsa-muted);
  font-size: 12px;
  line-height: 2;
}

.yarsa-breadcrumb,
.woocommerce-breadcrumb,
.rank-math-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--yarsa-muted);
  font-size: 11px;
  font-weight: 600;
}

.yarsa-breadcrumb a,
.woocommerce-breadcrumb a,
.rank-math-breadcrumb a {
  color: var(--yarsa-green);
}

.yarsa-breadcrumb__separator,
.yarsa-breadcrumb .separator {
  color: var(--yarsa-tan);
  font-size: 14px;
}

.yarsa-empty-state,
.yarsa-no-products-wrapper {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 32px 20px;
  border: 1px dashed var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  color: var(--yarsa-muted);
  text-align: center;
  background: var(--yarsa-white);
}

.yarsa-empty-state i,
.yarsa-no-products-wrapper > i {
  font-size: 36px;
  color: var(--yarsa-tan);
  margin-bottom: 6px;
}

.yarsa-empty-state h2,
.yarsa-no-products-wrapper h2 {
  margin: 0;
  color: var(--yarsa-green);
  font-size: 18px;
  font-weight: 900;
}

/* ==========================================================================
   3. UNIFIED BUTTON SYSTEM
   ========================================================================== */
body.yarsa-pro .yarsa-icon-button {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  padding: 0;
  margin: 0;
  font-size: 0;
  line-height: 1;
  text-indent: 0;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

body.yarsa-pro .yarsa-close-icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

body.yarsa-pro .yarsa-icon-button:focus-visible {
  outline: 2px solid var(--yarsa-tan);
  outline-offset: 3px;
}

.yarsa-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce #place_order,
a.checkout-button.button,
a.wc-proceed-to-checkout-button,
.wc-proceed-to-checkout a.button,
.wc-block-cart__submit-button,
.wc-block-cart__submit-container .wc-block-components-button,
.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  border: 1px solid var(--yarsa-tan) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  background: var(--yarsa-tan) !important;
  background-image: none !important;
  color: var(--yarsa-white) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(194, 119, 61, 0.18);
  transition: all var(--yarsa-transition);
  opacity: 1 !important;
}

.yarsa-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce #place_order:hover,
a.checkout-button.button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  border-color: var(--yarsa-green) !important;
  background: var(--yarsa-green) !important;
  background-image: none !important;
  color: var(--yarsa-white) !important;
  box-shadow: 0 6px 16px rgba(30, 98, 83, 0.25);
  transform: translateY(-2px);
}

.yarsa-button:active { transform: translateY(0) scale(0.98); }

.yarsa-button--outline,
.yarsa-quick-buy {
  color: var(--yarsa-green) !important;
  background: var(--yarsa-white) !important;
  border: 1px solid var(--yarsa-green) !important;
  box-shadow: none !important;
}

.yarsa-button--outline:hover,
.yarsa-quick-buy:hover {
  color: var(--yarsa-white) !important;
  background: var(--yarsa-green) !important;
}

.yarsa-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--yarsa-tan);
  color: var(--yarsa-tan);
  font-size: 12px;
  font-weight: 800;
  transition: gap var(--yarsa-transition), color var(--yarsa-transition);
  white-space: nowrap;
}

.yarsa-text-link:hover {
  gap: 10px;
  color: var(--yarsa-green);
  border-bottom-color: var(--yarsa-green);
}

.wc-block-components-button.is-link {
  background: transparent !important;
  color: var(--yarsa-tan) !important;
  box-shadow: none !important;
  min-height: auto !important;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ==========================================================================
   4. HEADER & MEGA MENU
   ========================================================================== */
.yh-header-shell {
  position: relative;
  z-index: 1000;
  color: var(--yarsa-green);
  font-size: 14px;
}

.yh-header-container {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: clamp(14px, 2vw, 28px);
}

.yh-promo-bar {
  background: var(--yarsa-green);
  color: var(--yarsa-white);
}

.yh-promo-content {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--yarsa-white);
  font-size: 12px;
  font-weight: 700;
}

.yh-header {
  position: sticky;
  top: 0;
  z-index: 990;
  width: 100%;
  background: var(--yarsa-white);
  box-shadow: 0 1px 0 rgba(30, 98, 83, 0.10);
}

.yh-header-main-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.yh-site-logo img {
  max-width: 175px;
  max-height: 42px;
  object-fit: contain;
}

.yh-search-wrap {
  flex: 1 1 420px;
  max-width: 580px;
}

.yh-search-form {
  min-height: 44px;
  display: flex;
  border: 1px solid rgba(30, 98, 83, 0.22);
  border-radius: var(--yarsa-radius-sm);
  background: var(--yarsa-white);
  overflow: hidden;
  transition: border-color var(--yarsa-transition), box-shadow var(--yarsa-transition);
}

.yh-search-form:focus-within {
  border-color: var(--yarsa-tan);
  box-shadow: 0 0 0 3px rgba(194, 119, 61, 0.15);
}

.yh-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 0 14px;
  font-size: 15px;
  color: var(--yarsa-green);
  background: transparent;
}

.yh-search-submit {
  width: 44px;
  min-width: 44px;
  border: 0;
  color: var(--yarsa-white);
  background: var(--yarsa-tan);
  cursor: pointer;
  transition: background var(--yarsa-transition);
}

.yh-search-submit:hover { background: var(--yarsa-green); }

.yh-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.yh-action-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 98, 83, 0.16);
  border-radius: var(--yarsa-radius-sm);
  color: var(--yarsa-green);
  background: var(--yarsa-white);
  font-size: 16px;
  transition: all var(--yarsa-transition);
}

.yh-action-link:hover {
  border-color: var(--yarsa-tan);
  color: var(--yarsa-tan);
  background: var(--yarsa-soft-tan);
}

.yh-cart-count {
  position: absolute;
  top: -6px;
  left: -5px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 3px;
  border: 2px solid var(--yarsa-white);
  border-radius: 100px;
  color: var(--yarsa-white);
  background: var(--yarsa-tan);
  font-size: 9.5px;
  font-weight: 800;
}

.yh-navigation-bar {
  min-height: 46px;
  border-top: 1px solid var(--yarsa-line);
  border-bottom: 1px solid rgba(30, 98, 83, 0.08);
  background: var(--yarsa-white);
}

.yh-navigation-inner {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.yh-navigation-divider {
  width: 1px;
  height: 20px;
  align-self: center;
  background: rgba(30, 98, 83, 0.16);
}

.yh-category-trigger {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  color: var(--yarsa-green);
  background: transparent;
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}

.yh-main-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yh-main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--yarsa-green);
  font-size: 12px;
  font-weight: 800;
}

.yh-main-nav a:hover { color: var(--yarsa-tan); }

.yh-mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  right: 0;
  width: min(960px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--yarsa-line);
  border-radius: 0 0 var(--yarsa-radius) var(--yarsa-radius);
  background: var(--yarsa-white);
  box-shadow: var(--yarsa-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--yarsa-transition);
  z-index: 1000;
}

.yh-category-menu.is-open .yh-mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (min-width: 900px) {
  .yh-mega-menu {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    min-height: 340px;
    max-height: min(65vh, 520px);
  }
  .yh-mega-tabs {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid var(--yarsa-line);
    background: var(--yarsa-soft-green);
  }
  .yh-mega-tab {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid rgba(30, 98, 83, 0.08);
    color: var(--yarsa-green);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    cursor: pointer;
  }
  .yh-mega-tab.is-active {
    color: var(--yarsa-white);
    background: var(--yarsa-green);
  }
  .yh-mega-panels {
    padding: 20px 24px;
    overflow-y: auto;
  }
  .yh-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 24px;
  }
  .yh-mega-group-title {
    display: block;
    margin-bottom: 6px;
    padding-right: 8px;
    border-right: 3px solid var(--yarsa-tan);
    color: var(--yarsa-green);
    font-size: 12px;
    font-weight: 900;
  }
  .yh-mega-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .yh-mega-group li a {
    display: block;
    padding: 3px 0;
    color: var(--yarsa-muted);
    font-size: 11.5px;
  }
  .yh-mega-group li a:hover { color: var(--yarsa-tan); }
}

/* ==========================================================================
   5. HOMEPAGE (APP-LIKE)
   ========================================================================== */
.yarsa-promo-strip {
  background: var(--yarsa-tan);
  color: var(--yarsa-white);
  padding: 10px 0;
  overflow: hidden;
}

.yarsa-promo-strip__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--yarsa-white);
  flex-wrap: wrap;
  text-align: center;
}

.yarsa-promo-strip__content i {
  color: var(--yarsa-tan);
  font-size: 14px;
}

.yarsa-promo-strip__code {
  background: var(--yarsa-white);
  color: var(--yarsa-tan);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 900;
  border: 1px dashed rgba(30, 98, 83, 0.25);
}

.yarsa-hero-banner { padding: 20px 0 10px; }

.yarsa-hero-banner__slider {
  position: relative;
  border-radius: var(--yarsa-radius-lg);
  overflow: hidden;
  box-shadow: var(--yarsa-shadow);
}

.yarsa-hero-banner__slide {
  background: linear-gradient(135deg, var(--yarsa-green) 0%, var(--yarsa-green-dark) 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 50px;
  min-height: 260px;
  color: var(--yarsa-white);
  position: relative;
  overflow: hidden;
}

.yarsa-hero-banner__slide::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(194, 119, 61, 0.15);
  border-radius: 50%;
}

.yarsa-hero-banner__content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.yarsa-hero-banner__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(194, 119, 61, 0.3);
  border: 1px solid var(--yarsa-tan);
  border-radius: 100px;
  color: var(--yarsa-white);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.yarsa-hero-banner__title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  color: var(--yarsa-white);
  margin: 0 0 12px;
  line-height: 1.4;
}

.yarsa-hero-banner__desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin: 0 0 20px;
  max-width: 380px;
}

.yarsa-hero-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--yarsa-tan);
  color: var(--yarsa-white);
  border-radius: var(--yarsa-radius-sm);
  font-weight: 800;
  font-size: 13px;
  transition: all var(--yarsa-transition);
}

.yarsa-hero-banner__cta:hover {
  background: var(--yarsa-tan-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 119, 61, 0.35);
}

.yarsa-hero-banner__decor {
  position: relative;
  z-index: 2;
  font-size: 130px;
  color: rgba(255, 255, 255, 0.12);
}

.yarsa-hero-banner__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.yarsa-hero-banner__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(30, 98, 83, 0.25);
  transition: all 0.3s ease;
}

.yarsa-hero-banner__dots span.is-active {
  background: var(--yarsa-tan);
  width: 22px;
  border-radius: 4px;
}

.yarsa-twin-banners { padding: 10px 0; }

.yarsa-twin-banners__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.yarsa-twin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-radius: var(--yarsa-radius);
  color: var(--yarsa-white);
  min-height: 130px;
  overflow: hidden;
  position: relative;
  transition: transform var(--yarsa-transition);
}

.yarsa-twin-banner:hover { transform: translateY(-3px); }
.yarsa-twin-banner--green { background: var(--yarsa-green); }
.yarsa-twin-banner--tan { background: var(--yarsa-tan); }

.yarsa-twin-banner__badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.yarsa-twin-banner__content strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 4px;
}

.yarsa-twin-banner__content small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
}

.yarsa-twin-banner__icon {
  font-size: 44px;
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.yarsa-budget-filter { padding: 20px 0; }

.yarsa-budget-filter__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.yarsa-budget-card {
  background: var(--yarsa-green-dark);
  color: var(--yarsa-white);
  padding: 20px 15px;
  border-radius: var(--yarsa-radius);
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 140px;
  justify-content: center;
}

.yarsa-budget-card:hover {
  background: var(--yarsa-green);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(30, 98, 83, 0.35);
}

.yarsa-budget-card__prefix,
.yarsa-budget-card__suffix {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
}

.yarsa-budget-card__amount {
  color: var(--yarsa-white);
  font-size: 22px;
  font-weight: 900;
  margin: 4px 0;
  line-height: 1.2;
}

.yarsa-budget-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--yarsa-tan);
  font-size: 11px;
  font-weight: 800;
  margin-top: 8px;
  padding: 4px 10px;
  background: rgba(194, 119, 61, 0.15);
  border-radius: 100px;
  border: 1px solid rgba(194, 119, 61, 0.4);
}

.yarsa-discount-box { padding: 30px 0; }

.yarsa-discount-box__wrapper {
  background: var(--yarsa-tan);
  border-radius: var(--yarsa-radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.yarsa-discount-box__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.yarsa-discount-box__title {
  color: var(--yarsa-white);
  font-size: 22px;
  font-weight: 900;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.yarsa-discount-box__title i {
  background: var(--yarsa-white);
  color: var(--yarsa-tan);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
}

.yarsa-discount-box__view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--yarsa-white);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  transition: background var(--yarsa-transition);
}

.yarsa-discount-box__view-all:hover {
  background: rgba(255, 255, 255, 0.3);
}

.yarsa-discount-box .yarsa-product-grid { gap: 14px; }

.yarsa-discount-box .yarsa-product-card,
.yarsa-discount-box .woocommerce ul.products li.product {
  background: var(--yarsa-white);
  border-color: transparent;
  border-radius: var(--yarsa-radius);
}

.yarsa-discount-box .yarsa-product-card__badge {
  background: var(--yarsa-tan-hover);
  color: var(--yarsa-white);
}

.yarsa-discount-box .yarsa-product-card__bottom {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-top: 1px solid var(--yarsa-line);
}

.yarsa-discount-box .yarsa-product-card__price-box { text-align: center; }
.yarsa-discount-box .yarsa-product-card__price-box .price { align-items: center; }
.yarsa-discount-box .yarsa-product-card__action-box { width: 100%; }

.yarsa-discount-box .yarsa-product-card__action-box .button {
  width: 100% !important;
}

.yarsa-categories-showcase { padding: 30px 0; }

.yarsa-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.yarsa-cats-grid__item {
  background: var(--yarsa-white);
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  padding: 20px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--yarsa-shadow-sm);
}

.yarsa-cats-grid__item:hover {
  border-color: var(--yarsa-tan);
  transform: translateY(-4px);
  box-shadow: var(--yarsa-shadow);
}

.yarsa-cats-grid__image {
  width: 100%;
  height: 140px;
  display: grid;
  place-items: center;
  background: var(--yarsa-soft-green);
  border-radius: var(--yarsa-radius-sm);
  padding: 12px;
}

.yarsa-cats-grid__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.yarsa-cats-grid__image i {
  font-size: 40px;
  color: var(--yarsa-green);
  opacity: 0.4;
}

.yarsa-cats-grid__title {
  color: var(--yarsa-green);
  font-size: 15px;
  font-weight: 900;
  margin: 0;
}

.yarsa-cats-grid__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--yarsa-soft-tan);
  color: var(--yarsa-tan);
  font-size: 11px;
  font-weight: 800;
  transition: all var(--yarsa-transition);
}

.yarsa-cats-grid__item:hover .yarsa-cats-grid__cta {
  background: var(--yarsa-tan);
  color: var(--yarsa-white);
}

/* Legacy homepage blocks (compat) */
.yarsa-home-hero {
  padding: 30px 0;
  background: var(--yarsa-soft-green);
}

.yarsa-home-hero__grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 20px;
}

.yarsa-hero-card {
  background: var(--yarsa-green);
  color: var(--yarsa-white);
  border-radius: var(--yarsa-radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.yarsa-hero-card__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--yarsa-white);
  font-size: 11px;
  font-weight: 700;
}

.yarsa-hero-card h1 {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 900;
  color: var(--yarsa-white);
  margin: 10px 0 15px;
  line-height: 1.4;
}

.yarsa-hero-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  margin-bottom: 20px;
}

.yarsa-hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.yarsa-hero-side-card {
  background: var(--yarsa-tan);
  color: var(--yarsa-white);
  border-radius: var(--yarsa-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
}

.yarsa-hero-side-card--green { background: var(--yarsa-green-dark); }

.yarsa-hero-side-card em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-style: normal;
  display: block;
  margin-bottom: 4px;
}

.yarsa-hero-side-card strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.5;
}

.yarsa-home-price-filter {
  background: var(--yarsa-white);
  padding: 24px;
  border-radius: var(--yarsa-radius-lg);
  box-shadow: var(--yarsa-shadow);
  margin-top: 30px;
}

.yarsa-home-price-filter__heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.yarsa-home-price-filter__heading-icon {
  width: 44px;
  height: 44px;
  background: var(--yarsa-tan);
  color: var(--yarsa-white);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.yarsa-home-price-filter__heading strong {
  display: block;
  font-size: 15px;
  color: var(--yarsa-green);
  font-weight: 900;
}

.yarsa-home-price-filter__heading small {
  display: block;
  font-size: 11px;
  color: var(--yarsa-muted);
  margin-top: 2px;
}

.yarsa-price-ranges {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.yarsa-price-range {
  background: var(--yarsa-green);
  color: var(--yarsa-white);
  padding: 20px 10px;
  border-radius: var(--yarsa-radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform var(--yarsa-transition), background var(--yarsa-transition);
}

.yarsa-price-range__prefix,
.yarsa-price-range__suffix {
  font-size: 11px;
  opacity: 0.85;
}

.yarsa-price-range strong {
  font-size: 18px;
  margin: 4px 0;
  font-weight: 900;
}

.yarsa-price-range__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  width: 100%;
  justify-content: center;
}

.yarsa-price-range:hover {
  background: var(--yarsa-tan);
  transform: translateY(-4px);
}

.yarsa-quick-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.yarsa-quick-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  background: var(--yarsa-white);
  transition: background var(--yarsa-transition), transform var(--yarsa-transition);
}

.yarsa-quick-category:hover {
  background: var(--yarsa-soft-green);
  transform: translateY(-2px);
}

.yarsa-quick-category__image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--yarsa-soft-green);
  border-radius: 6px;
  padding: 6px;
  display: grid;
  place-items: center;
}

.yarsa-quick-category strong {
  display: block;
  color: var(--yarsa-green);
  font-size: 12px;
  font-weight: 800;
}

.yarsa-quick-category small {
  display: block;
  color: var(--yarsa-tan);
  font-size: 10px;
  margin-top: 2px;
}

.yarsa-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.yarsa-category-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--yarsa-radius-lg);
  background: var(--yarsa-green);
  color: var(--yarsa-white);
  min-height: 180px;
  overflow: hidden;
}

.yarsa-category-banner--tan { background: var(--yarsa-tan); }

.yarsa-category-banner strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  margin: 6px 0 10px;
}

/* ==========================================================================
   6. PRODUCT CARDS & GRID
   ========================================================================== */
.yarsa-product-grid,
.woocommerce ul.products,
.yarsa-archive-product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  grid-auto-flow: row !important;
}

/* WooCommerce's clearfix pseudo-elements become invisible grid items and
   leave empty product slots unless they are explicitly removed. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
.yarsa-archive-product-grid::before,
.yarsa-archive-product-grid::after {
  display: none !important;
  content: none !important;
}

.woocommerce-page ul.products li.product {
  clear: none !important;
}

.yarsa-product-card,
.woocommerce ul.products li.product {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 400px;
  margin: 0 !important;
  clear: none !important;
  padding: 14px !important;
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius) !important;
  background: var(--yarsa-white) !important;
  box-shadow: var(--yarsa-shadow-sm);
  transition: transform var(--yarsa-transition), box-shadow var(--yarsa-transition), border-color var(--yarsa-transition);
}

.yarsa-product-card:hover,
.woocommerce ul.products li.product:hover {
  border-color: rgba(194, 119, 61, 0.45) !important;
  box-shadow: var(--yarsa-shadow);
  transform: translateY(-4px);
}

.yarsa-product-card__image-wrapper {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: calc(var(--yarsa-radius) - 4px);
  background: var(--yarsa-soft-green);
}

.yarsa-product-card__image,
.woocommerce ul.products li.product > a:first-child > img,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link > img {
  display: grid !important;
  width: 100% !important;
  height: 200px !important;
  place-items: center;
  padding: 10px;
  object-fit: contain;
}

.yarsa-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.yarsa-product-card__badges {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.yarsa-product-card__badge,
.woocommerce span.onsale {
  display: inline-flex !important;
  padding: 4px 9px !important;
  border: 0 !important;
  border-radius: 100px !important;
  color: var(--yarsa-white) !important;
  background: var(--yarsa-tan) !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  min-height: auto !important;
  margin: 0 !important;
}

.yarsa-product-card__badge--out { background: var(--yarsa-green-dark) !important; }

/* WC default onsale - reposition */
.woocommerce ul.products li.product span.onsale {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  z-index: 4 !important;
}

.yarsa-product-card__quick-actions,
.yarsa-product-card__compare {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  margin: 0;
}

/* Compare button (card variant) */
.yarsa-compare-button:not(.yarsa-compare-button--single) {
  display: flex !important;
  width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--yarsa-line) !important;
  border-radius: 50% !important;
  color: var(--yarsa-green) !important;
  background: var(--yarsa-white) !important;
  box-shadow: 0 4px 10px rgba(30, 98, 83, 0.10);
  cursor: pointer;
  font-size: 0 !important;
  text-indent: -9999px;
  overflow: hidden;
  transition: all var(--yarsa-transition);
}

.yarsa-compare-button:not(.yarsa-compare-button--single) i {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  text-indent: 0 !important;
  display: inline-block !important;
  color: var(--yarsa-green) !important;
  transition: transform 0.3s ease, color 0.3s ease;
}

.yarsa-compare-button:not(.yarsa-compare-button--single):hover {
  background: var(--yarsa-tan) !important;
  border-color: var(--yarsa-tan) !important;
  transform: scale(1.1);
}

.yarsa-compare-button:not(.yarsa-compare-button--single):hover i {
  color: var(--yarsa-white) !important;
  transform: rotate(180deg);
}

.yarsa-compare-button.is-selected:not(.yarsa-compare-button--single),
.yarsa-compare-button.is-selected:not(.yarsa-compare-button--single) i {
  background: var(--yarsa-tan) !important;
  border-color: var(--yarsa-tan) !important;
  color: var(--yarsa-white) !important;
}

/* Compare button (single product variant) */
.yarsa-compare-button--single {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  color: var(--yarsa-green) !important;
  background: var(--yarsa-white) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: all var(--yarsa-transition);
  text-indent: 0 !important;
  overflow: visible !important;
}

.yarsa-compare-button--single:hover {
  border-color: var(--yarsa-tan) !important;
  color: var(--yarsa-white) !important;
  background: var(--yarsa-tan) !important;
}

.yarsa-product-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding-top: 12px;
}

.yarsa-product-card__category,
.woocommerce ul.products li.product .posted_in {
  min-height: 18px;
  color: var(--yarsa-tan);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yarsa-product-card__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 44px;
  margin: 0 0 8px !important;
  color: var(--yarsa-green) !important;
  font-size: 13px !important;
  font-weight: 800;
  line-height: 1.75;
  padding: 0 !important;
}

.yarsa-product-card__title a { color: var(--yarsa-green); }
.yarsa-product-card__title a:hover { color: var(--yarsa-tan); }

.yarsa-product-card__rating,
.woocommerce .star-rating {
  margin: 0 0 8px !important;
  color: var(--yarsa-tan) !important;
  font-size: 11px !important;
}

/* WooCommerce's legacy `sssss` rating needs its own icon font. Rendering
   real star characters keeps ratings correct even when a plugin omits it. */
body.yarsa-pro .star-rating {
  position: relative;
  width: 6.4em;
  height: 1.25em;
  overflow: hidden;
  direction: ltr;
  line-height: 1.25;
  font-family: Arial, sans-serif !important;
  letter-spacing: 0.16em;
}

body.yarsa-pro .star-rating::before,
body.yarsa-pro .star-rating span::before {
  content: '★★★★★' !important;
  position: absolute;
  top: 0;
  left: 0;
  font-family: Arial, sans-serif !important;
  font-size: 1em;
  line-height: 1.25;
  letter-spacing: 0.16em;
}

body.yarsa-pro .star-rating::before {
  color: #d7d2c9 !important;
}

body.yarsa-pro .star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  padding-top: 1.25em;
  color: var(--yarsa-tan) !important;
}

body.yarsa-pro .star-rating span::before {
  color: var(--yarsa-tan) !important;
}

body.yarsa-pro .comment-form-rating p.stars a::before {
  font-family: WooCommerce !important;
}

.yarsa-product-card__bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--yarsa-line);
}

.yarsa-product-card__price-box { flex: 1; min-width: 0; }

.yarsa-product-card .price,
.woocommerce ul.products li.product .price,
.yarsa-product-card__price-box .price {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  color: var(--yarsa-green) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product .price del,
.yarsa-product-card .price del {
  color: var(--yarsa-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  opacity: 0.7;
  order: 2;
}

.woocommerce ul.products li.product .price ins,
.yarsa-product-card .price ins {
  color: var(--yarsa-tan) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  background: none !important;
  order: 1;
}

.yarsa-product-card__action-box { flex-shrink: 0; }

.yarsa-product-card__action-box .button,
.yarsa-product-card .button,
.woocommerce ul.products li.product .button,
.yarsa-product-card__view-btn {
  min-height: 44px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  width: auto !important;
}

/* ==========================================================================
   7. CATEGORIES SLIDER & BRANDS
   ========================================================================== */
.yarsa-category-display__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 5px 20px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--yarsa-tan) transparent;
}

.yarsa-category-display__track::-webkit-scrollbar { height: 6px; }
.yarsa-category-display__track::-webkit-scrollbar-thumb {
  background-color: var(--yarsa-tan);
  border-radius: 10px;
}

.yarsa-category-display__item {
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-white);
  box-shadow: var(--yarsa-shadow-sm);
  transition: transform var(--yarsa-transition), border-color var(--yarsa-transition);
}

.yarsa-category-display__item:hover {
  border-color: var(--yarsa-tan);
  transform: translateY(-4px);
}

.yarsa-category-display__image {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  background: var(--yarsa-soft-green);
  border-radius: 50%;
  margin-bottom: 12px;
  padding: 15px;
}

.yarsa-category-display__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.yarsa-category-display__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--yarsa-green);
  opacity: 0.35;
  font-size: 28px;
}

.yarsa-category-display__name {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--yarsa-green);
}

.yarsa-category-display__count {
  display: block;
  font-size: 10px;
  color: var(--yarsa-muted);
  margin-top: 4px;
}

.yarsa-slider-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.yarsa-slider-control {
  width: 44px;
  height: 44px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  background: var(--yarsa-white);
  color: var(--yarsa-green);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--yarsa-transition);
}

.yarsa-slider-control:hover {
  background: var(--yarsa-tan);
  border-color: var(--yarsa-tan);
  color: var(--yarsa-white);
}

.yarsa-brand-showcase__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.yarsa-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--yarsa-white);
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  text-align: center;
  transition: transform var(--yarsa-transition), box-shadow var(--yarsa-transition);
  gap: 8px;
}

.yarsa-brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yarsa-shadow);
  border-color: var(--yarsa-tan);
}

.yarsa-brand-card__logo {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
}

.yarsa-brand-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.yarsa-brand-card__initial {
  width: 50px;
  height: 50px;
  background: var(--yarsa-green);
  color: var(--yarsa-white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}

.yarsa-brand-card strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--yarsa-green);
}

/* ==========================================================================
   8. SHOP ARCHIVE + AJAX FILTERS
   ========================================================================== */
.yarsa-shop__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.woocommerce .woocommerce-result-count {
  margin: 0;
  color: var(--yarsa-muted);
  font-size: 13px;
}

.woocommerce .woocommerce-ordering { margin: 0; }

.woocommerce .woocommerce-ordering select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  color: var(--yarsa-green);
  background: var(--yarsa-white);
  font-size: 12px;
}

.yarsa-archive-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr auto;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-soft-green);
}

.yarsa-archive-filters__field label,
.yarsa-archive-filters__label {
  display: block;
  margin-bottom: 4px;
  color: var(--yarsa-green);
  font-size: 13px;
  font-weight: 800;
}

.yarsa-archive-filters__field select,
.yarsa-archive-filters__field input {
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  color: var(--yarsa-green);
  background: var(--yarsa-white);
  font-size: 13px;
  outline: none;
}

.yarsa-archive-filters__field select:focus,
.yarsa-archive-filters__field input:focus {
  border-color: var(--yarsa-tan);
}

.yarsa-archive-filters__field--price > span:not(.yarsa-archive-filters__label) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.yarsa-archive-filters__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yarsa-archive-result-status {
  min-height: 18px;
  margin: -10px 0 14px;
  color: var(--yarsa-muted);
  font-size: 12.5px;
}

/* ==========================================================================
   9. STICKY COMPARE BAR
   ========================================================================== */
.yarsa-compare-bar {
  position: fixed;
  z-index: 1002;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 12px 18px;
  border: 1px solid rgba(194, 119, 61, 0.45);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-white);
  box-shadow: 0 12px 36px rgba(30, 98, 83, 0.20);
}

.yarsa-compare-bar[hidden] { display: none !important; }

.yarsa-compare-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--yarsa-container);
  margin: auto;
}

.yarsa-compare-bar__heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yarsa-green);
  font-size: 12px;
  font-weight: 900;
}

.yarsa-compare-bar__heading i {
  color: var(--yarsa-tan);
  font-size: 18px;
}

.yarsa-compare-bar__products {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 10px;
}

.yarsa-compare-bar__product {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  background: var(--yarsa-soft-green);
  min-width: 0;
  max-width: 220px;
}

.yarsa-compare-bar__product img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}

.yarsa-compare-bar__product > span:not(.yarsa-compare-bar__placeholder) {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yarsa-compare-bar__placeholder {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--yarsa-muted);
  background: var(--yarsa-white);
}

.yarsa-compare-bar__remove,
.yarsa-compare-bar__clear {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  color: var(--yarsa-tan);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.yarsa-compare-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.yarsa-compare-active { padding-bottom: 100px; }

/* Tabs + related */
.yarsa-single-product__after-summary {
  background: var(--yarsa-white);
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-lg);
  padding: clamp(16px, 2.5vw, 28px);
  margin-bottom: 28px;
  box-shadow: var(--yarsa-shadow-sm);
}

.woocommerce-tabs {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.woocommerce-tabs ul.tabs {
  display: flex !important;
  gap: 4px !important;
  margin: 0 0 22px !important;
  padding: 6px !important;
  list-style: none !important;
  background: var(--yarsa-soft-green) !important;
  border-radius: var(--yarsa-radius) !important;
  border: 0 !important;
  overflow-x: auto;
}

.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs::after,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  border-radius: var(--yarsa-radius-sm) !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 10px 18px !important;
  color: var(--yarsa-green) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  border-radius: var(--yarsa-radius-sm);
  white-space: nowrap;
  text-shadow: none !important;
}

.woocommerce-tabs ul.tabs li.active { background: var(--yarsa-green) !important; }
.woocommerce-tabs ul.tabs li.active a { color: var(--yarsa-white) !important; }

.woocommerce-Tabs-panel {
  color: var(--yarsa-ink);
  font-size: 13px;
  line-height: 2.15;
}

.woocommerce-Tabs-panel h2:first-child {
  color: var(--yarsa-green);
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px dashed var(--yarsa-line);
}

/* Reviews */
#reviews .comment-form {
  display: grid;
  gap: 12px;
}

#reviews .comment-form textarea,
#reviews .comment-form input[type="text"],
#reviews .comment-form input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  color: var(--yarsa-green);
  background: var(--yarsa-white);
}

#reviews .comment-form textarea { min-height: 120px; }

#review_form_wrapper {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-soft-green);
}

#reviews .star-rating {
  font-size: 14px !important;
}

/* Related */
.related.products,
.upsells.products {
  margin-top: 36px !important;
  padding-top: 28px !important;
  border-top: 1px dashed var(--yarsa-line);
}

.related.products > h2,
.upsells.products > h2 {
  color: var(--yarsa-green);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related.products > h2::before,
.upsells.products > h2::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--yarsa-tan);
  border-radius: 2px;
}

/* ==========================================================================
   11. WOOCOMMERCE BLOCKS — CART & CHECKOUT
   ========================================================================== */
.wc-block-cart,
.wp-block-woocommerce-cart,
.wc-block-checkout,
.wp-block-woocommerce-checkout {
  color: var(--yarsa-ink);
  font-family: inherit;
}

/* Cart items list */
.wc-block-cart-items,
.wc-block-cart .wc-block-cart-items {
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius) !important;
  overflow: hidden;
  background: var(--yarsa-white);
}

.wc-block-cart-items__row {
  border-bottom: 1px solid var(--yarsa-line) !important;
  padding: 14px 12px !important;
}

.wc-block-cart-items__header {
  background: var(--yarsa-soft-green) !important;
  color: var(--yarsa-green) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
}

.wc-block-cart-item__image img {
  border-radius: var(--yarsa-radius-sm);
  object-fit: contain;
  background: var(--yarsa-soft-green);
}

.wc-block-cart-item__product-name,
.wc-block-components-product-name {
  color: var(--yarsa-green) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.7 !important;
  text-decoration: none !important;
}

/* Truncate long descriptions in cart lines */
.wc-block-cart-item__product .wc-block-components-product-metadata,
.wc-block-components-product-details,
.wc-block-components-product-metadata__description {
  color: var(--yarsa-muted) !important;
  font-size: 11px !important;
  line-height: 1.8 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 5.4em;
}

.wc-block-cart-item__prices,
.wc-block-components-product-price,
.wc-block-components-product-price__value {
  color: var(--yarsa-green) !important;
  font-weight: 900 !important;
  font-size: 13px !important;
}

.wc-block-components-product-price__regular {
  color: var(--yarsa-muted) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}

.wc-block-components-sale-badge,
.wc-block-components-product-badge {
  background: var(--yarsa-soft-tan) !important;
  color: var(--yarsa-green) !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
}

/* Quantity selector */
.wc-block-components-quantity-selector {
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  overflow: hidden;
  background: var(--yarsa-white) !important;
}

.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
  color: var(--yarsa-green) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border: 0 !important;
  background: transparent !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  color: var(--yarsa-green) !important;
  background: var(--yarsa-soft-green) !important;
  border: 0 !important;
  font-weight: 900 !important;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover {
  background: var(--yarsa-tan) !important;
  color: var(--yarsa-white) !important;
}

/* Remove / save-for-later */
.wc-block-cart-item__remove-link,
.wc-block-cart-item__save-for-later-link,
.wc-block-components-product-metadata a {
  color: var(--yarsa-tan) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Sidebar totals */
.wc-block-cart__sidebar,
.wc-block-components-sidebar,
.wp-block-woocommerce-cart-order-summary-block,
.wc-block-components-totals-wrapper {
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius) !important;
  background: var(--yarsa-white) !important;
  padding: 16px !important;
}

.wc-block-components-totals-item__label {
  color: var(--yarsa-green) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.wc-block-components-totals-item__value {
  color: var(--yarsa-green) !important;
  font-weight: 900 !important;
}

.wc-block-components-totals-footer-item {
  border-top: 1px dashed var(--yarsa-line) !important;
  padding-top: 12px !important;
  margin-top: 8px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-size: 18px !important;
  color: var(--yarsa-tan) !important;
}

/* Coupon accordion */
.wc-block-components-panel,
.wc-block-components-totals-coupon {
  border-color: var(--yarsa-line) !important;
  color: var(--yarsa-green) !important;
}

.wc-block-components-panel__button {
  color: var(--yarsa-green) !important;
  font-weight: 800 !important;
  font-size: 12px !important;
}

/* Block form inputs */
.wc-block-components-totals-coupon__form input,
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
.wc-block-components-select-input select {
  min-height: 42px !important;
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  color: var(--yarsa-green) !important;
  background: var(--yarsa-white) !important;
  font-family: inherit !important;
  font-size: 13px !important;
}

.wc-block-components-text-input label,
.wc-block-components-textarea label {
  color: var(--yarsa-green) !important;
  font-weight: 700 !important;
}

.wc-block-components-text-input.is-active input,
.wc-block-components-text-input input:focus {
  border-color: var(--yarsa-tan) !important;
  box-shadow: 0 0 0 3px rgba(194, 119, 61, 0.15) !important;
  outline: none !important;
}

/* Checkout titles */
.wc-block-components-checkout-step__title,
.wc-block-components-title {
  color: var(--yarsa-green) !important;
  font-weight: 900 !important;
}

.wc-block-components-checkout-step__description {
  color: var(--yarsa-muted) !important;
  font-size: 12px !important;
}

/* Order summary items */
.wc-block-components-order-summary-item__quantity {
  background: var(--yarsa-tan) !important;
  color: var(--yarsa-white) !important;
  border: 2px solid var(--yarsa-white) !important;
  font-weight: 800 !important;
}

.wc-block-components-order-summary-item__image > img {
  border-radius: 8px;
  object-fit: contain;
  background: var(--yarsa-soft-green);
}

/* Radio / payment methods */
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option {
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  margin-bottom: 8px !important;
  padding: 10px 12px !important;
  background: var(--yarsa-white) !important;
}

.wc-block-components-radio-control__option-checked,
.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
  border-color: var(--yarsa-tan) !important;
  background: var(--yarsa-soft-tan) !important;
}

.wc-block-components-radio-control__label {
  color: var(--yarsa-green) !important;
  font-weight: 800 !important;
}

/* Validation errors */
.wc-block-components-validation-error,
.wc-block-components-notice-banner.is-error {
  color: var(--yarsa-danger) !important; /* دیباگ: تنظیم رنگ به متغیر اصلاح‌شده سرخ */
  font-size: 12px !important;
  font-weight: 700 !important;
}

.wc-block-components-text-input.has-error input,
.wc-block-components-select-input.has-error select,
.wc-block-components-combobox.has-error input {
  border-color: var(--yarsa-danger) !important;
}

/* Sticky submit on mobile */
.wc-block-cart__submit-container {
  padding: 8px 0;
}

/* Mini-cart drawer */
.wc-block-mini-cart__drawer,
.wp-block-woocommerce-mini-cart-contents {
  font-family: inherit;
  color: var(--yarsa-ink);
}

.wc-block-mini-cart__footer .wc-block-components-button,
.wc-block-mini-cart__footer a.wc-block-components-button {
  background: var(--yarsa-tan) !important;
  color: var(--yarsa-white) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   12. CART / CHECKOUT (CLASSIC)
   ========================================================================== */
.woocommerce-cart .cart_totals,
.woocommerce-checkout-review-order {
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-white);
  padding: 24px;
}

.woocommerce table.shop_table {
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius) !important;
  overflow: hidden;
  border-collapse: separate !important;
}

.woocommerce table.shop_table th {
  background: var(--yarsa-soft-green) !important;
  color: var(--yarsa-green) !important;
  font-weight: 800 !important;
  padding: 14px !important;
}

.woocommerce table.shop_table td {
  padding: 14px !important;
  border-color: var(--yarsa-line) !important;
}

.woocommerce-cart-form .product-name a {
  color: var(--yarsa-green);
  font-weight: 800;
}

.woocommerce-cart-form .product-name .description,
.woocommerce-cart-form .product-name p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--yarsa-muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 4px 0 0;
}

.woocommerce-cart-form .product-thumbnail img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  background: var(--yarsa-soft-green);
  border-radius: 8px;
  padding: 4px;
}

.woocommerce a.remove {
  color: var(--yarsa-tan) !important;
  font-size: 18px !important;
}

.woocommerce a.remove:hover {
  color: var(--yarsa-white) !important;
  background: var(--yarsa-tan) !important;
}

.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #order_review {
  background: var(--yarsa-white);
  padding: 22px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  margin-bottom: 20px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  min-height: 42px;
  padding: 8px 12px !important;
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  background: var(--yarsa-white) !important;
  color: var(--yarsa-green) !important;
  font-size: 13px;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--yarsa-tan) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 119, 61, 0.15) !important;
}

.woocommerce form .form-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--yarsa-green);
  margin-bottom: 6px;
}

.woocommerce form .form-row.woocommerce-invalid .select2-selection--single,
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
  border-color: var(--yarsa-danger) !important;
}

.yarsa-login-unavailable {
  max-width: 540px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-soft-green);
}

/* ==========================================================================
   13. SELECT2
   ========================================================================== */
.select2-container {
  width: 100% !important;
  direction: rtl;
}

.select2-container--default .select2-selection--single {
  min-height: 42px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  background: var(--yarsa-white) !important;
  outline: none;
  transition: border-color var(--yarsa-transition), box-shadow var(--yarsa-transition);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--yarsa-tan) !important;
  box-shadow: 0 0 0 3px rgba(194, 119, 61, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;
  color: var(--yarsa-green) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  text-align: right;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--yarsa-muted) !important;
}

/* Dropdown arrow → left side for RTL */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: auto !important;
  left: 8px !important;
  top: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--yarsa-tan) transparent transparent transparent !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--yarsa-tan) transparent !important;
}

.select2-dropdown {
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  box-shadow: var(--yarsa-shadow) !important;
  direction: rtl;
  overflow: hidden;
  z-index: 2000 !important;
}

.select2-search--dropdown {
  padding: 8px !important;
  background: var(--yarsa-soft-green) !important;
}

.select2-search--dropdown .select2-search__field {
  min-height: 44px !important;
  padding: 6px 10px !important;
  border: 1px solid var(--yarsa-line) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  color: var(--yarsa-green) !important;
  outline: none;
  direction: rtl;
}

.select2-results__option {
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  color: var(--yarsa-green) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--yarsa-tan) !important;
  color: var(--yarsa-white) !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: var(--yarsa-soft-tan) !important;
  color: var(--yarsa-green) !important;
}

.select2-container--default .select2-selection--single.wc-invalid {
  border-color: var(--yarsa-danger) !important;
}

/* ==========================================================================
   14. BLOG / PAGES
   ========================================================================== */
.yarsa-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.yarsa-post-card {
  overflow: hidden;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-white);
  box-shadow: var(--yarsa-shadow-sm);
  transition: transform var(--yarsa-transition), box-shadow var(--yarsa-transition);
}

.yarsa-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yarsa-shadow);
}

.yarsa-post-card__thumbnail {
  display: block;
  aspect-ratio: 1.58;
  overflow: hidden;
  background: var(--yarsa-soft-green);
}

.yarsa-post-card__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yarsa-post-card__placeholder-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--yarsa-tan);
  font-size: 34px;
}

.yarsa-post-card:hover .yarsa-post-card__thumbnail img { transform: scale(1.05); }

.yarsa-post-card__body { padding: 18px; }

.yarsa-post-card__category {
  display: inline-block;
  color: var(--yarsa-tan);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}

.yarsa-post-card__title {
  margin: 0 0 8px;
  color: var(--yarsa-green);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.7;
}

.yarsa-post-card__title a { color: var(--yarsa-green); }
.yarsa-post-card__title a:hover { color: var(--yarsa-tan); }

.yarsa-post-card__excerpt {
  margin: 0 0 12px;
  color: var(--yarsa-muted);
  font-size: 12px;
  line-height: 1.9;
}

.yarsa-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--yarsa-muted);
  font-size: 10px;
}

.yarsa-page-content {
  width: min(100% - 32px, 1020px);
  margin: 36px auto 60px;
}

.yarsa-entry-content {
  color: rgba(30, 98, 83, 0.88);
  font-size: 14px;
  line-height: 2.25;
  overflow-wrap: anywhere;
}

.yarsa-entry-content h2,
.yarsa-entry-content h3 {
  color: var(--yarsa-green);
  font-weight: 900;
}

.yarsa-entry-content img,
.yarsa-entry-content video,
.yarsa-entry-content iframe {
  max-width: 100%;
}

.yarsa-entry-content iframe {
  width: 100%;
}

.yarsa-entry-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   15. CONTACT CHANNELS
   ========================================================================== */
.yarsa-contact-channels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0;
  padding: 18px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-soft-green);
}

.yarsa-contact-channels__intro {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yarsa-contact-channels__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--yarsa-green);
  color: var(--yarsa-white);
  border-radius: 10px;
  font-size: 16px;
}

.yarsa-contact-channels__text strong {
  display: block;
  color: var(--yarsa-green);
  font-size: 13px;
  font-weight: 900;
}

.yarsa-contact-channels__text small {
  display: block;
  color: var(--yarsa-muted);
  font-size: 10px;
  margin-top: 2px;
}

.yarsa-contact-channels__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yarsa-contact-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  background: var(--yarsa-white);
  color: var(--yarsa-green);
  font-size: 11px;
  font-weight: 800;
  transition: all var(--yarsa-transition);
}

.yarsa-contact-channel-btn:hover {
  background: var(--yarsa-tan);
  border-color: var(--yarsa-tan);
  color: var(--yarsa-white);
}

/* ==========================================================================
   16. EDITORIAL, COMMENTS & COMPARISON PAGE
   ========================================================================== */
.yarsa-article {
  width: min(100% - 32px, 1020px);
  margin: 36px auto 60px;
}

.yarsa-article__header {
  margin-bottom: 24px;
}

.yarsa-article__header h1 {
  margin: 14px 0 10px;
  color: var(--yarsa-green);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.yarsa-article__excerpt,
.yarsa-page-hero__description {
  color: var(--yarsa-muted);
  line-height: 2;
}

.yarsa-article__thumbnail {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: var(--yarsa-radius-lg);
  background: var(--yarsa-soft-green);
}

.yarsa-article__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.yarsa-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--yarsa-line);
  color: var(--yarsa-muted);
  font-size: 12px;
}

.yarsa-post-tags a {
  color: var(--yarsa-tan);
}

.yarsa-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.comments-area {
  margin-top: 36px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-lg);
  background: var(--yarsa-white);
}

.yarsa-comments {
  margin-top: 36px;
}

.yarsa-comments .comments-area {
  margin-top: 0;
}

.comments-title,
.comment-reply-title {
  margin: 0 0 20px;
  color: var(--yarsa-green);
  font-size: clamp(18px, 2.5vw, 24px);
}

.comment-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.comment-list .comment-body {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-soft-green);
}

.comment-list .children {
  margin-inline-start: clamp(12px, 4vw, 36px);
  padding: 0;
  list-style: none;
}

.comment-form p {
  margin: 0 0 14px;
}

.comment-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--yarsa-green);
  font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.yarsa-search-form input[type="search"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  color: var(--yarsa-green);
  background: var(--yarsa-white);
  font: inherit;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form input[type="submit"] {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--yarsa-tan);
  border-radius: var(--yarsa-radius-sm);
  color: var(--yarsa-white);
  background: var(--yarsa-tan);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.yarsa-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.yarsa-compare-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 280px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px dashed rgba(30, 98, 83, 0.28);
  border-radius: var(--yarsa-radius-lg);
  background: var(--yarsa-soft-green);
  text-align: center;
}

.yarsa-compare-empty[hidden] {
  display: none !important;
}

.yarsa-compare-empty > i {
  color: var(--yarsa-tan);
  font-size: 38px;
}

.yarsa-compare-empty h2 {
  margin: 0;
  color: var(--yarsa-green);
  font-size: clamp(19px, 3vw, 28px);
}

.yarsa-compare-empty p {
  margin: 0 0 8px;
  color: var(--yarsa-muted);
}

.yarsa-compare-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-lg);
  background: var(--yarsa-white);
  box-shadow: var(--yarsa-shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.yarsa-compare-table-wrap[hidden] {
  display: none !important;
}

.yarsa-compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}

.yarsa-compare-table th,
.yarsa-compare-table td {
  padding: 16px;
  border-bottom: 1px solid var(--yarsa-line);
  border-inline-start: 1px solid var(--yarsa-line);
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.yarsa-compare-table tr:last-child th,
.yarsa-compare-table tr:last-child td {
  border-bottom: 0;
}

.yarsa-compare-table th:first-child,
.yarsa-compare-table td:first-child {
  border-inline-start: 0;
}

.yarsa-compare-table tbody th {
  color: var(--yarsa-green);
  background: var(--yarsa-soft-green);
  font-size: 12px;
}

.yarsa-compare-table__product img {
  display: block;
  width: min(120px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  object-fit: contain;
}

.yarsa-compare-table__product a {
  display: block;
  color: var(--yarsa-green);
  font-size: 13px;
  font-weight: 900;
}

.yarsa-compare-table__remove {
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 14px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  color: var(--yarsa-tan);
  background: var(--yarsa-white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
.yarsa-footer {
  margin-top: 48px;
  border-top: 1px solid var(--yarsa-line);
  background: var(--yarsa-white);
}

.yarsa-footer__benefits {
  border-top: 4px solid var(--yarsa-tan);
  color: var(--yarsa-white);
  background: var(--yarsa-green);
}

.yarsa-footer__benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.yarsa-footer__benefit {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.yarsa-footer__benefit:first-child { border-left: 0; }

.yarsa-footer__benefit-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--yarsa-tan);
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
}

.yarsa-footer__benefit strong {
  display: block;
  color: var(--yarsa-white);
  font-size: 13px;
  font-weight: 900;
}

.yarsa-footer__benefit small {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  margin-top: 4px;
}

.yarsa-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr 1.3fr;
  gap: 24px;
  padding: 42px 0 32px;
}

.yarsa-footer__brand p {
  color: var(--yarsa-muted);
  font-size: 12px;
  line-height: 2;
  margin: 12px 0;
}

.yarsa-footer h2 {
  color: var(--yarsa-green);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 14px;
}

.yarsa-footer-menu {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yarsa-footer-menu a {
  color: var(--yarsa-muted);
  font-size: 12px;
  transition: color var(--yarsa-transition), transform var(--yarsa-transition);
}

.yarsa-footer-menu a:hover {
  color: var(--yarsa-tan);
  transform: translateX(-3px);
}

.yarsa-footer__contact-item,
.yarsa-footer__address,
.yarsa-footer__support-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--yarsa-muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.yarsa-footer__contact-item i,
.yarsa-footer__address i,
.yarsa-footer__support-hours i { color: var(--yarsa-tan); }

.yarsa-footer__support-hours strong {
  color: var(--yarsa-green);
  font-weight: 800;
}

.yarsa-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.yarsa-footer__social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--yarsa-line);
  border-radius: 10px;
  color: var(--yarsa-green);
  transition: all var(--yarsa-transition);
}

.yarsa-footer__social a:hover {
  background: var(--yarsa-tan);
  border-color: var(--yarsa-tan);
  color: var(--yarsa-white);
  transform: translateY(-2px);
}

.yarsa-footer__trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-top: 1px solid var(--yarsa-line);
  gap: 20px;
}

.yarsa-footer__trust-badges {
  display: flex;
  gap: 12px;
}

body.yarsa-pro .yarsa-enamad {
  display: grid;
  place-items: center;
  flex: 0 0 140px;
  width: 140px;
  min-height: 154px;
  padding: 8px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius);
  background: var(--yarsa-white);
  color: var(--yarsa-green);
  text-align: center;
  cursor: pointer;
}
body.yarsa-pro .yarsa-enamad img { width: 120px; height: 140px; max-width: 100%; object-fit: contain; cursor: pointer; }
body.yarsa-pro .yarsa-enamad:focus-visible { outline: 3px solid var(--yarsa-tan); outline-offset: 3px; }

.yarsa-footer__bottom {
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.85);
  background: var(--yarsa-green);
  font-size: 11px;
}

.yarsa-footer__bottom .yarsa-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yarsa-footer__bottom a { color: var(--yarsa-white); font-weight: 700; }

/* ==========================================================================
   18. MOBILE NAV (hidden desktop)
   ========================================================================== */
.yarsa-mobile-nav { display: none; }

/* ==========================================================================
   19. FONT AWESOME ISOLATION
   ========================================================================== */
body.yarsa-pro .fa,
body.yarsa-pro .fas,
body.yarsa-pro .far,
body.yarsa-pro .fab,
body.yarsa-pro .fa-solid,
body.yarsa-pro .fa-regular,
body.yarsa-pro .fa-brands {
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  line-height: 1 !important;
  -webkit-font-smoothing: antialiased !important;
}

body.yarsa-pro .fa-solid,
body.yarsa-pro .fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

body.yarsa-pro .fa-regular,
body.yarsa-pro .far {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 400 !important;
}

body.yarsa-pro .fa-brands,
body.yarsa-pro .fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* ==========================================================================
   20. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .yarsa-product-grid,
  .woocommerce ul.products,
  .yarsa-archive-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .yarsa-home-hero__grid { grid-template-columns: 1fr; }
  .yarsa-hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .yarsa-price-ranges { grid-template-columns: repeat(3, 1fr); }
  .yarsa-quick-categories { grid-template-columns: repeat(3, 1fr); }
  .yarsa-brand-showcase__grid { grid-template-columns: repeat(4, 1fr); }
  .yarsa-post-grid { grid-template-columns: repeat(2, 1fr); }
  .yarsa-footer__benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .yarsa-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .yarsa-budget-filter__grid { grid-template-columns: repeat(2, 1fr); }
  .yarsa-cats-grid { grid-template-columns: repeat(3, 1fr); }
  .yarsa-archive-filters { grid-template-columns: 1fr 1fr 1fr; }
  .yarsa-archive-filters__actions { grid-column: span 3; }
}

@media (max-width: 820px) {
  body.yarsa-pro { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.yarsa-compare-active { padding-bottom: calc(240px + env(safe-area-inset-bottom)); }

  body.yarsa-pro.woocommerce-cart,
  body.yarsa-pro.woocommerce-checkout,
  body.yarsa-pro.single-product,
  body.yarsa-pro.woocommerce-account {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  body.yarsa-pro.woocommerce-cart.yarsa-compare-active,
  body.yarsa-pro.woocommerce-checkout.yarsa-compare-active,
  body.yarsa-pro.single-product.yarsa-compare-active,
  body.yarsa-pro.woocommerce-account.yarsa-compare-active {
    padding-bottom: calc(250px + env(safe-area-inset-bottom));
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body.yarsa-pro {
    padding-inline: 0 !important;
  }

  .single-product .entry-content,
  .single-product .elementor,
  .single-product .elementor-section-wrap {
    max-width: 100% !important;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .yarsa-mobile-nav {
    position: fixed;
    z-index: 1003;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    min-height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--yarsa-line);
    background: var(--yarsa-white);
    box-shadow: 0 -8px 24px rgba(30, 98, 83, 0.10);
  }

  .yarsa-mobile-nav__item {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--yarsa-green);
    font-size: 9.5px;
    font-weight: 800;
    padding: 6px 4px;
  }

  .yarsa-mobile-nav__item i { font-size: 17px; }
  .yarsa-mobile-nav__item.is-active { color: var(--yarsa-tan); }

  .yarsa-mobile-nav__item.is-active::before {
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--yarsa-tan);
    content: '';
  }

  .yarsa-mobile-nav__count {
    position: absolute;
    top: 4px;
    left: calc(50% - 20px);
    min-width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    background: var(--yarsa-tan);
    color: var(--yarsa-white);
    border: 2px solid var(--yarsa-white);
    border-radius: 50%;
    font-size: 8px;
    padding: 0 2px;
  }

  .yh-navigation-bar { display: none !important; }

  .yarsa-archive-filters {
    grid-template-columns: 1fr 1fr !important;
    padding: 12px !important;
  }

  .yarsa-archive-filters__field--price,
  .yarsa-archive-filters__actions {
    grid-column: 1 / -1 !important;
  }

  .yarsa-hero-banner__slide {
    padding: 26px 20px;
    min-height: 220px;
  }

  .yarsa-hero-banner__title { font-size: 20px; }
  .yarsa-hero-banner__desc { font-size: 12px; }
  .yarsa-hero-banner__decor { font-size: 80px; }

  .yarsa-twin-banners__grid { grid-template-columns: 1fr; }
  .yarsa-twin-banner { min-height: 100px; padding: 16px; }
  .yarsa-twin-banner__icon { font-size: 34px; }

  .yarsa-cats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .yarsa-cats-grid__image { height: 120px; }

  .yarsa-discount-box__wrapper { padding: 16px; }
  .yarsa-discount-box__title { font-size: 18px; }
  .yarsa-discount-box__title i { width: 28px; height: 28px; font-size: 12px; }
  .yarsa-discount-box__view-all { font-size: 11px; padding: 6px 12px; }

  .yarsa-discount-box .yarsa-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .yarsa-promo-strip__content { font-size: 11px; gap: 6px; }
  .yarsa-promo-strip__code { padding: 2px 8px; }

  .yarsa-compare-bar {
    right: 10px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 10px;
    padding: 10px;
  }

  .wc-block-cart .wc-block-components-sidebar-layout,
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .wc-block-cart .wc-block-components-main,
  .wc-block-cart .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 10px 12px !important;
    align-items: start !important;
  }

  .wc-block-cart-item__image { grid-row: 1 / span 3; }
  .wc-block-cart-item__quantity,
  .wc-block-cart-item__total { grid-column: 2; }

  .wc-block-components-product-metadata__description {
    -webkit-line-clamp: 2;
    max-height: 3.6em;
  }

  .yarsa-single-product__after-summary {
    padding: 12px !important;
    border-radius: var(--yarsa-radius) !important;
    margin: 0 10px 20px !important;
  }

  .woocommerce-tabs ul.tabs {
    padding: 4px !important;
    margin: 0 0 14px !important;
  }

  .woocommerce-tabs ul.tabs li a {
    padding: 8px 12px !important;
    font-size: 11.5px !important;
  }

  .woocommerce-Tabs-panel {
    font-size: 12px !important;
    line-height: 2 !important;
  }

  .related.products,
  .upsells.products {
    padding: 0 10px !important;
    margin-top: 24px !important;
  }

  .woocommerce-shop .site-main,
  .woocommerce-shop #main,
  .woocommerce-shop .content-area,
  .archive.woocommerce .content-area,
  .archive.woocommerce #main {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 10px !important;
    box-sizing: border-box !important;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  body.yarsa-pro .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product,
  body.yarsa-pro .woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
  }

  .woocommerce-ordering,
  .woocommerce-result-count {
    float: none !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    text-align: right !important;
  }

  .woocommerce-ordering select {
    width: 100% !important;
    max-width: 100% !important;
  }

  .yarsa-shop__toolbar,
  .storefront-sorting {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .woocommerce-shop #secondary,
  .woocommerce-shop .sidebar,
  .archive.woocommerce #secondary {
    display: none !important;
  }

  body.yarsa-pro--no-mobile-nav {
    padding-bottom: 0 !important;
  }

  body.yarsa-pro--no-mobile-nav.yarsa-compare-active {
    padding-bottom: calc(190px + env(safe-area-inset-bottom)) !important;
  }

  body.yarsa-pro--no-mobile-nav .yarsa-compare-bar {
    bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .yarsa-shop__section {
    padding: 20px 0 34px;
  }

  .yarsa-shop__catalog-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    min-width: 0;
  }

  .yarsa-shop__sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    border-radius: var(--yarsa-radius);
  }

  .yarsa-shop__catalog-main,
  .yarsa-archive-results {
    width: 100%;
    min-width: 0;
  }

  .yarsa-shop__sidebar .yarsa-archive-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    padding: 12px !important;
  }

  .yarsa-shop__sidebar .yarsa-archive-filters__field--price,
  .yarsa-shop__sidebar .yarsa-archive-filters__actions {
    grid-column: 1 / -1 !important;
  }

  .yarsa-shop__sidebar .yarsa-archive-filters__field--price > span {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .yarsa-section { padding: 30px 0; }
  .yarsa-container { width: min(100% - 24px, var(--yarsa-container)); }

  .yarsa-hero-card {
    flex-direction: column;
    padding: 24px;
    text-align: center;
    min-height: auto;
  }

  .yarsa-hero-card h1 { font-size: 22px; }
  .yarsa-hero-side { grid-template-columns: 1fr; }

  .yarsa-price-ranges { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .yarsa-price-range:last-child { grid-column: 1 / -1; }
  .yarsa-price-range { padding: 15px 8px; }
  .yarsa-price-range strong { font-size: 15px; }

  .yarsa-quick-categories { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .yarsa-brand-showcase__grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .yarsa-category-display__item { flex: 0 0 130px; padding: 12px; }
  .yarsa-category-display__image { width: 70px; height: 70px; }

  .yarsa-banner-grid { grid-template-columns: 1fr; }

  .yarsa-product-grid,
  .woocommerce ul.products,
  .yarsa-archive-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .yarsa-product-card,
  .woocommerce ul.products li.product {
    padding: 10px !important;
    min-height: auto !important;
  }

  .yarsa-product-card__image,
  .woocommerce ul.products li.product > a:first-child > img {
    height: 145px !important;
    padding: 6px;
  }

  .yarsa-product-card__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 40px !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
  }

  .yarsa-product-card__category { font-size: 9px; }
  .yarsa-product-card__rating { font-size: 10px; }

  .yarsa-product-card__bottom {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
    padding-top: 8px;
  }

  .yarsa-product-card .price,
  .woocommerce ul.products li.product .price,
  .yarsa-product-card__price-box .price {
    font-size: 12px !important;
    align-items: center !important;
  }

  .woocommerce ul.products li.product .price ins,
  .yarsa-product-card .price ins { font-size: 12px !important; }

  .woocommerce ul.products li.product .price del,
  .yarsa-product-card .price del { font-size: 10px !important; }

  .yarsa-product-card__action-box .button,
  .yarsa-product-card .button,
  .woocommerce ul.products li.product .button,
  .yarsa-product-card__view-btn {
    width: 100% !important;
    min-height: 44px !important;
    padding: 7px 8px !important;
    font-size: 10px !important;
  }

  .yarsa-compare-button:not(.yarsa-compare-button--single) {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .yarsa-compare-button:not(.yarsa-compare-button--single) i { font-size: 12px !important; }

  .yarsa-product-card__compare,
  .yarsa-product-card__quick-actions { top: 6px; right: 6px; }

  .yarsa-post-grid { grid-template-columns: 1fr; }

  .yarsa-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .yarsa-footer__brand,
  .yarsa-footer__contact { grid-column: 1 / -1; }

  .yarsa-footer__benefits-grid { grid-template-columns: 1fr 1fr; }

  .yarsa-footer__benefit {
    min-height: 80px;
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .yarsa-footer__benefit:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .yarsa-footer__bottom .yarsa-container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .yarsa-contact-channels {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .yarsa-contact-channels__actions { justify-content: center; }

  .yarsa-compare-bar__inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .yarsa-compare-bar__products { justify-content: flex-start; width: 100%; }
  .yarsa-compare-bar__product { flex: 1 1 0; max-width: none; }
}

@media (max-width: 480px) {
  .yarsa-hero-card h1 { font-size: 20px; }
  .yarsa-hero-card p { font-size: 12px; }
  .yarsa-brand-showcase__grid { grid-template-columns: repeat(2, 1fr); }
  .yarsa-quick-categories { grid-template-columns: 1fr; }
  .yarsa-footer__grid { grid-template-columns: 1fr; }
  .yarsa-archive-filters { grid-template-columns: 1fr !important; }

  body.yarsa-compare-active,
  body.yarsa-pro.woocommerce-cart.yarsa-compare-active,
  body.yarsa-pro.woocommerce-checkout.yarsa-compare-active,
  body.yarsa-pro.single-product.yarsa-compare-active,
  body.yarsa-pro.woocommerce-account.yarsa-compare-active {
    padding-bottom: calc(270px + env(safe-area-inset-bottom));
  }

  .yarsa-compare-bar__heading { width: 100%; }
  .yarsa-compare-bar__actions { width: 100%; justify-content: space-between; }
  .yarsa-search-form { grid-template-columns: 1fr; }
  .yarsa-search-form .yarsa-button { width: 100%; }

  .yarsa-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .yarsa-home-faq__question {
    min-height: 58px;
    padding: 14px 16px;
    font-size: 13px;
  }

  .yarsa-home-faq__answer {
    padding: 0 16px 16px;
    font-size: 12px;
  }

  .yarsa-hero-banner__decor { display: none; }
  .yarsa-hero-banner__slide { min-height: 180px; padding: 20px; }

  .yarsa-budget-filter__grid { gap: 10px; }
  .yarsa-budget-card { padding: 15px 8px; min-height: 120px; }
  .yarsa-budget-card__amount { font-size: 17px; }

  .yarsa-cats-grid__image { height: 100px; }
  .yarsa-cats-grid__title { font-size: 13px; }

  .woocommerce-tabs ul.tabs li a {
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  body.yarsa-pro--no-mobile-nav.yarsa-compare-active {
    padding-bottom: calc(220px + env(safe-area-inset-bottom)) !important;
  }
}

@media (max-width: 380px) {
  .yarsa-product-grid,
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .yarsa-archive-product-grid,
  body.yarsa-pro .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
  .yarsa-price-ranges { grid-template-columns: 1fr; }
  .yarsa-price-range:last-child { grid-column: auto; }
}

@media (max-width: 899px) {
  .yh-header,
  .yh-header-main,
  .yh-header-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
  }

  .yh-header-main-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 60px !important;
    padding-inline: 12px !important;
  }

  .yh-site-logo {
    margin-inline-end: auto;
    flex-shrink: 0;
  }

  .yh-site-logo img {
    max-height: 34px;
    max-width: 130px;
  }

  .yh-header-actions {
    display: flex !important;
    align-items: center;
    gap: 6px !important;
    margin: 0 !important;
    flex-shrink: 0;
  }

  .yh-action-link {
    width: 44px !important;
    height: 44px !important;
    font-size: 15px !important;
  }

  .yh-search-wrap {
    order: 99;
    flex: 1 1 100%;
    max-width: 100%;
    margin: 8px 0 0;
  }

  .yh-search-form { min-height: 40px; }
  .yh-search-submit { width: 40px; min-width: 40px; }
  .yh-search-input { min-width: 0; font-size: 16px !important; }
}

/* Keep archive cards comfortably readable while the desktop filter sidebar
   is still visible. Other product rails retain their normal three columns. */
@media (min-width: 821px) and (max-width: 1024px) {
  .yarsa-shop .yarsa-archive-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   21. SHOP ARCHIVE MOBILE REFINEMENTS
   ========================================================================== */
@media (max-width: 420px) {
  .yarsa-shop__sidebar .yarsa-archive-filters {
    grid-template-columns: 1fr !important;
  }

  .yarsa-shop__sidebar .yarsa-archive-filters__field--price,
  .yarsa-shop__sidebar .yarsa-archive-filters__actions {
    grid-column: auto !important;
  }

  .yarsa-product-card,
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    padding: 8px !important;
  }

  .yarsa-product-card__image {
    padding: 6px !important;
  }

  .yarsa-product-card__title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13.5px !important;
    line-height: 1.7 !important;
  }

  .yarsa-product-card__category {
    font-size: 10.5px;
  }

  .yarsa-product-card__action-box .button,
  .yarsa-product-card .button,
  .woocommerce ul.products li.product .button,
  .yarsa-product-card__view-btn {
    padding-inline: 5px !important;
    font-size: 9px !important;
  }
}

/* ==========================================================================
   22. STOREFRONT — UNCOPPED MEDIA & INFINITE SCROLL
   ========================================================================== */
.yarsa-page-hero {
  padding: 18px 0 16px;
}

body.single-product.yarsa-pro .yarsa-page-hero {
  padding: 12px 0;
}

.yarsa-page-hero .yarsa-container > :last-child,
.yarsa-archive-description > :last-child {
  margin-bottom: 0;
}

.yarsa-archive-description:empty,
.yarsa-shop__toolbar:empty,
.yarsa-archive-result-status:empty {
  display: none;
}

/* FIX: these three rules used to be unscoped, which meant they always
   loaded AFTER (and therefore beat) the mobile overrides declared in
   section 20 (@media max-width:820px) for the same selectors — since a
   later rule of equal specificity always wins, the phone/tablet layout
   was silently thrown away and the fixed-width 2-column grid below was
   forced onto small screens too, causing the sidebar+content to overflow
   the viewport (and, because the page is RTL with overflow-x:clip, the
   overflow was invisible — it just looked like "half the page is blank").
   Restricting them to desktop widths lets the mobile rules win again. */
@media (min-width: 821px) {
  .yarsa-shop__section {
    padding: 28px 0 44px;
  }

  .yarsa-shop__catalog-layout {
    display: grid;
    grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 26px);
    align-items: start;
  }

  .yarsa-shop__sidebar {
    position: sticky;
    top: 90px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--yarsa-line);
    border-radius: var(--yarsa-radius-lg);
    background: var(--yarsa-white);
    box-shadow: var(--yarsa-shadow-sm);
  }
}

.yarsa-shop__catalog-layout {
  display: grid;
}

.yarsa-shop__sidebar-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--yarsa-line);
  color: var(--yarsa-green);
  background: var(--yarsa-soft-green);
}

.yarsa-shop__sidebar-heading i {
  color: var(--yarsa-tan);
  font-size: 14px;
}

.yarsa-shop__sidebar-heading h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
}

.yarsa-shop__sidebar .yarsa-archive-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: var(--yarsa-white);
}

.yarsa-shop__sidebar .yarsa-archive-filters__field--price > span {
  grid-template-columns: 1fr;
  gap: 8px;
}

.yarsa-shop__sidebar .yarsa-archive-filters__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.yarsa-shop__sidebar .yarsa-archive-filters__actions .yarsa-button,
.yarsa-shop__sidebar .yarsa-archive-filters__actions .yarsa-text-link {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.yarsa-shop__sidebar .yarsa-archive-result-status {
  margin: 0;
  padding: 0 16px 14px;
}

.yarsa-shop__catalog-main {
  min-width: 0;
}

.yarsa-product-grid,
.woocommerce ul.products,
.yarsa-archive-product-grid {
  align-items: stretch;
}

.yarsa-product-card,
.woocommerce ul.products li.product {
  min-height: 0;
}

.yarsa-product-card__image-wrapper {
  display: grid;
  aspect-ratio: 1 / 1;
  min-height: 0;
  place-items: center;
}

.yarsa-product-card__image,
.woocommerce ul.products li.product > a:first-child > img,
.woocommerce ul.products li.product .woocommerce-LoopProduct-link > img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1;
  padding: clamp(8px, 3vw, 16px);
  object-fit: contain !important;
  object-position: center !important;
}

.yarsa-product-card__image img,
.yarsa-product-card__image-element {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.yarsa-product-card__content {
  flex-grow: 1;
}

.yarsa-product-card__category,
.woocommerce ul.products li.product .posted_in {
  min-height: 0;
}

.yarsa-product-card__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 0 !important;
  margin-bottom: 10px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.75 !important;
  overflow-wrap: anywhere;
}

.yarsa-product-card__bottom {
  margin-top: auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 10px !important;
  width: 100%;
}

.yarsa-product-card__price-box,
.yarsa-product-card__action-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.yarsa-product-card__price-box .price,
.yarsa-product-card .price {
  align-items: center !important;
  text-align: center !important;
}

.yarsa-product-card .price del,
.yarsa-product-card .price ins {
  display: inline-block;
  text-align: center;
  margin-inline: auto;
}

body.yarsa-pro .yarsa-product-card__action-box .button,
body.yarsa-pro .yarsa-product-card__view-btn {
  margin-inline: auto;
}

.yarsa-shop.is-filtering .yarsa-archive-results {
  opacity: 0.48;
  pointer-events: none;
}

.yarsa-infinite-scroll {
  display: grid;
  min-height: 76px;
  place-items: center;
  align-content: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--yarsa-muted);
  text-align: center;
}

.yarsa-infinite-scroll[hidden],
.yarsa-infinite-scroll [hidden] {
  display: none !important;
}

.yarsa-infinite-scroll__loader {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--yarsa-line);
  border-radius: 50%;
  color: var(--yarsa-tan);
  background: var(--yarsa-white);
}

.yarsa-infinite-scroll.is-loading .yarsa-infinite-scroll__loader {
  display: grid;
}

.yarsa-infinite-scroll.is-loading .yarsa-infinite-scroll__loader i {
  animation: yarsa-infinite-spin 0.8s linear infinite;
}

.yarsa-infinite-scroll.is-complete .yarsa-infinite-scroll__loader {
  display: none;
}

.yarsa-infinite-scroll__message {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
}

@keyframes yarsa-infinite-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   23. PRODUCT RAILS & COMMERCE CONTENT REFINEMENTS
   ========================================================================== */
.related.products.yarsa-horizontal-products,
.upsells.products.yarsa-horizontal-products,
.cross-sells.yarsa-horizontal-products {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-top: 28px !important;
}

.yarsa-horizontal-products > h2 {
  min-height: 44px;
  padding-inline-end: 108px;
  margin-bottom: 14px;
}

.yarsa-horizontal-products__nav {
  position: absolute;
  z-index: 3;
  inset-block-start: 20px;
  inset-inline-end: 0;
  display: flex;
  gap: 8px;
}

.yarsa-horizontal-products__nav[hidden] {
  display: none !important;
}

.yarsa-horizontal-products__button {
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--yarsa-line);
  border-radius: 50%;
  color: var(--yarsa-green);
  background: var(--yarsa-white);
  box-shadow: var(--yarsa-shadow-sm);
  cursor: pointer;
  transition: color var(--yarsa-transition), background var(--yarsa-transition), border-color var(--yarsa-transition), transform var(--yarsa-transition);
}

.yarsa-horizontal-products__button:hover,
.yarsa-horizontal-products__button:focus-visible {
  border-color: var(--yarsa-tan);
  color: var(--yarsa-white);
  background: var(--yarsa-tan);
  outline: none;
  transform: translateY(-2px);
}

.yarsa-horizontal-products__button i {
  font-size: 12px;
}

.yarsa-horizontal-products ul.products.yarsa-horizontal-products__track {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: none !important;
  align-items: stretch !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 4px 2px 16px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-padding-inline: 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.yarsa-horizontal-products ul.products.yarsa-horizontal-products__track::-webkit-scrollbar {
  display: none;
}

.yarsa-horizontal-products ul.products.yarsa-horizontal-products__track:focus-visible {
  border-radius: var(--yarsa-radius);
  outline: 2px solid var(--yarsa-tan);
  outline-offset: 2px;
}

.yarsa-horizontal-products ul.products.yarsa-horizontal-products__track > li.product {
  flex: 0 0 clamp(220px, 22vw, 275px) !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  scroll-snap-align: start;
}

.yarsa-horizontal-products ul.products.yarsa-horizontal-products__track .woocommerce-loop-product__title {
  display: block !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  white-space: normal !important;
}

.woocommerce-cart-form,
.woocommerce-order-details {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* جهت فیلد تلفن و کد پستی */
.woocommerce input[type="tel"],
.woocommerce input[autocomplete="tel"],
.woocommerce input[autocomplete="postal-code"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[autocomplete="tel"],
.wc-block-checkout input[autocomplete="postal-code"] {
  direction: ltr;
  text-align: right;
}

.yarsa-entry-content figure,
.yarsa-entry-content pre,
.yarsa-entry-content table {
  max-width: 100%;
}

.yarsa-entry-content pre,
.yarsa-entry-content > table {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.yarsa-entry-content pre {
  padding: 14px;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  background: var(--yarsa-soft-green);
}

@media (max-width: 820px) {
  .wc-block-checkout .wc-block-components-sidebar-layout,
  .wp-block-woocommerce-checkout .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .wc-block-checkout .wc-block-components-main,
  .wc-block-checkout .wc-block-components-sidebar,
  .wp-block-woocommerce-checkout .wc-block-components-main,
  .wp-block-woocommerce-checkout .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
  }

  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  .yarsa-horizontal-products ul.products.yarsa-horizontal-products__track {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 10px !important;
  }

  .yarsa-horizontal-products ul.products.yarsa-horizontal-products__track > li.product {
    flex-basis: clamp(185px, 58vw, 230px) !important;
    width: auto !important;
  }
}

@media (max-width: 480px) {
  .related.products.yarsa-horizontal-products,
  .upsells.products.yarsa-horizontal-products {
    padding-inline: 8px !important;
  }

  .yarsa-horizontal-products > h2 {
    padding-inline-end: 100px;
    font-size: 17px;
  }

  .yarsa-horizontal-products ul.products.yarsa-horizontal-products__track > li.product {
    flex-basis: clamp(174px, 76vw, 225px) !important;
  }
}

/* جدول ویژگی‌های فنی تک محصول */
.yarsa-single-product__specifications {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--yarsa-line);
}

.yarsa-single-product__specifications > h2 {
  margin: 0 0 12px;
  color: var(--yarsa-green);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.7;
}

.yarsa-single-product__specifications-table {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--yarsa-line);
  border-radius: var(--yarsa-radius-sm);
  background: var(--yarsa-white);
  -webkit-overflow-scrolling: touch;
}

.yarsa-single-product__specifications table.shop_attributes {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  table-layout: fixed;
}

.yarsa-single-product__specifications table.shop_attributes tr:last-child th,
.yarsa-single-product__specifications table.shop_attributes tr:last-child td {
  border-bottom: 0 !important;
}

.yarsa-single-product__specifications table.shop_attributes th,
.yarsa-single-product__specifications table.shop_attributes td {
  padding: 10px 12px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--yarsa-line) !important;
  color: var(--yarsa-green) !important;
  font-size: 11.5px !important;
  line-height: 1.85 !important;
  text-align: right !important;
  vertical-align: top !important;
  overflow-wrap: anywhere;
}

.yarsa-single-product__specifications table.shop_attributes th {
  width: 38%;
  font-weight: 800 !important;
  background: var(--yarsa-soft-green) !important;
}

.yarsa-single-product__specifications table.shop_attributes td {
  width: 62%;
  font-weight: 600 !important;
  background: var(--yarsa-white) !important;
}

.yarsa-single-product__specifications table.shop_attributes td p {
  margin: 0 !important;
  padding: 0 !important;
}

/* اصلاح چیدمان گرید دسته‌بندی‌ها */
.yarsa-cats-grid__item {
  display: grid !important;
  grid-template-rows: auto 1fr;
  align-items: stretch !important;
  gap: 0 !important;
  padding: 12px !important;
  overflow: hidden;
}

.yarsa-cats-grid__image {
  position: relative;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
  padding: 12px !important;
  overflow: hidden !important;
  isolation: isolate;
}

.yarsa-cats-grid__image img,
.yarsa-cats-grid__image .yarsa-category-thumb {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

.yarsa-cats-grid__body {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: 13px 4px 2px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--yarsa-green);
  background: var(--yarsa-white);
}

.yarsa-cats-grid__title,
.yarsa-cats-grid__cta {
  position: static !important;
  transform: none !important;
}

.yarsa-cats-grid__title {
  min-height: 3.2em;
  display: grid;
  margin: 0 !important;
  place-items: center;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.yarsa-cats-grid__cta {
  min-height: 38px;
  justify-content: center;
}

@media (max-width: 480px) {
  .yarsa-cats-grid__item,
  .yarsa-cats-grid__image {
    padding: 8px !important;
  }
  .yarsa-cats-grid__body {
    padding-top: 10px;
  }
}

/* کاهش افکت‌های انیمیشنی بر اساس ترجیحات کاربر */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body.yarsa-pro *,
  body.yarsa-pro *::before,
  body.yarsa-pro *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* ==========================================================================
   END OF FILE — theme release 3.3.1
   ========================================================================== */
