

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

:root {

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --font-family-base: -apple-system, "Segoe UI", "Cairo", Tahoma, Arial, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);

  --color-primary:        #1A73E8;
  --color-secondary:      #F5F5F5;
  --color-button:         #28A745;
  --color-button-text:    #FFFFFF;
  --color-offer:          #E63946;
  --color-discount:       #E63946;
  --color-text-main:      #212121;
  --color-text-secondary: #6C757D;
  --color-footer-bg:      #1D1D1D;
  --color-footer-text:    #FFFFFF;
  --color-success:        #28A745;
  --color-error:          #DC3545;

  --color-white:          #FFFFFF;
  --color-bg:             #F8F9FA;
  --color-border:         #D1D5DB;
  --transition-fast:      0.2s ease;
}

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

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  color: var(--color-text-main);
  background: var(--color-bg);
  direction: rtl;
  line-height: var(--line-height-normal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  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;
}

.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;
}

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

.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 420px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  font-family: inherit;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  direction: rtl;
}

.toast-item.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-item.toast-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toast-item.toast-error {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toast-item.toast-info {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toast-item.toast-warning {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.toast-item .toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.toast-item .toast-msg {
  flex: 1;
  line-height: 1.4;
}

.toast-item .toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 16px;
  border-radius: 4px;
}
.toast-item .toast-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

