/*
Theme Name: IranSolarStore
Theme URI: https://iransolarstore.ir
Author: IranSolarStore
Author URI: https://iransolarstore.ir
Description: قالب حرفه‌ای فروشگاه انرژی خورشیدی - اینورتر و باتری LiFePO4
Version: 2.0.0
Requires at least: 5.7
Tested up to: 6.9
Requires PHP: 7.4
WC requires at least: 6.0
WC tested up to: 10.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iransolarstore
Tags: rtl-language, woocommerce, e-commerce, right-to-left, persian, solar, energy
*/

/* ==========================================================================
   Design Tokens — Production v2.0
   ========================================================================== */

:root {
  /* === Brand Colours === */
  --color-primary:        #16A34A;   /* vibrant emerald green */
  --color-primary-dark:   #15803D;
  --color-primary-deeper: #166534;
  --color-primary-light:  #DCFCE7;
  --color-primary-glow:   rgba(22, 163, 74, 0.15);

  --color-accent:         #F59E0B;   /* warm amber */
  --color-accent-dark:    #D97706;
  --color-accent-light:   #FEF3C7;

  /* === Dark Palette (header / footer / dark sections) === */
  --color-dark:           #0F172A;   /* deep navy */
  --color-dark-2:         #1E293B;
  --color-dark-3:         #334155;
  --color-dark-muted:     rgba(255,255,255,0.65);
  --color-dark-faint:     rgba(255,255,255,0.15);

  /* === Neutrals === */
  --color-bg:             #FFFFFF;
  --color-surface:        #F8FAFC;
  --color-surface-2:      #F1F5F9;
  --color-border:         #E2E8F0;
  --color-border-dark:    #CBD5E1;
  --color-text:           #0F172A;
  --color-text-2:         #334155;
  --color-text-muted:     #64748B;
  --color-text-light:     #94A3B8;
  --color-white:          #FFFFFF;

  /* === Semantic === */
  --color-success:        #16A34A;
  --color-error:          #DC2626;
  --color-error-light:    #FEE2E2;
  --color-warning:        #F59E0B;

  /* === Shape === */
  --radius-2xl:  20px;
  --radius-xl:   16px;
  --radius-card: 14px;
  --radius-btn:  10px;
  --radius-sm:   8px;
  --radius-xs:   6px;
  --radius-pill: 999px;

  /* === Elevation === */
  --shadow-xs:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-card:   0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover:  0 12px 36px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-header: 0 2px 16px rgba(0,0,0,0.09);
  --shadow-fab:    0 6px 24px rgba(37,211,102,0.45);
  --shadow-green:  0 8px 32px rgba(22,163,74,0.25);

  /* === Typography === */
  --font-base: 'Vazirmatn', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-2xs:  11px;
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-body: 15px;
  --fs-md:   16px;
  --fs-lg:   18px;
  --fs-xl:   20px;
  --fs-2xl:  24px;
  --fs-3xl:  30px;
  --fs-4xl:  36px;
  --fs-hero: clamp(36px, 4.5vw, 52px);

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  --lh-tight:  1.25;
  --lh-snug:   1.45;
  --lh-base:   1.65;
  --lh-loose:  1.85;

  /* === Layout === */
  --container-max: 1280px;
  --container-pad: clamp(16px, 4vw, 40px);
  --header-height: 72px;

  /* === Transitions === */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-base: cubic-bezier(0.4, 0, 0.2, 1);

  --transition-fast:   150ms var(--ease-base);
  --transition-base:   220ms var(--ease-base);
  --transition-slow:   350ms var(--ease-out);
  --transition-spring: 400ms var(--ease-out);
}

/* ==========================================================================
   Base Reset — Production grade
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  tab-size: 4;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
