/* ==================================================
   OR DE TAIF — COMPLETE SAFE CSS
   تصميم فاخر ومتوافق مع قالب سلة
   ================================================== */

:root {
  --odt-navy: #172033;
  --odt-gold: #a98250;
  --odt-gold-dark: #85633d;
  --odt-burgundy: #812638;
  --odt-ivory: #faf8f4;
  --odt-light: #f2f3f5;
  --odt-border: #e7e1d8;
  --odt-text: #202633;
  --odt-muted: #686f7d;
  --odt-white: #ffffff;
}

/* ==================================================
   إعدادات عامة
   ================================================== */

html {
  scroll-behavior: smooth;
}

body {
  direction: rtl;
  background: var(--odt-ivory);
  color: var(--odt-text);
  font-family: "IBM Plex Sans Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

a,
button {
  transition: all 0.25s ease;
}

::selection {
  background: var(--odt-gold);
  color: var(--odt-white);
}

:focus-visible {
  outline: 2px solid var(--odt-gold);
  outline-offset: 3px;
}

/* ==================================================
   الشريط العلوي
   ================================================== */

.top-navbar,
.header-top,
.store-header__top {
  background: var(--odt-navy) !important;
  color: var(--odt-white) !important;
}

.top-navbar a,
.header-top a,
.store-header__top a {
  color: var(--odt-white) !important;
}

/* ==================================================
   الهيدر
   ================================================== */

.store-header,
.main-header,
header {
  background: var(--odt-white) !important;
  border-bottom: 1px solid var(--odt-border);
  box-shadow: 0 4px 18px rgba(23, 32, 51, 0.04);
}

.store-header a,
.main-header a {
  color: var(--odt-navy);
}

.store-header a:hover,
.main-header a:hover {
  color: var(--odt-gold);
}

/* الشعار */

.store-header img,
.main-header img {
  object-fit: contain;
}

/* ==================================================
   البحث
   ================================================== */

input[type="search"],
.s-search-input,
.search-input {
  background: #f3f1ed !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
}

input[type="search"]:focus,
.s-search-input:focus,
.search-input:focus {
  background: var(--odt-white) !important;
  border-color: var(--odt-gold) !important;
  box-shadow: 0 0 0 3px rgba(169, 130, 80, 0.12) !important;
}

/* ==================================================
   الأقسام
   ================================================== */

.s-block {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

.s-block__title {
  margin-bottom: 26px !important;
}

.s-block__title h2 {
  position: relative;
  display: inline-block;
  color: var(--odt-navy);
  font-size: 27px;
  font-weight: 700;
  padding-bottom: 12px;
}

.s-block__title h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55px;
  height: 2px;
  background: var(--odt-gold);
}

/* ==================================================
   بطاقات المنتجات
   ================================================== */

.s-product-card-entry {
  overflow: hidden;
  background: var(--odt-white) !important;
  border: 1px solid var(--odt-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06) !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.s-product-card-entry:hover {
  transform: translateY(-5px);
  border-color: rgba(169, 130, 80, 0.55) !important;
  box-shadow: 0 16px 38px rgba(23, 32, 51, 0.12) !important;
}

/* صورة المنتج */

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

.s-product-card-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
  transition: transform 0.5s ease;
}

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

/* محتوى البطاقة */

.s-product-card-content {
  padding: 18px !important;
}

.s-product-card-content-title {
  color: var(--odt-navy) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.7 !important;
}

/* السعر */

.s-product-card-price {
  color: var(--odt-navy) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

/* شارة نفدت الكمية */

.s-product-card-out-of-stock,
.badge-danger {
  background: var(--odt-burgundy) !important;
  color: var(--odt-white) !important;
  border-radius: 5px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
}

/* زر المنتج */

.s-add-product-button-main,
.s-button-primary {
  min-height: 44px;
  background: var(--odt-navy) !important;
  color: var(--odt-white) !important;
  border: 1px solid var(--odt-navy) !important;
  border-radius: 7px !important;
  font-weight: 600;
}

.s-add-product-button-main:hover,
.s-button-primary:hover {
  background: var(--odt-gold-dark) !important;
  border-color: var(--odt-gold-dark) !important;
}

/* الزر المعطل */

.s-button-btn:disabled,
.s-button-disabled {
  background: transparent !important;
  color: #9c9891 !important;
  border: 1px solid var(--odt-border) !important;
  opacity: 1 !important;
}

/* زر المفضلة */

.s-product-card-wishlist-btn {
  width: 39px !important;
  height: 39px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--odt-navy) !important;
  border: 1px solid var(--odt-border) !important;
  border-radius: 50% !important;
}

.s-product-card-wishlist-btn:hover {
  background: var(--odt-burgundy) !important;
  color: var(--odt-white) !important;
  border-color: var(--odt-burgundy) !important;
}

/* ==================================================
   نهاية المحتوى
   ================================================== */

.s-infinite-scroll-wrapper,
.infinite-scroll-status {
  margin-top: 28px !important;
  margin-bottom: 28px !important;
  color: var(--odt-muted);
}

/* ==================================================
   الفوتر
   ================================================== */

.store-footer,
footer {
  background: var(--odt-light) !important;
  color: var(--odt-navy) !important;
  border-top: 1px solid var(--odt-border);
  text-align: center !important;
}

/* الحاوية الرئيسية */

.store-footer .container,
footer .container {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding-inline: 20px !important;
  text-align: center !important;
}

/* شبكة الفوتر */

.store-footer .container > .grid,
.store-footer .container [class*="grid-cols"],
footer .container > .grid,
footer .container [class*="grid-cols"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-items: center !important;
  align-items: center !important;
  gap: 32px !important;
}

/* أعمدة الفوتر */

.store-footer .container > .grid > div,
.store-footer .container [class*="grid-cols"] > div,
footer .container > .grid > div,
footer .container [class*="grid-cols"] > div {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  text-align: center !important;
}

/* كل عنصر داخل الأعمدة */

.store-footer .container > .grid > div > *,
.store-footer .container [class*="grid-cols"] > div > *,
footer .container > .grid > div > *,
footer .container [class*="grid-cols"] > div > * {
  margin-inline: auto !important;
  text-align: center !important;
}

/* عناوين الفوتر */

.store-footer h2,
.store-footer h3,
.store-footer h4,
footer h2,
footer h3,
footer h4 {
  width: 100% !important;
  color: var(--odt-navy) !important;
  text-align: center !important;
  font-weight: 700 !important;
  margin: 0 auto 18px !important;
}

/* نصوص وروابط الفوتر */

.store-footer p,
.store-footer a,
.store-footer li,
footer p,
footer a,
footer li {
  color: var(--odt-muted) !important;
  text-align: center !important;
}

.store-footer a:hover,
footer a:hover {
  color: var(--odt-gold) !important;
}

/* قوائم الفوتر */

.store-footer ul,
footer ul {
  width: 100% !important;
  padding: 0 !important;
  margin-inline: auto !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* عناصر القائمة */

.store-footer li,
footer li {
  width: 100% !important;
  margin: 7px auto !important;
  text-align: center !important;
}

/* روابط التواصل */

.store-footer li a,
footer li a {
  width: fit-content !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

/* قسم الاسم والسجل التجاري */

.store-footer [class*="about"],
.store-footer [class*="tax"],
.store-footer [class*="commercial"],
footer [class*="about"],
footer [class*="tax"],
footer [class*="commercial"] {
  width: 100% !important;
  margin-inline: auto !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
}

/* الصور داخل الفوتر */

.store-footer img,
footer img {
  display: block !important;
  float: none !important;
  margin: 10px auto !important;
}

/* أي عنصر يحتوي صورة */

.store-footer p:has(img),
.store-footer div:has(> img),
footer p:has(img),
footer div:has(> img) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-inline: auto !important;
  text-align: center !important;
}

/* أيقونات التواصل */

.store-footer [class*="social"],
footer [class*="social"] {
  width: 100% !important;
  margin-inline: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
}

/* الحقوق ووسائل الدفع */

.store-footer [class*="bottom"],
.store-footer [class*="copyright"],
footer [class*="bottom"],
footer [class*="copyright"] {
  width: 100% !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
  margin-inline: auto !important;
}

/* ==================================================
   الجوال
   ================================================== */

@media (max-width: 768px) {

  .s-block {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  .s-block__title h2 {
    font-size: 22px;
  }

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

  .s-product-card-content-title {
    font-size: 13px !important;
  }

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

  .s-add-product-button-main,
  .s-button-primary {
    min-height: 40px;
    font-size: 12px;
  }

  .store-footer .container,
  footer .container {
    padding-inline: 16px !important;
  }

  .store-footer .container > .grid,
  .store-footer .container [class*="grid-cols"],
  footer .container > .grid,
  footer .container [class*="grid-cols"] {
    gap: 28px !important;
  }
}
/* توسيط قسم السجل التجاري بالكامل */

.store-footer .container [class*="grid-cols"] > div:first-child {
  width: 100% !important;
  text-align: center !important;
}

.store-footer .container [class*="grid-cols"] > div:first-child > div {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
  gap: 8px !important;
}

/* النص والرقم */

.store-footer .container [class*="grid-cols"] > div:first-child p,
.store-footer .container [class*="grid-cols"] > div:first-child span,
.store-footer .container [class*="grid-cols"] > div:first-child strong {
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin: 0 auto !important;
}

/* شعار السجل */

.store-footer .container [class*="grid-cols"] > div:first-child img {
  display: block !important;
  position: static !important;
  float: none !important;
  width: 72px !important;
  max-width: 72px !important;
  height: auto !important;
  margin: 8px auto 0 !important;
}