/* Persian typography shared by storefront, customer forms and management.
   Screen-only: the calibrated 100 × 100 mm shipping label keeps its print metrics. */
@media screen {

  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { font-family: IranYekan, Tahoma, Arial, sans-serif; font-size: 14px; line-height: 1.95; letter-spacing: normal; }
  :is(button,input,select,textarea) { font-family: inherit; letter-spacing: normal; }
  :is(h1,h2,h3,h4,h5,h6) { letter-spacing: normal; }

  html[data-theme-scope="storefront"] :is(.main-nav,.quick-categories,.search-form input) { font-size: 13px; }
  html[data-theme-scope="storefront"] .promo { font-size: 12px; line-height: 1.8; }
  html[data-theme-scope="storefront"] .brand small { font-size: 11px; }
  html[data-theme-scope="storefront"] :is(.category-menu a,.search-suggestion) { font-size: 13px; line-height: 1.9; }

  #app:not(.admin-view):not(.support-view) .section-heading h2 { font-size: clamp(18px,1.5vw,22px); line-height: 1.65; letter-spacing: normal; }
  #app:not(.admin-view):not(.support-view) .page-heading h1 { font-size: clamp(23px,2vw,29px); line-height: 1.65; letter-spacing: normal; }
  #app:not(.admin-view):not(.support-view) .product-summary h1 { font-size: clamp(21px,1.8vw,26px); line-height: 1.85; letter-spacing: normal; }
  #app:not(.admin-view):not(.support-view) :is(.section-link,.category-all-toggle,.breadcrumbs,.catalog-filter-toggle) { font-size: 12px; line-height: 1.9; }
  #app:not(.admin-view):not(.support-view) .category-card > span:nth-child(2) { font-size: 12px; line-height: 1.9; min-height: 0; }
  #app:not(.admin-view):not(.support-view) .category-count { font-size: 11px; line-height: 1.8; }
  #app:not(.admin-view):not(.support-view) .benefit-item strong { font-size: 13px; line-height: 1.8; }
  #app:not(.admin-view):not(.support-view) .benefit-item > div > span { font-size: 12px; line-height: 1.9; }
  #app:not(.admin-view):not(.support-view) :is(.product-title,.product-grid .product-title) { font-size: 13px; line-height: 2; min-height: 52px; max-height: 52px; font-weight: 500; letter-spacing: normal; }
  #app:not(.admin-view):not(.support-view) :is(.product-rating,.product-old-price,.product-badge,.product-price .currency) { font-size: 11px; }
  #app:not(.admin-view):not(.support-view) :is(.product-actions .button,.product-grid .product-actions .button) { font-size: 12px; line-height: 1.8; }
  #app:not(.admin-view):not(.support-view) :is(.filter-group label,.filter-group a,.catalog-toolbar label,.catalog-toolbar span) { font-size: 13px; line-height: 1.9; }
  #app:not(.admin-view):not(.support-view) :is(.summary-line,.summary-row,.checkout-note,.cart-note,.product-review p) { font-size: 13px; line-height: 2; }
  #app:not(.admin-view):not(.support-view) .product-review strong { font-size: 13px; }
  #app:not(.admin-view):not(.support-view) :is(.product-review time,.product-review-rating) { font-size: 12px; }
  #app:not(.admin-view):not(.support-view) .cart-item-info h2 { font-size: 14px; line-height: 2; }
  #app:not(.admin-view):not(.support-view) .customer-title { font-size: clamp(23px,2vw,29px); line-height: 1.65; letter-spacing: normal; }
  #app:not(.admin-view):not(.support-view) .customer-card-head h2 { font-size: 17px; line-height: 1.85; }
  #app:not(.admin-view):not(.support-view) .customer-subtitle { font-size: 13px; line-height: 2; }
  .customer-portal { font-size: 14px; line-height: 1.95; }
  .customer-portal :is(.customer-field,.customer-summary-row,.customer-line-details,.customer-line-details strong,.customer-check,.customer-inline-note) { font-size: 13px; line-height: 1.95; }
  .customer-portal :is(.customer-field-hint,.customer-line-details small,.customer-line-details > span,.customer-step) { font-size: 12px; line-height: 1.9; }
  .customer-portal :is(.customer-input,.customer-textarea,select,.customer-button) { font-size: 14px; line-height: 1.9; }
  .customer-portal :is(input,textarea)::placeholder { font-size: inherit; }
  html[data-theme-scope="storefront"] :is(.footer-columns a,.footer-about,.service-grid > div,.copyright) { font-size: 12px; line-height: 2; }
  html[data-theme-scope="storefront"] .footer-columns h3 { font-size: 15px; line-height: 1.9; }
  html[data-theme-scope="storefront"] .mobile-bottom-nav a { font-size: 11px; line-height: 1.7; }

  .admin-shell,.support-shell { font-size: 14px; line-height: 1.95; }
  .admin-page-head h1,.admin-support-host .support-page-title,.support-page-title { font-size: clamp(22px,2vw,27px); line-height: 1.65; letter-spacing: normal; }
  :is(.admin-page-head p,.support-page-subtitle,.admin-nav-link,.admin-subnav,.support-nav-link) { font-size: 13px; line-height: 1.9; }
  :is(.admin-card-head h2,.admin-card > header h2,.support-panel-head h2,.support-panel-head h3) { font-size: 15px; line-height: 1.85; }
  :is(.admin-field,.admin-toggle,.support-label,.support-field > label) { font-size: 13px; line-height: 1.9; }
  :is(.admin-field input,.admin-field select,.admin-field textarea,.admin-search input,.admin-filters select,.support-input,.support-select,.support-shell input,.support-shell select,.support-shell textarea) { font-size: 14px; line-height: 1.9; }
  :is(.admin-field small,.admin-muted,.admin-notice,.admin-flash,.admin-form-error,.admin-delivery-help,.admin-sensitive summary,.support-help,.support-notice,.support-flash,.support-form-error) { font-size: 12px; line-height: 2; }
  :is(.admin-button,.admin-button.small,.admin-button.text,.support-btn,.support-btn.small) { font-size: 12px; line-height: 1.8; }
  :is(.admin-table th,.support-table th) { font-size: 12px; line-height: 1.9; }
  :is(.admin-table td,.admin-table-title,.support-table td,.support-ticket-title,.admin-detail-list,.admin-order-totals,.support-message-body,.support-message > p) { font-size: 13px; line-height: 1.95; }
  :is(.admin-table td small,.admin-badge,.admin-pagination,.support-badge,.support-pagination,.support-message time,.support-message > header,.support-message > header time) { font-size: 11px; line-height: 1.8; }
  :is(.admin-kpi > span,.admin-kpi > div > span,.support-kpi-label,.support-kpi span) { font-size: 13px; }
  :is(.admin-kpi small,.admin-kpi > div > small,.support-kpi small,.admin-brand small,.admin-sidebar-bottom,.support-brand small,.support-sidebar p) { font-size: 12px; line-height: 1.9; }
  .theme-choice select { font-size: 12px; }

  /* The standalone hosting login uses this stylesheet too. */
  body > main:not(#app) { line-height: 1.95; }
  body > main:not(#app) > h1 { font-size: clamp(23px,2vw,28px); line-height: 1.7; }
  body > main:not(#app) :is(label,p) { font-size: 14px; line-height: 1.95; }
  body > main:not(#app) :is(input,button) { font-size: 16px; line-height: 1.8; }
}

@media screen and (max-width: 800px) {
  body { font-size: 14px; }
  html[data-theme-scope="storefront"] .promo { font-size: 11px; }
  html[data-theme-scope="storefront"] .search-form input { line-height: 1.6; padding-block: 4px; }
  #app:not(.admin-view):not(.support-view) :is(.product-title,.product-grid .product-title) { font-size: 12.5px; line-height: 2; min-height: 50px; max-height: 50px; }
  #app:not(.admin-view):not(.support-view) .category-card > span:nth-child(2) { font-size: 11px; line-height: 1.9; }
  #app:not(.admin-view):not(.support-view) .category-count { font-size: 11px; }
  #app:not(.admin-view):not(.support-view) .product-summary h1 { font-size: 21px; }
  html[data-theme-scope="storefront"] .search-form input,
  #app:not(.admin-view):not(.support-view) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
  .customer-portal :is(input,select,textarea),
  .admin-shell :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea),
  .support-shell :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { font-size: 16px; }
  :is(.admin-shell,.support-shell,.customer-portal) :is(input,textarea)::placeholder { font-size: inherit; }
  .admin-topbar-actions > .admin-button { font-size: 12px; }
  .admin-section-editor-head .admin-button { font-size: 12px; }
}


