/* VIA — الهوية العنابية */

:root {
  --via-primary: #49172D;
  --via-hover: #68263F;
  --via-background: #FAF9F7;
  --via-text: #221B1F;
  --via-muted: #6A5E65;
  --via-border: #DFD9D9;
}

/* خلفية المتجر والخط */
html,
body,
.s-page {
  background: var(--via-background) !important;
  color: var(--via-text) !important;
  font-family: "Tajawal", sans-serif !important;
}

/* إزالة تأثير الخلفية القديم */
body::before {
  content: none !important;
}

/* بطاقات المنتجات */
.product-card, .s-slider-wrapper
.s-product-card ,.swiper
 , .swiper-wrapper
.s-product-card -entry{
  background: #FFFFFF !important;
  color: var(--via-text) !important;
  border: 0px solid var(--via-primary) !important;
  border-radius: 25px !important;
  box-shadow: none !important;
  overflow: hidden;
}


/* محتوى بطاقات المنتجات */
.s-product-card-content {
  background: #FFFFFF !important;
  color: var(--via-text) !important;
   
}

/* العناوين */
h1,
h2,
h3,
h4,
h5,
h6,
.s-title,
.s-product-card-content-title a {
  color: var(--via-primary) !important;
  font-family: "Tajawal", sans-serif !important;
}

/* النصوص الثانوية */
.s-product-card-content-subtitle {
  color: var(--via-muted) !important;
}

/* الأسعار */
.s-product-card-price,
.s-product-card-sale-price h4,
.product-price,
.total-price {
  color: var(--via-text) !important;
}

/* الأزرار */
button,
.btn,
.s-btn,
.s-button-element,
.add-to-cart,
a.btn {
  background: var(--via-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--via-primary) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* الأزرار عند مرور المؤشر */
button:hover,
.btn:hover,
.s-btn:hover,
.s-button-element:hover,
.add-to-cart:hover,
a.btn:hover {
  background: var(--via-hover) !important;
  border-color: var(--via-hover) !important;
  color: #FFFFFF !important;
}

/* أيقونات ونصوص الأزرار */
button i,
button .s-icon,
button .s-button-text,
.s-button-element i,
.s-button-element .s-button-text {
  color: inherit !important;
}

/* حقول الخيارات والملاحظات */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select,
textarea {
  background-color: #FFFFFF !important;
  color: var(--via-text) !important;
  border-color: var(--via-border) !important;
}

/* إخفاء زر البانر المحدد */
.via-banner-no-button a,
.via-banner-no-button button,
.via-banner-no-button salla-button {
  display: none !important;
}

/* إظهار أيقونة حساب المستخدم */
button[aria-label="user-icon"],
button[aria-label="user-icon"] .sicon-user,
button[aria-label="user-icon"] .sicon-user::before {
  color: #FFFFFF !important;
}

button[aria-label="user-icon"] .sicon-user {
  display: inline-block !important;
  font-size: 24px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* أسماء التصنيفات فوق الصور */
a.group.relative > .absolute.bottom-8.right-8,
a.group.relative > .absolute.bottom-8.right-8 *,
a.group.relative:has(> img) h2,
a.group.relative:has(> img) h3,
a.group.relative:has(> img) h4 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65) !important;
}

/* كتابة وأيقونة زر إضافة للسلة */
.s-product-card-entry salla-add-product-button,
.s-product-card-entry salla-add-product-button .s-button-element,
.s-product-card-entry salla-add-product-button .s-button-text,
.s-product-card-entry salla-add-product-button i {
  color: #FFFFFF !important;
}

/* التصنيفات في الجوال */
@media (max-width: 767px) {
  section:has(a[href*="c899300424"]) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    padding: 0 12px !important;
    margin-block: 20px !important;
    height: auto !important;
  }

  section:has(a[href*="c899300424"]) div:has(a.group) {
    display: contents !important;
  }

  section:has(a[href*="c899300424"]) a.group {
    width: 100% !important;
    height: 210px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border-radius: 8px;
  }

  section:has(a[href*="c899300424"]) a.group > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) {
    bottom: 12px !important;
    right: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
  }

  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0),
  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) * {
    color: #FFFFFF !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
  }
}

/* الفوتر — الخلفية العنابية */
footer.store-footer {
  --color-footer-text: #FFFFFF;
  background-color: var(--via-primary) !important;
  color: #FFFFFF !important;
}

.store-footer__inner {
  --color-footer-text: #FFFFFF;
  background-color: var(--via-primary) !important;
  color: #FFFFFF !important;
}

/* عناوين وروابط ونصوص الفوتر */
footer.store-footer :is(h1, h2, h3, h4, h5, h6, p, a, span, li, i),
.store-footer__inner [class*="color-footer-text"] {
  color: #FFFFFF !important;
}

/* إزالة بهتان النصوص */
footer.store-footer :is(p, a, span, li, i),
footer.store-footer [class*="opacity-"] {
  opacity: 1 !important;
}

/* عرض VIA مكان اسم المتجر */
.store-footer__inner a.flex.items-center.m-0 > h2 {
  font-size: 0 !important;
}

.store-footer__inner a.flex.items-center.m-0 > h2::before {
  content: "VIA";
  display: block;
  color: #FFFFFF !important;
  font-family: "Times New Roman", serif !important;
  font-size: 64px !important;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 3px;
}
/* توزيع محتوى الفوتر على عرض الصفحة */
@media (min-width: 1024px) {
  .store-footer__inner > .container.grid {
    grid-template-columns: 2fr 1fr 1fr !important;
    gap: 48px !important;
  }

  .store-footer__inner > .container.grid > div {
    grid-column: auto !important;
    min-width: 0;
  }

  .store-footer__inner > .container.grid > div:first-child {
    padding-inline: 0 !important;
  }
}

/* توضيح روابط الفوتر وأرقام التواصل */
footer.store-footer .store-footer__inner a,
footer.store-footer .store-footer__inner a *,
footer.store-footer .store-footer__inner salla-menu,
footer.store-footer .store-footer__inner salla-menu * {
  color: #FFFFFF !important;
  opacity: 1 !important;
}

/* تقليل المسافة بين VIA والوصف */
.store-footer__inner a.flex.items-center.m-0 > h2 {
  line-height: 0 !important;
  margin-bottom: 20px !important;
}
/* توزيع الفوتر وإلغاء مساحة تطبيق المتجر الفارغ */
.store-footer__inner > .container.grid > salla-apps-icons:empty {
  display: none !important;
}

@media (min-width: 1024px) {
  footer.store-footer .store-footer__inner > .container.grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) !important;
    gap: 40px !important;
  }

  footer.store-footer .store-footer__inner > .container.grid > div {
    grid-column: auto !important;
    min-width: 0 !important;
  }

  footer.store-footer .store-footer__inner > .container.grid > div:first-child {
    padding-inline: 0 !important;
  }
}
/* توضيح أرقام التواصل في الفوتر */
footer.store-footer .store-footer__inner salla-contacts,
footer.store-footer .store-footer__inner salla-contacts * {
  color: #FFFFFF !important;
  opacity: 1 !important;
}
/* إظهار أرقام التواصل بالأبيض الكامل */
footer.store-footer.abayat-store-footer
.abayat-store-footer__inner
salla-contacts .s-contacts-item .unicode {
  color: #FFFFFF !important;
  opacity: 1 !important;
}
/* ترتيب وسائل الدفع */
footer.store-footer.abayat-store-footer
.abayat-copyright salla-payments .s-payments-list {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}

/* خلفية بيضاء لكل شعار */
footer.store-footer.abayat-store-footer
.abayat-copyright salla-payments .s-payments-list-item {
  background: #FFFFFF !important;
  opacity: 1 !important;
  width: 48px !important;
  height: 32px !important;
  flex: 0 0 48px !important;
  margin: 0 !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

/* الحفاظ على أبعاد الشعارات */
footer.store-footer.abayat-store-footer
.abayat-copyright salla-payments .s-payments-list-item img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}
/* أقسام VIA — أربع بطاقات متساوية */
section:has(a[href*="c899300424"]) {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 1720px !important;
  height: auto !important;
  margin: 40px auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  background: #fff !important;
}

/* فك تقسيم الصور القديم */
section:has(a[href*="c899300424"]) div:has(a.group) {
  display: contents !important;
}

/* عنوان القسم */
section:has(a[href*="c899300424"])::before {
  content: "أقسام المتجر";
  display: block;
  grid-column: 1 / -1;
  margin-bottom: 24px;
  color: #111;
  font-family: "Tajawal", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

/* مقاس البطاقات وحوافها */
section:has(a[href*="c899300424"]) a.group {
  position: relative !important;
  display: block !important;
  isolation: isolate;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  aspect-ratio: 0.76 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* الصور */
section:has(a[href*="c899300424"]) a.group > img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

/* تدرج أسفل الصور */
section:has(a[href*="c899300424"]) a.group > .absolute.inset-0 {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.22) 32%,
    transparent 65%
  ) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* مكان أسماء الأقسام */
section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) {
  position: absolute !important;
  top: auto !important;
  bottom: 38px !important;
  right: 12px !important;
  left: 12px !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

/* خط أسماء الأقسام */
section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0),
section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) * {
  color: #fff !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: clamp(22px, 2.3vw, 40px) !important;
  font-weight: 300 !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) :is(h2, h3, h4, p) {
  margin: 0 !important;
}

/* تسوقي الآن تحت الاسم */
section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0)::after {
  content: "تسوقي الآن";
  display: table;
  margin: 18px auto 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
  font-family: "Tajawal", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* الجوال والتابلت */
@media (max-width: 1023px) {
  section:has(a[href*="c899300424"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 12px !important;
    margin: 28px auto !important;
  }

  section:has(a[href*="c899300424"])::before {
    margin-bottom: 12px;
    font-size: 25px;
  }

  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) {
    bottom: 22px !important;
    right: 8px !important;
    left: 8px !important;
  }

  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0),
  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) * {
    font-size: clamp(19px, 4.5vw, 30px) !important;
  }

  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0)::after {
    margin-top: 12px;
    font-size: 12px;
  }
}
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400&display=swap');
/* خط أسماء الأقسام */
section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0),
section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) * {
  font-family: "Tajawal", sans-serif !important;
  font-size: clamp(24px, 2.5vw, 44px) !important;
  font-weight: 300 !important;
  font-style: normal !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
}

/* الكتابة الصغيرة أسفل الاسم */
section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0)::after {
  font-family: "Tajawal", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin-top: 20px !important;
}

/* حجم الكتابة في الجوال */
@media (max-width: 767px) {
  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0),
  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0) * {
    font-size: clamp(20px, 4.5vw, 30px) !important;
  }

  section:has(a[href*="c899300424"]) a.group > .absolute:not(.inset-0)::after {
    font-size: 12px !important;
    margin-top: 12px !important;
  }
}
section.abayat-categories-section a.group.relative
> .absolute:not(.inset-0) h3 {
  font-family: "Tajawal", sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.22) !important;
  filter: none !important;
}

@media (min-width: 1024px) {
  section.abayat-categories-section a.group.relative
  > .absolute:not(.inset-0) h3 {
    font-size: clamp(27px, 2.8vw, 43px) !important;
  }
}
/* بطاقات المنتجات في الصفحة الرئيسية */
body.index .s-product-card-entry {
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* صور طولية متساوية */
body.index .s-product-card-entry .s-product-card-image {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 4 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #f5f5f5 !important;
}

body.index .s-product-card-entry .s-product-card-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
}

/* إخفاء الوصف والشارات وأزرار البطاقة */
body.index .s-product-card-entry .s-product-card-content-subtitle,
body.index .s-product-card-entry .s-product-card-promotion-title,
body.index .s-product-card-entry .s-product-card-badge,
body.index .s-product-card-entry .s-product-card-wishlist-btn,
body.index .s-product-card-entry .s-product-card-content-footer,
body.index .s-product-card-entry salla-add-product-button {
  display: none !important;
}

/* المساحة البيضاء أسفل الصورة */
body.index .s-product-card-entry .s-product-card-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  padding: 22px 10px 24px !important;
  margin: 0 !important;
  background: #fff !important;
  text-align: center !important;
}

/* اسم المنتج */
body.index .s-product-card-entry .s-product-card-content-title {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

body.index .s-product-card-entry .s-product-card-content-title a {
  display: block !important;
  color: #111 !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-decoration: none !important;
}

/* توسيط الأسعار */
body.index .s-product-card-entry .s-product-card-content-sub {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.index .s-product-card-entry .s-product-card-price,
body.index .s-product-card-entry .s-product-card-sale-price,
body.index .s-product-card-entry .s-product-card-sale-price h4 {
  color: #49172d !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  margin: 0 !important;
}

body.index .s-product-card-entry .s-product-card-sale-price {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

/* السعر السابق للمنتجات المخفضة */
body.index .s-product-card-entry .s-product-card-sale-price del {
  color: #888 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

/* الجوال */
@media (max-width: 767px) {
  body.index .s-product-card-entry .s-product-card-content {
    padding: 16px 6px 18px !important;
    gap: 8px !important;
  }

  body.index .s-product-card-entry .s-product-card-content-title a {
    font-size: 15px !important;
  }

  body.index .s-product-card-entry .s-product-card-price,
  body.index .s-product-card-entry .s-product-card-sale-price,
  body.index .s-product-card-entry .s-product-card-sale-price h4 {
    font-size: 14px !important;
  }
}
/* قائمة الأكثر مبيعاً */
salla-products-list[source="selected"][limit="4"] {
  --via-product-text: #111;
  --via-product-price: #49172d;
}

/* أربعة منتجات في الكمبيوتر */
salla-products-list[source="selected"][limit="4"]
.s-products-list-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

/* إزالة إطار البطاقة وتدوير الحواف */
salla-products-list[source="selected"][limit="4"]
custom-salla-product-card.s-product-card-entry {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* مساحة الصورة */
salla-products-list[source="selected"][limit="4"]
.s-product-card-image {
  flex: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 4 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

salla-products-list[source="selected"][limit="4"]
.s-product-card-image > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

salla-products-list[source="selected"][limit="4"]
.s-product-card-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
}

/* إخفاء الوصف وزر السلة */
salla-products-list[source="selected"][limit="4"]
.s-product-card-content-subtitle,
salla-products-list[source="selected"][limit="4"]
.s-product-card-add-to-cart,
salla-products-list[source="selected"][limit="4"]
salla-add-product-button {
  display: none !important;
}

/* إخفاء الشارات وأزرار الصورة المعروفة */
salla-products-list[source="selected"][limit="4"]
.s-product-card-promotion-title,
salla-products-list[source="selected"][limit="4"]
.s-product-card-badge,
salla-products-list[source="selected"][limit="4"]
.s-product-card-image button,
salla-products-list[source="selected"][limit="4"]
.s-product-card-image salla-button {
  display: none !important;
}

/* ترتيب الاسم والسعر */
salla-products-list[source="selected"][limit="4"]
.s-product-card-content {
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 22px 10px !important;
  margin: 0 !important;
  background: #fff !important;
  text-align: center !important;
}

salla-products-list[source="selected"][limit="4"]
.s-product-card-content-main {
  flex: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* اسم المنتج */
salla-products-list[source="selected"][limit="4"]
.s-product-card-content-title,
salla-products-list[source="selected"][limit="4"]
.s-product-card-content-title a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--via-product-text) !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* السعر */
salla-products-list[source="selected"][limit="4"]
.s-product-card-content-sub {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

salla-products-list[source="selected"][limit="4"]
.s-product-card-price,
salla-products-list[source="selected"][limit="4"]
.s-product-card-sale-price h4 {
  color: var(--via-product-price) !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

salla-products-list[source="selected"][limit="4"]
.s-product-card-sale-price {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

/* منتجان بجانب بعض في الجوال */
@media (max-width: 767px) {
  salla-products-list[source="selected"][limit="4"]
  .s-products-list-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  salla-products-list[source="selected"][limit="4"]
  .s-product-card-content {
    padding: 16px 6px !important;
    gap: 8px !important;
  }

  salla-products-list[source="selected"][limit="4"]
  .s-product-card-content-title a {
    font-size: 15px !important;
  }
}
/* VIA PRODUCT V1 START — append after existing CSS */
body.product-single { background:#fff!important; }
body.product-single #main-content {background:#fff!important;}
body.product-single .abayat-upper-bar {background:var(--via-primary,#49172d)!important;color:#fff!important;}
body.product-single .abayat-upper-bar * {color:#fff!important;}
body.product-single #mainnav,body.product-single #mainnav .inner {background:#fff!important;color:var(--via-primary,#49172d)!important;box-shadow:none!important;}
body.product-single #mainnav :is(a,button,.s-button-element),body.product-single #mainnav button[aria-label="user-icon"] .sicon-user,body.product-single #mainnav button[aria-label="user-icon"] .sicon-user::before {color:var(--via-primary,#49172d)!important;background:transparent!important;border-color:transparent!important;}
body.product-single #main-content > .container {max-width:1600px!important;}
body.product-single .breadcrumbs {padding-block:22px!important;font-size:13px!important;}
body.product-single #main-content [id^="product-"] {gap:28px!important;align-items:flex-start!important;}
body.product-single .abayat-sidebar {margin:0!important;min-width:0!important;border-radius:0!important;}
body.product-single .abayat-main-content {min-width:0!important;overflow:visible!important;position:static!important;}
body.product-single .details-slider {border-radius:0!important;}
body.product-single .details-slider .homeslider__slide > img {object-fit:contain!important;object-position:center!important;border-radius:0!important;}
body.product-single .abayat-main-content > h1 {font-size:27px!important;font-weight:500!important;margin-block:14px 18px!important;}
body.product-single .abayat-price {margin-bottom:24px!important;}
body.product-single .abayat-price :is(h2,h4) {color:var(--via-text,#221b1f)!important;font-size:23px!important;font-weight:500!important;}
body.product-single .product__description {font-size:15px!important;line-height:1.9!important;margin-block:20px!important;}
body.product-single .product-form > section {padding:16px 0!important;border-radius:0!important;background:#fff!important;}
body.product-single .product-form .s-product-options-option-container {margin-bottom:24px!important;}
body.product-single .product-form .s-product-options-option-label {display:block!important;margin-bottom:10px!important;}
body.product-single .product-form .s-product-options-grid-mode {display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
body.product-single .product-form .s-product-options-grid-mode-span {min-width:48px!important;min-height:46px!important;padding:12px!important;border:1px solid #bdb5b8!important;border-radius:0!important;background:#fff!important;color:var(--via-primary,#49172d)!important;}
body.product-single .product-form input:checked + .s-product-options-grid-mode-span {background:var(--via-primary,#49172d)!important;color:white!important;border-color:var(--via-primary,#49172d)!important;}
body.product-single .product-form input:focus-visible + .s-product-options-grid-mode-span {outline:2px solid var(--via-primary,#49172d)!important;outline-offset:3px!important;}
body.product-single .product-form :is(select,textarea) {width:100%!important;border:1px solid #aaa!important;border-radius:0!important;font-size:16px!important;}
body.product-single .product-form textarea {min-height:96px!important;}
body.product-single .product-form .via-note-open {height:auto!important;opacity:1!important;overflow:visible!important;}
body.product-single .product-form .sticky-product-bar {position:static!important;box-shadow:none!important;width:100%!important;}
body.product-single .product-form .s-add-product-button-main {gap:10px!important;}
body.product-single .product-form salla-add-product-button .s-button-element {min-height:50px!important;border-radius:0!important;background:var(--via-primary,#49172d)!important;color:white!important;}
body.product-single .product-form salla-add-product-button .s-button-element:disabled {opacity:.5!important;cursor:not-allowed!important;}
body.product-single .product-form .s-quantity-input-container {border:1px solid #aaa!important;border-radius:0!important;}
body.product-single .product-form .s-quantity-input-button {background:#fff!important;color:var(--via-primary,#49172d)!important;border:0!important;min-height:44px!important;}
body.product-single .product-form .s-button-link {background:transparent!important;color:var(--via-primary,#49172d)!important;border:0!important;}
body.product-single .via-product-policies {margin:24px 0 40px;border:1px solid #aaa;}
body.product-single .via-product-policies details + details {border-top:1px solid #aaa;}
body.product-single .via-product-policies summary {display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:16px;font-size:17px;color:var(--via-primary,#49172d);}
body.product-single .via-product-policies summary::-webkit-details-marker {display:none;}
body.product-single .via-product-policies summary::after {content:'+';font-size:22px;}
body.product-single .via-product-policies details[open] > summary::after {content:'−';}
body.product-single .via-policy-content {padding:0 16px 18px;line-height:1.9;font-size:15px;overflow-wrap:anywhere;}
body.product-single .via-policy-content a {text-decoration:underline;color:var(--via-primary,#49172d);}
body.product-single .via-policy-content img {display:inline-block;width:auto;max-width:65px;height:32px;object-fit:contain;margin:5px;}
body.product-single .abayat-related-products .s-product-card-entry {border:0!important;border-radius:0!important;box-shadow:none!important;}
body.product-single .abayat-related-products .s-product-card-image {aspect-ratio:3/4!important;height:auto!important;border-radius:0!important;}
body.product-single .abayat-related-products .s-product-card-image img {height:100%!important;width:100%!important;object-fit:cover!important;}
body.product-single .abayat-related-products .s-product-card-content {text-align:center!important;padding:18px 8px!important;}
body.product-single .abayat-related-products .s-product-card-content-sub {justify-content:center!important;}
body.product-single .abayat-related-products .s-product-card-content-title a {font-size:16px!important;font-weight:400!important;}
body.product-single .via-product-features {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:1440px;margin:60px auto;padding:20px;gap:24px;text-align:center;}
body.product-single .via-product-features > div {padding:20px;border-inline-start:1px solid #dfd9d9;}
body.product-single .via-product-features > div:first-child {border:0;}
body.product-single .via-product-features h3 {font-weight:400;font-size:21px;margin-bottom:12px;}
body.product-single .via-product-features p {font-size:15px;color:var(--via-muted,#6a5e65);line-height:1.8;}
body.product-single footer.store-footer,body.product-single footer .abayat-copyright {background:var(--via-primary,#49172d)!important;color:#fff!important;}
body.product-single footer.store-footer .store-footer__inner {padding-block:50px!important;}
body.product-single footer.store-footer .s-menu-footer-item {display:block!important;margin-bottom:12px!important;}
@media(min-width:768px){
 body.product-single #main-content [id^="product-"] > .abayat-sidebar {width:calc(52% - 14px)!important;}
 body.product-single #main-content [id^="product-"] > .abayat-main-content {width:calc(48% - 14px)!important;}
}
@media(max-width:767px){
 body.product-single #main-content > .container {padding-inline:14px!important;width:100%!important;box-sizing:border-box!important;}
 body.product-single #main-content [id^="product-"] {display:flex!important;flex-direction:column!important;gap:0!important;}
 body.product-single .abayat-sidebar,body.product-single .abayat-main-content {width:100%!important;padding-bottom:20px!important;position:static!important;}
 body.product-single .breadcrumbs {padding-block:14px!important;}
 body.product-single .abayat-main-content > h1 {font-size:24px!important;}
 body.product-single .via-product-features {grid-template-columns:1fr;gap:0;margin-block:30px;}
 body.product-single .via-product-features > div {border-inline-start:0;border-top:1px solid #dfd9d9;padding:22px 12px;}
 body.product-single footer.store-footer .store-footer__inner > .container.grid {display:grid!important;grid-template-columns:1fr!important;gap:28px!important;}
}
/* VIA PRODUCT V1 END */
/* إظهار أيقونتي المفضلة والمشاركة دائما */
body.product-single .btn--wishlist,
body.product-single .s-social-share-btn {
  background: #49172d !important;
  color: #fff !important;
  border-color: #49172d !important;
}

body.product-single .btn--wishlist *,
body.product-single .s-social-share-btn * {
  color: #fff !important;
  opacity: 1 !important;
}

body.product-single .btn--wishlist i::before,
body.product-single .s-social-share-btn i::before {
  color: #fff !important;
}

body.product-single .btn--wishlist svg,
body.product-single .btn--wishlist svg path,
body.product-single .s-social-share-btn svg,
body.product-single .s-social-share-btn svg path {
  fill: #fff !important;
}
/* إخفاء قسم المميزات الظاهر في الصورة */
section.abayat-features {
  display: none !important;
}

/* تصغير دائرة الحساب */
button[aria-label="user-icon"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}

/* تصغير رسم الحساب */
button[aria-label="user-icon"] .sicon-user,
button[aria-label="user-icon"] .sicon-user::before {
  font-size: 20px !important;
  line-height: 1 !important;
}
/* تصغير زر الحساب والرسم داخله */
body button.header-btn__icon[aria-label="user-icon"] {
  box-sizing: border-box !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  max-width: 30px !important;
  max-height: 30px !important;
  flex: 0 0 30px !important;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 50% !important;
}

body button.header-btn__icon[aria-label="user-icon"] .sicon-user,
body button.header-btn__icon[aria-label="user-icon"] .sicon-user::before {
  display: inline-block !important;
  font-size: 18px !important;
  line-height: 18px !important;
  width: 18px !important;
  height: 18px !important;
}

body button.header-btn__icon[aria-label="user-icon"] svg,
body button.header-btn__icon[aria-label="user-icon"] img {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
}
/* VIA — توحيد بطاقات المنتجات */
body #main-content .s-product-card-entry {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* الصورة الطولية */
body #main-content .s-product-card-entry .s-product-card-image {
  flex: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 3 / 4 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

body #main-content .s-product-card-entry .s-product-card-image > a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

body #main-content .s-product-card-entry .s-product-card-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
}

/* إخفاء إضافات البطاقة */
body #main-content .s-product-card-entry :is(
  .s-product-card-content-subtitle,
  .s-product-card-promotion-title,
  .s-product-card-badge,
  .s-product-card-wishlist-btn,
  .s-product-card-content-footer,
  .s-product-card-add-to-cart,
  salla-add-product-button
),
body #main-content .s-product-card-entry .s-product-card-image :is(
  button,
  salla-button
) {
  display: none !important;
}

/* الاسم والسعر أسفل الصورة */
body #main-content .s-product-card-entry .s-product-card-content {
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 22px 10px !important;
  margin: 0 !important;
  background: #fff !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

body #main-content .s-product-card-entry .s-product-card-content-main {
  flex: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body #main-content .s-product-card-entry .s-product-card-content-title {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
}

body #main-content .s-product-card-entry .s-product-card-content-title a {
  display: block !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #221b1f !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body #main-content .s-product-card-entry .s-product-card-content-sub,
body #main-content .s-product-card-entry .s-product-card-sale-price {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body #main-content .s-product-card-entry :is(
  .s-product-card-price,
  .s-product-card-sale-price h4
) {
  font-family: "Tajawal", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #49172d !important;
  margin: 0 !important;
}

body #main-content .s-product-card-entry .s-product-card-sale-price del {
  color: #888 !important;
  font-size: 13px !important;
}

/* أربع بطاقات في الكمبيوتر */
body #main-content .s-products-list-vertical-cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

/* بطاقتان في الجوال والتابلت */
@media (max-width: 1023px) {
  body #main-content .s-products-list-vertical-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body #main-content .s-products-list-vertical-cards {
    gap: 8px !important;
  }

  body #main-content .s-product-card-entry .s-product-card-content {
    padding: 14px 6px 20px !important;
    gap: 6px !important;
  }

  body #main-content .s-product-card-entry .s-product-card-content-title a {
    font-size: 15px !important;
  }

  body #main-content .s-product-card-entry :is(
    .s-product-card-price,
    .s-product-card-sale-price h4
  ) {
    font-size: 14px !important;
  }
}
/* منع ظهور الهيدر القديم أثناء التجهيز */
header.abayat-store-header:not(.via-header-v2) {
  visibility: hidden !important;
  animation: via-header-fallback 0s 3s forwards;
}

header.abayat-store-header.via-header-v2 {
  visibility: visible !important;
  animation: none !important;
}

/* إظهار الهيدر الأصلي إذا تعذر تشغيل التعديل */
@keyframes via-header-fallback {
  to {
    visibility: visible;
  }
}
/* VIA — أزرار صفحة المنتج */

form.product-form .sticky-product-bar
.s-add-product-button-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
}

/* عرض كامل لكل زر */
form.product-form .sticky-product-bar
.s-add-product-button-main > salla-button,
form.product-form .sticky-product-bar
.s-add-product-button-main > salla-mini-checkout-widget {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  margin: 0 !important;
}

/* الشكل والحجم */
form.product-form .sticky-product-bar
.s-add-product-button-main > salla-button > button,
form.product-form .sticky-product-bar
.s-add-product-button-main > salla-mini-checkout-widget button {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 16px !important;
  margin: 0 !important;

  border: 1px solid #49172d !important;
  border-radius: 14px !important;
  box-shadow: none !important;

  font-family: "Tajawal", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* إضافة للسلة */
form.product-form .sticky-product-bar
.s-add-product-button-main > salla-button > button {
  background: #49172d !important;
  color: #fff !important;
}

/* اشترِ الآن */
form.product-form .sticky-product-bar
.s-add-product-button-main > salla-mini-checkout-widget button {
  background: #fff !important;
  color: #49172d !important;
}

/* النص والأيقونات */
form.product-form .sticky-product-bar
.s-add-product-button-main button :is(span, i, svg) {
  color: inherit !important;
}
/* ترتيب أزرار صفحة المنتج فوق بعض */
form.product-form .sticky-product-bar
salla-add-product-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
}

form.product-form .sticky-product-bar
salla-add-product-button > .s-add-product-button-main,
form.product-form .sticky-product-bar
salla-add-product-button > salla-quick-buy {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  margin: 0 !important;
}

form.product-form .sticky-product-bar
.s-add-product-button-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
}

/* توحيد ارتفاع واستدارة إضافة للسلة */
form.product-form .sticky-product-bar
.s-add-product-button-main > salla-button > button {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 16px !important;
  border: 1px solid #49172d !important;
  border-radius: 14px !important;
}

/* استدارة حاوية اشترِ الآن، حتى لو كان الزر داخلياً */
form.product-form .sticky-product-bar
salla-mini-checkout-widget.s-add-product-button-mini-checkout {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #49172d !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
}

form.product-form .sticky-product-bar
salla-mini-checkout-widget.s-add-product-button-mini-checkout button {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #49172d !important;
}
/* VIA — توحيد أزرار الشراء */

/* الحاوية الرئيسية */
form.product-form
salla-add-product-button.sticky-product-bar__btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* حاوية إضافة للسلة واشترِ الآن */
form.product-form
salla-add-product-button.sticky-product-bar__btn
> .s-add-product-button-main {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  flex: none !important;
}

/* عرض الحاويات */
form.product-form
salla-add-product-button.sticky-product-bar__btn
> .s-add-product-button-main > salla-button,

form.product-form
salla-add-product-button.sticky-product-bar__btn
> .s-add-product-button-main > salla-mini-checkout-widget,

form.product-form
salla-add-product-button.sticky-product-bar__btn
> salla-quick-buy {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* إضافة للسلة */
form.product-form
salla-add-product-button.sticky-product-bar__btn
> .s-add-product-button-main > salla-button > button {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border: 1px solid #49172d !important;
  border-radius: 14px !important;
  background: #49172d !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* إظهار عبارة إضافة للسلة في الجوال */
form.product-form
salla-add-product-button.sticky-product-bar__btn
> .s-add-product-button-main > salla-button
> button .s-button-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* حاوية اشترِ الآن */
form.product-form
salla-add-product-button.sticky-product-bar__btn
> .s-add-product-button-main
> salla-mini-checkout-widget {
  height: auto !important;
  border: 0 !important;
  border-radius: 14px !important;
  overflow: visible !important;
  background: transparent !important;
}

/* زر اشترِ الآن الفعلي */
form.product-form
salla-add-product-button.sticky-product-bar__btn
.s-add-product-button-mini-checkout-content {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid #49172d !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #49172d !important;
  box-shadow: none !important;
  font-family: "Tajawal", sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

/* أيقونة المحفظة */
form.product-form
salla-add-product-button.sticky-product-bar__btn
.s-add-product-button-mini-checkout-content svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

/* Apple Pay: مقاس الزر الأصلي عبر خصائصه */
form.product-form
salla-add-product-button.sticky-product-bar__btn
> salla-quick-buy apple-pay-button {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: 50px;
  --apple-pay-button-border-radius: 14px;
  --apple-pay-button-box-sizing: border-box;

  display: block !important;
  width: 100% !important;
  height: 50px !important;
  margin: 0 !important;
}
/* إصلاح الإطار المزدوج لزر اشترِ الآن */
form.product-form
salla-add-product-button.sticky-product-bar__btn
> .s-add-product-button-main
> salla-mini-checkout-widget.s-add-product-button-mini-checkout {
  box-sizing: border-box !important;
  height: 50px !important;
  padding: 0 !important;
  border: 1px solid #49172d !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: none !important;
}

form.product-form
salla-add-product-button.sticky-product-bar__btn
salla-mini-checkout-widget
> .s-add-product-button-mini-checkout-content {
  width: 100% !important;
  height: 48px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}