/* ============================================
   نظام الهوية البصرية - ASWAAQIFY Brand Identity System
   تصميم مبني على شعار الهوية العربية الفاخرة
   ============================================ */

/* ============================================
   استيراد الخطوط العربية - Arabic Font Imports
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@300;400;500;600;700;800;900&family=Amiri:wght@400;700&family=Cormorant+Garamond:wght@300;400;500;600;700&display=swap');

/* ============================================
   متغيرات التصميم - Design Tokens (CSS Variables)
   ============================================ */
:root {
  /* اللوحة الأساسية - Core Palette */
  --color-primary:       #1B4332;
  --color-primary-dark:  #0D2B1F;
  --color-primary-light: #2D6A4F;
  --color-gold:          #C9A84C;
  --color-gold-light:    #E8C97E;
  --color-gold-dark:     #A07C30;
  --color-cream:         #F5F0E8;
  --color-cream-dark:    #E8E0D0;

  /* الوضع الداكن - Dark Mode Colors */
  --color-dark-bg:       #0A1F16;
  --color-dark-surface:  #122D20;
  --color-dark-card:     #163528;

  /* رموز دلالية - Semantic Tokens */
  --bg-primary:     var(--color-primary);
  --bg-surface:     var(--color-cream);
  --bg-card:        #FFFFFF;
  --text-heading:   var(--color-gold);
  --text-body:      var(--color-cream);
  --text-on-light:  var(--color-primary-dark);
  --text-muted:     #7A8B82;
  --accent:         var(--color-gold);
  --border-ornate:  var(--color-gold-dark);
  --border-subtle:  rgba(201, 168, 76, 0.2);

  /* حالات الألوان - State Colors */
  --color-error:      #C0392B;
  --color-error-light:#F5D5D1;
  --color-success:    #27AE60;
  --color-warning:    #F39C12;
  --color-info:       #2980B9;

  /* الطباعة - Typography */
  --font-display:  'Tajawal', 'Amiri', serif;
  --font-body:     'Cairo', 'Noto Naskh Arabic', sans-serif;
  --font-latin:    'Cormorant Garamond', serif;
  --font-heading:  'Amiri', 'Tajawal', serif;

  /* أحجام الخطوط - Font Sizes (Fluid) */
  --text-xs:    clamp(0.6875rem, 0.625rem + 0.25vw, 0.75rem);
  --text-sm:    clamp(0.8125rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base:  clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --text-lg:    clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  --text-xl:    clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-2xl:   clamp(1.25rem, 1rem + 1vw, 1.5rem);
  --text-3xl:   clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --text-4xl:   clamp(1.875rem, 1.5rem + 1.5vw, 2.25rem);
  --text-5xl:   clamp(2.25rem, 1.8rem + 2vw, 3rem);
  --text-hero:  clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* التشكيل والفراغات - Shape & Spacing */
  --radius-none: 0px;
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* الظلال - Shadows */
  --shadow-gold:    0 4px 24px rgba(201, 168, 76, 0.25);
  --shadow-gold-lg: 0 8px 40px rgba(201, 168, 76, 0.35);
  --shadow-card:    0 8px 40px rgba(13, 43, 31, 0.18);
  --shadow-card-hover: 0 12px 48px rgba(13, 43, 31, 0.28);
  --shadow-dropdown: 0 12px 36px rgba(13, 43, 31, 0.22);
  --shadow-header:  0 2px 20px rgba(13, 43, 31, 0.15);

  /* التدرجات - Gradients */
  --gradient-gold: linear-gradient(135deg, #C9A84C, #E8C97E, #A07C30);
  --gradient-gold-shimmer: linear-gradient(90deg, #C9A84C 0%, #E8C97E 25%, #C9A84C 50%, #E8C97E 75%, #C9A84C 100%);
  --gradient-green: linear-gradient(135deg, #1B4332, #2D6A4F);
  --gradient-dark: linear-gradient(180deg, #0D2B1F, #1B4332);
  --gradient-hero: linear-gradient(135deg, #0D2B1F 0%, #1B4332 50%, #2D6A4F 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(13,43,31,0.92) 0%, rgba(27,67,50,0.85) 100%);

  /* الانتقالات - Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out-expo);
  --transition-base: 300ms var(--ease-out-expo);
  --transition-slow: 500ms var(--ease-out-expo);

  /* الحاوية - Container */
  --container-max: 1440px;
  --container-padding: clamp(16px, 4vw, 40px);

  /* الخلفية المزخرفة - Arabesque Pattern (inline SVG) */
  --pattern-arabesque: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.06'%3E%3Cpath d='M30 0L60 30L30 60L0 30z M30 8L52 30L30 52L8 30z'/%3E%3Cpath d='M30 15L45 30L30 45L15 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  --pattern-geometric: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M40 0L80 40L40 80L0 40z'/%3E%3Cpath d='M40 10L70 40L40 70L10 40z'/%3E%3Cpath d='M40 20L60 40L40 60L20 40z'/%3E%3Ccircle cx='40' cy='40' r='8'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-star: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M20 0L24.5 15.5L40 20L24.5 24.5L20 40L15.5 24.5L0 20L15.5 15.5z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================
   الوضع الداكن - Dark Mode
   ============================================ */
[data-theme="dark"],
.dark-mode {
  --bg-primary:     var(--color-dark-bg);
  --bg-surface:     var(--color-dark-surface);
  --bg-card:        var(--color-dark-card);
  --text-body:      var(--color-cream);
  --text-on-light:  var(--color-cream);
  --text-muted:     #8FA89A;
  --border-subtle:  rgba(201, 168, 76, 0.15);
  --shadow-card:    0 8px 40px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 12px 48px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary:     var(--color-dark-bg);
    --bg-surface:     var(--color-dark-surface);
    --bg-card:        var(--color-dark-card);
    --text-body:      var(--color-cream);
    --text-on-light:  var(--color-cream);
  }
}

/* ============================================
   الحركات والتأثيرات - Animations & Keyframes
   ============================================ */

/* تأثير اللمعان الذهبي - Gold Shimmer */
@keyframes goldShimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ظهور من الأسفل - Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ظهور تدريجي - Fade In */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ارتداد - Bounce */
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  25%      { transform: scale(1.25); }
  50%      { transform: scale(0.95); }
  75%      { transform: scale(1.1); }
}

/* نبض ذهبي - Gold Pulse */
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(201, 168, 76, 0); }
}

/* دوران النجمة - Star Rotate */
@keyframes starRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* تحريك الزخرفة - Pattern Scroll */
@keyframes patternScroll {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

/* هيكل التحميل - Skeleton Loading */
@keyframes skeletonShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ============================================
   الأساسيات العامة - Global Base Styles
   ============================================ */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-on-light);
  background-color: var(--bg-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   الطباعة - Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-on-light);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.heading-display {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-weight: 700;
}

.heading-section {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-primary-dark);
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.heading-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.is-ltr .heading-section::after {
  right: auto;
  left: 0;
}

/* نص لاتيني أنيق - Elegant Latin Text */
.text-latin {
  font-family: var(--font-latin);
  letter-spacing: 0.02em;
}

/* ============================================
   الحاوية والشبكة - Container & Grid System
   ============================================ */
.ovet-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.ovet-grid {
  display: grid;
  gap: 24px;
}

.ovet-grid-12 {
  grid-template-columns: repeat(12, 1fr);
}

/* شبكة المنتجات - Product Grid */
.ovet-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .ovet-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .ovet-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 375px) {
  .ovet-product-grid {
    grid-template-columns: 1fr;
  }
}

/* الفراغات العمودية - Section Spacing */
.ovet-section {
  padding: clamp(40px, 8vw, 80px) 0;
}

.ovet-section-sm {
  padding: clamp(24px, 4vw, 40px) 0;
}

/* ============================================
   الأزرار - Buttons
   ============================================ */

/* زر أساسي - Primary Button (Gold) */
.ovet-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-none);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 44px;
}

.ovet-btn-primary:hover {
  background: var(--color-gold-light);
  box-shadow: var(--shadow-gold);
  color: var(--color-primary-dark);
}

.ovet-btn-primary:active {
  transform: scale(0.97);
}

.ovet-btn-primary:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* زر لامع - Shimmer Button */
.ovet-btn-shimmer {
  background: var(--gradient-gold-shimmer);
  background-size: 200% auto;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius-none);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-base);
  min-height: 44px;
}

.ovet-btn-shimmer:hover {
  animation: goldShimmer 2s ease infinite;
  box-shadow: var(--shadow-gold-lg);
  color: var(--color-primary-dark);
}

.ovet-btn-shimmer:active {
  transform: scale(0.97);
}

.ovet-btn-shimmer:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

/* زر ثانوي - Secondary Button (Outlined) */
.ovet-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-none);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
  min-height: 44px;
}

.ovet-btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-gold);
}

.ovet-btn-secondary:active {
  transform: scale(0.97);
}

.ovet-btn-secondary:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* زر صغير - Small Button */
.ovet-btn-sm {
  padding: 8px 20px;
  font-size: var(--text-sm);
}

/* زر كبير - Large Button */
.ovet-btn-lg {
  padding: 18px 48px;
  font-size: var(--text-xl);
}

/* ============================================
   حقول الإدخال - Form Inputs
   ============================================ */
.ovet-input-group {
  position: relative;
  margin-bottom: 24px;
}

.ovet-input {
  width: 100%;
  padding: 16px 16px 8px;
  background: var(--color-cream);
  border: none;
  border-bottom: 2px solid var(--color-gold-dark);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-primary-dark);
  transition: var(--transition-base);
  direction: rtl;
  text-align: right;
  min-height: 44px;
}

.ovet-input:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
  box-shadow: 0 2px 0 0 var(--color-gold);
}

.ovet-input:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.ovet-input::placeholder {
  color: var(--text-muted);
  text-align: right;
}

.is-ltr .ovet-input,
.is-ltr .ovet-input::placeholder {
  text-align: left;
  direction: ltr;
}

/* تسمية عائمة - Floating Label */
.ovet-label {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-base);
}

.is-ltr .ovet-label {
  right: auto;
  left: 16px;
}

.ovet-input:focus ~ .ovet-label,
.ovet-input:not(:placeholder-shown) ~ .ovet-label {
  top: 2px;
  font-size: var(--text-xs);
  color: var(--color-gold);
}

/* ============================================
   الشارات والعلامات - Badges & Tags
   ============================================ */
.ovet-badge-new {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.ovet-badge-sale {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--color-primary);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.ovet-badge-oos {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #9E9E9E;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-sm);
  opacity: 0.75;
}

/* ============================================
   فاصل الزخرفة - Arabesque Section Divider
   ============================================ */
.ovet-divider-arabesque {
  width: 100%;
  height: 40px;
  background: var(--pattern-arabesque);
  position: relative;
  overflow: hidden;
}

.ovet-divider-arabesque::before,
.ovet-divider-arabesque::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
}

.ovet-divider-arabesque::before {
  right: 0;
  background: linear-gradient(to left, var(--bg-surface), transparent);
}

.ovet-divider-arabesque::after {
  left: 0;
  background: linear-gradient(to right, var(--bg-surface), transparent);
}

/* فاصل ذهبي خطي - Gold Line Divider */
.ovet-divider-gold {
  width: 100%;
  height: 1px;
  background: var(--gradient-gold);
  margin: 32px 0;
  opacity: 0.6;
}

/* زخرفة الزاوية - Corner Ornament */
.ovet-ornament-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0.3;
}

.ovet-ornament-corner svg {
  width: 100%;
  height: 100%;
  fill: var(--color-gold);
}

/* ============================================
   هيكل التحميل - Skeleton Loading
   ============================================ */
.ovet-skeleton {
  background: linear-gradient(90deg, var(--color-cream-dark) 25%, var(--color-cream) 50%, var(--color-cream-dark) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

.ovet-skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
}

.ovet-skeleton-title {
  height: 22px;
  width: 60%;
  margin-bottom: 12px;
}

.ovet-skeleton-image {
  width: 100%;
  padding-bottom: 120%;
  border-radius: var(--radius-md);
}

.ovet-skeleton-btn {
  height: 44px;
  width: 120px;
}

/* ============================================
   حالات الخطأ والفراغ - Error & Empty States
   ============================================ */
.ovet-error-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-error);
}

.ovet-error-state .ovet-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--color-error);
}

.ovet-error-state .ovet-error-message {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: 8px;
}

.ovet-empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}

.ovet-empty-state .ovet-empty-icon {
  font-size: 64px;
  color: var(--color-gold-dark);
  margin-bottom: 16px;
  opacity: 0.5;
}

.ovet-empty-state .ovet-empty-message {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.ovet-empty-state .ovet-empty-sub {
  font-size: var(--text-base);
  margin-bottom: 24px;
}

/* ============================================
   شريط التقدم - Progress Stepper (Checkout)
   ============================================ */
.ovet-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 0;
  direction: rtl;
}

.ovet-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.ovet-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  border: 2px solid var(--color-cream-dark);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: var(--transition-base);
  position: relative;
  z-index: 1;
}

.ovet-step.active .ovet-step-circle {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary-dark);
  animation: goldPulse 2s ease infinite;
}

.ovet-step.completed .ovet-step-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-cream);
}

.ovet-step-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  white-space: nowrap;
}

.ovet-step.active .ovet-step-label {
  color: var(--color-gold);
  font-weight: 600;
}

.ovet-step.completed .ovet-step-label {
  color: var(--color-primary);
}

.ovet-step-line {
  width: 60px;
  height: 2px;
  background: var(--color-cream-dark);
  margin: 0 8px;
  transition: var(--transition-base);
}

.ovet-step.completed + .ovet-step-line,
.ovet-step.completed ~ .ovet-step-line {
  background: var(--color-primary);
}

/* ============================================
   أصناف مساعدة - Utility Classes
   ============================================ */

/* ظهور عند التمرير - Scroll Reveal */
.ovet-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-out-expo), transform 500ms var(--ease-out-expo);
}

.ovet-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ظهور متتابع - Staggered Reveal */
.ovet-stagger-1 { transition-delay: 0ms; }
.ovet-stagger-2 { transition-delay: 80ms; }
.ovet-stagger-3 { transition-delay: 160ms; }
.ovet-stagger-4 { transition-delay: 240ms; }
.ovet-stagger-5 { transition-delay: 320ms; }
.ovet-stagger-6 { transition-delay: 400ms; }

/* تدرج ذهبي نصي - Gold Text Gradient */
.ovet-text-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* خلفية زخرفية - Decorative Background */
.ovet-bg-pattern {
  position: relative;
}

.ovet-bg-pattern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pattern-arabesque);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   تحسينات الوصول - Accessibility
   ============================================ */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

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

/* هدف اللمس الأدنى - Minimum Touch Target */
@media (pointer: coarse) {
  button, a, [role="button"], input[type="checkbox"], input[type="radio"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ============================================
   استجابة - Responsive Breakpoints
   ============================================ */
@media (max-width: 375px) {
  :root {
    --container-padding: 16px;
  }
}

@media (min-width: 376px) and (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --container-padding: 32px;
  }
}

@media (min-width: 1025px) {
  :root {
    --container-padding: 40px;
  }
}


/* ============================================
   أقسام الصفحة الرئيسية - Homepage Sections
   ============================================ */

/* عنوان القسم - Section Title Bar */
.categories-section .title,
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ovet-gold, #C9A84C);
}

.categories-section .title h1,
.section-title-bar h1,
.section-title-bar h2 {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ovet-green, #1B4332);
  margin: 0;
  position: relative;
  padding-bottom: 6px;
}

.categories-section .title h1::after,
.section-title-bar h1::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: var(--ovet-gold, #C9A84C);
}

.categories-section .title a,
.section-title-bar a {
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--ovet-gold-dark, #A07C30);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.categories-section .title a:hover,
.section-title-bar a:hover {
  color: var(--ovet-green, #1B4332);
}

/* بطاقات التصنيفات - Category Cards */
.category-content .category-slider {
  text-align: center;
  padding: 8px;
}

.category-content .category-slider .slider_div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px;
  background: #fff;
  border: 1px solid var(--ovet-cream-dark, #E8E0D0);
  border-radius: 0;
  transition: all 0.35s ease;
  text-decoration: none;
}

.category-content .category-slider .slider_div:hover {
  border-color: var(--ovet-gold, #C9A84C);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.08);
  transform: translateY(-3px);
}

.category-content .category-slider .slider_div img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.35s ease;
}

.category-content .category-slider .slider_div:hover img {
  transform: scale(1.08);
}

.category-content .category-slider .slider_div span {
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ovet-green, #1B4332);
  line-height: 1.4;
}

/* قسم المنتجات المميزة - Featured / Best Shop sections */
.featured-section .title,
.best-shop-section .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--ovet-gold, #C9A84C);
}

.featured-section .title h1,
.best-shop-section .title h1 {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ovet-green, #1B4332);
  margin: 0;
}

/* بطاقة المنتج العامة - Global Product Card Overrides */
.sg-product,
.product-card,
.global-list.product-card {
  background: #fff;
  border: 1px solid var(--ovet-cream-dark, #E8E0D0);
  border-top: 2px solid var(--ovet-green, #1B4332);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.sg-product:hover,
.product-card:hover {
  border-color: var(--ovet-gold, #C9A84C);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.1);
  transform: translateY(-3px);
}

.sg-product .product-thumb img,
.product-card .product-thumb img {
  transition: transform 0.4s ease;
}

.sg-product:hover .product-thumb img,
.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.sg-product .product-info .product-title a,
.product-card .product-title a {
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-weight: 600;
  color: var(--ovet-green-dark, #0D2B1F);
  text-decoration: none;
  transition: color 0.25s ease;
}

.sg-product .product-info .product-title a:hover,
.product-card .product-title a:hover {
  color: var(--ovet-gold-dark, #A07C30);
}

.sg-product .product-info .price,
.product-card .price {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  font-weight: 700;
  color: var(--ovet-gold-dark, #A07C30);
}

.sg-product .product-info .price del,
.product-card .price del {
  color: #999;
  font-weight: 400;
}

/* زر إضافة للسلة - Add to Cart Btn */
.sg-product .add-to-cart .btn,
.product-card .add-to-cart .btn {
  background: var(--ovet-green, #1B4332);
  color: var(--ovet-cream, #F5F0E8);
  border: 1px solid var(--ovet-green, #1B4332);
  border-radius: 0;
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-weight: 500;
  transition: all 0.3s ease;
}

.sg-product .add-to-cart .btn:hover,
.product-card .add-to-cart .btn:hover {
  background: var(--ovet-gold, #C9A84C);
  border-color: var(--ovet-gold, #C9A84C);
  color: var(--ovet-green-dark, #0D2B1F);
}

/* شارة الخصم - Discount badge */
.sg-product .badge-discount,
.product-card .badge-discount,
.sg-product .discount-badge {
  background: var(--ovet-green, #1B4332);
  color: var(--ovet-cream, #F5F0E8);
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-weight: 600;
  border-radius: 0;
  padding: 3px 8px;
  font-size: 11px;
}

/* بطاقة متجر - Shop Card */
.shop-card,
.top-seller-card {
  border: 1px solid var(--ovet-cream-dark, #E8E0D0);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.35s ease;
}

.shop-card:hover,
.top-seller-card:hover {
  border-color: var(--ovet-gold, #C9A84C);
  box-shadow: 0 4px 16px rgba(27, 67, 50, 0.08);
}

/* خدماتنا - Services Section */
.services-section .service-card {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--ovet-cream-dark, #E8E0D0);
  background: #fff;
  transition: all 0.35s ease;
}

.services-section .service-card:hover {
  border-color: var(--ovet-gold, #C9A84C);
  transform: translateY(-2px);
}

.services-section .service-card svg {
  fill: var(--ovet-green, #1B4332);
  margin-bottom: 12px;
}

.services-section .service-card h5 {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  font-weight: 700;
  color: var(--ovet-green, #1B4332);
  font-size: 14px;
}

.services-section .service-card p {
  font-family: var(--font-body, 'Tajawal', sans-serif);
  color: #666;
  font-size: 13px;
}

/* شريط Slick Carousel - Dots & Arrows */
.slick-dots li button:before {
  color: var(--ovet-green, #1B4332) !important;
  opacity: 0.3;
}

.slick-dots li.slick-active button:before {
  color: var(--ovet-gold, #C9A84C) !important;
  opacity: 1;
}

.slick-prev:before,
.slick-next:before {
  color: var(--ovet-green, #1B4332) !important;
}

/* صفحة تفاصيل المنتج - Product Details Page */
.products-details-info .product-title {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  font-weight: 700;
  color: var(--ovet-green-dark, #0D2B1F);
}

.products-details-info .price .current-price,
.products-details-info .price .sale-price {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  font-weight: 700;
  color: var(--ovet-gold-dark, #A07C30);
  font-size: 1.5rem;
}

.products-details-info .price del {
  color: #999;
}

.products-details-info .buttons .btn.btn-primary {
  background: var(--ovet-green, #1B4332);
  border: 1px solid var(--ovet-green, #1B4332);
  color: var(--ovet-cream, #F5F0E8);
  border-radius: 0;
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-weight: 600;
  padding: 10px 32px;
  transition: all 0.3s ease;
}

.products-details-info .buttons .btn.btn-primary:hover {
  background: var(--ovet-gold, #C9A84C);
  border-color: var(--ovet-gold, #C9A84C);
  color: var(--ovet-green-dark, #0D2B1F);
}

.products-details-info .buttons .btn.btn-white {
  background: transparent;
  border: 1px solid var(--ovet-green, #1B4332);
  color: var(--ovet-green, #1B4332);
  border-radius: 0;
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-weight: 600;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.products-details-info .buttons .btn.btn-white:hover {
  background: var(--ovet-green, #1B4332);
  color: var(--ovet-cream, #F5F0E8);
}

/* تبويبات - Tabs in product detail */
.product-details-tab .nav-tabs {
  border-bottom: 2px solid var(--ovet-cream-dark, #E8E0D0);
}

.product-details-tab .nav-tabs .nav-link {
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-weight: 600;
  color: #666;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.product-details-tab .nav-tabs .nav-link:hover {
  color: var(--ovet-green, #1B4332);
}

.product-details-tab .nav-tabs .nav-link.active {
  color: var(--ovet-green, #1B4332);
  border-bottom-color: var(--ovet-gold, #C9A84C);
  background: transparent;
}

/* مراجعات - Reviews */
.review-section .rating-stars i,
.review-section .rating-stars .mdi {
  color: var(--ovet-gold, #C9A84C);
}

/* صفحة السلة - Cart Page */
.cart-section .table thead {
  background: var(--ovet-green, #1B4332);
  color: var(--ovet-cream, #F5F0E8);
}

.cart-section .table thead th {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  font-weight: 600;
  border: none;
  padding: 12px 16px;
}

.cart-section .table tbody td {
  vertical-align: middle;
  font-family: var(--font-body, 'Tajawal', sans-serif);
  border-color: var(--ovet-cream-dark, #E8E0D0);
}

/* ملخص الطلب - Order Summary */
.order-summary {
  border: 1px solid var(--ovet-cream-dark, #E8E0D0);
  background: #fff;
}

.order-summary h6 {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  color: var(--ovet-green, #1B4332);
  border-bottom-color: var(--ovet-cream-dark, #E8E0D0);
}

/* التسجيل والدخول - Auth Pages */
.login-section .form-control,
.register-section .form-control,
.auth-form .form-control {
  border: 1px solid var(--ovet-cream-dark, #E8E0D0);
  border-radius: 0;
  font-family: var(--font-body, 'Tajawal', sans-serif);
  padding: 10px 16px;
  transition: border-color 0.3s ease;
}

.login-section .form-control:focus,
.register-section .form-control:focus,
.auth-form .form-control:focus {
  border-color: var(--ovet-gold, #C9A84C);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.12);
}

.login-section .btn.btn-primary,
.register-section .btn.btn-primary,
.auth-form .btn.btn-primary {
  background: var(--ovet-green, #1B4332);
  border: 1px solid var(--ovet-green, #1B4332);
  color: var(--ovet-cream, #F5F0E8);
  border-radius: 0;
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-weight: 600;
  padding: 10px 32px;
  transition: all 0.3s ease;
}

.login-section .btn.btn-primary:hover,
.register-section .btn.btn-primary:hover,
.auth-form .btn.btn-primary:hover {
  background: var(--ovet-gold, #C9A84C);
  border-color: var(--ovet-gold, #C9A84C);
  color: var(--ovet-green-dark, #0D2B1F);
}

/* مسار التنقل - Breadcrumb */
.breadcrumb-area {
  background: var(--ovet-cream, #F5F0E8);
  padding: 16px 0;
  border-bottom: 1px solid var(--ovet-cream-dark, #E8E0D0);
}

.breadcrumb-area .breadcrumb-item a {
  color: var(--ovet-green, #1B4332);
  font-family: var(--font-body, 'Tajawal', sans-serif);
  font-size: 13px;
  text-decoration: none;
}

.breadcrumb-area .breadcrumb-item.active {
  color: var(--ovet-gold-dark, #A07C30);
}

/* الشريط الجانبي - Sidebar Filters */
.sidebar-area .widget_title {
  font-family: var(--font-heading, 'Cairo', sans-serif);
  font-weight: 700;
  color: var(--ovet-green, #1B4332);
  font-size: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ovet-gold, #C9A84C);
  margin-bottom: 15px;
}

.sidebar-area .widget ul li a {
  color: #555;
  font-family: var(--font-body, 'Tajawal', sans-serif);
  transition: color 0.25s ease;
}

.sidebar-area .widget ul li a:hover {
  color: var(--ovet-green, #1B4332);
}

/* ترقيم الصفحات - Pagination */
.pagination .page-link {
  color: var(--ovet-green, #1B4332);
  border: 1px solid var(--ovet-cream-dark, #E8E0D0);
  border-radius: 0;
  font-family: var(--font-body, 'Tajawal', sans-serif);
  transition: all 0.25s ease;
}

.pagination .page-link:hover {
  background: var(--ovet-cream, #F5F0E8);
  border-color: var(--ovet-gold, #C9A84C);
  color: var(--ovet-green, #1B4332);
}

.pagination .page-item.active .page-link {
  background: var(--ovet-green, #1B4332);
  border-color: var(--ovet-green, #1B4332);
  color: var(--ovet-cream, #F5F0E8);
}

/* Toast / تنبيهات */
.toast-success {
  background-color: var(--ovet-green, #1B4332) !important;
}

.toast-error {
  background-color: #B33A3A !important;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ovet-cream, #F5F0E8);
}

::-webkit-scrollbar-thumb {
  background: var(--ovet-green-light, #2D6A4F);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ovet-green, #1B4332);
}

/* Selection */
::selection {
  background: var(--ovet-gold, #C9A84C);
  color: var(--ovet-green-dark, #0D2B1F);
}
