/*
Theme Name: Hello Elementor Child - Tech Store
Theme URI: https://developer.elementor.com/
Description: Professional Hebrew RTL child theme for Hello Elementor - Electronics & Tech E-commerce
Author: Custom Development
Author URI: https://developer.elementor.com/
Template: hello-elementor
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hello-elementor-child
Tags: rtl-language-support, translation-ready, custom-colors, custom-menu, custom-logo, featured-images, woocommerce
*/

/* ==========================================================================
   Design System - CSS Custom Properties
   ========================================================================== */

:root {
  /* ========== Colors ========== */

  /* Primary - Deep Navy (Trust & Professionalism) */
  --color-primary: #1A2744;
  --color-primary-dark: #0D1829;
  --color-primary-light: #2A3F5F;
  --color-primary-rgb: 26, 39, 68;

  /* Secondary - Electric Blue (Technology & Innovation) */
  --color-secondary: #0066FF;
  --color-secondary-dark: #0052CC;
  --color-secondary-light: #3385FF;
  --color-secondary-rgb: 0, 102, 255;

  /* Accent - Cyan (Modern Tech Feel) */
  --color-accent: #00D4FF;
  --color-accent-dark: #00A8CC;
  --color-accent-light: #66E5FF;
  --color-accent-rgb: 0, 212, 255;

  /* Semantic Colors */
  --color-success: #10B981;
  --color-success-light: #34D399;
  --color-success-dark: #059669;

  --color-warning: #F59E0B;
  --color-warning-light: #FBBF24;
  --color-warning-dark: #D97706;

  --color-error: #EF4444;
  --color-error-light: #F87171;
  --color-error-dark: #DC2626;

  --color-info: #3B82F6;
  --color-info-light: #60A5FA;

  /* Neutral Grays */
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --bg-dark: #1A2744;
  --bg-darker: #0D1829;

  /* Text Colors */
  --text-primary: #1A2744;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;
  --text-link: #0066FF;
  --text-link-hover: #0052CC;

  /* Border Colors */
  --border-light: #E5E7EB;
  --border-medium: #D1D5DB;
  --border-dark: #9CA3AF;
  --border-focus: #0066FF;

  /* ========== Typography ========== */

  /* Font Families */
  --font-primary: 'Heebo', 'Segoe UI', 'Arial Hebrew', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Assistant', 'Heebo', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Font Sizes - Fluid Typography */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Heading Sizes - Responsive */
  --h1-size: clamp(2.25rem, 5vw, 3.5rem);
  --h2-size: clamp(1.875rem, 4vw, 2.5rem);
  --h3-size: clamp(1.5rem, 3vw, 1.875rem);
  --h4-size: clamp(1.25rem, 2.5vw, 1.5rem);
  --h5-size: clamp(1.125rem, 2vw, 1.25rem);
  --h6-size: 1rem;

  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* ========== Spacing ========== */

  --space-0: 0;
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */

  /* Section Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --section-gap: clamp(2rem, 5vw, 4rem);

  /* Container */
  --container-max: 1400px;
  --container-narrow: 800px;
  --container-wide: 1600px;
  --container-padding: clamp(1rem, 5vw, 2rem);

  /* ========== Borders & Radius ========== */

  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --border-width: 1px;
  --border-width-2: 2px;

  /* ========== Shadows ========== */

  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Product Card Shadows */
  --shadow-card: 0 2px 8px rgba(26, 39, 68, 0.08);
  --shadow-card-hover: 0 12px 28px rgba(26, 39, 68, 0.15);

  /* Inner Shadow */
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* Focus Ring */
  --ring-width: 3px;
  --ring-color: rgba(0, 102, 255, 0.3);
  --ring-offset: 2px;

  /* ========== Transitions ========== */

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Specific Transitions */
  --transition-colors: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
  --transition-shadow: box-shadow 200ms ease;
  --transition-transform: transform 200ms ease;
  --transition-all: all 200ms ease;

  /* ========== Z-Index Scale ========== */

  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-notification: 800;

  /* ========== Breakpoints (for reference) ========== */
  /*
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  */

  /* ========== Component Specific ========== */

  /* Header */
  --header-height: 80px;
  --header-height-mobile: 64px;
  --header-height-sticky: 64px;

  /* Sidebar */
  --sidebar-width: 300px;
  --sidebar-width-collapsed: 80px;

  /* Product Grid */
  --product-card-gap: var(--space-6);
  --product-image-ratio: 1 / 1;

  /* Forms */
  --input-height: 48px;
  --input-height-sm: 40px;
  --input-height-lg: 56px;
  --input-padding-x: var(--space-4);
  --input-padding-y: var(--space-3);

  /* Buttons */
  --btn-padding-x: var(--space-6);
  --btn-padding-y: var(--space-3);
  --btn-padding-x-sm: var(--space-4);
  --btn-padding-y-sm: var(--space-2);
  --btn-padding-x-lg: var(--space-8);
  --btn-padding-y-lg: var(--space-4);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  direction: rtl;
  text-align: right;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  margin: 0;
  padding: 0;
}

/* Selection */
::selection {
  background-color: var(--color-secondary);
  color: var(--text-inverse);
}

/* Focus Visible */
:focus-visible {
  outline: var(--ring-width) solid var(--ring-color);
  outline-offset: var(--ring-offset);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); font-weight: var(--font-semibold); }
h4 { font-size: var(--h4-size); font-weight: var(--font-semibold); }
h5 { font-size: var(--h5-size); font-weight: var(--font-semibold); }
h6 { font-size: var(--h6-size); font-weight: var(--font-semibold); }

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: var(--transition-colors);
}

a:hover {
  color: var(--text-link-hover);
}

strong, b {
  font-weight: var(--font-semibold);
}

small {
  font-size: var(--text-sm);
}

/* Price - Keep LTR for numbers */
.price,
.woocommerce-Price-amount,
.amount,
[class*="price"] .amount {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: var(--section-padding);
}

.section-sm {
  padding-block: var(--space-12);
}

.section-lg {
  padding-block: var(--space-24);
}

/* RTL Flex Utilities */
.flex-rtl {
  display: flex;
  flex-direction: row-reverse;
}

.flex-rtl-wrap {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  line-height: var(--leading-none);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border: var(--border-width-2) solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-all);
  -webkit-appearance: none;
  appearance: none;
}

.btn:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary Button */
.btn-primary,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--color-secondary);
  color: var(--text-inverse);
  border-color: var(--color-secondary);
}

.btn-primary:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--text-inverse);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary Button (Outline) */
.btn-secondary {
  background-color: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--text-inverse);
}

/* Dark Button */
.btn-dark,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

.btn-dark:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-ghost:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-dark);
}

/* Button Sizes */
.btn-sm {
  padding: var(--btn-padding-y-sm) var(--btn-padding-x-sm);
  font-size: var(--text-sm);
}

.btn-lg {
  padding: var(--btn-padding-y-lg) var(--btn-padding-x-lg);
  font-size: var(--text-lg);
}

.btn-full {
  width: 100%;
}

/* Button with Icon - RTL Flip */
.btn .icon-start {
  order: 1;
}

.btn .icon-end {
  order: -1;
}

/* RTL Arrow Flip */
.rtl-flip,
.btn-arrow::after {
  transform: scaleX(-1);
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  height: var(--input-height);
  padding: var(--input-padding-y) var(--input-padding-x);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: var(--border-width) solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: right;
  direction: rtl;
  transition: var(--transition-all);
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 var(--ring-width) var(--ring-color);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Labels */
label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-medium);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* Select with RTL Arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left var(--space-4) center;
  padding-left: var(--space-10);
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-left: var(--space-2);
  accent-color: var(--color-secondary);
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: var(--transition-all);
}

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

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-4) var(--space-6);
  border-bottom: var(--border-width) solid var(--border-light);
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: var(--border-width) solid var(--border-light);
  background-color: var(--bg-secondary);
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: var(--leading-none);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.badge-sale {
  background-color: var(--color-error);
  color: var(--text-inverse);
}

.badge-new {
  background-color: var(--color-success);
  color: var(--text-inverse);
}

.badge-featured {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.badge-stock {
  background-color: var(--color-success-light);
  color: var(--color-success-dark);
}

.badge-out-of-stock {
  background-color: var(--color-gray-200);
  color: var(--color-gray-600);
}

/* ==========================================================================
   Images
   ========================================================================== */

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

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.img-contain {
  object-fit: contain;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul, ol {
  margin: 0 0 var(--space-4) 0;
  padding-right: var(--space-6);
  padding-left: 0;
}

li {
  margin-bottom: var(--space-2);
}

.list-none {
  list-style: none;
  padding: 0;
}

/* ==========================================================================
   Tables
   ========================================================================== */

table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

th, td {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-width) solid var(--border-light);
}

th {
  font-weight: var(--font-semibold);
  background-color: var(--bg-secondary);
  text-align: right;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Text Alignment */
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-center { text-align: center; }

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-inverse { color: var(--text-inverse); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-accent { color: var(--color-accent); }

/* Background Colors */
.bg-primary { background-color: var(--bg-primary); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-dark { background-color: var(--bg-dark); }
.bg-accent { background-color: var(--color-accent); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex Utilities */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Margin */
.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Padding */
.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Width */
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

/* Hide on mobile */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

/* Hide on tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .hide-tablet { display: none !important; }
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}

/* Show only on mobile */
@media (min-width: 768px) {
  .show-mobile-only { display: none !important; }
}

/* Show only on desktop */
@media (max-width: 1023px) {
  .show-desktop-only { display: none !important; }
}
