/* Add custom CSS styles below */ 
/* ==================================================
   SPT AUTO PARTS — VISUAL SYSTEM
   ================================================== */

:root {
  --spt-primary: #003b79;
  --spt-primary-dark: #052d5b;
  --spt-primary-soft: #eaf2fb;
  --spt-accent: #f7c843;
  --spt-accent-hover: #e9b82d;
  --spt-bg: #f5f7fa;
  --spt-card: #ffffff;
  --spt-text: #10233d;
  --spt-muted: #68778c;
  --spt-border: #e3e9f0;
  --spt-radius: 16px;
  --spt-radius-small: 10px;
  --spt-shadow: 0 10px 30px rgba(0, 45, 91, 0.08);

  /* ألوان سلة الأساسية */
  --color-primary: #003b79;
  --color-primary-dark: #052d5b;
  --color-primary-light: #eaf2fb;
}

/* إعدادات عامة */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--spt-bg);
  color: var(--spt-text);
}

::selection {
  background: var(--spt-accent);
  color: var(--spt-primary-dark);
}

a,
button {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* ==================================================
   HEADER
   ================================================== */

.store-header {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 45, 91, 0.06);
  position: relative;
  z-index: 50;
}

.top-navbar {
  background: var(--spt-primary-dark) !important;
  color: #ffffff;
  border: 0;
}

.top-navbar a,
.top-navbar button {
  color: rgba(255, 255, 255, 0.9) !important;
}

.top-navbar a:hover {
  color: var(--spt-accent) !important;
}

.main-nav-container {
  background: #ffffff !important;
  border-bottom: 1px solid var(--spt-border);
}

.navbar-brand img,
.store-header .logo img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

.main-menu li > a {
  color: var(--spt-text);
  font-weight: 700;
  border-radius: 9px;
  padding: 10px 13px;
}

.main-menu li:hover > a,
.main-menu li.active > a {
  color: var(--spt-primary);
  background: var(--spt-primary-soft);
}

/* القوائم المنسدلة */
.main-menu .sub-menu,
.main-menu .dropdown-menu {
  background: #ffffff;
  border: 1px solid var(--spt-border);
  border-radius: 12px;
  box-shadow: var(--spt-shadow);
  padding: 8px;
  overflow: hidden;
}

.main-menu .sub-menu a,
.main-menu .dropdown-menu a {
  border-radius: 8px;
}

.main-menu .sub-menu a:hover,
.main-menu .dropdown-menu a:hover {
  background: var(--spt-primary-soft);
  color: var(--spt-primary);
}

/* البحث */
salla-search input,
.s-search-input,
.search-input {
  border: 1px solid var(--spt-border) !important;
  border-radius: 12px !important;
  background: #f8fafc !important;
  color: var(--spt-text) !important;
}

salla-search input:focus,
.s-search-input:focus,
.search-input:focus {
  border-color: var(--spt-primary) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(0, 59, 121, 0.1) !important;
}

/* ==================================================
   SECTIONS
   ================================================== */

.s-block {
  margin-top: 48px;
  margin-bottom: 48px;
}

.s-block__title,
.s-slider-block__title {
  color: var(--spt-text);
  font-weight: 800;
}

.s-block__title h2,
.s-slider-block__title h2 {
  color: var(--spt-text);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
}

.s-block__title p,
.s-slider-block__title p {
  color: var(--spt-muted);
}

/* زر عرض الكل */
.s-block__title a,
.s-slider-block__title a {
  color: var(--spt-primary);
  font-weight: 700;
}

.s-block__title a:hover,
.s-slider-block__title a:hover {
  color: var(--spt-primary-dark);
}

/* ==================================================
   PRODUCT CARDS
   ================================================== */

.s-product-card-entry {
  background: var(--spt-card);
  border: 1px solid var(--spt-border);
  border-radius: var(--spt-radius);
  box-shadow: 0 5px 18px rgba(0, 45, 91, 0.04);
  overflow: hidden;
  height: 100%;
}

.s-product-card-entry:hover {
  border-color: rgba(0, 59, 121, 0.28);
  box-shadow: var(--spt-shadow);
  transform: translateY(-4px);
}

.s-product-card-image {
  background: #ffffff;
  overflow: hidden;
}

.s-product-card-image img {
  object-fit: contain !important;
  padding: 10px;
  transition: transform 0.35s ease;
}

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

.s-product-card-content {
  padding: 16px;
}

.s-product-card-content-title,
.s-product-card-content-title a {
  color: var(--spt-text) !important;
  font-weight: 700;
  line-height: 1.65;
}

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

.s-product-card-price,
.s-product-card-sale-price {
  color: var(--spt-primary) !important;
  font-weight: 800;
}

.s-product-card-regular-price {
  color: var(--spt-muted) !important;
}

/* خصم المنتج */
.s-product-card-promotion-title,
.s-product-card-sale-badge {
  background: var(--spt-accent) !important;
  color: var(--spt-primary-dark) !important;
  border-radius: 8px;
  font-weight: 800;
}

/* ==================================================
   BUTTONS
   ================================================== */

.s-button-primary,
.s-product-card-add-button,
.s-add-product-button {
  background: var(--spt-accent) !important;
  color: var(--spt-primary-dark) !important;
  border: 1px solid var(--spt-accent) !important;
  border-radius: 11px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.s-button-primary:hover,
.s-product-card-add-button:hover,
.s-add-product-button:hover {
  background: var(--spt-accent-hover) !important;
  border-color: var(--spt-accent-hover) !important;
  color: var(--spt-primary-dark) !important;
  transform: translateY(-1px);
}

.s-button-outline {
  border-color: var(--spt-primary) !important;
  color: var(--spt-primary) !important;
  border-radius: 11px !important;
}

.s-button-outline:hover {
  background: var(--spt-primary) !important;
  color: #ffffff !important;
}

/* ==================================================
   STORE FEATURES
   ================================================== */

.s-block--features .s-block--features__item,
.store-features .feature-item {
  background: #ffffff;
  border: 1px solid var(--spt-border);
  border-radius: var(--spt-radius);
  padding: 22px;
  box-shadow: 0 5px 18px rgba(0, 45, 91, 0.04);
}

.s-block--features svg,
.store-features svg {
  color: var(--spt-primary);
}

.s-block--features h3,
.store-features h3 {
  color: var(--spt-text);
  font-weight: 800;
}

.s-block--features p,
.store-features p {
  color: var(--spt-muted);
}

/* ==================================================
   PRODUCT PAGE
   ================================================== */

.product-entry,
.product-single,
.product-details {
  color: var(--spt-text);
}

.product-entry__title,
.product-title {
  color: var(--spt-text);
  font-weight: 800;
}

.product-entry__price,
.product-price {
  color: var(--spt-primary);
  font-weight: 800;
}

salla-quantity-input {
  border-radius: 10px;
  overflow: hidden;
}

/* مسار التنقل */
.s-breadcrumb,
.breadcrumb {
  color: var(--spt-muted);
}

.s-breadcrumb a,
.breadcrumb a {
  color: var(--spt-primary);
}

/* ==================================================
   FOOTER
   ================================================== */

.store-footer,
.store-footer .footer-main {
  background: var(--spt-primary-dark) !important;
  color: rgba(255, 255, 255, 0.82);
}

.store-footer h3,
.store-footer h4,
.store-footer .footer-title {
  color: #ffffff !important;
  font-weight: 800;
}

.store-footer p {
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.9;
}

.store-footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

.store-footer a:hover {
  color: var(--spt-accent) !important;
  transform: translateX(-2px);
}

.store-footer .social-link,
.store-footer .social-icons a {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}

.store-footer .social-link:hover,
.store-footer .social-icons a:hover {
  background: var(--spt-accent);
  color: var(--spt-primary-dark) !important;
}

.store-footer .copyright,
.store-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 768px) {
  .s-block {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .store-header {
    box-shadow: 0 4px 14px rgba(0, 45, 91, 0.07);
  }

  .navbar-brand img,
  .store-header .logo img {
    max-height: 48px;
  }

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

  .s-product-card-content {
    padding: 12px;
  }

  .s-block__title h2,
  .s-slider-block__title h2 {
    font-size: 21px;
  }

  .s-product-card-add-button,
  .s-add-product-button {
    min-height: 42px;
  }
}

/* تقليل الحركة لمن يفضل ذلك */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}