/* Add custom CSS styles below */

/* =========================================================
   SORME — Angel Theme
   ========================================================= */

:root {
  --sorme-navy: #07112f;
  --sorme-navy-light: #14234a;
  --sorme-white: #ffffff;
  --sorme-soft: #f7f7f8;
  --sorme-red: #ef5757;
  --sorme-gold: #bd9673;
  --sorme-teal: #0f5961;
  --sorme-ivory: #fcf8f4;
}

body,
.app-inner {
  background: var(--sorme-ivory) !important;
}

/* العناوين */
.s-block__title h2::after,
.s-block__title h3::after,
.angel-products-title h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 11px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--sorme-gold),
    #d8b99d
  ) !important;
}

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

salla-product-card,
custom-salla-product-card,
.s-product-card-entry {
  border-radius: 20px !important;
}

custom-salla-product-card.s-product-card-entry,
.s-product-card-entry {
  background: #fff !important;
  border: 1px solid rgba(189, 150, 115, 0.38) !important;
  box-shadow: 0 10px 28px rgba(57, 38, 30, 0.10) !important;
  overflow: hidden !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}

@media (min-width: 768px) {
  custom-salla-product-card.s-product-card-entry:hover,
  .s-product-card-entry:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 17px 38px rgba(57, 38, 30, 0.16) !important;
  }
}

/* صورة المنتج */
.s-product-card-entry .s-product-card-image {
  background: linear-gradient(
    180deg,
    #faf6f2 0%,
    #f3ebe5 100%
  ) !important;

  border-bottom: 1px solid rgba(189, 150, 115, 0.20) !important;
}

.s-product-card-entry .s-product-card-image img {
  object-fit: contain !important;
  transition: transform .35s ease !important;
}

@media (min-width: 768px) {
  .s-product-card-entry:hover .s-product-card-image img {
    transform: scale(1.035) !important;
  }
}

/* محتوى البطاقة */
.s-product-card-entry .s-product-card-content {
  background: #fff !important;
  padding-bottom: 14px !important;
}

/* الماركة */
.s-product-card-entry .s-product-card-brand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  padding: 4px 11px !important;
  border-radius: 999px !important;
  background: #f0e8e2 !important;
  color: #5b4037 !important;
  font-weight: 700 !important;
}

/* اسم المنتج */
.s-product-card-content-title,
.s-product-card-content-title a {
  color: #211815 !important;
  font-weight: 700 !important;
}

/* السعر */
.s-product-card-entry .s-product-card-price,
.s-product-card-entry .s-product-card-sale-price,
.s-product-card-entry h4 {
  color: #5b4037 !important;
  font-weight: 800 !important;
}

/* أزرار البطاقة */
.s-product-card-entry .s-product-card-actions button {
  background: #f1edef !important;
  color: #34231e !important;
  border: 1px solid rgba(91, 64, 55, 0.10) !important;
  box-shadow: none !important;
}

.s-product-card-entry .s-product-card-actions button i {
  color: #34231e !important;
}

/* زر أضف للسلة */
.s-product-card-entry .s-product-card-add-button,
.s-product-card-entry salla-add-product-button button,
.s-product-card-entry .s-button-primary {
  background: linear-gradient(
    135deg,
    #5b4037,
    #8a6859
  ) !important;

  color: #fff !important;
  border-color: transparent !important;
}

/* =========================================================
   الأزرار الرئيسية
   ========================================================= */

.s-button-primary,
.btn-primary,
.btn--primary,
.s-block__display-all,
.display-all-category,
.offers-link {
  background-color: var(--sorme-navy) !important;
  border-color: var(--sorme-navy) !important;
  color: #fff !important;
}

/* =========================================================
   الشعار
   ========================================================= */

.navbar-brand img,
.angel-logo img,
.store-header img.logo-light,
.store-header img.logo-dark {
  width: auto !important;
  height: auto !important;
  max-width: 230px !important;
  max-height: 92px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
}

/* الخصم */
.s-product-card-promotion-title,
.s-product-card-discount {
  background: var(--sorme-red) !important;
  color: #fff !important;
}

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

.store-footer,
.store-footer__inner {
  background: var(--sorme-navy) !important;
  color: #fff !important;
}

.store-footer a,
.store-footer p,
.store-footer .footer-title,
.store-footer h2,
.store-footer h3 {
  color: #fff !important;
}

.store-footer a:hover {
  color: #d9dfef !important;
}

/* شعار الفوتر */
.store-footer .logo-footer,
.store-footer .logo-footer a {
  overflow: visible !important;
}

.store-footer .logo-footer img,
.store-footer img.logo-light.foo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 210px !important;
  max-height: none !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
}

/* =========================================================
   التواصل
   ========================================================= */

.store-footer .footer-social salla-social {
  --color-primary: var(--sorme-navy) !important;
  --color-primary-dark: var(--sorme-navy-light) !important;
  --color-primary-reverse: #fff !important;
  color: var(--sorme-navy) !important;
}

.store-footer .footer-social .s-social-link a,
.store-footer .footer-social a,
.store-footer .footer-social .social-link,
.store-footer .footer-social .social-links a {
  background: #fff !important;
  color: var(--sorme-navy) !important;
  border: 1px solid #dfe3ec !important;
}

.store-footer .footer-social i,
.store-footer .footer-social svg,
.store-footer .footer-social span,
.store-footer .footer-social svg path {
  color: var(--sorme-navy) !important;
  fill: var(--sorme-navy) !important;
  stroke: var(--sorme-navy) !important;
  opacity: 1 !important;
}

/* =========================================================
   خدمة العملاء
   ========================================================= */

.store-footer salla-contacts .s-contacts-title {
  color: #fff !important;
}

.store-footer salla-contacts .s-contacts-item {
  background: #fff !important;
  border: 1px solid #dfe3ec !important;
  color: var(--sorme-navy) !important;
}

.store-footer salla-contacts .s-contacts-icon,
.store-footer salla-contacts .s-contacts-icon svg,
.store-footer salla-contacts .s-contacts-icon svg path {
  color: var(--sorme-navy) !important;
  fill: var(--sorme-navy) !important;
  stroke: none !important;
  opacity: 1 !important;
}

.store-footer salla-contacts .unicode {
  color: var(--sorme-navy) !important;
}

/* =========================================================
   التوثيق
   ========================================================= */

.store-footer .footer-vat salla-trust-badges {
  --color-primary: var(--sorme-navy) !important;
  --color-primary-dark: var(--sorme-navy-light) !important;
  --color-primary-reverse: #fff !important;
  color: var(--sorme-navy) !important;
}

.store-footer .footer-vat > div {
  background: transparent !important;
}

.store-footer .footer-vat salla-trust-badges {
  background: transparent !important;
}

.store-footer .footer-vat img,
.store-footer .s-trust-badges-image {
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.store-footer .s-trust-badges-label,
.store-footer .s-trust-badges-number,
.store-footer .vat-num,
.store-footer .vat-num p {
  color: #fff !important;
}

.store-footer .footer-vat i,
.store-footer .footer-vat svg {
  color: var(--sorme-navy) !important;
  fill: var(--sorme-navy) !important;
  stroke: var(--sorme-navy) !important;
  opacity: 1 !important;
}

/* =========================================================
   تحسينات الجوال
   ========================================================= */

@media (max-width: 767px) {

  .navbar-brand img,
  .angel-logo img,
  .store-header img.logo-light,
  .store-header img.logo-dark {
    max-width: 185px !important;
    max-height: 78px !important;
  }

  .s-block {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
  }

  .s-block--banners,
  .s-block--tabs-produtcs,
  .s-block--angel-products,
  .s-block--testimonials,
  .s-block--features {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .s-block--banners + .s-block--tabs-produtcs,
  .s-block--tabs-produtcs + .s-block--angel-products,
  .s-block--categories + .s-block--tabs-produtcs {
    margin-top: 0 !important;
  }

  .s-block--tabs-produtcs .tabs-wrapper,
  .s-block--tabs-produtcs .tabs {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .s-block__title,
  .angel-products-title {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .s-block--tabs-produtcs .tab-trigger {
    padding: 10px 17px !important;
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  .s-product-card-entry {
    border-width: 1px !important;
    border-radius: 17px !important;
    box-shadow: 0 7px 20px rgba(57, 38, 30, 0.10) !important;
  }

  .store-footer,
  .store-footer__inner,
  .store-footer .container {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .store-footer .logo-footer img,
  .store-footer img.logo-light.foo {
    max-width: 165px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   صفحة المنتج — ترتيب الجوال
   ========================================================= */

@media (max-width: 767px) {

  body.product-single .details-slider,
  body.product-single .details-slider .s-slider-container,
  body.product-single .details-slider .swiper-wrapper,
  body.product-single .details-slider .swiper-slide {
    height: clamp(330px, 88vw, 440px) !important;
    min-height: 0 !important;
    max-height: 440px !important;
  }

  body.product-single .details-slider .swiper-slide img,
  body.product-single .details-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff !important;
  }

  body.product-single [id^="product-"] > .sidebar {
    padding-bottom: 6px !important;
  }

  body.product-single [id^="product-"] > .main-content {
    margin-top: 6px !important;
    padding-top: 0 !important;
  }

  body.product-single .main-content > div:has(> .product-brand) {
    min-height: 0 !important;
    margin-bottom: 10px !important;
    padding: 7px 10px !important;
    border-color: rgba(189, 150, 115, 0.30) !important;
    background: #fff !important;
  }

  body.product-single .product-brand {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
  }

  body.product-single .product-brand .brand-logo {
    width: 46px !important;
    height: 46px !important;
    padding: 3px !important;
  }

  body.product-single .product-brand img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  body.product-single .main-content h1 {
    margin-top: 4px !important;
    color: #211815 !important;
    font-size: 20px !important;
    line-height: 1.55 !important;
    font-weight: 800 !important;
  }

  body.product-single #sorme-share-product {
    display: none !important;
  }
}

/* =========================================================
   اليوم الوطني 96
   ========================================================= */

html.sorme-national-day-96 {
  --sorme-navy: #315b4c;
  --sorme-navy-light: #23483c;
  --sorme-gold: #cbb88a;
  --sorme-ivory: #faf8f3;
}

html.sorme-national-day-96 body,
html.sorme-national-day-96 .app-inner {
  background: linear-gradient(
    180deg,
    #fff 0%,
    var(--sorme-ivory) 100%
  ) !important;
}

/* رأس الصفحة */
html.sorme-national-day-96 .store-header,
html.sorme-national-day-96 .store-header .main-nav-container,
html.sorme-national-day-96 .store-header .navbar,
html.sorme-national-day-96 header.store-header {
  background: linear-gradient(
    135deg,
    #284f42 0%,
    #3f6b5b 100%
  ) !important;
}

html.sorme-national-day-96 .store-header a,
html.sorme-national-day-96 .store-header button,
html.sorme-national-day-96 .store-header i,
html.sorme-national-day-96 .store-header .header-btn__icon,
html.sorme-national-day-96 .store-header .header-btn__content,
html.sorme-national-day-96 .store-header .header-btn__title,
html.sorme-national-day-96 .store-header .header-btn__name {
  color: #fff !important;
}

html.sorme-national-day-96 .store-header input,
html.sorme-national-day-96 .store-header .s-search-input,
html.sorme-national-day-96 .store-header .search-input {
  background: #fff !important;
  color: #211815 !important;
}

/* أزرار اليوم الوطني */
html.sorme-national-day-96 .s-button-primary,
html.sorme-national-day-96 .btn-primary,
html.sorme-national-day-96 .btn--primary,
html.sorme-national-day-96 .s-block__display-all,
html.sorme-national-day-96 .display-all-category,
html.sorme-national-day-96 .offers-link,
html.sorme-national-day-96 .s-product-card-entry .s-product-card-add-button,
html.sorme-national-day-96 .s-product-card-entry salla-add-product-button button,
html.sorme-national-day-96 .s-product-card-entry .s-button-primary {
  background: linear-gradient(
    135deg,
    #315b4c,
    #557c6d
  ) !important;

  border-color: #315b4c !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(49, 91, 76, 0.18) !important;
}

html.sorme-national-day-96 .s-button-primary:hover,
html.sorme-national-day-96 .btn-primary:hover,
html.sorme-national-day-96 .btn--primary:hover,
html.sorme-national-day-96 .s-block__display-all:hover,
html.sorme-national-day-96 .display-all-category:hover,
html.sorme-national-day-96 .offers-link:hover {
  background: #cbb88a !important;
  border-color: #cbb88a !important;
  color: #23483c !important;
}

html.sorme-national-day-96 .s-block__title h2,
html.sorme-national-day-96 .s-block__title h3,
html.sorme-national-day-96 .angel-products-title h2 {
  color: #284f42 !important;
}

html.sorme-national-day-96 custom-salla-product-card.s-product-card-entry,
html.sorme-national-day-96 .s-product-card-entry {
  border-color: rgba(203, 184, 138, 0.50) !important;
  box-shadow: 0 10px 28px rgba(49, 91, 76, 0.09) !important;
}

html.sorme-national-day-96 .s-product-card-entry .s-product-card-image {
  background: linear-gradient(
    180deg,
    #fff 0%,
    #f7f1df 100%
  ) !important;

  border-bottom-color: rgba(203, 184, 138, 0.28) !important;
}

html.sorme-national-day-96 .s-product-card-entry .s-product-card-brand {
  background: #eef3f0 !important;
  color: #315b4c !important;
}

html.sorme-national-day-96 .s-product-card-entry .s-product-card-price,
html.sorme-national-day-96 .s-product-card-entry .s-product-card-sale-price,
html.sorme-national-day-96 .s-product-card-entry h4 {
  color: #315b4c !important;
}

html.sorme-national-day-96 .store-footer,
html.sorme-national-day-96 .store-footer__inner {
  background: linear-gradient(
    135deg,
    #23483c 0%,
    #3f6b5b 100%
  ) !important;
}

@media (max-width: 767px) {

  html.sorme-national-day-96 .store-header,
  html.sorme-national-day-96 .store-header .main-nav-container,
  html.sorme-national-day-96 .store-header .navbar {
    background: #315b4c !important;
  }

  html.sorme-national-day-96 .s-button-primary,
  html.sorme-national-day-96 .btn-primary,
  html.sorme-national-day-96 .btn--primary {
    min-height: 44px !important;
  }
}

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

html.sorme-national-day-96 #sorme-national-offer {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 28px;
  padding: 22px 28px;
  overflow: hidden;
  border: 1px solid rgba(203, 184, 138, 0.72);
  border-radius: 22px;

  background:
    radial-gradient(
      circle at 8% 20%,
      rgba(255,255,255,.16),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #284f42 0%,
      #3f6b5b 58%,
      #557c6d 100%
    );

  color: #fff;
  text-align: center;
  box-shadow: 0 14px 34px rgba(49, 91, 76, 0.20);
}

html.sorme-national-day-96 #sorme-national-offer::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80%;
  left: -35%;
  width: 24%;
  height: 260%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.35),
    transparent
  );
  transform: rotate(18deg);
  animation: sormeOfferShine 3.8s ease-in-out infinite;
}

html.sorme-national-day-96 #sorme-national-offer .sorme-offer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  padding: 5px 13px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #f3e5bd;
  font-size: 14px;
  font-weight: 800;
}

html.sorme-national-day-96 #sorme-national-offer h2 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(23px, 3vw, 36px);
  line-height: 1.5;
  font-weight: 900;
}

html.sorme-national-day-96 #sorme-national-offer h2 strong {
  display: inline-block;
  color: #ead7a3;
  font-size: 1.12em;
  text-shadow: 0 3px 12px rgba(0,0,0,.18);
  animation: sormeOfferPulse 1.8s ease-in-out infinite;
}

html.sorme-national-day-96 #sorme-national-offer p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.92) !important;
  font-size: 15px;
  font-weight: 600;
}

html.sorme-national-day-96 #sorme-national-offer .sorme-offer-stars {
  position: absolute;
  top: 12px;
  right: 18px;
  color: #ead7a3;
  font-size: 20px;
  animation: sormeOfferTwinkle 1.5s ease-in-out infinite alternate;
}

@keyframes sormeOfferShine {
  0%, 34% {
    left: -35%;
  }

  72%, 100% {
    left: 125%;
  }
}

@keyframes sormeOfferPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.045);
  }
}

@keyframes sormeOfferTwinkle {
  from {
    opacity: .45;
    transform: scale(.86) rotate(-7deg);
  }

  to {
    opacity: 1;
    transform: scale(1.08) rotate(7deg);
  }
}

@media (max-width: 767px) {

  html.sorme-national-day-96 #sorme-national-offer {
    width: calc(100% - 20px);
    margin: 12px auto 20px;
    padding: 18px 14px;
    border-radius: 18px;
  }

  html.sorme-national-day-96 #sorme-national-offer h2 {
    font-size: 22px;
    line-height: 1.6;
  }

  html.sorme-national-day-96 #sorme-national-offer p {
    font-size: 13px;
  }

  html.sorme-national-day-96 #sorme-national-offer .sorme-offer-stars {
    top: 8px;
    right: 10px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  html.sorme-national-day-96 #sorme-national-offer::before,
  html.sorme-national-day-96 #sorme-national-offer h2 strong,
  html.sorme-national-day-96 #sorme-national-offer .sorme-offer-stars {
    animation: none !important;
  }
}

/* =========================================================
   XU — الإصلاح النهائي لبطاقات المنتجات
   لا نستخدم flex ولا absolute ولا aspect-ratio
   حتى لا تختفي الصور في قالب Angel
   ========================================================= */

/* توحيد مساحة الصور على الكمبيوتر */
.s-product-card-entry .s-product-card-image {
  height: 320px !important;
  min-height: 320px !important;
  max-height: 320px !important;
  overflow: hidden !important;
}

/* إبقاء الصورة ظاهرة وكاملة */
.s-product-card-entry .s-product-card-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* توحيد اسم المنتج */
.s-product-card-entry .s-product-card-content-title {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 24px !important;
  overflow: hidden !important;
}

/* =========================================================
   ضبط الجوال
   ========================================================= */

@media (max-width: 767px) {

  /* مساحة الصورة موحدة */
  .s-product-card-entry .s-product-card-image {
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
  }

  .s-product-card-entry .s-product-card-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* الاسم */
  .s-product-card-entry .s-product-card-content-title {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    line-height: 22px !important;
    overflow: hidden !important;
  }
}
:root {
  --color-primary: #5b3030;
  --color-primary-dark: #402020;
  --color-primary-light: #815656;
  --header-bg: #5b3030;
  --footer-bg: #5b3030;
}

/* الرأس وشريط الجوال */
#mainnav .header-inner,
.bottom-header {
  background: #5b3030 !important;
}

#mainnav i,
#mainnav .header-btn,
#mainnav .s-cart-summary-icon {
  color: #fff !important;
}

/* توحيد أسفل المتجر */
footer,
footer .store-footer__inner {
  background: #5b3030 !important;
  background-image: none !important;
  color: #fff !important;
}

footer a,
footer p,
footer h3 {
  color: #fff !important;
}

/* إظهار شعار الأسفل */
footer img.logo-light.foo {
  filter: none !important;
  opacity: 1 !important;
  width: 140px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* بطاقة العرض */
#sorme-national-offer {
  background: #5b3030 !important;
  background-image: none !important;
  border-color: #d8c5ae !important;
  color: #fff !important;
}

/* أزرار التواصل */
footer .s-social-link,
footer .s-contacts-icon {
  background: #fff !important;
  color: #5b3030 !important;
}