@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/100-iranyekanwebthin.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/200-iranyekanweblight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/300-iranyekanwebregular.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/400-iranyekanwebmedium.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/500-iranyekanwebbold.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/600-iranyekanwebblack.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/700-iranyekanwebextrabold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("../fonts/800-iranyekanwebextrablack.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/*
 * Breakpoints vs .cursor/rules/layout.mdc:
 * - Mobile gutter / “phone” layout: max-width --haveitall-bp-mobile (767px), matching Elementor kit (≤767).
 * - layout.mdc names 768px as the tablet boundary; theme uses 767 in media queries (standard split).
 * - --haveitall-bp-tablet (1024px): when Woo main column relaxes to --haveitall-layout-tablet-inner-max, not the 768 tablet tier.
 * - In @media / @container conditions use literal px (767, 980, …), not var(--haveitall-bp-*); tokens are for values only.
 */
html {
  font-size: 16px;
}

:root {
  --haveitall-primary: var(--color-primary);
  --haveitall-dark-1: color-mix(in srgb, var(--color-primary) 88%, #000000);
  --haveitall-dark-2: color-mix(in srgb, var(--color-primary) 72%, #ffffff);
  --haveitall-soft: var(--color-bg);
  --haveitall-panel-soft: color-mix(in srgb, var(--palette-muted) 6%, var(--color-surface));
  --haveitall-text: var(--color-text);
  --haveitall-muted: var(--color-text-muted);
  --haveitall-radius: 14px;
  --haveitall-font-primary: "IRANYekan", Tahoma, Arial, sans-serif;
  --haveitall-control-radius: 10px;
  --haveitall-control-border: var(--input-border);
  --haveitall-control-bg: var(--input-bg);
  --haveitall-control-focus: var(--input-ring-focus, color-mix(in srgb, var(--color-accent) 28%, transparent));

  /* Native <select> + Select2 closed control (single source for shop, archive, checkout, account). */
  --haveitall-select-min-height: 42px;
  --haveitall-select-min-height-touch: 44px;
  --haveitall-select-padding-y: 0.45rem;
  --haveitall-select-padding-x: 0.65rem;
  --haveitall-select-font-size: 0.8125rem;
  --haveitall-dropdown-panel-shadow: 0 10px 28px color-mix(in srgb, var(--palette-dark) 18%, transparent);
  --haveitall-dropdown-option-selected-bg: var(--haveitall-primary);
  --haveitall-dropdown-option-selected-fg: var(--haveitall-text-inverse);
  --haveitall-dropdown-option-checked-bg: color-mix(in srgb, var(--haveitall-primary) 22%, var(--haveitall-surface));
  --haveitall-dropdown-option-checked-fg: var(--haveitall-dark-1);

  /* Layout widths — literals live here only (see .cursor/rules/layout.mdc). */
  --haveitall-layout-content-max: 1140px;
  --haveitall-layout-wide-max: 1440px;
  --haveitall-layout-mobile-padding-inline: 15px;
  --haveitall-layout-page-inline-gap: calc(var(--haveitall-layout-mobile-padding-inline) * 2);
  --haveitall-layout-tablet-inner-max: 1024px;
  --haveitall-layout-auth-form-max: 980px;
  --haveitall-layout-auth-card-max: 480px;
  --haveitall-layout-prose-max: 720px;
  --haveitall-layout-prose-narrow: 700px;
  --haveitall-layout-toast-stack-width: 380px;
  --haveitall-layout-medium-block: 520px;

  /* Breakpoint tokens — see comment on `html` above.
   * Do not use these vars inside @media (…) — use the same literal px in media queries
   * so breakpoints always apply (see .cursor/rules/layout.mdc). */
  --haveitall-bp-tablet: 1024px;
  --haveitall-bp-mobile: 767px;
  --haveitall-bp-stack: 980px;
  --haveitall-bp-wide-grid: 1100px;
  --haveitall-bp-archive-2col: 1200px;
  --haveitall-bp-nav-compact: 900px;
  --haveitall-bp-account-tight: 700px;
  --haveitall-bp-auth-sm: 640px;
  --haveitall-bp-mobile-xs: 400px;
  --haveitall-bp-archive-ultra: 380px;

  /* Canvas presets (Elementor artboard sizes). */
  --haveitall-layout-canvas-widescreen-w: 1440px;
  --haveitall-layout-canvas-widescreen-h: 900px;
  --haveitall-layout-canvas-laptop-w: 1280px;
  --haveitall-layout-canvas-laptop-h: 800px;
  --haveitall-layout-canvas-fhd-w: 1920px;
  --haveitall-layout-canvas-fhd-h: 1080px;

  /* Global neutrals / UI (globalization; Elementor may override). */
  --haveitall-surface: var(--color-surface);
  --haveitall-surface-muted: color-mix(in srgb, var(--palette-muted) 5%, var(--color-surface));
  --haveitall-border-subtle: color-mix(in srgb, var(--color-border) 80%, var(--color-surface));
  --haveitall-border-ui: var(--color-border);
  --haveitall-text-strong: var(--color-text);
  --haveitall-text-inverse: #ffffff;
  --haveitall-accent-soft: var(--color-accent-soft);
  --haveitall-accent-soft-strong: color-mix(in srgb, var(--color-accent) 34%, var(--color-surface));
  --haveitall-accent-on-soft: var(--color-accent-hover);
  --haveitall-tooltip-bg: var(--palette-dark);
  --haveitall-primary-link: var(--color-primary);
  --haveitall-primary-hover: color-mix(in srgb, var(--color-primary) 82%, #000000);
  --haveitall-input-border-muted: color-mix(in srgb, var(--color-border) 72%, #ffffff);
  --haveitall-focus-ring: color-mix(in srgb, var(--color-accent) 28%, transparent);
  --haveitall-slate-900: var(--palette-dark);
  --haveitall-slate-700: color-mix(in srgb, var(--palette-dark) 72%, var(--palette-muted));
  --haveitall-slate-600: color-mix(in srgb, var(--palette-dark) 55%, var(--palette-muted));
  --haveitall-slate-500: var(--palette-muted);
  --haveitall-gray-100: color-mix(in srgb, var(--palette-muted) 9%, #ffffff);
  --haveitall-hero-btn-primary: var(--color-accent);
  --haveitall-cta-bg: var(--color-accent);
  --haveitall-badge-muted: var(--color-secondary);
  --haveitall-slate-100: color-mix(in srgb, var(--palette-muted) 8%, #ffffff);
  --haveitall-slate-200: color-mix(in srgb, var(--palette-muted) 14%, #ffffff);
  --haveitall-slate-300: color-mix(in srgb, var(--palette-muted) 20%, #ffffff);
  --haveitall-slate-400: color-mix(in srgb, var(--palette-muted) 45%, #ffffff);
  --haveitall-accent-border: color-mix(in srgb, var(--color-accent) 20%, #ffffff);
  --haveitall-tint-blue-bg: color-mix(in srgb, var(--palette-muted) 7%, #ffffff);
  --haveitall-surface-alt: color-mix(in srgb, var(--palette-muted) 6%, #ffffff);
  /* WC-only semantic statuses */
  --haveitall-danger-text: #b91c1c;
  --haveitall-danger-border: color-mix(in srgb, #b91c1c 24%, #ffffff);
  --haveitall-danger-soft: color-mix(in srgb, #b91c1c 10%, #ffffff);
  --haveitall-danger-fill: #b91c1c;
  --haveitall-danger-border-strong: color-mix(in srgb, #b91c1c 28%, #ffffff);
  --haveitall-danger-surface: color-mix(in srgb, #b91c1c 8%, #ffffff);
  --haveitall-warning-amber: var(--color-accent);
  --haveitall-success: #2f9e64;
  --haveitall-success-text: #2f9e64;

  /* Shared commerce / form shells (consumers: checkout, my account, auth). */
  --haveitall-border-shell: var(--color-border);
  --haveitall-control-bg-muted: color-mix(in srgb, var(--palette-muted) 10%, #ffffff);
  --haveitall-primary-gradient-mid: color-mix(in srgb, var(--palette-dark) 58%, var(--palette-deep));
  --haveitall-primary-gradient-light: color-mix(in srgb, var(--palette-deep) 72%, var(--palette-accent));

  /* Typography — rem, 16px base (Elementor Site Settings desktop baseline in typography.mdc). */
  --haveitall-text-body: 1rem;
  --haveitall-text-body-line: 1.6;
  --haveitall-text-small: 0.875rem;
  --haveitall-text-small-line: 1.5;
  --haveitall-text-h1: 2.75rem;
  --haveitall-text-h1-line: 1.2;
  --haveitall-text-h2: 2.125rem;
  --haveitall-text-h2-line: 1.25;
  --haveitall-text-h3: 1.5rem;
  --haveitall-text-h3-line: 1.3;
  --haveitall-text-h4: 1.375rem;
  --haveitall-text-h4-line: 1.35;
  --haveitall-text-h5: 1.125rem;
  --haveitall-text-h5-line: 1.4;
  --haveitall-text-h6: 1rem;
  --haveitall-text-h6-line: 1.4;
  --haveitall-text-section-title: 2rem;
  --haveitall-text-section-title-line: 1.25;
  --haveitall-text-section-title-mobile: 1.625rem;
  --haveitall-text-nav-brand: 1.75rem;
  --haveitall-text-sm: 0.8125rem;
  --haveitall-text-xs: 0.75rem;
  --haveitall-text-2xs: 0.6875rem;
  --haveitall-text-3xs: 0.625rem;

  /* Elementor global color fallbacks: keep widget/template backgrounds readable
   * when Elementor Kit variables are unavailable on some frontend contexts. */
  --e-global-color-primary: var(--color-primary);
  --e-global-color-secondary: var(--color-secondary);
  --e-global-color-text: var(--color-text);
  --e-global-color-accent: var(--color-accent);
  --e-global-color-6ec0f11: var(--color-surface);
}

body.haveitall-mobile-menu-open {
  overflow: hidden;
}

/* Page gutter matches layout rule: 100% minus 15px each side via --haveitall-layout-page-inline-gap. */
.haveitall-container {
  width: min(calc(100% - var(--haveitall-layout-page-inline-gap)), var(--haveitall-layout-wide-max));
  margin-inline: auto;
}

.haveitall-section,
.haveitall-nav,
.haveitall-hero,
.haveitall-footer {
  font-family: var(--haveitall-font-primary);
}

.haveitall-section {
  padding: 64px 0;
  background: var(--haveitall-surface);
}

.haveitall-section-title {
  text-align: center;
  font-size: var(--haveitall-text-section-title);
  line-height: var(--haveitall-text-section-title-line);
  margin: 0 0 36px;
  color: var(--haveitall-text);
}

@media (max-width: 767px) {
  .haveitall-section-title {
    font-size: var(--haveitall-text-section-title-mobile);
  }
}

body {
  font-family: var(--haveitall-font-primary);
  font-size: var(--haveitall-text-body);
  line-height: var(--haveitall-text-body-line);
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
}

body.woocommerce-cart,
body.woocommerce-checkout,
body.haveitall-product-archive-page {
  background-color: var(--haveitall-soft);
}

a {
  color: var(--color-primary, var(--haveitall-primary));
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent);
}

button{
  font-family: inherit !important;
}

/* Global reusable controls: low-specificity so Elementor can override. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea) {
  font-family: var(--haveitall-font-primary);
  border-radius: var(--radius-sm, var(--haveitall-control-radius));
  border: 1px solid var(--input-border, var(--haveitall-control-border));
  background: var(--input-bg, var(--haveitall-control-bg));
  color: var(--color-text, var(--haveitall-text));
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea):focus,
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), select, textarea):focus-visible {
  outline: none;
  border-color: var(--input-border-focus, color-mix(in srgb, var(--color-accent) 45%, var(--haveitall-surface)));
  background: var(--haveitall-surface);
  box-shadow: 0 0 0 3px var(--input-ring-focus, var(--haveitall-control-focus));
}

/* Theme dropdown: native selects (add class `haveitall-select` in markup when you need the hook explicitly). */
:where(select),
select.haveitall-select {
  min-height: var(--haveitall-select-min-height);
  padding-block: var(--haveitall-select-padding-y);
  padding-inline: var(--haveitall-select-padding-x);
  font-size: var(--haveitall-select-font-size);
}

@media (max-width: 380px) {
  :where(select),
  select.haveitall-select {
    min-height: var(--haveitall-select-min-height-touch);
    font-size: 1rem;
  }
}

/*
 * SelectWoo / Select2 (WooCommerce): one chrome style on all storefront pages.
 * Dropdown list colors live here; scoped to body.woocommerce-page so Elementor-only pages stay untouched.
 */
body.woocommerce-page .select2-container--default .select2-selection--single {
  position: relative;
  min-height: var(--haveitall-select-min-height);
  height: auto;
  padding-block: var(--haveitall-select-padding-y);
  padding-inline: var(--haveitall-select-padding-x);
  border: 1px solid var(--haveitall-control-border);
  border-radius: var(--haveitall-control-radius);
  background: var(--haveitall-control-bg);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.45;
  padding-inline-start: 10px;
  padding-inline-end: 28px;
  text-align: start;
  color: var(--haveitall-text);
  font-size: var(--haveitall-select-font-size);
  font-family: var(--haveitall-font-primary);
}

html[dir="rtl"] body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered,
body.rtl.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-page .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__rendered {
  padding-inline-start: 28px;
  padding-inline-end: 10px;
  text-align: right;
}

body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 100%;
  top: 0;
}

/* Chevron instead of Select2’s border triangle (`b`). */
body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__arrow b {
  position: static !important;
  display: block;
  margin: 0 !important;
  left: auto !important;
  top: auto !important;
  width: 12px !important;
  height: 12px !important;
  border: none !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%2364748b' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.2s ease;
  transform: none;
}

body.woocommerce-page .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: rotate(180deg) !important;
}

html[dir="rtl"] body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__arrow,
body.rtl.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__arrow,
body.woocommerce-page .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
  left: 8px !important;
  right: auto !important;
}

/* SelectWoo clear (×): accent chip so it reads as a control (esp. next to chevron). */
body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__clear {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  line-height: 1;
  border: 0;
  border-radius: 100%;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__clear:hover {
  background: var(--haveitall-primary-hover);
  color: #fff;
}

/*
 * allowClear: keep the × control from stacking on the chevron.
 * LTR: clear sits on the inline-end (same side as our chevron column) — widen that gutter.
 */
html:not([dir="rtl"]) body.woocommerce-page .select2-container--default.select2-container--allow-clear .select2-selection--single .select2-selection__rendered,
body:not(.rtl).woocommerce-page .select2-container--default.select2-container--allow-clear .select2-selection--single .select2-selection__rendered,
body.woocommerce-page .select2-container--default.select2-container--allow-clear:not([dir="rtl"]) .select2-selection--single .select2-selection__rendered {
  padding-inline-end: 52px;
}

/*
 * RTL + allowClear: × and chevron share the physical left (inline-end in RTL).
 * Pad that side with padding-inline-end; keep inline-start (right) at the normal 28px text inset.
 */
html[dir="rtl"] body.woocommerce-page .select2-container--default.select2-container--allow-clear .select2-selection--single .select2-selection__rendered,
body.rtl.woocommerce-page .select2-container--default.select2-container--allow-clear .select2-selection--single .select2-selection__rendered,
body.woocommerce-page .select2-container--default.select2-container--allow-clear[dir="rtl"] .select2-selection--single .select2-selection__rendered,
html[dir="rtl"] body.woocommerce-page .select2-container--default[dir="rtl"]:has(.select2-selection__clear) .select2-selection--single .select2-selection__rendered,
body.rtl.woocommerce-page .select2-container--default[dir="rtl"]:has(.select2-selection__clear) .select2-selection--single .select2-selection__rendered {
  padding-inline-start: 28px;
  padding-inline-end: 58px;
}

html[dir="rtl"] body.woocommerce-page .select2-container--default.select2-container--allow-clear .select2-selection--single .select2-selection__arrow,
body.rtl.woocommerce-page .select2-container--default.select2-container--allow-clear .select2-selection--single .select2-selection__arrow,
body.woocommerce-page .select2-container--default.select2-container--allow-clear[dir="rtl"] .select2-selection--single .select2-selection__arrow,
html[dir="rtl"] body.woocommerce-page .select2-container--default[dir="rtl"]:has(.select2-selection__clear) .select2-selection--single .select2-selection__arrow,
body.rtl.woocommerce-page .select2-container--default[dir="rtl"]:has(.select2-selection__clear) .select2-selection--single .select2-selection__arrow {
  left: 38px !important;
}

html[dir="rtl"] body.woocommerce-page .select2-container--default.select2-container--allow-clear .select2-selection--single .select2-selection__clear,
body.rtl.woocommerce-page .select2-container--default.select2-container--allow-clear .select2-selection--single .select2-selection__clear,
body.woocommerce-page .select2-container--default.select2-container--allow-clear[dir="rtl"] .select2-selection--single .select2-selection__clear,
html[dir="rtl"] body.woocommerce-page .select2-container--default[dir="rtl"]:has(.select2-selection__clear) .select2-selection--single .select2-selection__clear,
body.rtl.woocommerce-page .select2-container--default[dir="rtl"]:has(.select2-selection__clear) .select2-selection--single .select2-selection__clear {
  position: absolute;
  left: 10px;
  right: auto !important;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
  float: none !important;
  z-index: 3;
}

html[dir="rtl"] body.woocommerce-page .select2-results__option,
body.rtl.woocommerce-page .select2-results__option,
body.woocommerce-page .select2-dropdown[dir="rtl"] .select2-results__option {
  text-align: right;
}

body.woocommerce-page .select2-container--open .select2-selection--single,
body.woocommerce-page .select2-container--focus .select2-selection--single,
body.woocommerce-page .select2-container--default.select2-container--open .select2-selection--single,
body.woocommerce-page .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: color-mix(in srgb, var(--haveitall-primary) 45%, var(--haveitall-surface));
  background: var(--haveitall-surface);
  box-shadow: 0 0 0 3px var(--haveitall-control-focus);
}

body.woocommerce-page .select2-container--open .select2-dropdown {
  border: 1px solid var(--haveitall-border-shell);
  border-radius: var(--haveitall-control-radius);
  overflow: hidden;
  box-shadow: var(--haveitall-dropdown-panel-shadow);
}

body.woocommerce-page .select2-container--open .select2-results,
body.woocommerce-page .select2-container--open .select2-results__options {
  border-radius: 0 0 var(--haveitall-control-radius) var(--haveitall-control-radius);
}

body.woocommerce-page .select2-container--open .select2-results__options {
  overflow-y: auto;
  overflow-x: hidden;
}

body.woocommerce-page .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-page .select2-container--default .select2-results__option--highlighted[data-selected] {
  background-color: var(--haveitall-dropdown-option-selected-bg) !important;
  color: var(--haveitall-dropdown-option-selected-fg) !important;
}

body.woocommerce-page .select2-container--default .select2-results__option[aria-selected="true"],
body.woocommerce-page .select2-container--default .select2-results__option[data-selected="true"] {
  background-color: var(--haveitall-dropdown-option-checked-bg) !important;
  color: var(--haveitall-dropdown-option-checked-fg) !important;
}

body.woocommerce-page .select2-results__option {
  font-size: var(--haveitall-select-font-size);
}

/* Bordered search “shells”: keep one ring on the wrapper, not a second ring on the inner field. */
:where(
  .haveitall-archive-search__shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  .haveitall-nav-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  .haveitall-mobile-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"])
):focus,
:where(
  .haveitall-archive-search__shell input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  .haveitall-nav-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  .haveitall-mobile-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"])
):focus-visible {
  outline: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

:where(button, .button, input[type="submit"], input[type="button"], input[type="reset"]) {
  font-family: var(--haveitall-font-primary);
  border-radius: var(--radius-sm, var(--haveitall-control-radius));
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

:where(button, .button, input[type="submit"], input[type="button"], input[type="reset"]):focus,
:where(button, .button, input[type="submit"], input[type="button"], input[type="reset"]):focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus, 0 0 0 3px var(--haveitall-control-focus));
}

/* Shared design-system surfaces */
:where(.haveitall-card-surface, .haveitall-cart-item, .haveitall-auth-card, .haveitall-account-dashboard, .haveitall-account-orders, .haveitall-account-view-order, .haveitall-account-downloads, .haveitall-account-addresses, .haveitall-account-edit-address, .haveitall-account-edit-account) {
  background: var(--card-bg, var(--haveitall-surface));
  border: 1px solid var(--card-border, var(--haveitall-border-ui));
  border-radius: var(--radius-md, var(--haveitall-radius));
  box-shadow: var(--card-shadow, 0 10px 24px color-mix(in srgb, var(--palette-dark) 12%, transparent));
}

/* Accent-first action buttons for Woo + theme actions */
:is(.haveitall-cta, .haveitall-btn--primary, .haveitall-btn, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .single_add_to_cart_button, .checkout-button, #place_order) {
  background: var(--button-primary-bg, var(--color-accent));
  color: var(--button-primary-fg, #ffffff);
  border: 1px solid var(--button-primary-bg, var(--color-accent));
}

:is(.haveitall-cta, .haveitall-btn--primary, .haveitall-btn, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .single_add_to_cart_button, .checkout-button, #place_order):hover,
:is(.haveitall-cta, .haveitall-btn--primary, .haveitall-btn, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .single_add_to_cart_button, .checkout-button, #place_order):focus-visible {
  background: var(--button-primary-bg-hover, var(--color-accent-hover));
  border-color: var(--button-primary-bg-hover, var(--color-accent-hover));
  color: var(--button-primary-fg, #ffffff);
}

:where(.haveitall-tag, .haveitall-badge, .woocommerce .onsale) {
  background: var(--color-accent-soft);
  color: var(--color-accent-hover);
  border: 1px solid color-mix(in srgb, var(--color-accent) 32%, var(--color-surface));
}

/* WooCommerce hard overrides (intentionally !important to beat plugin defaults). */
body.woocommerce-page :is(a.button.alt, button.button.alt, input.button.alt, .single_add_to_cart_button, .checkout-button, #place_order) {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #ffffff !important;
}

body.woocommerce-page :is(a.button.alt, button.button.alt, input.button.alt, .single_add_to_cart_button, .checkout-button, #place_order):hover,
body.woocommerce-page :is(a.button.alt, button.button.alt, input.button.alt, .single_add_to_cart_button, .checkout-button, #place_order):focus-visible {
  background: var(--color-accent-hover) !important;
  border-color: var(--color-accent-hover) !important;
  color: #ffffff !important;
}

body.woocommerce-page :is(.price, .price .woocommerce-Price-amount, .price bdi, .price ins, .price ins .woocommerce-Price-amount, .price ins bdi) {
  color: var(--color-accent) !important;
}

/* PDP commerce card: list price uses global primary (blue), not accent. */
body.woocommerce-page .haveitall-pdp__price-value :is(.price, .price .woocommerce-Price-amount, .price bdi, .price ins, .price ins .woocommerce-Price-amount, .price ins bdi) {
  color: var(--color-primary) !important;
}

body.woocommerce-page .haveitall-pdp__cart-actions :is(.single_variation .price, .single_variation .price .woocommerce-Price-amount, .single_variation .price bdi, .woocommerce-variation .price, .woocommerce-variation .price .woocommerce-Price-amount, .woocommerce-variation .price bdi) {
  color: var(--color-primary) !important;
}

body.woocommerce-page :is(.price del, .price del .woocommerce-Price-amount, .price del bdi) {
  color: var(--color-text-muted) !important;
}

body.woocommerce-page .haveitall-pdp__price-value :is(.price del, .price del .woocommerce-Price-amount, .price del bdi, .price del .amount, .price del .woocommerce-Price-currencySymbol),
body.woocommerce-page .haveitall-pdp__cart-actions :is(.single_variation .price del, .single_variation .price del .woocommerce-Price-amount, .single_variation .price del bdi, .woocommerce-variation .price del, .woocommerce-variation .price del .woocommerce-Price-amount, .woocommerce-variation .price del bdi) {
  color: var(--color-text-muted) !important;
}

/* Global price consistency: sale price never underlined, old price always gray. */
body :is(.price ins, .price ins .woocommerce-Price-amount, .price ins bdi, .price ins .amount, .price ins .woocommerce-Price-currencySymbol) {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* One strikethrough on deleted amounts: do not let nested inlines inherit line-through (stacks as 3 lines in RTL). */
body :is(.price del) {
  color: var(--color-text-muted) !important;
  text-decoration: line-through solid currentColor 1px !important;
  text-decoration-color: currentColor !important;
}

body :is(.price del .woocommerce-Price-amount, .price del bdi, .price del .amount, .price del .woocommerce-Price-currencySymbol) {
  color: var(--color-text-muted) !important;
  font-size: 0.85em !important;
  font-weight: 500 !important;
  opacity: 0.8 !important;
  text-decoration: none !important;
}

/* Global custom checkbox: geometry is LTR so the tick does not mirror oddly in RTL parents. */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  border: 2px solid var(--haveitall-slate-400);
  border-radius: 4px;
  background: var(--haveitall-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  direction: ltr;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="checkbox"]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 0.32rem;
  height: 0.62rem;
  margin: 0;
  border: solid var(--haveitall-text-inverse);
  border-width: 0 0.15rem 0.15rem 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform 0.16s ease;
  box-sizing: border-box;
  pointer-events: none;
}

input[type="checkbox"]:checked {
  border-color: var(--haveitall-primary);
  background: var(--haveitall-primary);
}

input[type="checkbox"]:checked::before {
  transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--haveitall-focus-ring);
  outline-offset: 2px;
}

input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Global custom radio design to avoid browser defaults everywhere. */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid var(--haveitall-input-border-muted);
  border-radius: 999px;
  background: var(--haveitall-surface);
  display: inline-grid;
  place-content: center;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--haveitall-primary);
  transform: scale(0);
  transition: transform 0.14s ease;
}

input[type="radio"]:checked {
  border-color: var(--haveitall-primary);
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

input[type="radio"]:focus-visible {
  outline: 2px solid var(--haveitall-focus-ring);
  outline-offset: 2px;
}

input[type="radio"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* WooCommerce: shrinkable layout chain + .site-main as query container for shell grids. */
body.woocommerce-page:not(.haveitall-auth-page) #page.site,
body.woocommerce-page:not(.haveitall-auth-page) .site-content,
body.woocommerce-page:not(.haveitall-auth-page) .site-main {
  box-sizing: border-box;
}

body.woocommerce-page:not(.haveitall-auth-page) .site-content,
body.woocommerce-page:not(.haveitall-auth-page) .site-main {
  min-width: 0;
}

body.woocommerce-page:not(.haveitall-auth-page) .site-main {
  container-type: inline-size;
  container-name: haveitall-wc-main;
}

/* Keep WooCommerce content aligned to Elementor-like boxed layout. */
body.woocommerce-page:not(.haveitall-auth-page) .site-main,
body.woocommerce-page:not(.haveitall-auth-page) .entry-content > .woocommerce,
body.woocommerce-page:not(.haveitall-auth-page) .content-area > .woocommerce {
  width: 100%;
  max-width: var(--haveitall-layout-content-max);
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  body.woocommerce-page:not(.haveitall-auth-page) .site-main,
  body.woocommerce-page:not(.haveitall-auth-page) .entry-content > .woocommerce,
  body.woocommerce-page:not(.haveitall-auth-page) .content-area > .woocommerce {
    max-width: var(--haveitall-layout-tablet-inner-max);
  }
}

@media (max-width: 767px) {
  body.woocommerce-page:not(.haveitall-auth-page) .site-main,
  body.woocommerce-page:not(.haveitall-auth-page) .entry-content > .woocommerce,
  body.woocommerce-page:not(.haveitall-auth-page) .content-area > .woocommerce {
    max-width: var(--haveitall-bp-mobile);
    padding-inline: var(--haveitall-layout-mobile-padding-inline);
  }
}

/* Mirror viewport breakpoints when .site-main inline size is narrow (embeds, odd wrappers). */
@container haveitall-wc-main (max-width: 980px) {
  .haveitall-account-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .haveitall-account-sidebar {
    position: static;
    align-self: start;
    height: auto;
  }

  .haveitall-account-content {
    display: block;
  }

  .haveitall-account-content > * {
    height: auto;
  }

  .haveitall-cart-page .haveitall-cart-layout {
    grid-template-columns: 1fr;
  }

  .haveitall-cart-page .haveitall-cart-summary {
    position: static;
    order: 1;
  }

  .haveitall-cart-page .haveitall-cart-layout__items {
    order: 2;
  }

  .haveitall-archive__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main";
    gap: 1rem;
  }

  .haveitall-archive__sidebar {
    max-width: none;
    width: 100%;
  }

  .haveitall-archive-sidebar {
    position: static;
  }
}

@container haveitall-wc-main (max-width: 1200px) {
  .haveitall-products-grid.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container haveitall-wc-main (max-width: 1100px) {
  .haveitall-checkout-page .haveitall-checkout-steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .haveitall-checkout-page .haveitall-checkout-layout {
    grid-template-columns: 1fr;
  }

  .haveitall-checkout-page .haveitall-checkout-summary .haveitall-cart-summary {
    position: static;
    max-height: none;
  }
}

/* Shared breadcrumbs (Rank Math + WooCommerce fallback). */
.haveitall-breadcrumbs-band {
  padding-block: 2px 0;
  margin-block-end: 0;
}

@media (max-width: 767px) {
  .haveitall-breadcrumbs-band {
    padding-block-start: 1rem;
    padding-block-end: 0;
  }
}

.haveitall-breadcrumbs-inner .rank-math-breadcrumb {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--haveitall-muted);
}

.haveitall-breadcrumbs-inner .rank-math-breadcrumb p {
  margin: 0;
}

.haveitall-breadcrumbs-inner .rank-math-breadcrumb a {
  color: var(--haveitall-muted);
  text-decoration: none;
}

.haveitall-breadcrumbs-inner .rank-math-breadcrumb a:hover {
  color: var(--haveitall-text);
}

.woocommerce-breadcrumb.haveitall-bc-wc-fallback {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--haveitall-muted);
}

.woocommerce-breadcrumb.haveitall-bc-wc-fallback a {
  color: inherit;
  text-decoration: none;
}

.woocommerce-breadcrumb.haveitall-bc-wc-fallback a:hover {
  color: var(--haveitall-text);
}

html[dir="rtl"] .woocommerce-breadcrumb.haveitall-bc-wc-fallback,
html[dir="rtl"] .haveitall-breadcrumbs-inner .rank-math-breadcrumb {
  direction: rtl;
}

/* Global tabs (Option C: Carded tabs) for current/future surfaces. */
:root {
  --haveitall-tab-nav-bg: var(--haveitall-gray-100);
  --haveitall-tab-item-bg: color-mix(in srgb, var(--haveitall-gray-100) 88%, var(--color-surface));
  --haveitall-tab-item-active-bg: #ffffff;
  --haveitall-tab-item-border: var(--color-border);
  --haveitall-tab-item-active-border: color-mix(in srgb, var(--color-border) 88%, var(--color-text-muted));
  --haveitall-tab-item-text: var(--color-text-muted);
  --haveitall-tab-item-active-text: var(--color-primary);
  --haveitall-tab-item-shadow: 0 10px 22px color-mix(in srgb, var(--palette-dark) 16%, transparent);
}

.woocommerce .woocommerce-tabs ul.tabs,
.woocommerce-page .woocommerce-tabs ul.tabs,
.haveitall-tabs .tabs__nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin: 0 0 1.25rem;
  padding: 14px;
  border: 1px solid var(--haveitall-tab-item-border);
  border-radius: 12px;
  background: var(--haveitall-tab-nav-bg);
}

.woocommerce .woocommerce-tabs ul.tabs::before,
.woocommerce-page .woocommerce-tabs ul.tabs::before {
  display: none;
}

.woocommerce .woocommerce-tabs ul.tabs li,
.woocommerce-page .woocommerce-tabs ul.tabs li {
  margin: 0;
  border: 0;
  background: transparent;
}

.woocommerce .woocommerce-tabs ul.tabs li a,
.woocommerce-page .woocommerce-tabs ul.tabs li a,
.haveitall-tabs .tabs__btn {
  border: 1px solid var(--haveitall-tab-item-border);
  border-radius: 12px;
  background: var(--haveitall-tab-item-bg);
  color: var(--haveitall-tab-item-text);
  padding: 12px 20px !important;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.woocommerce .woocommerce-tabs ul.tabs li a:active,
.woocommerce-page .woocommerce-tabs ul.tabs li a:active,
.haveitall-tabs .tabs__btn:active {
  background: var(--haveitall-tab-item-active-bg);
  border-color: var(--haveitall-tab-item-active-border);
  color: var(--haveitall-tab-item-active-text);
}

.woocommerce .woocommerce-tabs ul.tabs li.active a,
.woocommerce .woocommerce-tabs ul.tabs li a:hover,
.woocommerce-page .woocommerce-tabs ul.tabs li.active a,
.woocommerce-page .woocommerce-tabs ul.tabs li a:hover,
.haveitall-tabs .tabs__btn.is-active,
.haveitall-tabs .tabs__btn:hover {
  color: var(--haveitall-tab-item-active-text);
  background: var(--haveitall-tab-item-active-bg);
  border-color: var(--haveitall-tab-item-active-border);
  box-shadow: var(--haveitall-tab-item-shadow);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .woocommerce .woocommerce-tabs ul.tabs,
  .woocommerce-page .woocommerce-tabs ul.tabs,
  .haveitall-tabs .tabs__nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 14px;
    padding-inline: 14px;
  }

  .woocommerce .woocommerce-tabs ul.tabs li,
  .woocommerce-page .woocommerce-tabs ul.tabs li {
    flex: 0 0 auto;
  }

  /*
   * Keep a trailing scroll gutter so the last tab is fully reachable/visible
   * on narrow widths (especially in RTL horizontal scrolling).
   */
  .woocommerce .woocommerce-tabs ul.tabs::after,
  .woocommerce-page .woocommerce-tabs ul.tabs::after,
  .haveitall-tabs .tabs__nav::after {
    content: "";
    display: block;
    flex: 0 0 14px;
  }
}

/*
 * WooCommerce default tabs use higher-specificity selectors on li / li.active / pseudo corners.
 * Normalize them so live Woo tabs match Option C preview exactly.
 */
.woocommerce div.product .woocommerce-tabs ul.tabs,
.woocommerce #content div.product .woocommerce-tabs ul.tabs,
.woocommerce-page div.product .woocommerce-tabs ul.tabs,
.woocommerce-page #content div.product .woocommerce-tabs ul.tabs {
  margin: 0 0 1.25rem !important;
  padding: 14px !important;
  border: 1px solid var(--haveitall-tab-item-border) !important;
  border-radius: 12px !important;
  background: var(--haveitall-tab-nav-bg) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce #content div.product .woocommerce-tabs ul.tabs li,
.woocommerce-page div.product .woocommerce-tabs ul.tabs li,
.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active,
.woocommerce #content div.product .woocommerce-tabs ul.tabs li.active,
.woocommerce-page div.product .woocommerce-tabs ul.tabs li.active,
.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li.active {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce #content div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce #content div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce-page div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce-page div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce-page #content div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
  content: none !important;
}

/*
 * Stray empty <p> / <br> in flex "actions" rows (wpautop, Elementor WYSIWYG, plugins).
 * Scoped to known theme wrappers — does not target article prose.
 */
.haveitall-cart-summary__actions > p:empty,
.haveitall-cart-summary__actions > br,
.haveitall-cart-coupon__controls > p:empty,
.haveitall-cart-coupon__controls > br,
.haveitall-archive-filters__actions > p:empty,
.haveitall-archive-filters__actions > br,
.haveitall-home-hero__actions > p:empty,
.haveitall-home-hero__actions > br,
.haveitall-presents-hero__actions > p:empty,
.haveitall-presents-hero__actions > br,
.haveitall-home-top-nav__actions > p:empty,
.haveitall-home-top-nav__actions > br,
.haveitall-auth-actions > p:empty,
.haveitall-auth-actions > br,
.haveitall-account-chips > p:empty,
.haveitall-account-chips > br,
[class*="haveitall-"][class*="actions"] > p:empty,
[class*="haveitall-"][class*="actions"] > br,
[class*="haveitall-"][class*="controls"] > p:empty,
[class*="haveitall-"][class*="controls"] > br,
[class*="haveitall-"][class*="chips"] > p:empty,
[class*="haveitall-"][class*="chips"] > br {
  display: none !important;
}
