/*
Theme Name: Behsootahvieh Theme
Theme URI: https://behsootahvieh.com/
Description: Child theme for Kadence.
Author: Amin Sharifi
Template: kadence
Version: 1.0.0
Text Domain: behsootahvieh-theme
*/

/* ==========================================================================
   DESIGN VARIABLES (DESIGN.md)
   ========================================================================== */
:root {
  /* Colors */
  --primary: #0F7CA8;
  --primary-deep: #0A5F83;
  --primary-soft: #D9F1F7;
  --primary-press: #0A4E6B;
  --secondary: #1E3A5F;
  --secondary-soft: #EAF2F8;
  --accent: #F59E0B;
  --accent-soft: #FFF4D6;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --info: #0284C7;
  --canvas: #FFFFFF;
  --canvas-soft: #F7FAFC;
  --canvas-warm: #FAF7F2;
  --surface: #FFFFFF;
  --surface-muted: #F3F7FA;
  --border: #D8E3EA;
  --border-strong: #B8CAD7;
  --text: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-on-primary: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --shadow-tint: rgba(15, 23, 42, 0.08);

  /* Radius */
  --rounded-xs: 4px;
  --rounded-sm: 8px;
  --rounded-md: 12px;
  --rounded-lg: 16px;
  --rounded-xl: 24px;
  --rounded-pill: 9999px;

  /* Spacing */
  --spacing-xxs: 2px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;
  --spacing-xxxl: 48px;
  --spacing-huge: 64px;

  /* Typography Fonts */
  --font-family: "Vazirmatn", "Vazir", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ==========================================================================
   BASE STYLES & RTL ORIENTATION
   ========================================================================== */
html {
  scrollbar-gutter: stable;
}

body, input, textarea, select, button {
  font-family: var(--font-family) !important;
  color: var(--text);
}

body.rtl {
  direction: rtl;
  text-align: right;
}

/* Tabular figures for BTU capacities and pricing specifications */
.price, 
.amount, 
.woocommerce-Price-amount, 
.behsootahvieh-spec-table, 
.product-capacity, 
.product-btu {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ==========================================================================
   BLOCK & CORE PRESENTATION PATTERNS
   ========================================================================== */

/* Main Container Sizing & Layout */
.behsootahvieh-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--spacing-xxl);
  padding-bottom: var(--spacing-xxl);
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Homepage Hero Structure */
.behsootahvieh-home-hero {
  border-bottom: 1px solid var(--border);
  padding: 0 !important;
}

.behsootahvieh-home-hero h1 {
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.behsootahvieh-home-hero figure.wp-block-image img {
  border-radius: var(--rounded-lg) !important;
  box-shadow: 0 10px 30px var(--shadow-tint) !important;
  border: 1px solid var(--border) !important;
}

.behsootahvieh-eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  background-color: var(--primary-soft);
  padding: 4px var(--spacing-md);
  border-radius: var(--rounded-pill);
}

/* Unified grid behaviors */
.behsootahvieh-home-grid,
.behsootahvieh-guide-grid {
  gap: var(--spacing-lg) !important;
}

/* Professional Product & Buying Guide Cards */
.behsootahvieh-guide-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg) !important;
  padding: var(--spacing-xl) !important;
  box-shadow: 0 4px 12px var(--shadow-tint);
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              border-color 0.25s ease;
}

.behsootahvieh-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border-color: var(--border-strong);
}

.behsootahvieh-guide-card figure.wp-block-image img {
  border-radius: var(--rounded-md) !important;
  margin-bottom: var(--spacing-md) !important;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease !important;
}

.behsootahvieh-guide-card:hover figure.wp-block-image img {
  transform: scale(1.03);
}

.behsootahvieh-guide-card h3 {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

/* Reusable Global Callouts & Panels */
.behsootahvieh-cta-panel {
  background-color: var(--canvas-warm);
  border: 1px solid var(--border);
  border-radius: var(--rounded-xl);
  padding: var(--spacing-xxl) !important;
  box-shadow: 0 4px 8px var(--shadow-tint);
}

.behsootahvieh-archive-panel {
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  padding: var(--spacing-xl) !important;
  margin-top: 40px !important;
}

.behsootahvieh-archive-panel ul {
  padding-inline-start: var(--spacing-lg);
  padding-inline-end: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
}

.behsootahvieh-archive-panel li {
  margin-bottom: var(--spacing-sm) !important;
  color: var(--text-secondary);
}

/* ==========================================================================
   BUTTON & INTERACTION SYSTEMS
   ========================================================================== */
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  font-family: var(--font-family) !important;
  font-weight: 700 !important;
  border-radius: var(--rounded-pill) !important;
  padding: 12px 24px !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
}

/* Adjust single add-to-cart button padding to center Persian Vazirmatn text vertically */
.woocommerce button.button.single_add_to_cart_button {
  margin-top: 14px;
  padding-bottom: 12px !important;
}

.wp-block-button__link:not(.is-style-outline),
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
  background-color: var(--primary) !important;
  color: var(--text-on-primary) !important;
  border: none !important;
}

.wp-block-button__link:not(.is-style-outline):hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
  background-color: var(--primary-deep) !important;
}

.wp-block-button__link.is-style-outline,
.woocommerce a.button:not(.alt),
.woocommerce button.button:not(.alt) {
  background-color: transparent !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
}

.wp-block-button__link.is-style-outline:hover,
.woocommerce a.button:not(.alt):hover,
.woocommerce button.button:not(.alt):hover {
  background-color: var(--secondary-soft) !important;
  border-color: var(--primary-deep) !important;
  color: var(--primary-deep) !important;
}

/* ==========================================================================
   WOOCOMMERCE LAYOUT INTEGRATION
   ========================================================================== */

/* Badges System */
.badge-category,
.badge-status-success,
.badge-status-warning {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--rounded-pill);
  font-size: 12px;
  font-weight: 500;
}

.badge-category {
  background-color: var(--primary-soft);
  color: var(--primary-deep);
}

.badge-status-success {
  background-color: #E8F8EF;
  color: var(--success);
}

.badge-status-warning {
  background-color: var(--accent-soft);
  color: var(--warning);
}

/* Spec Tables Layout (.card-spec) */
.card-spec,
.behsootahvieh-spec-table {
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  padding: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.behsootahvieh-spec-table table {
  width: 100%;
  border-collapse: collapse;
}

.behsootahvieh-spec-table th,
.behsootahvieh-spec-table td {
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.behsootahvieh-spec-table th {
  color: var(--text-secondary);
  font-weight: 700;
  background-color: rgba(15, 124, 168, 0.04);
}

.behsootahvieh-spec-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   WOOCOMMERCE ARCHIVE TOP ROW ALIGNMENT (DESIGN.md)
   ========================================================================== */
.woocommerce .kadence-shop-top-row {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.woocommerce .kadence-shop-top-item {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.woocommerce .kadence-woo-results-count {
  flex-grow: 1;
}

.woocommerce .woocommerce-result-count {
  font-family: var(--font-family);
  font-size: 14px; /* typography.body-sm */
  color: var(--text-muted);
  line-height: 38px;
  margin: 0;
}

.woocommerce .kadence-woo-ordering form {
  margin: 0;
  display: flex;
  align-items: center;
}

.woocommerce .woocommerce-ordering select {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-secondary);
  background-color: var(--canvas);
  border: 1px solid var(--border-strong);
  border-radius: var(--rounded-sm);
  height: 38px;
  padding: 0 var(--spacing-md);
  line-height: 38px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-left: 36px;
  padding-right: 16px;
}

.woocommerce .woocommerce-ordering select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.woocommerce .kadence-product-toggle-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.woocommerce .kadence-product-toggle-container .kadence-toggle-shop-layout {
  height: 38px;
  width: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--rounded-sm);
  background-color: var(--canvas);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0;
}

.woocommerce .kadence-product-toggle-container .kadence-toggle-shop-layout svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.woocommerce .kadence-product-toggle-container .kadence-toggle-shop-layout:hover {
  background-color: var(--surface-muted);
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.woocommerce .kadence-product-toggle-container .kadence-toggle-shop-layout.toggle-active {
  background-color: var(--primary-soft);
  color: var(--primary-deep);
  border-color: var(--primary);
  box-shadow: none;
}

@media screen and (max-width: 575px) {
  .woocommerce .kadence-shop-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }
  .woocommerce .kadence-woo-results-count {
    justify-content: center;
    text-align: center;
    line-height: 1.4;
    margin-bottom: var(--spacing-xs);
  }
  .woocommerce .woocommerce-ordering,
  .woocommerce .woocommerce-ordering select {
    width: 100%;
  }
}

/* ==========================================================================
   BUTTON VARIATIONS & LOADING/DISABLED STATES
   ========================================================================== */

/* Button Sizes */
.wp-block-button__link.is-size-small,
.woocommerce a.button.small,
.woocommerce button.button.small {
  padding: 8px 16px !important;
  font-size: 13px !important;
}

.wp-block-button__link.is-size-large,
.woocommerce a.button.large,
.woocommerce button.button.large {
  padding: 16px 32px !important;
  font-size: 17px !important;
}

/* Disabled State */
.wp-block-button__link[disabled],
.wp-block-button__link.disabled,
.woocommerce a.button:disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.alt:disabled,
.woocommerce input.button:disabled {
  background-color: var(--border) !important;
  color: var(--text-muted) !important;
  border-color: var(--border) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  pointer-events: none;
}

/* WooCommerce Spinner & Loading State */
.woocommerce a.button.loading::after,
.woocommerce button.button.loading::after,
.woocommerce input.button.loading::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--spacing-sm);
  width: 14px;
  height: 14px;
  border: 2px solid var(--text-on-primary);
  border-top-color: transparent;
  border-radius: var(--rounded-pill);
  animation: behsootahvieh-spin 0.6s linear infinite;
}

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

/* Accent Action Buttons (Offers / Notices) */
.wp-block-button__link.is-style-accent,
.woocommerce a.button.accent {
  background-color: var(--accent) !important;
  color: var(--text-on-dark) !important;
  border: none !important;
}

.wp-block-button__link.is-style-accent:hover,
.woocommerce a.button.accent:hover {
  background-color: var(--warning) !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS & MEDIA QUERIES
   ========================================================================== */

/* Tablet Screens (e.g., up to 992px) */
@media (max-width: 992px) {
  .behsootahvieh-section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
  }

  /* Grid alignment collapses to single-column logic */
  .wp-block-columns.behsootahvieh-home-grid,
  .wp-block-columns.behsootahvieh-guide-grid {
    flex-direction: column !important;
  }

  .wp-block-columns.behsootahvieh-home-grid > .wp-block-column,
  .wp-block-columns.behsootahvieh-guide-grid > .wp-block-column {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: var(--spacing-md) !important;
    width: 100% !important;
  }

  .wp-block-columns.behsootahvieh-home-grid > .wp-block-column:last-child,
  .wp-block-columns.behsootahvieh-guide-grid > .wp-block-column:last-child {
    margin-bottom: 0 !important;
  }
}

/* Mobile Screens (e.g., up to 576px) */
@media (max-width: 576px) {
  /* Hero Heading Scaling down to avoid overflow */
  .behsootahvieh-home-hero h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }

  /* Compact sections spacing for mobile */
  .behsootahvieh-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  /* Reusable panels compact padding */
  .behsootahvieh-cta-panel {
    padding: var(--spacing-lg) !important;
  }

  .behsootahvieh-guide-card {
    padding: var(--spacing-lg) !important;
  }

  /* Table responsive wrapper layout override */
  .behsootahvieh-spec-table {
    overflow-x: auto;
    display: block;
    width: 100%;
  }

  /* WooCommerce responsive adjustments */
  .woocommerce ul.products[class*="columns-"] li.product {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: var(--spacing-lg) !important;
  }
}

/* ==========================================================================
   CUSTOM SHOP PAGE & GRID LAYOUT
   ========================================================================== */

/* Shop page outer wrapper */
.behsootahvieh-shop-archive {
  max-width: 1200px;
  margin-inline: auto;
  padding-block: var(--spacing-xl);
  padding-inline: var(--spacing-lg);
}

/* Shop hero section above grid */
.behsootahvieh-shop-archive__hero {
  background: linear-gradient(135deg, var(--canvas-soft) 0%, var(--surface-muted) 100%);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow-tint);
}

.behsootahvieh-shop-archive__title {
  color: var(--secondary);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.behsootahvieh-shop-archive__hero .term-description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  max-width: 720px;
  margin: var(--spacing-sm) auto var(--spacing-md) auto;
}

.behsootahvieh-shop-archive__hero .term-description p {
  margin: 0;
}


/* Category Filter Badges Row in Shop Hero */
.behsootahvieh-archive-chip-row {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.behsootahvieh-badge--soft {
  background-color: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: var(--rounded-pill);
  padding: 6px var(--spacing-md);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(15, 124, 168, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-block;
  font-family: inherit;
  outline: none;
}

.behsootahvieh-badge--soft:hover {
  background-color: var(--primary);
  color: var(--text-on-primary);
  transform: translateY(-1px);
}

/* Interactive Dropdown Chips */
.behsootahvieh-chip-dropdown {
  position: relative;
  display: inline-block;
}

.behsootahvieh-chip-trigger {
  border: 1px solid rgba(15, 124, 168, 0.15);
}

.behsootahvieh-chip-arrow {
  display: inline-block;
  margin-right: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--primary-deep);
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.behsootahvieh-badge--soft:hover .behsootahvieh-chip-arrow {
  border-top-color: var(--text-on-primary);
}

.behsootahvieh-chip-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  min-width: 190px;
  z-index: 1000;
  display: none;
  padding: var(--spacing-xs) 0;
  text-align: right;
  overflow: hidden;
}

.behsootahvieh-chip-dropdown.is-open .behsootahvieh-chip-dropdown-menu {
  display: block;
}

/* RTL Arrow support */
body.rtl .behsootahvieh-chip-arrow {
  margin-right: 0;
  margin-left: 6px;
}

.behsootahvieh-chip-dropdown-item {
  display: block;
  padding: 10px var(--spacing-md);
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  text-align: right;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.behsootahvieh-chip-dropdown-item:last-child {
  border-bottom: none;
}

.behsootahvieh-chip-dropdown-item:hover {
  background-color: var(--primary-soft);
  color: var(--primary-deep);
}

.behsootahvieh-chip-dropdown-item.is-selected {
  background-color: var(--primary);
  color: var(--text-on-primary);
  font-weight: 600;
}

/* Active State for Filter Chip */
.behsootahvieh-chip-dropdown.is-active .behsootahvieh-badge--soft,
.behsootahvieh-chip-dropdown.is-open .behsootahvieh-badge--soft {
  background-color: var(--primary);
  color: var(--text-on-primary);
  border-color: var(--primary);
}

.behsootahvieh-chip-dropdown.is-active .behsootahvieh-chip-arrow,
.behsootahvieh-chip-dropdown.is-open .behsootahvieh-chip-arrow {
  border-top-color: var(--text-on-primary);
}

.behsootahvieh-chip-dropdown.is-open .behsootahvieh-chip-arrow {
  transform: rotate(180deg);
}



/* Two-column layout grid for shop filters and results */
.behsootahvieh-shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

@media (min-width: 992px) {
  .behsootahvieh-shop-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xxl);
  }
  body.rtl .behsootahvieh-shop-layout {
    grid-template-columns: 280px 1fr;
  }
}

@media (max-width: 991px) {
  .behsootahvieh-shop-layout__filters {
    margin-bottom: var(--spacing-md);
  }
}

/* Sidebar filter widgets container */
.behsootahvieh-shop-layout__filters {
  background-color: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  padding: var(--spacing-lg);
  box-shadow: 0 2px 8px var(--shadow-tint);
}

.behsootahvieh-shop-layout__filters .widget {
  margin-bottom: var(--spacing-xl);
}

.behsootahvieh-shop-layout__filters .widget:last-child {
  margin-bottom: 0;
}

.behsootahvieh-shop-layout__filters .widget-title {
  font-size: 16px;
  color: var(--secondary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

/* Custom categories list in sidebar */
.behsootahvieh-shop-layout__filters ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.behsootahvieh-shop-layout__filters li {
  margin-bottom: var(--spacing-sm);
  font-size: 14px;
  position: relative;
  padding-inline-start: var(--spacing-md);
  color: var(--text-muted); /* Styles product counts like (15) */
}

/* Elegant visual indicator dot for top-level categories */
.behsootahvieh-shop-layout__filters li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
  opacity: 0.7;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Remove dot for sub-level items */
.behsootahvieh-shop-layout__filters li li::before {
  content: none;
}

.behsootahvieh-shop-layout__filters ul.children,
.behsootahvieh-shop-layout__filters ul.sub-menu {
  margin-top: var(--spacing-xs) !important;
  margin-bottom: var(--spacing-xs) !important;
  padding-inline-start: 0 !important;
  padding-inline-end: 0 !important;
  list-style: none !important;
}

.behsootahvieh-shop-layout__filters li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  padding-block: 2px;
}

.behsootahvieh-shop-layout__filters li a:hover {
  color: var(--primary);
}

/* Active current category item styling */
.behsootahvieh-shop-layout__filters li.current-cat > a {
  color: var(--primary-deep);
  font-weight: 700;
}

.behsootahvieh-shop-layout__filters li.current-cat::before {
  background-color: var(--primary-deep);
  transform: scale(1.3);
  opacity: 1;
}

/* Sub-categories container visual line grouping */
.behsootahvieh-shop-layout__filters .children {
  margin-inline-start: var(--spacing-xs);
  margin-top: var(--spacing-xs);
  border-inline-start: 1px solid var(--border);
  padding-inline-start: var(--spacing-md);
}

/* Sub-category list items */
.behsootahvieh-shop-layout__filters .children li {
  margin-bottom: var(--spacing-xs);
  padding-inline-start: var(--spacing-xs);
  font-size: 13px;
}

/* WooCommerce loop override for modern grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--spacing-lg) !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* PREMIUM PRODUCT CARD DESIGN */
.behsootahvieh-product-card {
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rounded-lg) !important;
  padding: var(--spacing-lg) !important;
  box-shadow: 0 4px 12px var(--shadow-tint) !important;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.25s ease !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.behsootahvieh-product-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12) !important;
  border-color: var(--primary) !important;
}

/* Product Card Media (Image wrapper) */
.behsootahvieh-product-card__media {
  display: block;
  text-align: center;
  margin-bottom: var(--spacing-md);
  background-color: var(--canvas-soft);
  border-radius: var(--rounded-sm);
  padding: var(--spacing-md);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--surface-muted);
}

.behsootahvieh-product-card__media img {
  max-height: 180px;
  width: auto !important;
  margin-inline: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.behsootahvieh-product-card:hover .behsootahvieh-product-card__media img {
  transform: scale(1.05);
}

/* Card Body */
.behsootahvieh-product-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.behsootahvieh-product-card__badges {
  margin-bottom: var(--spacing-sm);
}

.behsootahvieh-product-card__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin-bottom: var(--spacing-md) !important;
  min-height: 48px;
}

.behsootahvieh-product-card__title a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.behsootahvieh-product-card__title a:hover {
  color: var(--primary);
}

.behsootahvieh-product-card__excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

/* Card specs/meta styling */
.behsootahvieh-product-card__meta {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 var(--spacing-md) 0 !important;
  border-top: 1px dashed var(--border);
  padding-top: var(--spacing-sm) !important;
}

.behsootahvieh-product-card__meta li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  display: flex;
  justify-content: space-between;
}

.behsootahvieh-product-card__meta li::after {
  content: "";
}

/* Footer (Price & Button) */
.behsootahvieh-product-card__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-sm);
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-sm);
  margin-top: auto;
}

.behsootahvieh-product-card__footer .price {
  color: var(--primary-deep) !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

.behsootahvieh-product-card__footer .behsootahvieh-empty-price-label {
  margin-bottom: 0 !important;
}

/* Override any default/parent circular styles for WooCommerce buttons */
.behsootahvieh-product-card__footer .button {
  margin: 0 !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: visible !important;
  border-radius: var(--rounded-sm) !important;
  background-color: var(--primary) !important;
  color: var(--text-on-primary) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.behsootahvieh-product-card__footer .button:hover {
  background-color: var(--primary-deep) !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   LANDING-PAGE STYLE ENHANCEMENTS FOR HOMEPAGE
   ========================================================================== */

/* Enhanced Hero Section */
.behsootahvieh-home-hero {
  background: linear-gradient(180deg, var(--secondary-soft) 0%, var(--canvas) 100%);
  position: relative;
  overflow: hidden;
}

.behsootahvieh-home-hero::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background-color: var(--primary-soft);
  border-radius: 50%;
  filter: blur(100px);
  top: -100px;
  left: -100px;
  opacity: 0.5;
  z-index: 0;
}

.behsootahvieh-home-hero .behsootahvieh-section {
  padding-top: 96px !important;
  padding-bottom: 96px !important;
  position: relative;
  z-index: 1;
}

.behsootahvieh-home-hero__columns {
  position: relative;
  z-index: 1;
  gap: var(--spacing-xxl) !important;
}

@media (min-width: 768px) {
  .behsootahvieh-home-hero__columns {
    align-items: center;
    gap: 48px !important;
  }
}

@media (max-width: 767px) {
  .behsootahvieh-home-hero__columns {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl) !important;
  }
  .behsootahvieh-home-hero__columns > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .behsootahvieh-home-hero__columns > .wp-block-column:first-child {
    margin-bottom: 0 !important;
  }
}

.behsootahvieh-home-hero img {
  border-radius: var(--rounded-lg);
  box-shadow: 0 4px 20px var(--shadow-tint);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.behsootahvieh-guide-card .wp-block-image {
  margin-block-end: var(--spacing-md);
}

.behsootahvieh-guide-card img {
  border-radius: var(--rounded-md);
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.behsootahvieh-home-hero h1 {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: var(--secondary) !important;
  line-height: 1.35 !important;
  margin-bottom: var(--spacing-lg) !important;
}

.behsootahvieh-home-hero p:not(.behsootahvieh-eyebrow) {
  font-size: 16px !important;
  line-height: 1.8 !important;
  margin-bottom: 28px !important;
  color: var(--text-secondary) !important;
}

.behsootahvieh-home-hero .wp-block-buttons {
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xxl) !important;
}

/* Increased spacing between sections on the homepage */
.behsootahvieh-home .behsootahvieh-section {
  padding-top: 96px !important;
  padding-bottom: 96px !important;
}

/* Premium Card Borders & Top Highlight */
.behsootahvieh-guide-card {
  border-top: 3.5px solid var(--primary) !important;
  position: relative;
  overflow: hidden;
}

/* Specific highlight for VRF/Special cards */
.behsootahvieh-guide-card:nth-child(even) {
  border-top-color: var(--secondary) !important;
}

.behsootahvieh-guide-card .behsootahvieh-eyebrow {
  margin-bottom: var(--spacing-sm);
}

.behsootahvieh-home-grid {
  margin-top: var(--spacing-xl);
}

/* Styled Section Headers with Persian aesthetic line */
.behsootahvieh-section h2 {
  color: var(--secondary);
  font-weight: 800;
  font-size: 28px;
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.behsootahvieh-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  margin-top: var(--spacing-sm);
  border-radius: var(--rounded-pill);
}

.has-text-align-center::after {
  margin-inline: auto !important;
}

/* Premium Consultation CTA panel */
.behsootahvieh-cta-panel {
  background: linear-gradient(135deg, var(--canvas-warm) 0%, var(--secondary-soft) 100%) !important;
  border-radius: var(--rounded-lg) !important;
  border: 1px solid var(--border) !important;
}

.behsootahvieh-cta-panel h2 {
  color: var(--secondary);
  font-size: 28px !important;
}

.behsootahvieh-cta-panel h2::after {
  display: none !important;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .behsootahvieh-shop-layout {
    grid-template-columns: 1fr !important;
  }
  
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   SINGLE PRODUCT PAGE CUSTOMIZATION
   ========================================================================== */

/* Main Container Wrapper */
.behsootahvieh-product-detail {
  max-width: 1200px;
  margin-inline: auto;
  padding-block: var(--spacing-xl);
  padding-inline: var(--spacing-lg);
}

/* Two-column layout grid for Gallery & Summary */
.behsootahvieh-product-detail__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
  align-items: start;
}

@media (max-width: 768px) {
  .behsootahvieh-product-detail__top {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

/* Gallery Box */
.behsootahvieh-product-detail__gallery {
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-lg);
  background-color: var(--canvas-soft);
  box-shadow: 0 4px 12px var(--shadow-tint);
}

/* Summary Box */
.behsootahvieh-product-detail__summary {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  background-color: var(--canvas-soft);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  box-shadow: 0 4px 12px var(--shadow-tint);
}

/* Product title typography */
.behsootahvieh-product-detail__summary .product_title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--secondary) !important;
  line-height: 1.3 !important;
  margin-bottom: var(--spacing-sm) !important;
  border-bottom: 2px solid var(--primary-soft);
  padding-bottom: var(--spacing-sm);
}

/* Empty price label */
.behsootahvieh-empty-price-label {
  color: var(--accent) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
}

/* Custom Inquiry CTA panel when price is empty */
.behsootahvieh-inquiry-cta {
  background-color: var(--accent-soft) !important;
  border: 1px solid var(--accent) !important;
  border-radius: var(--rounded-md) !important;
  padding: var(--spacing-lg) !important;
  margin-block: var(--spacing-md) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08) !important;
  text-align: right;
}

body:not(.rtl) .behsootahvieh-inquiry-cta {
  text-align: left;
}

.behsootahvieh-inquiry-cta__text {
  font-size: 14px !important;
  color: var(--text-secondary) !important;
  line-height: 1.7 !important;
  margin-bottom: var(--spacing-md) !important;
  margin-top: 0 !important;
}

.behsootahvieh-inquiry-cta__button {
  display: inline-block !important;
  background-color: var(--accent) !important;
  color: var(--text-on-primary) !important;
  border: none !important;
  border-radius: var(--rounded-pill) !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2) !important;
}

.behsootahvieh-inquiry-cta__button:hover {
  background-color: var(--warning) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3) !important;
}

/* WooCommerce Tabs Wrapper */
.woocommerce-tabs.wc-tabs-wrapper {
  margin-top: var(--spacing-xxl) !important;
  background-color: var(--canvas-soft);
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 4px 12px var(--shadow-tint);
}

.woocommerce-tabs ul.wc-tabs {
  display: flex !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 var(--spacing-xl) 0 !important;
  border-bottom: 2px solid var(--border) !important;
}

.woocommerce-tabs ul.wc-tabs li {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-tabs ul.wc-tabs li a {
  display: block !important;
  padding: var(--spacing-md) var(--spacing-xl) !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  margin-bottom: -2px !important;
  transition: all 0.2s ease !important;
}

.woocommerce-tabs ul.wc-tabs li.active a {
  color: var(--primary) !important;
  font-weight: 700 !important;
  border-bottom-color: var(--primary) !important;
}

.woocommerce-tabs ul.wc-tabs li a:hover {
  color: var(--primary-deep) !important;
}

/* Attributes & Technical Specification Table Custom Styling */
.woocommerce-Tabs-panel table.shop_attributes {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-top: var(--spacing-md) !important;
  background-color: var(--surface) !important;
  border-radius: var(--rounded-md) !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
}

.woocommerce-Tabs-panel table.shop_attributes tr {
  border-bottom: 1px solid var(--border) !important;
}

.woocommerce-Tabs-panel table.shop_attributes tr:last-child {
  border-bottom: none !important;
}

.woocommerce-Tabs-panel table.shop_attributes tr:nth-child(even) {
  background-color: var(--surface-muted) !important;
}

.woocommerce-Tabs-panel table.shop_attributes th {
  width: 200px !important;
  padding: var(--spacing-md) var(--spacing-lg) !important;
  color: var(--secondary) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-align: right !important;
  background-color: rgba(15, 124, 168, 0.03) !important;
  border-left: 1px solid var(--border) !important;
}

body:not(.rtl) .woocommerce-Tabs-panel table.shop_attributes th {
  text-align: left !important;
  border-left: none !important;
  border-right: 1px solid var(--border) !important;
}

.woocommerce-Tabs-panel table.shop_attributes td {
  padding: var(--spacing-md) var(--spacing-lg) !important;
  color: var(--text) !important;
  font-size: 14px !important;
}

.woocommerce-Tabs-panel table.shop_attributes td p {
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   WOOCOMMERCE RELATED PRODUCTS CUSTOMIZATION
   ========================================================================== */
.related.products {
  margin-top: var(--spacing-xxxl) !important;
  padding-top: var(--spacing-xl) !important;
  border-top: 1px solid var(--border) !important;
}

.related.products h2 {
  color: var(--secondary) !important;
  font-weight: 800 !important;
  font-size: 24px !important;
  margin-bottom: var(--spacing-xl) !important;
  position: relative !important;
  font-family: var(--font-family) !important;
}

.related.products h2::after {
  content: "" !important;
  display: block !important;
  width: 60px !important;
  height: 4px !important;
  background-color: var(--primary) !important;
  margin-top: var(--spacing-sm) !important;
  border-radius: var(--rounded-pill) !important;
}

/* Ensure related products display in a responsive 4-column grid (matching grid-lg-col-4) */
.related.products ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: var(--spacing-lg) !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

@media (max-width: 992px) {
  .related.products ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .related.products ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* WooCommerce Single Product Meta (SKU & Categories) Styling */
.product_meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  border-top: 1px solid var(--border);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-xl);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.product_meta > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

/* SKU styling (precise, technical look for model identifiers) */
.product_meta .sku_wrapper {
  color: var(--text-secondary);
}

.product_meta .sku {
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--secondary);
  background-color: var(--canvas-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--rounded-xs);
  padding: 2px 8px;
  margin-inline-start: var(--spacing-xs);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.05em;
  font-size: 12px;
}

/* Categories badge link styling */
.product_meta .posted_in {
  color: var(--text-secondary);
}

.product_meta .posted_in a {
  background-color: var(--primary-soft);
  color: var(--primary-deep) !important;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--rounded-pill);
  padding: 3px 10px;
  text-decoration: none;
  margin-inline-start: var(--spacing-xs);
  display: inline-block;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.product_meta .posted_in a:hover {
  background-color: var(--primary);
  color: var(--text-on-primary) !important;
  box-shadow: 0 2px 6px rgba(15, 124, 168, 0.15);
}

/* ==========================================================================
   WOOCOMMERCE CART & CHECKOUT BLOCKS
   ========================================================================== */

/* --- EMPTY CART STATE --- */
.wp-block-woocommerce-empty-cart-block {
  background-color: var(--canvas-soft) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rounded-lg) !important;
  padding: var(--spacing-xxl) var(--spacing-xl) !important;
  box-shadow: 0 4px 12px var(--shadow-tint) !important;
  margin-block: var(--spacing-xl) !important;
  text-align: center !important;
}

/* Empty Cart Icon Enhancement (Sad face with circular background) */
.wc-block-cart__empty-cart__title.with-empty-cart-icon {
  position: relative !important;
  padding-top: 120px !important;
  margin-top: 0 !important;
  color: var(--secondary) !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  line-height: 1.4 !important;
}

.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  position: absolute !important;
  top: 10px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background-color: var(--primary) !important;
  z-index: 2 !important;
  margin: 0 !important;
  width: 80px !important;
  height: 80px !important;
  mask-size: 80px !important;
}

.wc-block-cart__empty-cart__title.with-empty-cart-icon::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100px !important;
  height: 100px !important;
  background-color: var(--primary-soft) !important;
  border-radius: 50% !important;
  z-index: 1 !important;
}

/* Empty Cart Return Button */
.wp-block-woocommerce-empty-cart-block .wp-block-button {
  margin-top: var(--spacing-xl) !important;
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link {
  display: inline-block !important;
  background-color: var(--primary) !important;
  color: var(--text-on-primary) !important;
  border-radius: var(--rounded-pill) !important;
  padding: 12px 28px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.wp-block-woocommerce-empty-cart-block .wp-block-button__link:hover {
  background-color: var(--primary-deep) !important;
  transform: translateY(-1px) !important;
}

/* Empty Cart Section Heading */
.wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title) {
  color: var(--secondary) !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  margin-top: var(--spacing-xxl) !important;
  margin-bottom: var(--spacing-lg) !important;
  position: relative !important;
  text-align: center !important;
}

.wp-block-woocommerce-empty-cart-block h2:not(.wc-block-cart__empty-cart__title)::after {
  content: "" !important;
  display: block !important;
  width: 50px !important;
  height: 3px !important;
  background-color: var(--primary) !important;
  margin: var(--spacing-sm) auto 0 auto !important;
  border-radius: var(--rounded-pill) !important;
}

/* --- FILLED CART STATE --- */
.wp-block-woocommerce-cart {
  margin-block: var(--spacing-xl) !important;
}

/* Cart Items Wrapper */
.wc-block-cart__main {
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rounded-lg) !important;
  padding: var(--spacing-lg) !important;
  box-shadow: 0 4px 12px var(--shadow-tint) !important;
}

/* Cart Table Rows */
.wc-block-cart-items {
  border-collapse: collapse !important;
  width: 100% !important;
}

.wc-block-cart-items__row {
  border-bottom: 1px solid var(--border) !important;
  padding-block: var(--spacing-md) !important;
}

.wc-block-cart-items__row:last-child {
  border-bottom: none !important;
}

/* Cart Item Title */
.wc-block-cart-item__title {
  font-weight: 700 !important;
  color: var(--secondary) !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.wc-block-cart-item__title:hover {
  color: var(--primary) !important;
}

/* Cart Item Price */
.wc-block-cart-item__price,
.wc-block-components-formatted-money {
  color: var(--primary-deep) !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
}

/* Cart Item Quantity Selector */
.wc-block-components-quantity-selector {
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--rounded-sm) !important;
  overflow: hidden !important;
}

.wc-block-components-quantity-selector__button {
  background-color: var(--canvas-soft) !important;
  border: none !important;
  color: var(--text-secondary) !important;
  transition: background-color 0.2s ease !important;
}

.wc-block-components-quantity-selector__button:hover {
  background-color: var(--border) !important;
}

.wc-block-components-quantity-selector__input {
  border: none !important;
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Cart Item Remove Link */
.wc-block-cart-item__remove-link {
  color: var(--text-muted) !important;
  font-size: 13px !important;
  transition: color 0.2s ease !important;
  text-decoration: none !important;
}

.wc-block-cart-item__remove-link:hover {
  color: var(--danger) !important;
}

/* Cart Summary Sidebar */
.wc-block-cart__sidebar {
  background-color: var(--surface-muted) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rounded-lg) !important;
  padding: var(--spacing-xl) !important;
  box-shadow: 0 4px 12px var(--shadow-tint) !important;
}

.wc-block-cart-order-summary__title {
  color: var(--secondary) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  margin-bottom: var(--spacing-md) !important;
  border-bottom: 2px solid var(--primary-soft) !important;
  padding-bottom: var(--spacing-sm) !important;
}

/* Totals Items */
.wc-block-components-totals-item {
  border-bottom: 1px dashed var(--border) !important;
  padding-block: var(--spacing-md) !important;
  font-size: 14px !important;
  color: var(--text-secondary) !important;
}

.wc-block-components-totals-item__value {
  font-weight: 700 !important;
  color: var(--text) !important;
}

/* Totals Footer (Total Price) */
.wc-block-components-totals-footer-item {
  border-top: 2px solid var(--border-strong) !important;
  border-bottom: none !important;
  padding-block: var(--spacing-lg) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-weight: 800 !important;
  color: var(--secondary) !important;
  font-size: 17px !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-weight: 800 !important;
  color: var(--primary-deep) !important;
  font-size: 20px !important;
}

/* Coupon Form */
.wc-block-components-totals-coupon {
  margin-top: var(--spacing-md) !important;
}

.wc-block-components-totals-coupon__input input {
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--rounded-sm) !important;
  padding: 10px 12px !important;
}

.wc-block-components-totals-coupon__button {
  background-color: var(--primary) !important;
  color: var(--text-on-primary) !important;
  border-radius: var(--rounded-pill) !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  border: none !important;
  transition: background-color 0.2s ease !important;
}

.wc-block-components-totals-coupon__button:hover {
  background-color: var(--primary-deep) !important;
}

/* Proceed to Checkout Button */
.wc-block-cart__submit-button {
  width: 100% !important;
  background-color: var(--primary) !important;
  color: var(--text-on-primary) !important;
  border-radius: var(--rounded-pill) !important;
  padding: 14px 24px !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  border: none !important;
  transition: all 0.2s ease !important;
  display: block !important;
  text-align: center !important;
}

.wc-block-cart__submit-button:hover {
  background-color: var(--primary-deep) !important;
  transform: translateY(-1px) !important;
}

/* Accepted Payment Methods Widget */
.wc-block-cart-accepted-payment-methods-block {
  margin-top: var(--spacing-lg) !important;
  text-align: center !important;
}

/* ==========================================================================
   VARIATION SWATCHES & MODAL POPUP STYLES
   ========================================================================== */

/* Variation Swatches (Pills) */
.behsootahvieh-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.behsootahvieh-swatch {
  background-color: var(--canvas) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--rounded-pill) !important;
  padding: 8px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.behsootahvieh-swatch:hover:not(.disabled):not(.selected) {
  border-color: var(--primary) !important;
  background-color: var(--canvas-soft) !important;
  color: var(--primary) !important;
}

.behsootahvieh-swatch.selected {
  border-color: var(--primary) !important;
  background-color: var(--primary-soft) !important;
  color: var(--primary-deep) !important;
  font-weight: 700 !important;
  box-shadow: 0 0 0 1px var(--primary) !important;
}

.behsootahvieh-swatch.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  background-color: var(--surface-muted) !important;
}

/* Quick Inquiry Modal Overlay */
.behsootahvieh-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease, background-color 0.1s ease, backdrop-filter 0.1s ease, -webkit-backdrop-filter 0.1s ease;
}

.behsootahvieh-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Modal Content Box */
.behsootahvieh-modal-content {
  background-color: var(--canvas) !important;
  border-radius: var(--rounded-lg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  width: 90% !important;
  max-width: 480px !important;
  padding: var(--spacing-xl) !important;
  position: relative !important;
  direction: rtl !important;
  text-align: right !important;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  transition: transform 0.1s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.1s ease;
}

.behsootahvieh-modal-overlay.is-active .behsootahvieh-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Close button */
.behsootahvieh-modal-close {
  position: absolute !important;
  top: 16px !important;
  left: 16px !important;
  background: transparent !important;
  border: none !important;
  font-size: 28px !important;
  line-height: 1 !important;
  color: var(--text-muted) !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
}

.behsootahvieh-modal-close:hover {
  color: var(--danger) !important;
}

/* Title and subtitles */
.behsootahvieh-modal-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--secondary) !important;
  margin-bottom: var(--spacing-xs) !important;
  margin-top: 0 !important;
}

.behsootahvieh-modal-subtitle {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
  margin-bottom: var(--spacing-lg) !important;
}

/* Form groups and fields */
.behsootahvieh-form-group {
  margin-bottom: var(--spacing-md) !important;
}

.behsootahvieh-form-group label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-bottom: var(--spacing-xs) !important;
}

.behsootahvieh-form-group label .required {
  color: var(--danger) !important;
}

.behsootahvieh-form-group input,
.behsootahvieh-form-group textarea {
  width: 100% !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: var(--rounded-sm) !important;
  padding: 10px 12px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  color: var(--text) !important;
  background-color: var(--canvas) !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.behsootahvieh-form-group input:focus,
.behsootahvieh-form-group textarea:focus {
  border-color: var(--primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px var(--primary-soft) !important;
}

/* Submit button */
.behsootahvieh-modal-submit {
  width: 100% !important;
  background-color: var(--primary) !important;
  color: var(--text-on-primary) !important;
  border-radius: var(--rounded-pill) !important;
  padding: 12px 24px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 10px rgba(15, 124, 168, 0.2) !important;
}

.behsootahvieh-modal-submit:hover {
  background-color: var(--primary-deep) !important;
  box-shadow: 0 6px 14px rgba(15, 124, 168, 0.3) !important;
}

.behsootahvieh-modal-submit:disabled {
  background-color: var(--text-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* AJAX Response Feedback Messages */
.behsootahvieh-modal-response {
  padding: 12px var(--spacing-md) !important;
  border-radius: var(--rounded-sm) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: var(--spacing-md) !important;
  line-height: 1.5 !important;
}

.behsootahvieh-modal-response.success {
  background-color: #E8F8EF !important;
  color: var(--success) !important;
  border: 1px solid #C2F0D5 !important;
}

.behsootahvieh-modal-response.error {
  background-color: #FDF2F2 !important;
  color: var(--danger) !important;
  border: 1px solid #FBD5D5 !important;
}

/* ==========================================================================
   WPFORMS CUSTOM STYLING (MATCHING DESIGN SYSTEM)
   ========================================================================== */

/* Form Wrapper: RTL & Base Typography */
.wpforms-container {
  direction: rtl;
  text-align: right;
  font-family: var(--font-family);
  color: var(--text);
}

/* Labels (typography.label-md) */
.wpforms-container .wpforms-field-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  display: block;
}

/* Descriptions & Sub-labels (typography.caption) */
.wpforms-container .wpforms-field-description,
.wpforms-container .wpforms-field-sublabel {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

/* Inputs & Textareas (components.input-text) */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="number"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container select,
.wpforms-container textarea {
  background-color: var(--canvas);
  color: var(--text);
  font-size: 15px; /* typography.body-md */
  border: 1px solid var(--border-strong);
  border-radius: var(--rounded-sm);
  padding: 12px 14px; /* input padding */
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Input Focus State */
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  border-color: var(--primary);
  outline: none;
  /* Soft glowing focus ring using primary-soft */
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Submit Button (components.button-primary) */
.wpforms-container button[type="submit"],
.wpforms-container input[type="submit"],
.wpforms-container .wpforms-submit {
  background-color: var(--primary);
  color: var(--text-on-primary);
  font-family: var(--font-family);
  font-size: 15px; /* typography.button-md */
  font-weight: 700;
  line-height: 1;
  border-radius: var(--rounded-pill);
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-block;
  width: auto;
}

/* Submit Button Hover (components.button-primary-hover) */
.wpforms-container button[type="submit"]:hover,
.wpforms-container button[type="submit"]:focus,
.wpforms-container input[type="submit"]:hover,
.wpforms-container input[type="submit"]:focus,
.wpforms-container .wpforms-submit:hover,
.wpforms-container .wpforms-submit:focus {
  background-color: var(--primary-deep);
  outline: none;
}

/* Error Messages */
.wpforms-container .wpforms-error {
  color: var(--danger);
  font-size: 12px; /* typography.caption */
  font-weight: 500;
  margin-top: var(--spacing-xs);
}

/* Error State on Input */
.wpforms-container input.wpforms-error,
.wpforms-container select.wpforms-error,
.wpforms-container textarea.wpforms-error {
  border-color: var(--danger);
  box-shadow: none;
}

/* Adjust spacing between form fields */
.wpforms-container .wpforms-field {
  padding-bottom: var(--spacing-xl);
  clear: both;
}

/* ==========================================================================
   STATIC FOOTER STYLING (MATCHING DESIGN SYSTEM)
   ========================================================================== */

.behsootahvieh-footer {
  background-color: var(--secondary) !important; /* #1E3A5F */
  color: var(--border) !important; /* #D8E3EA */
  font-family: var(--font-family);
  direction: rtl;
  text-align: right;
  border-top: 4px solid var(--primary); /* #0F7CA8 brand teal accent border */
  padding-block-start: var(--spacing-xxl); /* 32px top padding */
}

/* Inner columns container */
.behsootahvieh-footer__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--spacing-lg); /* 16px side padding */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xxl); /* 32px gap between columns */
  padding-block-end: var(--spacing-xxl);
}

/* Footer Column heading titles */
.behsootahvieh-footer__title {
  color: var(--canvas) !important; /* #FFFFFF */
  font-size: 18px !important; /* typography.heading-md */
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: var(--spacing-lg) !important; /* 16px bottom margin */
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.behsootahvieh-footer__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary); /* #0F7CA8 underline */
}

/* Description Text in footer column */
.behsootahvieh-footer__text {
  font-size: 14px !important; /* typography.body-sm */
  line-height: 1.8 !important;
  color: var(--border) !important;
  margin-bottom: var(--spacing-lg) !important;
}

/* Links lists */
.behsootahvieh-footer__links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.behsootahvieh-footer__links li {
  margin-bottom: var(--spacing-sm) !important; /* 8px bottom margin */
}

.behsootahvieh-footer__links a {
  color: var(--border) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}

.behsootahvieh-footer__links a:hover {
  color: var(--primary-soft) !important; /* #D9F1F7 hover highlight */
  padding-inline-start: 4px; /* subtle micro-animation on hover */
}

.behsootahvieh-footer__links--spacing {
  margin-bottom: var(--spacing-lg) !important;
}

/* Contact info items */
.behsootahvieh-footer__contact-item {
  font-size: 14px !important;
  line-height: 1.8 !important;
  margin-bottom: var(--spacing-sm) !important;
}

.behsootahvieh-footer__contact-item strong {
  color: var(--canvas) !important;
  font-weight: 600;
}

.behsootahvieh-footer__contact-item a {
  color: var(--border) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.behsootahvieh-footer__contact-item a:hover {
  color: var(--primary-soft) !important;
}

/* Trust Badges placeholder */
.behsootahvieh-footer__badges {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.behsootahvieh-footer__badge-placeholder {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 255, 255, 0.08); /* semi-transparent white */
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--rounded-sm); /* 8px radius */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px !important; /* micro size */
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.behsootahvieh-footer__badge-placeholder:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
  color: var(--canvas);
}

/* Copyright Bottom Bar */
.behsootahvieh-footer__bottom {
  background-color: rgba(15, 23, 42, 0.3) !important; /* dark translucent overlay */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--spacing-md); /* 12px padding top/bottom */
}

.behsootahvieh-footer__bottom-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.behsootahvieh-footer__copyright,
.behsootahvieh-footer__attribution {
  font-size: 12px !important; /* caption size */
  color: rgba(255, 255, 255, 0.5) !important;
  margin: 0 !important;
}

.behsootahvieh-footer__attribution {
  text-align: left;
}

/* Media Queries for Viewports < 768px (Mobile & Tablet) */
@media (max-width: 768px) {
  .behsootahvieh-footer__inner {
    grid-template-columns: 1fr; /* Stack columns vertically */
    gap: var(--spacing-xl); /* 24px vertical rhythm gap */
  }

  .behsootahvieh-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .behsootahvieh-footer__attribution {
    text-align: center !important;
  }
}

/* ==========================================================================
   SINGLE PRODUCT GALLERY STYLING
   ========================================================================== */

/* Main Gallery Viewport */
.woocommerce-product-gallery .flex-viewport {
  border-radius: var(--rounded-md, 12px) !important;
  border: 1px solid var(--border) !important;
  background-color: var(--surface) !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px var(--shadow-tint) !important;
}

/* Zoom trigger position adjustments */
.woocommerce-product-gallery__trigger {
  border-radius: var(--rounded-sm, 8px) !important;
  background-color: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 8px var(--shadow-tint) !important;
}

/* Flexslider Control Nav (Thumbnails container) */
.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: var(--spacing-sm, 8px) !important;
  margin-block-start: var(--spacing-md, 12px) !important;
}

/* Flexslider Individual Thumbnail wrapper */
.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  flex: 0 0 calc(25% - 6px) !important; /* 4 columns minus gap */
  max-width: calc(25% - 6px) !important;
}

/* Flexslider Thumbnail Images */
.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important; /* Force square thumbnails as per DESIGN.md */
  object-fit: cover !important;
  border: 2px solid transparent !important;
  border-radius: var(--rounded-sm, 8px) !important;
  opacity: 0.65 !important;
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
}

/* Active & Hover States */
.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery ol.flex-control-nav.flex-control-thumbs li img:hover {
  border-color: var(--primary, #0F7CA8) !important;
  opacity: 1 !important;
}

