/* =========================================
   RAED THEME - SALLA PREMIUM DESIGN
   Luxury Blue & Black
   Responsive | CSS Only
========================================= */

:root {
  --raed-primary: #1769ff;
  --raed-primary-dark: #1052d4;
  --raed-black: #10131a;
  --raed-text: #202531;
  --raed-muted: #737b8c;
  --raed-bg: #f6f8fc;
  --raed-white: #ffffff;
  --raed-border: #e8edf5;
  --raed-radius: 14px;
  --raed-shadow: 0 5px 22px rgba(16, 35, 70, 0.07);
  --raed-shadow-hover: 0 12px 30px rgba(23, 105, 255, 0.13);
}

/* 1. أساسيات المتجر */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--raed-text);
  background-color: var(--raed-white);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(23, 105, 255, 0.18);
  color: var(--raed-black);
}

a {
  transition: color 0.2s ease;
}

a:hover {
  color: var(--raed-primary);
}

/* 2. الهيدر والقائمة */
header,
.store-header {
  background-color: var(--raed-white);
}

header a,
.store-header a {
  transition: color 0.2s ease;
}

header a:hover,
.store-header a:hover {
  color: var(--raed-primary);
}

/* 3. حقول البحث */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea,
select {
  border-color: var(--raed-border);
  border-radius: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  border-color: var(--raed-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, 0.10);
}

/* 4. الأقسام الرئيسية */
.s-block {
  margin-top: 26px;
  margin-bottom: 26px;
}

/* 5. بطاقات المنتجات */
.s-product-card-entry {
  position: relative;
  overflow: hidden;
  background: var(--raed-white);
  border: 1px solid var(--raed-border);
  border-radius: var(--raed-radius);
  box-shadow: 0 2px 10px rgba(16, 35, 70, 0.025);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.s-product-card-entry:hover {
  border-color: rgba(23, 105, 255, 0.35);
  box-shadow: var(--raed-shadow-hover);
}

/* 6. صور المنتجات */
.s-product-card-image {
  overflow: hidden;
  background-color: #f7f9fd;
  border-radius: 12px;
}

.s-product-card-image img {
  transition: transform 0.35s ease;
}

.s-product-card-entry:hover .s-product-card-image img {
  transform: scale(1.035);
}

/* 7. عنوان المنتج */
.s-product-card-content-title a {
  color: var(--raed-black);
  font-weight: 700;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.s-product-card-content-title a:hover {
  color: var(--raed-primary);
}

/* 8. الأسعار */
.s-product-card-price,
.s-product-card-sale-price {
  color: var(--raed-primary);
  font-weight: 800;
}

.s-product-card-price {
  font-size: 1.05rem;
}

/* 9. الأزرار */
.s-button-element {
  border-radius: 10px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.s-button-primary,
.s-button-element:not(.s-button-outline):not(.s-button-light) {
  border-radius: 10px;
}

.s-button-primary:hover,
.s-button-element:not(.s-button-outline):not(.s-button-light):hover {
  box-shadow: 0 5px 15px rgba(23, 105, 255, 0.18);
}

/* 10. حدود التركيز وإمكانية الاستخدام */
a:focus-visible,
button:focus-visible,
.s-button-element:focus-visible {
  outline: 2px solid var(--raed-primary);
  outline-offset: 3px;
}

/* 11. الصور والمحتوى */
img {
  max-width: 100%;
}

.s-product-card-entry img {
  height: auto;
}

/* 12. الشاشات المتوسطة */
@media (max-width: 1024px) {
  .s-block {
    margin-top: 22px;
    margin-bottom: 22px;
  }

  .s-product-card-entry {
    border-radius: 12px;
  }
}

/* 13. الجوال */
@media (max-width: 767px) {
  .s-block {
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .s-product-card-entry {
    border-radius: 11px;
  }

  .s-product-card-image {
    border-radius: 9px;
  }

  .s-product-card-content-title a {
    font-size: 13px;
    line-height: 1.6;
  }

  .s-product-card-price {
    font-size: 14px;
  }

  .s-button-element {
    border-radius: 9px;
  }
}

/* 14. تقليل الحركة عند الحاجة */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}