/* ==== نظام الألوان ==== */
:root {
  --color-bg: #FFF5F0;
  --color-bg-soft: #FFEAE1;
  --color-primary: #C97B63;
  --color-primary-dark: #A85C46;
  --color-secondary: #E8B4A0;
  --color-text: #2E2119;
  --color-text-muted: #8C7268;
  --color-border: #F0D9CE;
}

body,
.s-layout,
main {
  background-color: var(--color-bg) !important;
  color: var(--color-text) !important;
}

header,
.s-header,
.s-header-main {
  background-color: var(--color-bg) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

.btn,
.s-button-add-to-cart-icon,
.s-button-standard,
button[type="submit"],
.btn-primary {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #FFFFFF !important;
  transition: background-color .25s ease;
}

.btn:hover,
.btn-primary:hover,
.s-button-standard:hover {
  background-color: var(--color-primary-dark) !important;
  border-color: var(--color-primary-dark) !important;
}

.s-product-card,
.product-entry,
.card {
  background-color: #FFFFFF !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 12px !important;
}

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

footer,
.s-footer {
  background-color: var(--color-bg-soft) !important;
  color: var(--color-text) !important;
}

a {
  color: var(--color-primary) !important;
}
a:hover {
  color: var(--color-primary-dark) !important;
}

/* نص شريط الإعلان العلوي */
.s-advertisement,
.s-advertisement-content,
.s-advertisement-content-main,
.s-advertisement-content-main a {
  color: #ffffff !important;
}

/* عنوان الأسئلة الشائعة */
.faqs-title {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  text-align: center !important;
  width: fit-content;
  margin-inline: auto !important;
  padding-bottom: 28px;
}
.faqs-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1.5px;
  background-color: currentColor;
}
.faqs-title::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}

@media (max-width: 768px) {
  .faqs-title {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-inline: auto !important;
  }
  .faqs-title > * {
    text-align: center !important;
    width: 100% !important;
  }
}

/* ====== قسم الأكثر مبيعا: منتج كبير في النص ====== */
body #app salla-product-card.s-product-card-minimal,
body #app .s-product-card-entry.s-product-card-minimal,
salla-product-card.s-product-card-minimal {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 480px !important;
  margin-inline: auto !important;
}

body #app salla-product-card.s-product-card-minimal .s-product-card-image,
salla-product-card.s-product-card-minimal .s-product-card-image {
  width: 100% !important;
  max-width: 100% !important;
  height: 360px !important;
  flex: none !important;
  order: -1 !important;
}

body #app salla-product-card.s-product-card-minimal .s-product-card-image img,
salla-product-card.s-product-card-minimal .s-product-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

body #app salla-product-card.s-product-card-minimal .s-product-card-content,
body #app salla-product-card.s-product-card-minimal .s-product-card-content-main,
body #app salla-product-card.s-product-card-minimal .s-product-card-content-sub,
body #app salla-product-card.s-product-card-minimal .s-product-card-content-footer,
salla-product-card.s-product-card-minimal .s-product-card-content,
salla-product-card.s-product-card-minimal .s-product-card-content-main,
salla-product-card.s-product-card-minimal .s-product-card-content-sub,
salla-product-card.s-product-card-minimal .s-product-card-content-footer {
  width: 100% !important;
  max-width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}