@media (min-width: 992px) {
  .js-drag-scroll {
    cursor: grab;
    user-select: none;
  }

  .js-drag-scroll:active,
  .js-drag-scroll.js-drag-scroll--active {
    cursor: grabbing;
  }

  .js-drag-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  .js-drag-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
  }

  .js-drag-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }

  .js-drag-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
  }

  .js-drag-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.06);
  }
}

.header-logo {
  width: auto;
  max-width: 180px;
  flex-shrink: 0;
}

/* شريط الموبايل (header-mobile-top + header-mobile-bottom) يظهر في الموبايل فقط */
@media (min-width: 992px) {

  .header-mobile-top,
  .header-mobile-bottom,
  .mobile-bottom-nav {
    display: none !important;
  }
}

.header-mobile-top {
  border-bottom: 1px solid #e5e5e5;
}

/* ====== شريط التنقل السفلي للموبايل فقط (الرئيسية | التصنيفات | العروض | السلة | حسابي) ====== */
/* دعم آيفون: viewport-fit=cover في الـ meta + constant/env لـ safe area */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
  /* آيفون: منطقة آمنة للشريط السفلي (الـ Home Indicator) */
  padding-bottom: constant(safe-area-inset-bottom, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  /* تثبيت الشريط على آيفون يمنع القفز */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.mobile-bottom-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  max-width: 100%;
  min-height: 56px;
}

.mobile-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px 8px;
  color: #494949;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:focus {
  color: #050505 !important;
  text-decoration: none;
  outline: none;
}

/* الصفحة الحالية في الشريط السفلي: درج لون أغمق عن الباقي */
.mobile-bottom-nav-item-active {
  color: #050505 !important;
}

.mobile-bottom-nav-item-active .mobile-bottom-nav-icon svg path {
  stroke: currentColor !important;
}

.mobile-bottom-nav-item.a-shopping-cart {
  position: relative;
}

.mobile-bottom-nav-item-btn {
  width: 100%;
  font-family: inherit;
}

.mobile-bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.mobile-bottom-nav-icon svg {
  width: 24px;
  height: 24px;
}

.mobile-bottom-nav-label {
  line-height: 1.2;
  white-space: nowrap;
}

.mobile-bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -18px;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 10px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  background-color: #ab0000;
}

.rtl .mobile-bottom-nav-badge {
  right: auto;
  left: 50%;
  margin-right: 0;
  margin-left: -18px;
}

/* مساحة أسفل المحتوى لئلا يختفي خلف الشريط السفلي (مع دعم آيفون) */
@media (max-width: 991px) {
  .app .main.app-content {
    padding-bottom: calc(56px + constant(safe-area-inset-bottom, 0));
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
  }
}

.search-header {
  padding: 11px 0;
}

.search-header .image-logo {
  padding: 0px;
  width: auto;
  max-height: 100%;
  position: relative;
  z-index: 1;
}

.search-header-bar {
  height: 64px;
  width: 100%;
  position: relative;
  justify-content: space-between;
  gap: 54px;
}

.search-header-bar>* {
  height: 100%;
}

.search-input>div {
  width: 100%;
}

.search-input-icon {
  position: absolute;
  font-size: 20px;
  top: 10px;
  left: 12px;
}

.rtl .search-input-icon {
  left: unset;
  right: 12px;
  top: 10px;
}

.search-input-input {
  padding-right: 44px;
  font-size: 16px;
  font-weight: 400;
}
.rtl .search-input-input {
  padding-right: 44px !important;
}
.ltr .search-input-input {
  padding-right: unset !important;
  padding-left: 44px !important;
}

.lg-search-div .search-input-input {
  border-radius: 90px;
  /* راديوس كبير مثل الصورة */
  border: 1px solid #e5e5e5;
  background-color: #fff;
  font-size: 14px;
  /* حجم خط أصغر مثل التصميم */
  color: #050505;
}

.lg-search-div .search-input-input::placeholder {
  color: #b0b0b0;
  font-size: 14px;
}

/* Desktop search header layout (matches design) */
.search-header-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.search-header-search-wrap {
  flex: 1 1 auto;
  max-width: 100%;
}

.search-header-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* LTR: text | search | logo */
.search-header-text {
  order: 1;
  font-size: 14px;
  color: #050505;
}

.search-header-search-wrap {
  order: 2;
}

.search-header-logo-wrap {
  order: 3;
}

/* RTL: logo | search | text */
.rtl .search-header-logo-wrap {
  order: 1;
}

.rtl .search-header-search-wrap {
  order: 2;
}

.rtl .search-header-text {
  order: 3;
}

.icon-shopping_cart_black_36dp-1-1,
.sm-search-icon>span {
  font-size: 32px;
}

.icon-shopping_cart_black_36dp-1-1 .path1:before {
  color: unset;
}

.icon-shopping_cart_black_36dp-1-1 .path2:before {
  color: unset;
}

.icon-language_black_24dp .path1:before {
  color: unset;
}

.cart-badge {
  position: absolute;
  right: 20px;
  top: -8px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 10px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  background-color: #ab0000;
}

.rtl .cart-badge {
  right: unset;
  left: 20px;
}

/* ===== New Header Layout ===== */

.header-custom-link-area {
  flex-shrink: 0;
  white-space: nowrap;
}

.header-custom-link {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.header-custom-link {
  text-decoration: none;
  color: inherit;
  gap: 6px;
  font-size: 16px;
}

.header-custom-link:hover {
  text-decoration: none;
  opacity: 0.85;
}

.header-custom-link-text {
  white-space: nowrap;
  font-size: 16px;
  font-weight: 400;
  color: #050505;
  text-decoration: none;
}

/* Desktop Bottom Row */
.header-bottom-row-inner {
  height: 44px;
  align-items: stretch;
}

.header-mega-menu-wrap .main-nav-wrapper {
  height: 44px;
  overflow: visible;
}

/* 1. أيقونة القائمة الجانبية */
.header-slide-menu-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  color: inherit;
  font-size: 20px;
}

.header-slide-menu-btn:hover {
  opacity: 0.85;
}

.header-slide-menu-btn .icon-bars:before {
  color: inherit;
}

/* 2. دروب دون جميع الأقسام - نفس شكل الصورة: فتح بالـ hover، تصنيفات رئيسية عمودياً، فرعية عند المرور */
.header-all-cat-dropdown {
  flex-shrink: 0;
  position: relative;
}

.header-all-cat-toggle {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
}

.header-all-cat-toggle:hover {
  opacity: 0.9;
}

.header-all-cat-toggle:hover .header-all-cat-label,
.top-level-link.header-cat-item:hover {
  box-shadow: 0 2px 0 0 var(--primary-color);
}

.header-all-cat-chevron {
  margin-inline-start: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.header-all-cat-dropdown.open .header-all-cat-chevron {
  transform: rotate(180deg);
}

.header-all-cat-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: calc(100vw - 100px);
  width: 100%;
  max-width: 100vw;
  max-height: 75vh;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 600;
  margin-top: 2px;
  display: none;
  color: #333;
}

.ltr .header-all-cat-panel {
  right: auto;
  left: 0;
}

.header-all-cat-dropdown.open .header-all-cat-panel {
  display: block;
}

.header-all-cat-panel-inner {
  display: flex;
  flex-direction: row;
  min-height: 280px;
}

.rtl .header-all-cat-panel-inner {
  flex-direction: row-reverse;
}

.header-all-cat-subcols {
  flex: 1;
  min-width: 0;
  padding: 10px;
  overflow-y: auto;
  max-height: 75vh;
  scrollbar-width: none;
}

.header-all-cat-subcol {
  width: 100%;
}

.header-all-cat-subcontent {
  display: none;
}

.header-all-cat-subcontent.active {
  display: block;
}

.header-all-cat-subcontent-inner {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.ltr .header-all-cat-subcontent-inner {
  flex-direction: row-reverse;
}

/* عناصر مخصصة لكل تصنيف (من submenu.headers): صور وروابط */
.header-all-cat-custom-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.header-all-cat-custom-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.header-all-cat-custom-item:hover {
  opacity: 0.9;
}

.header-all-cat-custom-item-img {
  display: block;
  width: 130px;
  height: 130px;
  overflow: hidden;
  background: #f0f0f0;
}

.header-all-cat-custom-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-all-cat-col-header {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  margin-bottom: 8px;
}

.header-all-cat-col-header:hover {
  color: var(--primary-color);
}

.header-all-cat-col-chevron {
  font-size: 14px;
}

.rtl .header-all-cat-col-chevron {
  transform: scaleX(-1);
}

/* قائمة التصنيفات الرئيسية (يمين في RTL) - عمودياً مع أيقونة */
.header-all-cat-primary-col {
  display: flex;
  flex-direction: column;
  width: 220px;
  max-height: 75vh;
  overflow-y: auto;
  flex-shrink: 0;
  background: #f9f9f9;
  scrollbar-width: none;
  border-inline-start: 1px solid #eee;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.header-all-cat-primary-col::-webkit-scrollbar {
  display: none;
}

.rtl .header-all-cat-primary-col {
  border-inline-start: 0;
  border-inline-end: 1px solid #eee;
}

.header-all-cat-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.header-all-cat-item-link .header-all-cat-item-label {
  flex: 1;
}

.header-all-cat-item-link:hover,
.header-all-cat-item-link.hover {
  color: var(--primary-color);
}

.header-all-cat-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-all-cat-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-all-cat-item-icon img.header-all-cat-default-img,
.header-all-cat-subitem-icon img.header-all-cat-default-img {
  object-fit: contain;
  padding: 4px;
}

.header-all-cat-item-icon-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #ddd 100%);
}

.header-all-cat-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-all-cat-sublist-li {
  margin-bottom: 4px;
}

/* رابط تصنيف فرعي: صورة + نص - 14px وزن 400 opacity 0.7 مع padding وحركة عند الـ hover */
.header-all-cat-subitem-link,
.header-all-cat-subitem-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0px;
  padding-inline-start: 0px;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease;
}

.header-all-cat-subitem-link:hover,
.header-all-cat-subitem-summary:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.rtl .header-all-cat-subitem-link:hover,
.rtl .header-all-cat-subitem-summary:hover {
  transform: translateX(-4px);
}

.header-all-cat-subitem-link:hover .header-all-cat-subitem-label,
.header-all-cat-subitem-link .header-all-cat-subitem-label:hover {
  color: var(--primary-color);
}

/* أيقونة دائرية للتصنيف الفرعي */
.header-all-cat-subitem-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-all-cat-subitem-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-all-cat-subitem-icon-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8e8e8 0%, #ddd 100%);
}

.header-all-cat-subitem-label {
  flex: 1;
  color: inherit;
  text-decoration: none;
  opacity: 0.7;
}

.header-all-cat-subitem-link:hover,
.header-all-cat-subitem-summary:hover {
  color: #333;
}

/* كولابس للتصنيفات اللي جواها فرعيات */
.header-all-cat-collapse {
  margin: 0;
}

.header-all-cat-collapse summary {
  list-style: none;
}

.header-all-cat-collapse summary::-webkit-details-marker {
  display: none;
}

/* أيقونة بلص/مينص للكولابس */
.header-all-cat-collapse-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #000;
  background: #f1f1f1;
  border-radius: 33px;
}

.header-all-cat-chevron-plus {
  display: inline-flex;
}

.header-all-cat-chevron-minus {
  display: none;
}

.header-all-cat-collapse[open] .header-all-cat-chevron-plus {
  display: none;
}

.header-all-cat-collapse[open] .header-all-cat-chevron-minus {
  display: inline-flex;
}

.header-all-cat-collapse-body {
  padding-inline-start: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
  max-height: 140px;
  overflow-y: auto;
  overflow-x: hidden;
  border-bottom: 1px solid #dddddd6e;
  border-top: 1px solid #dddddd6e;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.header-all-cat-collapse-body:active,
.header-all-cat-collapse-body.header-all-cat-collapse-body--active {
  cursor: grabbing;
}

.header-all-cat-collapse-body .header-all-cat-subitem-link .header-all-cat-subitem-label {
  font-size: 13px;
  font-weight: 400;
  color: #000;
  opacity: 0.6;
}

.header-all-cat-collapse-body::-webkit-scrollbar {
  display: none;
}

/* تصنيفات فرعية داخل فرعية - مسافة بادئة */
.header-all-cat-sublist .header-all-cat-sublist {
  padding-inline-start: 0;
  margin-top: 4px;
}

/* فواصل عمودية بين الأقسام */
.header-sep-v {
  width: 1px;
  height: 20px;
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  margin: 0 4px;
}

.header-bottom-row-inner .header-sep-v {
  align-self: center;
}

/* 3. التصنيفات الرئيسية - نفس الشكل، فونت واحد، حجم واحد، مسافات واحدة، overflow-x: auto */
.header-categories-nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 44px;
}

.header-categories-list {
  display: flex !important;
  justify-content: unset !important;
  align-items: stretch;
  flex-wrap: nowrap;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  list-style: none;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.header-all-cat-subcols::-webkit-scrollbar {
  display: none;
}

.header-categories-list::-webkit-scrollbar {
  display: none;
}

.header-cat-item {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.header-cat-item>a {
  padding: 0 4px;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  height: auto;
}

.header-cat-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-cat-item .header-sep-v {
  margin: 0 2px;
  flex-shrink: 0;
}

.header-cat-item:last-child .header-sep-v {
  display: none;
}

.header-bottom-right {
  gap: 0;
  height: 100%;
  align-items: center;
  padding-inline-start: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-bottom-right .header-sep-v {
  margin: 0 4px;
}

.header-delivery-area {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  gap: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
}

.header-delivery-area .header-cat-arrow {
  font-size: 12px;
  margin-inline-start: 2px;
}

.header-bottom-icon {
  font-size: 16px;
}

.header-language-area {
  font-size: 16px;
  white-space: nowrap;
  gap: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
}

.header-language-area .header-cat-arrow {
  font-size: 12px;
  margin-inline-start: 2px;
}

.header-lang-globe {
  font-size: 18px;
}

.header-lang-globe:before {
  color: inherit !important;
}

.header-lang-text {
  font-size: 14px;
  font-weight: 500;
}

.header-action-icons {
  gap: 8px;
  flex-direction: row-reverse !important;
  align-items: center;
}

.header-icon-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  color: inherit;
}

.header-icon-btn:hover {
  opacity: 0.8;
}

.header-icon-btn .cart-badge {
  position: absolute;
  right: -4px;
  top: -8px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 10px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  background-color: #ab0000;
}

.rtl .header-icon-btn .cart-badge {
  right: unset;
  left: -4px;
}

.header-bottom-right .icon-language_white:before {
  color: inherit !important;
}

.header-mobile-top-inner {
  padding: 6px 0;
}

.header-delivery-mobile {
  font-size: 16px;
  gap: 4px;
}

.header-mobile-bottom-inner {
  height: 56px;
}

.header-mobile-end-icons {
  gap: 16px;
  flex-shrink: 0;
}

.header-mobile-logo {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-mobile-logo .image-logo {
  max-height: 40px;
  width: auto;
}

.header-mobile-start-icons {
  gap: 16px;
  flex-shrink: 0;
  flex-direction: row-reverse;
}

.header-mobile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  font-size: 24px;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.header-mobile-icon:hover {
  text-decoration: none;
  color: inherit;
}

.header-mobile-icon .cart-badge {
  position: absolute;
  right: -6px;
  top: -6px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 10px;
  color: #fff;
  text-align: center;
  border-radius: 50%;
  background-color: #ab0000;
}

.rtl .header-mobile-icon .cart-badge {
  right: unset;
  left: -6px;
}

.header-mobile-start-icons .icon-menu_open_black_24dp-1:before {
  color: inherit !important;
}

.ic.menu {
  text-align: left;
  position: relative;
  right: 4px;
}

.rtl .ic.menu {
  text-align: right;
  right: unset;
  left: 4px;
}

.rtl .icon-menu-top {
  margin-right: unset !important;
  margin-left: 10px !important;
}

.icon-menu-top>span {
  font-size: 32px;
}

.icon-menu_open_black_24dp-1:before {
  color: unset;
}

.sm-search-div {
  display: none;
  visibility: hidden;
  position: absolute;
  left: 0;
  padding: 0px 15px 20px 15px;
  width: 100%;
  background-color: var(--header-primary-color, var(--primary-color));
  transform: translateY(-100%);
  transition: all 0.3s ease;
  z-index: 1;
}

.sm-search-div.show {
  visibility: visible;
  transform: translateY(0%);
  -webkit-transform: translate3d(0, 0, 0);
}

.footer .apps-social-icons:nth-child(2) {
  padding-left: 0px;
}

.rtl .footer .apps-social-icons:nth-child(2) {
  padding-right: 0px;
  padding-left: 15px;
}

.footer .icons-wrapper {
  padding: 0px;
}

/* Footer layout: 5 columns web, stacked mobile (RTL) */
.footer-main-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.footer-main-row .footer-footer-col {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 10px;
}

@media (min-width: 992px) {
  .footer-main-row .footer-footer-col {
    flex: 0 0 18%;
    max-width: 18%;
    margin-bottom: 0;

    &.footer-col-about {
      flex: 0 0 30%;
      max-width: 30%;
      padding-inline-end: 2rem;

      @media screen and (max-width: 992px) {
        padding-inline-end: 0;
      }
    }

    &.footer-col-app {
      flex: 0 0 34%;
      max-width: 34%;
    }
  }
}

/* بطاقة مركز المساعدة + شريط الحقوق */
.footer-help-center-slot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-help-center-card {
  background: var(--fhc-card-bg, #fff);
  border-radius: 16px;
  padding: 1.25rem 1.75rem 1.35rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 80%;
  width: 100%;
  transform: translateY(-50px);
}

.footer-help-center-title {
  color: var(--fhc-title, #3d2918);
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.footer-help-center-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.footer-help-center-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--fhc-btn-bg, #fef8e8) !important;
  color: var(--fhc-btn-icon, #4a3428) !important;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.footer-help-center-btn:hover {
  opacity: 0.95;
  color: var(--fhc-btn-icon, #2a1d15);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.footer-help-center-btn:has(img) {
  border-radius: 0;
  background: transparent !important;
}

.footer-help-center-btn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.footer-help-center-btn-svg {
  width: 32px;
  height: 32px;
  display: block;
}

.footer-help-center-btn-svg {
  flex-shrink: 0;
}


@media (max-width: 768px) {
  .footer-help-center-btn {
    width: 40px;
    height: 40px;
  }

  .footer-help-center-btn-svg {
    width: 28px;
    height: 28px;
  }
}

.footer-store-section .footer-social-under-brand a {
  color: inherit;
}

.footer-store-section .footer-social-under-brand svg {
  stroke: currentColor;
}

.footer-bottom-copyright {
  text-align: center;
  padding: 1.25rem 0.5rem 1.5rem;
  margin-top: 0.5rem;
  border-top: 0px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  opacity: 1;
}

/* WCAG AA: deepen green footer backgrounds for readable white text */
.footer-store-section.footer-accessible-contrast.footer-theme-bg-primary {
  background-color: #1e7e34;
}

@supports (background: color-mix(in srgb, white, black)) {
  .footer-store-section.footer-accessible-contrast.footer-theme-bg-primary {
    background-color: color-mix(in srgb,
        var(--footer-primary-color, var(--primary-color, #28994a)) 70%,
        #000000);
  }
}

.footer-store-section.footer-accessible-contrast.footer-theme-text-for-primary-bg,
.footer-store-section.footer-accessible-contrast.footer-theme-text-for-primary-bg a,
.footer-store-section.footer-accessible-contrast .footer-links-collapse-title,
.footer-store-section.footer-accessible-contrast .footer-legal-badge,
.footer-store-section.footer-accessible-contrast .footer-legal-badge__number,
.footer-store-section.footer-accessible-contrast .footer-bottom-copyright,
.footer-store-section.footer-accessible-contrast .footer-about-text {
  color: var(--footer-text-color-primary-bg, #ffffff);
}

@media (min-width: 992px) {
  .footer-store-section[dir="rtl"] .footer-social-under-brand {
    justify-content: center;
  }

  .footer-store-section[dir="rtl"] .footer-col-app .logistics-pay-icons,
  .footer-store-section[dir="rtl"] .footer-col-app .google-app-stores,
  .footer-store-section[dir="rtl"] .footer-col-app .vat-crn-sections,
  .footer-store-section[dir="rtl"] .footer-col-app .footer-badges-row {
    justify-content: center !important;
  }

  /* ترتيب ومحاذاة أعمدة الفوتر على الديسكتوب مثل التصميم */
  .footer-store-section[dir="rtl"] .footer-main-row .footer-footer-col {
    text-align: center;
  }

  .footer-store-section[dir="rtl"] .footer-col-about .footer-logo-wrap {
    justify-content: center;
  }

  .footer-store-section[dir="rtl"] .footer-col-categories .footer-links-collapse-toggle,
  .footer-store-section[dir="rtl"] .footer-col-links .footer-links-collapse-toggle {
    justify-content: center;
    text-align: center;
  }

  .footer-store-section[dir="rtl"] .footer-col-categories .footer-links-collapse-body p,
  .footer-store-section[dir="rtl"] .footer-col-links .footer-links-collapse-body p {
    text-align: center;
  }

  .footer-store-section[dir="rtl"] .footer-col-app .footer-col-app-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-store-section[dir="rtl"] .footer-badges-row {
    flex-wrap: nowrap;
    gap: 10px;
    max-width: 100%;
  }

  .footer-store-section[dir="rtl"] .footer-legal-badge {
    min-width: 0;
    max-width: calc(100% - 5px);
  }

  .footer-store-section[dir="rtl"] .footer-payment-logos .logistics-pay-icons {
    justify-content: center;
    max-width: 260px;
    margin-inline: auto;
  }
}

.footer-col-app-inner .footer-app-download h2 {
  display: none;
}

.footer-col-app .google-app-stores {
  flex-direction: row;
}

.footer-store-section[dir="rtl"] .footer-main-row {
  direction: rtl;
}

@media (max-width: 991px) {
  .footer-store-section[dir="rtl"] .footer-main-row .footer-footer-col {
    text-align: right;
  }
}

/* ===== Footer mobile collapsible links (التصنيفات / روابط مهمة) ===== */
.footer-links-collapse {
  position: relative;
}

.footer-links-collapse-toggle {
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: inherit;
  text-align: right;
}

.footer-links-collapse-title,
.footer-contact-social h2,
.footer-app-download h2 {
  font-size: 16px;
  font-weight: 500;
}

.footer-companies-content {
  display: grid;
  grid-template-columns: 1fr 1fr !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-links-collapse-chevron {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.footer-links-icon-plus {
  display: inline-block;
}

.footer-links-icon-minus {
  display: none;
}

.footer-links-collapse.is-open .footer-links-icon-plus {
  display: none;
}

.footer-links-collapse.is-open .footer-links-icon-minus {
  display: inline-block;
}

.footer-links-collapse-body {
  margin-top: 0.5rem;
}

@media (max-width: 991px) {
  .footer-links-collapse-body {
    display: none;
  }

  .footer-links-collapse.is-open .footer-links-collapse-body {
    display: block;
  }
}

@media (min-width: 992px) {

  /* Desktop: always open, no collapse behavior */
  .footer-links-collapse-toggle {
    cursor: default;
  }

  .footer-links-collapse-chevron {
    display: none;
  }

  .footer-links-collapse-body {
    display: block !important;
  }
}

.footer-logo-wrap {
  margin-bottom: 1rem;
}

.footer-logo {
  display: block;
  height: 60px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-store-section[dir="rtl"] .footer-col-about .footer-logo-wrap {
  text-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

@media (max-width: 991px) {
  .footer-col-about .footer-logo-wrap {
    text-align: center;
  }

  .footer-col-about .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-contact-details p {
  margin-bottom: 0.5rem;
}

.footer-follow-title {
  font-size: 16px;
  font-weight: 500;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-contact-email .icon-envelope-secondary {
  margin-left: 4px;
}

.footer-store-section[dir="rtl"] .footer-contact-email .icon-envelope-secondary {
  margin-left: 0;
  margin-right: 4px;
}

.footer-col-app .footer-app-download .google-app-stores a {
  display: block;
}

.footer-col-app .footer-app-download .apps-social-icons {
  gap: 0.5rem;
}

/* شارات الرقم الضريبي ومنصة الأعمال */
.footer-badges-row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.footer-legal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--footer-text-color-primary-bg, rgba(255, 255, 255, 0.9));
  border-radius: 8px;
  background: transparent;
  color: var(--footer-text-color-primary-bg, #fff);
  text-decoration: none;
  direction: ltr;
  flex: 1 1 140px;
  max-width: 100%;
  transition: opacity 0.2s ease;
}

.footer-legal-badge:hover {
  opacity: 0.92;
  color: #fff;
  text-decoration: none;
}

.footer-legal-badge__number {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.footer-legal-badge__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-legal-badge__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-legal-badge--business .footer-legal-badge__icon img {
  border-radius: 50%;
}

.footer-legal-badge--vat .footer-legal-badge__icon img {
  border-radius: 4px;
}

.footer-payment-logos .logistics-pay-icons {
  justify-content: flex-end;
}

.footer-store-section[dir="rtl"] .footer-payment-logos .logistics-pay-icons {
  justify-content: flex-start;
}

.footer-legal-row.flex-lg-row {
  align-items: center;
}

.footer-legal-text {
  text-align: right;
}

.footer-store-section[dir="rtl"] .footer-legal-text {
  text-align: left;
}

@media (max-width: 991px) {
  .footer-main-row .footer-footer-col {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .footer-main-row .footer-footer-col:not(:first-child) {
    border-top: 0px;
    padding-top: 0;
  }

  .footer-store-section .footer-about-us-div {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .footer-store-section[dir="rtl"] .footer-about-us-div {
    text-align: center;
  }

  .footer-store-section:not(.footer-links-flat-mobile) .footer-col-categories .footer-about-us-links-div,
  .footer-store-section:not(.footer-links-flat-mobile) .footer-col-links .footer-about-us-links-div {
    text-align: right;
  }

  .footer-store-section[dir="rtl"]:not(.footer-links-flat-mobile) .footer-col-categories .footer-about-us-links-div,
  .footer-store-section[dir="rtl"]:not(.footer-links-flat-mobile) .footer-col-links .footer-about-us-links-div {
    text-align: right;
  }

  .footer-links-flat-mobile .footer-links-collapse-body {
    display: block !important;
  }

  .footer-links-flat-mobile .footer-links-collapse-chevron {
    display: none !important;
  }

  .footer-links-flat-mobile .footer-links-collapse-toggle {
    justify-content: center;
    cursor: default;
    pointer-events: none;
  }

  .footer-links-flat-mobile .footer-col-categories .footer-about-us-links-div,
  .footer-links-flat-mobile .footer-col-links .footer-about-us-links-div {
    text-align: center !important;
  }

  .footer-links-flat-mobile .footer-links-collapse-body p {
    text-align: center;
  }

  .footer-social-block.footer-social-under-brand {
    justify-content: center;
    display: flex !important;
  }

  .footer-store-section[dir="rtl"] .footer-social-block.footer-social-under-brand {
    justify-content: center;
  }

  .footer-col-app {
    text-align: center;
  }

  .footer-store-section[dir="rtl"] .footer-col-app {
    text-align: center;
  }

  .footer-companies .footer-payment-logos .logistics-pay-icons,
  .footer-store-section .footer-payment-logos .logistics-pay-icons {
    justify-content: center;
  }

  .footer-legal-text {
    text-align: right;
  }

  .footer-store-section[dir="rtl"] .footer-legal-text {
    text-align: right;
  }

  .footer-copyrights-vat-certificate .vat-crn-sections {
    justify-content: center;
  }
}

.slick-dotted.slick-slider {
  margin-bottom: 0px;
}

.main-slider .slick-dots {
  bottom: 12px;
}

.main-slider .slick-dots li button:before {
  font-size: 14px;
}

.features-section-img {
  max-height: 90px;
  max-width: 90px;
}

.slick-next.slick-arrow>span,
.slick-prev.slick-arrow>span {
  color: var(--primary-color);
  font-size: 3.3rem;
}

.category-item a,
.category-item img,
.card-item a,
.card-item img {
  display: block;
  text-align: center;
  width: 100%;
}

.category-item img,
.card-item img {
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.category-item h3,
.card-item h3 {
  margin-top: 15px;
  font-size: 1.6rem;
  font-weight: 400;
  text-align: center;
  color: var(--primary-color);
  white-space: break-spaces;
}

.category-page-slider .category-item h3 {
  font-size: 1.2rem;
}

.categories-slider .category-item,
.cards-slider .card-item {
  width: 100%;
  max-width: 200px;
}

.slider-container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.container-fluid {
  max-width: 1900px;

  padding-right: 50px;
  padding-left: 50px;
}

.products-slider .prod-col,
.categories-slider .cat-col,
.cards-slider .card-col {
  display: block;
  width: auto;
}

.row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.products-filter .filter-buttons-container-fluid {
  align-items: start;
  gap: 10px;
}

.breadcrumb {
  background-color: transparent !important;
  padding: 0 !important;
}

.products-filter .btn-filter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 150px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #000 !important;
}

.products-filter {
  column-gap: 16px;
  padding: 4px 0 10px;
}

.products-filter .filter-result,
.products-filter .filter-order {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #777777;
  margin-bottom: 4px;
}

.products-filter #products-list-sort span {
  font-size: 14px;
}

.products-filter .text-line-height {
  font-size: 14px;
}

.select-dropdown .dropdown-item {
  padding-bottom: 7.5px;
  padding-top: 7.5px;
  font-size: 14px;
  color: #000;
}

.icon-swap_vert:before,
.icon-filter-secondary:before {
  color: #000;
}

.select-dropdown.dropdown-menu {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 8px 0;
  margin-top: 4px;
  width: 100%;
}

@media (max-width: 575.98px) {
  .products-filter {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .products-filter .filter-block-width,
  .products-filter .sort-block-width {
    width: 100%;
  }

  .products-filter .btn-filter {
    width: 100%;
  }

  .select-dropdown.dropdown-menu {
    width: 100%;
    min-width: 0;
    left: 0 !important;
    right: 0 !important;
  }
}

#products-list-filter-form-close {
  width: 44px;
  height: 44px;
  position: absolute;
  right: 0;
  top: 0;
}

.rtl #products-list-filter-form-close {
  right: unset;
  left: 0;
}

.products-pagination {
  margin-bottom: 24px;
  padding: 0 15px;
}

.products-pagination ul {
  padding: 0px;
}

.products-pagination .page-link {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.products-pagination .page-link.active {
  color: #ffffff;
  background-color: var(--primary-color);
}

.rtl .products-pagination .page-item:first-child .page-link {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.rtl .products-pagination .page-item:last-child .page-link {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

.products-container-fluid .products-list {
  margin-bottom: 24px;
}

/* ===== Products grid layout (products & category pages) ===== */
.products-list.products-list--grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-left: 0;
  margin-right: 0;
  gap: 10px;
}

.mrg {
  margin: 30px auto;
}

.products-list.products-list--grid .prod-col {
  width: 100%;
  padding: 0;
}

/* From screen < 1400px: 5 products per row */
@media (max-width: 1399.98px) {
  .products-list.products-list--grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0 !important;
  }
}

/* From screen < 992px: 4 products per row */
@media (max-width: 991.98px) {
  .products-list.products-list--grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* From screen < 768px: 3 products per row */
@media (max-width: 767.98px) {
  .products-list.products-list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* From screen < 576px (down to ~320px): 2 products per row */
@media (max-width: 575.98px) {
  .products-list.products-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Hide numbered pagination UI only on infinite-scroll wrappers */
.products-pagination-wrapper--infinite .products-pagination {
  display: none;
}

.cart-header-total {
  margin-right: 10px;
  font-size: 1.6rem;
  color: var(--header-text-color-primary-bg, var(--text-color-primary-bg));
}

.rtl .cart-header-total {
  margin-right: unset;
  margin-left: 10px;
}

.box-1-1 {
  position: relative;
  width: 100%;
}

.box-1-1:before {
  content: "";
  display: block;
  padding-top: 100%;
  /* initial ratio of 1:1*/
}

.box-1-1 .content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Other ratios - just apply the desired class to the "box" element */
.box-1-1.ratio2_1:before {
  padding-top: 50%;
}

.box-1-1.ratio1_2:before {
  padding-top: 200%;
}

.box-1-1.ratio4_3:before {
  padding-top: 75%;
}

.box-1-1.ratio16_9:before {
  padding-top: 56.25%;
}

.box-1-1.ratio21_9:before {
  padding-top: 42.85%;
}

.product-item-out-of-stock {
  filter: grayscale(1);
}

.sm-search-div .autocomplete-items,
.lg-search-div .autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container-fluid:*/
  top: 100%;
  left: 0;
  right: 0;
}

.sm-search-div .autocomplete-items div,
.lg-search-div .autocomplete-items div {
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.sm-search-div .autocomplete-items div:hover,
.lg-search-div .autocomplete-items div:hover {
  background-color: #e9e9e9;
}

.sm-search-div .autocomplete-items div a,
.lg-search-div .autocomplete-items div a {
  padding: 10px;
  cursor: pointer;
  color: inherit;
  display: block;
}

.product-crd-spec {
  min-height: 81px;
}

.gallery-section+.gallery-section {
  padding-top: 0px;
}

.ic-menu-back {
  font-size: 22px;
  margin-right: 16px;
  font-weight: bold;
}

.rtl .ic-menu-back {
  margin-right: unset;
  margin-left: 16px;
}

.btn {
  color: #000;
}

@media (max-width: 768px) {
  .outlit-product-card__quantity-wrap .outlit-product-card__qty-num {
    min-width: 24px !important;
    font-weight: 500 !important;
  }

  .products-filter .btn-filter {
    min-width: 140px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 12px !important;
  }

  .search-header {
    padding: 0px;
  }

  .search-header .image-logo {
    padding: 10px 0px;
    width: auto;
    max-height: 100%;
    position: relative;
    z-index: 1;
  }

  .footer .apps-social-icons:nth-child(2) {
    padding-left: 15px;
  }

  .rtl .footer .apps-social-icons:nth-child(2) {
    padding-right: 15px;
    padding-left: 15px;
  }

  .footer .icons-wrapper {
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .footer-about-us-div {
    padding-right: 0;
  }

  .category-page-slider .categories-slider {
    height: 225px;
  }

  .categories-slider .category-item,
  .cards-slider .card-item {
    width: 190px;
  }

  .category-page-slider .categories-slider .category-item {
    width: 165px;
  }

  .category-page-slider .products-slider .prod-col,
  .categories-slider .cat-col,
  .cards-slider .card-col {
    padding-left: 5px;
    padding-right: 5px;
  }

  .products-slider .prod-col,
  .categories-slider .cat-col,
  .cards-slider .card-col,
  .testimonials-slider .testimonials-customer-card,
  .partners-slider .partners-item {
    display: inline-block;
    vertical-align: top;
  }

  .partners-slider .partners-item {
    vertical-align: middle;
  }

  .categories-slider,
  .products-slider,
  .cards-slider,
  .testimonials-slider,
  .partners-slider {
    overflow-y: hidden;
    overflow-x: scroll;
    white-space: nowrap;
  }

  .product-crd-spec small {
    white-space: break-spaces;
  }

  .testimonials-slider::-webkit-scrollbar {
    width: 0 !important;
  }

  .categories-slider-wrapper,
  .products-slider-wrapper,
  .cards-slider-wrapper,
  .testimonials-slider-wrapper,
  .partners-slider-wrapper {
    overflow-x: hidden;
    margin-right: 0px;
    margin-left: 0px;
  }

  .slider-container-fluid {
    padding-left: 0px;
    padding-right: 0px;
  }

  .main-slider,
  .main-slider .slider-item {}

  .main-slider .slick-dots li button:before {
    font-size: 10px;
  }

  .main-slider .slick-dots {
    bottom: 4px;
  }

  .products-list .prod-col,
  .bundle-offer-products .prod-col {
    margin: 0 auto;
    width: auto;
  }

  .product-item {
    width: 135px;
  }

  .products-list .prod-col .product-item {
    width: 100%;
  }

  .sm-search-div {
    display: block;
  }

  .icon-shopping_cart_black_36dp-1-1,
  .sm-search-icon>span {
    font-size: 28px;
  }

  .icon-menu-top {
    width: 32px;
  }
}

.btn:focus,
.btn:active,
.page-link:focus,
.page-link:active {
  outline: none !important;
  box-shadow: none !important;
}

.gift-popover-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  width: 115px;
  height: 140px;
  max-width: 100%;
}

.popover {
  top: 40px;
}

.popover .arrow {
  top: -0.5rem;
  left: 5px;
}

.popover .arrow::before {
  top: 0;
  border-width: 0 0.5rem 0.5rem;
  border-bottom-color: #fff;
}

.popover .arrow ::after {
  top: 1px;
  border-width: 0 0.5rem 0.5rem;
  border-bottom-color: #fff;
}

.add-to-wishlist {
  position: absolute;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  width: 40px;
  height: 35px;
  cursor: pointer;
  border-radius: 5px;
  background-color: white;
}

.rtl .add-to-wishlist {
  right: unset;
  left: 0;
}

.icon-heart-mask {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 0;
  padding: 0;
  background-image: var(--heart-outlined-icon);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

.icon-heart-mask.filled {
  background-image: var(--heart-filled-icon);
  background-color: transparent;
}

/* Ensure modals and backdrop appear above header/footer */
.modal {
  z-index: 9999999999;
}

.modal-backdrop {
  z-index: 1050;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

/* ========== Search Modal – Offcanvas from top ========== */
body.search-modal-open {
  overflow: hidden;
}

.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  background: transparent;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    visibility 0.25s ease,
    opacity 0.25s ease;
}

.search-modal-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.search-modal-overlay.is-open .search-modal-backdrop {
  opacity: 1;
}

.search-modal-box {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 100%;
  max-height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  padding: 16px 20px 24px;
  z-index: 99;
  background: #fff;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -100%);
  transition: transform 0.3s ease;
}

.search-modal-overlay.is-open .search-modal-box {
  transform: translate(-50%, 0);
}

.search-modal-close {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  color: #333;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.search-modal-close:hover {
  background: #e0e0e0;
  color: #000;
}

.ltr .search-modal-close {
  left: auto;
  right: 16px;
}

.search-modal-logo {
  text-align: center;
  margin-bottom: 20px;
}

.search-modal-logo img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.search-modal-input-wrap {
  position: relative;
  margin-bottom: 24px;
}

.search-modal-icon-search {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 14px;
  color: #8e8e93;
  pointer-events: none;
}

.rtl .search-modal-icon-search {
  right: 14px;
  left: auto;
}

.search-modal-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 44px 12px 16px;
  font-size: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 50px;
  background: #fff;
  color: #050505;
}

.rtl .search-modal-input {
  padding: 12px 44px 12px 16px;
}

.search-modal-input::placeholder {
  color: #b0b0b0;
}

/* Placeholder: "ابحث عن" ثابت + سلايدر التصنيفات من تحت لفوق — النقر يفعّل حقل البحث */
.search-modal-placeholder-wrap {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 12px 44px 12px 16px;
  color: #b0b0b0;
  font-size: 16px;
  transition: opacity 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.rtl .search-modal-placeholder-wrap {
  padding: 12px 16px 12px 44px;
}

.search-modal-placeholder-wrap.search-modal-placeholder-hidden {
  opacity: 0;
  visibility: hidden !important;
  pointer-events: none;
}

.search-modal-placeholder-inner {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 1.2em;
  gap: 0.15em;
  padding-right: 30px;
}

.search-modal-placeholder-prefix {
  flex-shrink: 0;
}

.search-modal-placeholder-cat-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 1.5em;
  overflow: hidden;
}

/* حركة متزامنة: نفس المدة ونفس الـ easing لمنع الوميض */
.search-modal-placeholder-cat-wrap .search-modal-placeholder-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transition:
    transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.search-modal-placeholder-cat-wrap .search-modal-placeholder-next {
  transform: translateY(100%);
  opacity: 0;
}

.search-modal-placeholder-wrap.search-modal-placeholder-sliding .search-modal-placeholder-cat-wrap .search-modal-placeholder-current.search-modal-placeholder-exit {
  transform: translateY(-100%);
  opacity: 0;
}

.search-modal-placeholder-wrap.search-modal-placeholder-sliding .search-modal-placeholder-cat-wrap .search-modal-placeholder-next.search-modal-placeholder-enter {
  transform: translateY(0);
  opacity: 1;
}

/* عند إعادة التعيين: إلغاء الانتقال لحظة واحدة لمنع وميض أو انزلاق خاطئ */
.search-modal-placeholder-wrap.search-modal-placeholder-reset .search-modal-placeholder-cat-wrap .search-modal-placeholder-text {
  transition: none;
}

.search-modal-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
  display: none;
}

.search-modal-autocomplete:not(:empty),
.search-modal-autocomplete.has-results {
  display: block;
}

.search-modal-autocomplete div {
  border-bottom: 1px solid #eee;
  background: #fff;
}

.search-modal-autocomplete div:last-child {
  border-bottom: none;
}

.search-modal-autocomplete div:hover,
.search-modal-autocomplete div a:hover {
  background: #f0f0f0;
}

.search-modal-autocomplete div a {
  display: block;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
}

/* عمليات البحث الرائجة (Trending searches) */
.search-modal-trending {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}

.search-modal-trending.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.search-modal-trending-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 8px 0;
  color: #666;
}

.rtl .search-modal-trending-title {
  text-align: start;
}

.search-modal-suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-modal-suggestion-item {
  margin: 0;
  padding: 0;
}

.search-modal-suggestion-item--empty {
  color: #888;
  font-size: 14px;
}

.search-modal-suggestion-link {
  display: inline-flex;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition:
    background 0.2s,
    color 0.2s;
}

.search-modal-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-modal-section-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #050505;
}

.rtl .search-modal-section-title {
  text-align: right;
}

.search-modal-popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.search-modal-popular-item {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 8px;
  transition: background 0.2s;
}

.search-modal-popular-item:hover {
  background: #e5e5e5;
  color: #000;
}

/* التصنيفات الأكثر بحثاً – سلايدر */
.search-modal-categories-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.search-modal-categories-slider::-webkit-scrollbar {
  display: none;
}

.search-modal-category-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  min-width: 80px;
  max-width: 100px;
}

.search-modal-category-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-modal-category-label {
  font-size: 12px;
  text-align: center;
  line-height: 1.3;
}

/* العلامات التجارية – شبكة */
.search-modal-brands-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
}

.search-modal-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  min-height: 56px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.search-header-search-wrap .icon-search:before {
  display: none !important;
}

.search-modal-brand-item img {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(0);
}

.loop-banner-slider-btn-icon {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== ألوان القائمة الجانبية من layout (menu_text_color / menu_background_color) ===== */
.slide-menu-theme-menu-colors.slide-menu--drawer {
  background: var(--menu-header-primary-color, #f0f0f0) !important;
  color: var(--menu-header-text-color-primary-bg, #333);
}

.slide-menu-theme-menu-colors .slide-menu-drawer-header,
.slide-menu-theme-menu-colors .slide-menu-drawer-search {
  background: var(--menu-header-primary-color, #f0f0f0);
  border-color: rgba(0, 0, 0, 0.06);
}

.slide-menu-theme-menu-colors .slide-menu-drawer-icon,
.slide-menu-theme-menu-colors .slide-menu-drawer-close {
  color: var(--menu-header-text-color-primary-bg, #333);
}

.slide-menu-theme-text,
.slide-menu-theme-text a {
  color: var(--menu-header-text-color-primary-bg, #333);
}

.slide-menu-theme-menu-colors .slide-menu-drawer-ul ul {
  background: var(--menu-header-primary-color, #f0f0f0);
}

.slide-menu-theme-menu-colors .slide-menu--drawer .slide-menu-arrow {
  color: var(--menu-header-text-color-primary-bg, #484848);
}

.section-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 5px;
  margin-top: 0;
  padding-left: 0;
  padding-right: 0;
  color: #000;
}

.products-section-header {
  margin-bottom: 12px;
}

.footer {
  padding-top: 30px;
  overflow: visible;

  @media (max-width: 768px) {
    padding-bottom: 56px;
  }
}

.attribute-group {
  background-color: #fff !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  margin-bottom: 15px !important;
  overflow: hidden !important;
}

.products-filters-container .attribute-price-body .form-group::before {
  display: none !important;
}

.attribute-footer .highlight-button.btn.btn-sm {
  padding: 8px !important;
  font-size: 14px;
  line-height: normal;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: #fff !important;
  background: var(--primary-color, #000000);
  width: 100% !important;
}

.products-list.products-list--with-filters {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.search-filter-wrapper {
  display: none !important;
}

/* Filters search (global + per attribute) */
.products-filters-container .search-filter-wrapper,
.products-filters-container .attribute-search-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 12px;
  padding: 8px;
  border: 1px solid #bfbfbf;
  /* قريب من اللون في الصورة */
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
}

.products-filters-container .search-filter-icon,
.products-filters-container .attribute-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  color: #9ca3af;
  background: #f9fafb;
  flex: 0 0 auto;
}

.products-filters-container .search-filter-input,
.products-filters-container .attribute-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  color: inherit;
  padding: 4px 0 4px 4px;
  min-height: 26px;
}

.products-filters-container .search-filter-input::placeholder,
.products-filters-container .attribute-search-input::placeholder {
  color: #9ca3af;
}

/* Keep wrappers aligned in RTL/LTR */
html[dir="rtl"] .products-filters-container .search-filter-wrapper,
html[dir="rtl"] .products-filters-container .attribute-search-wrapper {
  direction: rtl;
}

.products-filters-container .search-filter-wrapper:focus-within,
.products-filters-container .attribute-search-wrapper:focus-within {
  border-color: #a855f7;
  /* لون بنفسجي قريب من عنوان "فرز حسب" */
  box-shadow: 0 0 0 1px #a855f7;
}

/* Make sure injected inputs don't break spacing inside groups */
.products-filters-container .attribute-group .attribute-search-wrapper {
  max-width: 190px;
  margin: 10px auto;
}

.products-filters-container .attribute-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.products-filters-container .attribute-arrow svg {
  display: none !important;
}

.products-filters-container .attribute-arrow::before {
  content: "";
  display: block;
  width: 14px;
  height: 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 8px;
  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%228%22%20viewBox%3D%220%200%2014%208%22%20fill%3D%22none%22%20xmlns%3D%22http://www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0.75%206.74995C0.75%206.74995%205.16893%200.750013%206.75005%200.75C8.33116%200.749986%2012.75%206.75%2012.75%206.75%22%20stroke%3D%22%23050505%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22/%3E%3C/svg%3E");
}

.attribute-header {
  margin-bottom: 0px !important;
  text-align: start;
  background: #fff !important;
  padding: 10px !important;
  border: 0 !important;
}

.products-filters-container {
  font-size: 14px;
  font-weight: 500;
}

.filter-count {
  display: none;
}

/* Price attribute styling (slider + pills) */
.products-filters-container .attribute-price-body .attribute-price-slider {
  margin: 12px 4px 10px;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
}

.products-filters-container .attribute-price-body .ui-slider-range {
  background: var(--primary-color, #000000);
}

.products-filters-container .attribute-price-body .ui-slider-handle {
  width: 16px;
  height: 16px;
  top: -6px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.products-filters-container .attribute-price-body .form-row {
  margin-top: 12px;
}

.products-filters-container .attribute-price-body .form-group {
  position: relative;
}

.products-filters-container .attribute-price-body input[type="number"] {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(229, 231, 235, 0.6);
}

.products-filters-container .attribute-price-body input[type="number"]::placeholder {
  color: #9ca3af;
}

/* Hide default number arrows (webkit) */
.products-filters-container .attribute-price-body input[type="number"]::-webkit-outer-spin-button,
.products-filters-container .attribute-price-body input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.products-filters-container .attribute-price-body input[type="number"] {
  -moz-appearance: textfield;
}

/* Currency icon inside price pills (approximate to design) */
.products-filters-container .attribute-price-body .form-group::before {
  content: "﷼";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #9ca3af;
}

html[dir="rtl"] .products-filters-container .attribute-price-body .form-group::before {
  right: 18px;
}

html[dir="ltr"] .products-filters-container .attribute-price-body .form-group::before {
  left: 18px;
}

.products-filters-container {
  font-size: 14px !important;
  font-weight: 500 !important;
}

.attribute {
  background-color: transparent !important;
}

.attribute-body {
  background: #fff !important;
}

.filter-content {
  background: #fff !important;
  margin-bottom: 5px !important;
}

.filtration-header {
  padding: 10px !important;
  border-radius: 10px !important;
  background: #fff !important;
  margin-bottom: 10px !important;
}

.filtration-header .d-none {
  display: block !important;
  color: rgba(78, 51, 135, 1) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.swiper-pagination-bullet-active {
  border-radius: 0 !important;
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
  position: relative;
  width: 24px !important;
  height: 24px !important;
  min-width: 24px;
  min-height: 24px;
  margin: 0 4px !important;
  border-radius: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet::before,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 0;
  transition: all 0.3s ease;
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet-active::before,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet-active::before {
  width: 20px;
  background: var(--primary-color, #000);
}

.products-slider {
  height: 100% !important;
}

@media (max-width: 1600px) {
  .products-list.products-list--with-filters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1400px) {
  .products-list.products-list.products-list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px !important;
  }
}

@media (max-width: 1200px) {
  .outlit-product-card__quantity-wrap {
    gap: 4px !important;
  }

  .header-bottom-row-inner {
    gap: 10px;
  }

  .products-list.products-list.products-list--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prod-col {
    padding: 5px !important;
  }

  .container-fluid {
    padding-right: 25px;
    padding-left: 25px;
  }

  .search-modal-box {
    max-width: 100%;
  }

  .ccg-countdown__title {
    font-size: 25px !important;
  }

  .ccg-countdown__subtitle {
    font-size: 15px !important;
    margin: 0 0 10px !important;
  }

  .ccg-countdown__num {
    font-size: 25px !important;
  }

  .ccg-countdown__label {
    font-size: 16px !important;
  }

  .ccg-countdown__cta {
    font-size: 15px !important;
    font-weight: 500 !important;
  }

  .ccg-grid__btn {
    font-size: 16px !important;
  }
}

@media (max-width: 992px) {
  .footer-legal-badge {
    max-width: 50% !important;
    flex: unset !important;
  }

  .footer-badges-row {
    gap: 10px !important;
  }

  #quick-view-modal-global .qv-col--info {
    padding: 0 !important;
  }

  #quick-view-modal-global .qv-main-image {
    max-height: min(50vh, 420px);

  }

  .shop-by-category-section {
    & .shop-by-category-wrapper {
      & .shop-by-category-item {
        h6 {
          font-size: 18px !important;
        }
      }
    }
  }

  .outlit-product-card__quantity-wrap {

    gap: 4px !important;

  }

  .view-all-header {

    margin-bottom: 10px !important;

    h2 {
      font-size: 16px !important;
    }

    a {
      font-size: 14px !important;
    }
  }

  .price-val {
    font-size: 16px !important;

  }

  .mrg {
    margin: 16px auto;
  }

  .blog-cards-title {
    margin: 0 0 1rem;
  }

  .product-attributes {
    min-width: 200px !important;
    width: 200px !important;
    padding-inline-end: 15px !important;
  }

  .products-list.products-list.products-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
  }

  .footer-follow-title {
    display: none !important;
  }

  .footer-contact-social .social-icons {
    display: none !important;
  }

  .footer-logo {
    width: 120px !important;
    height: 60px !important;
  }

  .footer-links-collapse-title,
  .footer-contact-social h2,
  .footer-app-download h2 {
    font-size: 14px !important;
    font-weight: 500 !important;
  }

  .store-section p {
    font-size: 14px !important;
    font-weight: 400 !important;
    margin-bottom: 5px !important;
  }

  .social-icons.social-icons-mobile {
    display: flex !important;
    justify-content: center !important;
    margin-top: 5px;
  }

  .copyrights_icons {
    grid-template-columns: 1fr !important;
  }

  .footer-companies-content {
    grid-template-columns: 1fr !important;
  }

  .categories-tabs-nav {
    margin-bottom: 16px !important;
  }

  .categories-tabs-wrapper {
    justify-content: start !important;
  }

  .categories-tabs-tab {
    padding: 8px 12px !important;
  }

  .ccg-grid__img-wrap {
    border-radius: unset !important;
  }

  .ccg-grid__item {
    border-radius: unset !important;
  }

  .ccg-grid__btn {
    display: none !important;
  }

  .ccg-countdown__cta {
    font-size: 14px !important;
    font-weight: 400 !important;
  }

  .ccg-countdown__num {
    font-size: 20px !important;
  }

  .ccg-countdown__title {
    font-size: 18px !important;
  }

  .countdown-category-grid__grid {
    padding: 25px !important;
  }

  .countdown-category-grid-section.container-fluid {
    padding: 0 !important;
  }

  .loop-banner-slider-btn-icon svg {
    width: 10px !important;
    height: 10px !important;
  }

  .loop-banner-slider-btn {
    width: 20px !important;
    height: 20px !important;
  }

  .home-products-section .products-section-view-all {
    font-size: 12px !important;
  }

  .section-title {
    font-size: 16px;
    font-weight: 500;
  }

  .banner-slider-btn {
    width: 20px !important;
    height: 20px !important;
  }

  .header-mobile-logo .image-logo {
    max-height: 50px !important;
  }

  .brands-carousel-link {
    padding: 5px !important;
  }
}

@media (max-width: 768px) {

  .products-list.products-list.products-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .blog-cards-content {
    padding: 8px !important;
  }

  .store-locations-nav {
    padding: 8px !important;
  }

  .featured-products-center .view-all-header {
    margin-bottom: 8px;
  }

  .shop-by-category-section {
    & .shop-by-category-wrapper {
      & .shop-by-category-item {
        .shop-by-category-image {
          padding: 5px !important;
        }
      }
    }
  }

  .shop-by-category-section {
    & .shop-by-category-wrapper {
      & .shop-by-category-item {
        h6 {
          font-size: 16px !important;

        }
      }
    }
  }

  .header-mobile-bottom-inner {
    height: 70px;
  }

  .attribute-group {
    border: 0;
    border-bottom: 1px solid #eceaea !important;
    border-radius: 0 !important;
  }

  .products-filters-container .attribute-price-body .form-row {
    align-items: center !important;
  }

  .products-filters-container .attribute-price-body .form-group {
    position: relative;
    max-width: 50% !important;
    text-align: start !important;
  }

  .products-filters-attribute-form {
    margin-top: 2rem !important;
    padding-bottom: 30px !important;
  }

  .product-attributes-show-mobile {
    left: auto !important;
    right: 0 !important;
  }

  .filtration-header {
    width: 100% !important;
  }

  .filtration-header {
    z-index: 999999999 !important;
    padding: 5px !important;
  }

  .products-filters-container .attribute-group .attribute-search-wrapper {
    width: 100%;
    max-width: 96%;
  }

  .loop-banner-slider-dot {
    width: 7px !important;
    height: 7px !important;
  }

  .blog-cards-card-title {
    font-size: 14px !important;
  }

  .blog-cards-card {
    margin: 0px 3px !important;
  }

  .prod-col {
    padding: 5px;
  }

  .banner-slider-dot.is-active {
    width: 10px !important;
  }

  .banner-slider-dot {
    width: 8px !important;
    height: 8px !important;
  }

  .banner-slider-dots {
    bottom: 5px !important;
  }

  .banner-slide-group--mobile {
    gap: 10px !important;
  }

  .banner-slider-btn-icon svg {
    width: 10px !important;
    height: 10px !important;
  }

  .category-circles-link {
    width: 100% !important;
    height: 100% !important;
    padding: 3px !important;
  }

  .category-circles-slider.slick-initialized .slick-slide {
    margin: 0 calc(var(--pp-gap) / 2) !important;
  }

  .category-circles-mobile {
    font-size: var(--pp-gap) !important;
  }

  .search-modal-sections {
    gap: 10px;
  }

  .search-modal-logo {
    margin-bottom: 10px;
  }

  .slide-menu-drawer-li>a {
    gap: 8px !important;
  }

  .slide-menu-drawer-search-inner {
    padding: 8px 6px 8px 20px !important;
  }

  .slide-menu-drawer-close {
    width: 20px !important;
    height: 20px !important;
  }

  .slide-menu-drawer-header-icons {
    gap: 4px !important;
  }

  .header-mobile-start-icons {
    gap: 4px;
  }

  .header-mobile-end-icons {
    gap: 4px;
  }

  .category-circles-slider--mobile-row2 {
    direction: rtl;
  }

  .header-mobile-logo .image-logo {
    max-height: 50px !important;
  }

  .search-modal-overlay {
    padding: 0;
  }

  .search-modal-box {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    max-height: 100vh;
    min-height: 100vh;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    transform: translateY(-100%);
  }

  .search-modal-overlay.is-open .search-modal-box {
    transform: translateY(0);
  }

  .search-modal-brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .search-modal-category-item {
    min-width: 100px;
  }

  .search-modal-category-icon {
    width: 75px;
    height: 75px;
  }

  .hero-simple-slider-arrow {
    width: 20px !important;
    height: 20px !important;
  }

  .hero-simple-slider-arrow span {
    font-size: 20px !important;
  }

  .hero-simple-slider-dot {
    width: 6px !important;
    height: 6px !important;
    min-width: 6px !important;
    min-height: 6px !important;
  }

  .hero-simple-slider-dot.is-active {
    width: 10px !important;
  }

  .search-modal-categories-slider {
    gap: 10px;
  }

  .rtl .search-modal-input {
    padding: 10px 40px 10px 10px;
  }

  .container-fluid {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-simple-slider-dots-wrap {
    bottom: 5px !important;
  }

  .search-modal-input {
    min-height: 30px !important;
  }

  .search-modal-input-wrap {
    margin-bottom: 12px !important;
  }
}

@media (max-width: 576px) {
  .dropdown-item {
    padding: 0.15rem 1rem !important;
    padding-bottom: 5.5px !important;
    padding-top: 5.5px !important;

  }

  .rev-product-card-wrap {
    width: 220px;
  }

  .categories-grid__content {
    padding: 15px 10px !important;

  }

  .products-list.products-list.products-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
  }

  .block-side-cart .empty-cart-message .btn-outline-primary {
    font-size: 14px;
    font-weight: 400;
    min-height: 35px;
  }

  .countdown-category-grid__grid {
    padding: 5px 16px !important;
  }

  .search-modal-brands-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .search-modal-category-item {
    min-width: 80px !important;
  }

  .block-side-cart .title-product-m {
    max-width: 79% !important;
  }
}

@media (max-width: 450px) {}

@media (max-width: 380px) {
  .price-val {
    font-size: 14px !important;
  }

  .outlit-product-card__quantity-wrap .outlit-product-card__qty-btn,
  .outlit-product-card__quantity-wrap .outlit-product-card__qty-remove {
    width: 20px !important;
    height: 20px !important;
    font-size: 14px !important;
  }

  .header-mobile-logo .image-logo {
    max-height: 40px !important;
  }

  .footer-help-center-card {
    padding: 10px;
    max-width: 90%;
  }

  body[data-template="list_products"],
  body[data-template="category"] {
    .prod-col {
      padding-right: 0 !important;
    }
  }

  .footer-store-section[dir="rtl"] .footer-main-row .footer-footer-col {
    width: 100% !important;
    min-width: 100% !important;
  }
}

@media (max-width: 350px) {
  .outlit-product-card__price--current {
    order: -1 !important;
  }

  .outlit-product-card__discount {
    order: 3 !important;
  }

  .outlit-product-card__price-row {
    flex-direction: row !important;
    gap: 4px !important;
    row-gap: 4px !important;
  }

  .outlit-product-card__quantity-wrap .outlit-product-card__qty-btn,
  .outlit-product-card__quantity-wrap .outlit-product-card__qty-remove {
    width: 15px !important;
    height: 15px !important;
  }
}

/* ===== Products filter modal (price & offers) ===== */
.filter-modal .modal-dialog {
  max-width: 520px;
  margin: 1.75rem auto;
}

.filter-modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.filter-modal-body {
  padding: 20px 24px 24px;
  position: relative;
}

.filter-modal-header {
  margin-bottom: 16px;
}

.filter-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #050505;
}

.filter-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 20%;
  background: rgba(0, 0, 0, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.filter-modal-close .icon-times2:before {
  font-size: 16px;
}

.filter-modal-body-content {
  margin-top: 4px;
}

/* Form inside filter modal */
.form-products-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-products-filter .filter-block-width {
  width: 100%;
}

.form-products-filter label {
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  margin-bottom: 4px;
}

.form-products-filter .form-control {
  border-radius: 10px;
  border: 1px solid #e2e2e2;
  font-size: 14px;
  padding: 8px 10px;
}

.form-products-filter .form-control:focus {
  border-color: var(--primary-color, #e91e63);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.18);
}

.form-products-filter .row {
  margin-left: -6px;
  margin-right: -6px;
}

.form-products-filter .row>[class*="col"] {
  padding-left: 6px;
  padding-right: 6px;
}

.btn-sale-price {
  border-radius: 10px;
  border: 1px solid #f0c4d4;
  background: #fff7fb;
  color: #c2185b;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-sale-price .custom-checkmark {
  border-radius: 6px;
}

.btn-sale-price .custom-checkbox-label {
  font-size: 14px;
  font-weight: 500;
}

.form-products-filter .price-range-slider-host {
  position: relative;
  width: 100%;
}

.form-products-filter .form-group {
  margin-bottom: 0;
}

/* Make header/modal price inputs match attribute price pills */
.form-products-filter .products-filter-price-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 4px;
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(229, 231, 235, 0.6);
}

.form-products-filter .products-filter-price-input::placeholder {
  color: #9ca3af;
}

.form-products-filter .products-filter-price-input::-webkit-outer-spin-button,
.form-products-filter .products-filter-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-products-filter .products-filter-price-input {
  -moz-appearance: textfield;
}

.form-products-filter .col {
  position: relative;
}

.form-products-filter .form-group .btn {
  min-width: 110px;
  background-color: #000 !important;
  color: #fff !important;
  border: unset;
  font-size: 14px !important;
  font-weight: 400 !important;
  border-radius: 10px !important;
}

.form-products-filter .form-group #products-list-filter-form-clear {
  background-color: #ce0000 !important;
}

@media (max-width: 575.98px) {
  .filter-modal .modal-dialog {
    max-width: 100%;
    margin: 0;
  }

  .filter-modal .modal-content {
    border-radius: 20px 20px 0 0;
    margin: 0;
  }

  .filter-modal-body {
    padding: 16px 16px 20px;
  }

  .filter-modal-title {
    font-size: 16px;
  }

  .form-products-filter .form-group {
    justify-content: space-between;
    gap: 8px;
  }

  .form-products-filter .form-group .btn {
    flex: 1 1 0;
  }
}

/* Price range slider (sidebar filters + header/modal filters) */
.products-filters-attribute-form .attribute-price-body {
  padding: 12px 8px 16px;
}

.products-filters-attribute-form .price-range-label,
.form-products-filter .price-range-label {
  font-size: 14px;
  font-weight: 400;
  color: #555;
  text-align: start !important;
}

.products-filters-attribute-form .price-range-slider-wrapper,
.form-products-filter .price-range-slider-wrapper {
  position: relative;
  width: 100%;
  padding-top: 16px;
  /* مساحة للـ thumbs */
  height: 32px;
}

.products-filters-attribute-form .price-range-track,
.form-products-filter .price-range-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background-color: #dcdcdc;
  z-index: 1;
}

.products-filters-attribute-form .price-range-input,
.form-products-filter .price-range-input {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.products-filters-attribute-form .price-range-input::-webkit-slider-runnable-track,
.form-products-filter .price-range-input::-webkit-slider-runnable-track {
  height: 2px;
  background: transparent;
}

.products-filters-attribute-form .price-range-input::-moz-range-track,
.form-products-filter .price-range-input::-moz-range-track {
  height: 2px;
  background: transparent;
}

.products-filters-attribute-form .price-range-input::-webkit-slider-thumb,
.form-products-filter .price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  margin-top: -6px;
}

.products-filters-attribute-form .price-range-input::-moz-range-thumb,
.form-products-filter .price-range-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
}

.products-filters-attribute-form .attribute-price-body .form-row {
  margin-top: 18px;
  align-items: center !important;
}

.products-filters-attribute-form .price-range-input-min,
.form-products-filter .price-range-input-min {
  z-index: 3;
}

.products-filters-attribute-form .price-range-input-max,
.form-products-filter .price-range-input-max {
  z-index: 4;
}

/* NEW */
button {
  outline: none !important;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide {
  display: flex;
  align-items: center;
}

.hero-slider .swiper-slide .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 550px;
}

.hero-slider .swiper-slide-content {
  flex: 1;
  max-width: 550px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* RTL Support */
[dir="rtl"] .hero-slider .swiper-slide-content {
  align-items: flex-start;
  text-align: right;
}

[dir="ltr"] .hero-slider .swiper-slide-content {
  align-items: flex-start;
  text-align: left;
}

.hero-slider .swiper-slide-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-slider .swiper-slide-description {
  font-size: 28px;
  color: #4d4d4d;
  margin-bottom: 0;
  line-height: 1.6;
}

.hero-slider .swiper-slide-button {
  display: inline-block;
  padding: 12px 48px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

.hero-slider .swiper-slide-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-slider .swiper-slide-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
}

.hero-slider .swiper-slide-image img {
  max-width: 100%;
  height: auto;
  width: 100%;
  object-fit: cover;
}

.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
}

.hero-slider .swiper-pagination {
  bottom: 20px !important;
}

.hero-slider .swiper-pagination-bullet {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0 4px !important;
  background: transparent !important;
  opacity: 1;
  border-radius: 0;
}

.hero-slider .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 0;
  transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active::before {
  background: var(--primary-color);
  width: 20px;
  border-radius: 0;
}

@media (max-width: 991px) {
  .hero-slider .swiper-slide .container-fluid {
    flex-direction: column-reverse;
    gap: 30px;
    text-align: center;
    min-height: auto;
  }

  .hero-slider .swiper-slide-content {
    max-width: 100%;
    align-items: center !important;
    text-align: center !important;
  }

  .hero-slider .swiper-slide-title {
    font-size: 28px;
    margin-bottom: 0;
  }

  .hero-slider .swiper-slide-description {
    font-size: 16px;
  }

}

.tp-bar.stop-move .tp-marquee {
  animation: unset;
  -webkit-animation: unset;
  justify-content: center;
}

.animated-brands--marquee:hover .marquee__group,
.tp-bar:hover .tp-marquee {
  animation-play-state: paused;
}

.tp-bar.stop-move .tp-mask {
  mask-image: none;
}

.tp-bar {
  padding: 5px 10px;
  overflow: hidden;
  white-space: nowrap;
  height: 40px;
}

.tp-mask {
  -webkit-mask-image: linear-gradient(90deg,
      transparent,
      #000 5%,
      #000 95%,
      transparent);
  mask-image: linear-gradient(90deg,
      transparent,
      #000 5%,
      #000 95%,
      transparent);
  height: 100%;
  --gap: 1rem;
  display: flex;
  direction: ltr !important;
  /* Forces the next copy to be on the right, even in RTL sites */
  overflow: visible;
  /* Avoid clipping individual blocks early */
  -moz-user-select: none;
  user-select: none;
  gap: 1rem;
  gap: var(--gap);
}

.tp-bar .tp-marquee {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: 30s linear infinite move;
  -webkit-animation: 30s linear infinite move;
}

@keyframes move {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(calc(-100% - var(--gap)), 0, 0);
  }
}

.tp-bar a {
  color: var(--tp-white);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 12px;
  direction: rtl;
  font-size: 16px;
}

.tp-bar a img {
  height: 16px;
  width: auto;
  max-width: 40px;
}

.tp-home:has(.tp-bar + .tp-product-background) .tp-product-background {
  padding-top: 0;
}

.tp-home section:first-child {
  padding-top: 0;
}

.tp-feature-area .tp-feature-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-content: center;
  gap: 32px;

  @media screen and (max-width: 576px) {
    gap: 12px !important;
  }
}

.tp-banners .tp-items,
.tp-offers-box:not(:has(img)) {
  grid-template-columns: 1fr;
}

/* صف بنرات أقسام: يملأ عرض الحاوية — 1 / 2 / 3 أعمدة حسب العدد (من القالب: --categories-cols, --categories-gap) */
.categories-section {
  width: 100%;
  box-sizing: border-box;
}

.categories-section__inner {
  width: 100%;
  max-width: 100%;
}

.categories-section__grid {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(var(--categories-cols, 1), minmax(0, 1fr));
  gap: var(--categories-gap, 12px);
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.categories-section__tile {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.categories-section__tile:focus-visible {
  outline: 2px solid var(--primary-color, #111);
  outline-offset: 2px;
}

.categories-section__media {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

#qv-btn-buy {
  margin-top: 14px;
  padding: 10px;
  border-radius: 55px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
}

.categories-section__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.categories-section__tile:hover .categories-section__media img {
  transform: scale(1.02);
}

/* شبكة البانرات: قديم (wrapper) + جديد 2 | سلايدر | 2 */
.banners-grid {
  padding: 0px 0;
  box-sizing: border-box;
  width: 100%;

  @media screen and (max-width: 576px) {
    padding: 0px 0;
  }

  &.banners-grid--layout-212 .banners-grid-layout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;

    @media screen and (max-width: 576px) {
      gap: 10px;
    }
  }

  &.banners-grid--layout-212 .banners-grid-row--duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    width: 100%;
    min-width: 0;

    @media screen and (max-width: 576px) {
      gap: 8px;
    }
  }

  &.banners-grid--layout-212 .banner-item--tile {
    border-radius: 16px;
    overflow: hidden;
    min-width: 0;
    background: #f5f5f5;

    @media screen and (max-width: 576px) {
      border-radius: 8px;
    }
  }

  &.banners-grid--layout-212 .banner-item--tile a {
    display: block;
    width: 100%;
    height: 100%;
  }

  &.banners-grid--layout-212 .banner-item--tile img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  &.banners-grid--layout-212 .banners-grid-row--slider {
    width: 100%;
    min-width: 0;
  }

  &.banners-grid--layout-212 .banners-grid-center-slider {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-width: 0;

    @media screen and (max-width: 576px) {
      border-radius: 8px;
    }
  }

  &.banners-grid--layout-212 .banners-grid-center-slider .swiper-wrapper {
    align-items: stretch;
  }

  &.banners-grid--layout-212 .banners-grid-center-slider .swiper-slide {
    height: auto;
    display: flex;
  }

  &.banners-grid--layout-212 .banner-item--slide {
    border-radius: 0;
    overflow: hidden;
    width: 100%;
    flex: 1;
    min-height: 0;
  }

  &.banners-grid--layout-212 .banner-item--slide a {
    display: block;
    width: 100%;

  }

  &.banners-grid--layout-212 .banner-item--slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  &.banners-grid--layout-212 .banners-grid-center-pagination {
    bottom: 10px !important;
    z-index: 2;
  }

  &.banners-grid--layout-212 .banners-grid-center-pagination .swiper-pagination-bullet {
    background: transparent !important;
    opacity: 1;
  }

  &.banners-grid--layout-212 .banners-grid-center-pagination .swiper-pagination-bullet::before {
    background: rgba(255, 255, 255, 0.55);
  }

  &.banners-grid--layout-212 .banners-grid-center-pagination .swiper-pagination-bullet-active::before {
    opacity: 1;
    background: var(--primary-color, #2d6a4f);
  }

  &.banners-grid--layout-212 .banners-grid-center-prev,
  &.banners-grid--layout-212 .banners-grid-center-next {
    color: #222;
    z-index: 2;
  }

  .banners-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;

    @media screen and (max-width: 576px) {
      gap: 8px !important;
    }

    .banner-item {
      flex: 1 1 48%;
      min-width: 300px;
      border-radius: 16px;
      overflow: hidden;

      @media screen and (max-width: 768px) {
        flex: 1 1 35%;
        min-width: 150px;
        border-radius: 16px;
        overflow: hidden;
      }

      @media screen and (max-width: 576px) {
        flex: 1 1 35%;
        min-width: 68px;
        border-radius: 8px;
        overflow: hidden;
      }

      a {
        display: block;
        width: 100%;
        height: 100%;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    }
  }
}

.shop-by-category-section {
  display: flex;
  flex-direction: column;
  gap: 24px;

  .shop-by-category-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;

    &.swiper {
      padding-bottom: 20px;

      @media screen and (max-width: 767px) {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0;
        overflow: visible;
      }

      .swiper-wrapper {
        @media screen and (max-width: 767px) {
          display: flex;
          flex-wrap: nowrap;
        }
      }

      .swiper-slide {
        width: auto;
        height: auto;
        display: flex;
        justify-content: center;
      }
    }

    .shop-by-category-item {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      text-decoration: none;
      color: #000;
      width: 150px;

      @media screen and (max-width: 576px) {
        width: 120px;
      }

      .shop-by-category-image {
        width: 100%;
        aspect-ratio: 1/1;
        overflow: hidden;
        padding: 10px;
        transition: transform 0.3s ease;

        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
          display: block;
        }
      }

      h6,
      .shop-by-category-title {
        font-size: 20px;
        font-weight: 400;
        color: #000;
        text-align: center;
        overflow: hidden;
        width: 100%;
      }
    }
  }
}

.s_block {
  padding: 40px 0 0;
}

.view-all-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;

  h2 {
    font-size: 20px;
    font-weight: 500;
    color: #000;
  }

  a {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    text-decoration: underline;
    white-space: nowrap;
  }
}

.swiper-slide {
  height: auto;
}

.shop-by-price {
  position: relative;
}




.price-tag-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.price-tag-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 270/320;
  border-radius: 10px;
  overflow: hidden;
}


.price-val {
  color: #000;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  line-height: normal;
}

.shop-by-price-item {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.month-brands {
  padding: 40px 0;
}

.view-all-link {
  font-size: 16px;
  color: var(--primary-color);
  text-decoration: underline;
}

.month-brands-slider {
  overflow: hidden;
}

.brand-card {
  display: block;
  text-decoration: none;
  border-radius: 0;
  /* Match design square look */
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-5px);
}

.brand-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.brand-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-top: none;
}

.brand-name {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  text-align: right;
}

.brand-arrow {
  color: #141b34;
  display: flex;
  align-items: center;
}

/* Swiper Pagination Styles — 24px touch targets, visual dash unchanged */
.month-brands .swiper-pagination-bullet,
.custom-swiper-pagination .swiper-pagination-bullet {
  position: relative;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0 4px !important;
  border-radius: 0;
  background: transparent !important;
  opacity: 1;
  transition: none;
}

.month-brands .swiper-pagination-bullet::before,
.custom-swiper-pagination .swiper-pagination-bullet::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 3px;
  background: #ccc;
  border-radius: 0;
  transition: all 0.3s ease;
}

.month-brands .swiper-pagination-bullet-active::before,
.custom-swiper-pagination .swiper-pagination-bullet-active::before {
  background: var(--primary-color);
  width: 30px;
}

.countdown-banner {
  padding: 30px 0;
}

.countdown-flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.countdown-content {
  text-align: right;
}

.countdown-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.countdown-subtitle {
  margin: 10px 0 0 0;
  font-size: 24px;
  font-weight: 400;
  opacity: 0.9;
}

.countdown-timer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  direction: ltr;
  /* Ensure values are consistent across locales */
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.unit-val {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.unit-label {
  font-size: 18px;
  margin-top: 4px;
  opacity: 0.8;
}

.unit-colon {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  margin-top: -2px;
}

@media (max-width: 768px) {
  .countdown-flex-container {
    flex-direction: column;
    text-align: center;
  }

  .countdown-content {
    text-align: center;
    order: -1;
  }

  .countdown-title {
    font-size: 24px;
  }

  .countdown-subtitle {
    font-size: 18px;
  }

  .unit-val,
  .unit-colon {
    font-size: 28px;
  }
}

.brands-section {
  background-color: #f5f5f5;
  padding: 24px 0;
}

.brands-section .brands-section-slider {
  overflow: hidden;
  width: 100%;
}

.brands-section .swiper-free-mode>.swiper-wrapper {
  transition-timing-function: linear;
}

.brands-section .brands-section-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.brands-section .brands-section-logo:hover {
  opacity: 0.75;
}

.brands-section .brands-section-logo img {
  width: 100%;
  height: 100%;
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}




.stl-single-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.stl-main-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Hotspot Base */
.stl-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.stl-dot {
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  position: relative;
}

.stl-dot::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid white;
  border-radius: 50%;
  animation: stl-pulse 2.5s infinite;
}

@keyframes stl-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Popup Design */
.stl-popup {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 240px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
}

/* Trigger: Hover */
.stl-trigger-hover:hover .stl-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Trigger: Click (JS handles active class) */
.stl-hotspot.active .stl-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.stl-popup-content {
  display: flex;
  align-items: center;
  gap: 12px;
  direction: rtl;
}

.stl-product-info {
  flex: 1;
  text-align: right;
  min-width: 0;
}

.stl-product-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.stl-product-title a {
  color: #1a1a1a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stl-product-prices {
  display: flex;
  flex-direction: column;
}

.stl-price.current {
  font-size: 15px;
  font-weight: 900;
  color: #1a1111;
}

.stl-price.old {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.stl-product-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  border: 1px solid #eee;
}

.stl-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .stl-popup {
    width: 180px;
  }

  .stl-product-title {
    font-size: 12px;
  }

  .stl-dot {
    width: 20px;
    height: 20px;
  }
}

.review-slider-section {
  overflow: hidden;
}

.review-header {
  text-align: right;
  margin-bottom: 24px;
}

.review-slider-wrapper {
  display: flex;
  position: relative;
  background: #fdfdfd;
  border-radius: 8px;
  /* overflow: hidden; */
  /* Removed to allow card overlap */
  min-height: 540px;
  max-height: 540px;
}

/* Visual Part (Fade) */
.review-visual-slider {
  width: 50%;
  position: relative;
  overflow: visible !important;
  /* Allow card to show outside */
}

.review-visual-slider .swiper-slide {
  overflow: visible !important;
}

.review-visual-content {
  width: 100%;
  height: 100%;
  position: relative;
}

.rev-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Card Integration */
.rev-product-card-wrap {
  position: absolute;
  top: 50%;
  right: -110px;
  /* Adjusted overlap */
  transform: translateY(-50%);
  width: 240px;
  z-index: 10;
}

.rev-product-card-wrap .outlit-product-card {
  background: #fff !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  border-radius: 12px !important;
  height: auto !important;
  /* Allow it to grow naturally */
  padding-bottom: 15px;
  overflow: hidden;
}

.rev-product-card-wrap .outlit-product-card__img-wrap {
  height: 200px !important;
}

.rev-product-card-wrap .outlit-product-card__title {
  font-size: 13px !important;
  margin-top: 5px !important;
}

.rev-product-card-wrap .outlit-product-card__price-wrap {
  margin-top: 4px !important;
}

/* Content Part (Slide) */
.review-content-slider {
  width: 50%;
  background: #f7f7f7;
}

.review-text-part {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 60px 50px 100px 180px;
  text-align: right;
  direction: rtl;
}

.rev-body {
  width: 100%;
}

.rev-text {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 30px;
}

.rev-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-direction: column;
}

.rev-author {
  font-size: 18px;
  font-weight: 700;
  color: #555;
  margin: 0;
}

.rev-stars {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rev-rating-val {
  font-size: 14px;
  font-weight: 600;
  color: #5a5a5a;
}

/* Custom Footer Nav */
.review-slider-footer {
  position: absolute;
  bottom: 50px;
  right: 50px;
  z-index: 20;
}

.rev-nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  direction: ltr;
  /* Arrows around numbers */
}

.rev-pagination {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  width: auto !important;
  position: static !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rev-prev,
.rev-next {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  color: #bbb;
  cursor: pointer;
  transition: color 0.3s;
}

.rev-prev:hover,
.rev-next:hover {
  color: #000;
}

.rev-prev::after,
.rev-next::after {
  display: none;
}

@media (max-width: 991px) {
  .review-slider-wrapper {
    flex-direction: column-reverse;
    /* Image top, Text bottom */
    min-height: auto;
    max-height: none;
  }

  .review-visual-slider,
  .review-content-slider {
    width: 100%;
  }

  .rev-product-card-wrap {
    right: 50%;
    transform: translate(50%, 0);
    top: auto;
    bottom: -60px;
    /* Overlap into text section below */
    width: 260px;
    z-index: 30;
  }

  .rev-product-card-wrap .outlit-product-card__img-wrap {
    height: 160px !important;
  }

  .review-text-part {
    padding: 80px 20px 40px;
    /* Top padding to accommodate overlapping card */
    justify-content: center;
    background: #f7f7f7;
    min-height: 250px;
  }

  .rev-text {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
  }

  .rev-meta {
    align-items: center;
    text-align: center;
  }

  .review-slider-footer {
    position: relative;
    bottom: 0;
    right: 0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    background: #f7f7f7;
    border-top: 1px solid #eee;
  }
}

/* Common Swiper Pagination Styles */
.custom-swiper-pagination {
  bottom: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 25px;
  position: relative !important;
}

.offer-card {
  height: 100%;
}

.offer-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.offer-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.offer-footer {
  padding-top: 10px;
  text-align: center;
}

.offer-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

/* Fix for swiper buttons appearing correctly */
.offers-coupons-slider .swiper-button-prev,
.offers-coupons-slider .swiper-button-next {
  color: var(--primary-color) !important;
}

.loader-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999999999;
  background: #fff;
  background: var(--loader_background_color);
}

.loader-container .loader-box img {
  min-height: 100px;
  max-width: 250px;
  max-height: 150px;
  object-fit: contain;
  animation: 2s ease-in-out infinite fadeInOut;
  -webkit-animation: 2s ease-in-out infinite fadeInOut;
}

@keyframes fadeInOut {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
  }
}

.logo-lodaer-box {
  width: 145px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: 2s ease-in-out infinite fadeInOut;
  -webkit-animation: 2s ease-in-out infinite fadeInOut;
}

.load-row {
  width: 100px;
  height: 24px;
  line-height: 30px;
}

.load-row span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50px;
  animation: 0.4s ease-in infinite alternate up-down6;
  -webkit-animation: 0.4s ease-in infinite alternate up-down6;
}

body:not(:has(.tp-home)) .header-nav .menu-style-2,
body:not(:has(.tp-home)) .header-nav .tp-menu-list {
  background: var(--background_color_catg_menu);
  color: var(--text_color_catg_menu);
}

.load-row span:nth-child(2) {
  background: var(--primary-color);
  opacity: 0.8;
  animation-delay: 0.16s;
}

.load-row span:nth-child(3) {
  background: var(--primary-color);
  opacity: 0.6;
  animation-delay: 0.32s;
}

.load-row span:nth-child(4) {
  background: var(--primary-color);
  opacity: 0.4;
  animation-delay: 0.48s;
}

@keyframes up-down6 {
  0% {
    transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
  }

  100% {
    transform: translateY(3px);
    -webkit-transform: translateY(3px);
    -moz-transform: translateY(3px);
    -ms-transform: translateY(3px);
    -o-transform: translateY(3px);
  }
}

.css-fh1hs4 {
  background: #00000063;
  backdrop-filter: blur(1px);
}

.product-accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 12px;
  border-radius: 16px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  background: #fff;
}

.product-accordion-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.product-accordion-header {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  outline: none !important;
  text-align: inherit;
  transition: background-color 0.2s ease;
}

.product-accordion-header[aria-expanded="true"] {
  background-color: #ffffff;
  border-bottom: 1px solid #f3f4f6;
}

.accordion-title {
  flex-grow: 1;
}

.accordion-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.accordion-icon-wrap::before {
  content: "+";
  line-height: 1;
}

.product-accordion-header[aria-expanded="true"] .accordion-icon-wrap::before {
  content: "\2212";
}

.product-accordion-content {
  background: #ffffff;
}

.product-accordion-content .product-tab-section {
  padding: 24px;
  color: #374151;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .product-accordion-header {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .product-accordion-wrapper {
    gap: 12px;
    padding: 0 !important;
  }
}

.product-accordion-wrapper .collapse:not(.show) {
  display: none;
}

.video-container video {
  object-fit: cover;
  min-height: 500px;
}

.search-modal-sections .section-title {
  font-size: 16px;
  margin-bottom: 16px;
}

.product-rating-share-row .product-card-rating span {
  margin-right: 2.5px !important;
}

.review-details .product-card-rating span {
  margin-right: 2.5px !important;
}

.swiper-button-next,
.swiper-button-prev {
  width: 32px;
  height: 32px;
  background: white;
  color: #222;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  top: 45%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 14px;
  font-weight: bold;
}

/* مميزات المتجر — ويب: صف واحد (4 أعمدة) | موبايل: شبكة 2×2 */
.store-features {
  width: 100%;
  box-sizing: border-box;
}

.store-features__outer {
  background: var(--sf-outer-bg, #f5f5f5);
  padding: 16px 0;
  box-sizing: border-box;
}

.store-features__card {
  background: var(--sf-card-bg, #fff);
  border-radius: var(--sf-card-radius, 16px);
  padding: var(--sf-card-padding, 28px);
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.store-features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
  margin: 0;
  padding: 0;
}

.store-features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.store-features__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 14px;
  color: var(--sf-icon-color, #5b6b3f);
}

.store-features__icon-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.store-features__svg-fallback {
  flex-shrink: 0;
  display: block;
}

.store-features__title {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--sf-title-color, #333);
}

.store-features__subtitle {
  margin: 0;
  font-size: clamp(0.8125rem, 2.2vw, 1rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--sf-subtitle-color, #5a5a5a);
}

@media screen and (min-width: 768px) {
  .store-features__outer {
    padding: 20px 0;
  }

  .store-features__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 16px;
  }

  .store-features__icon-img {
    max-height: 80px;
  }

  .store-features__svg-fallback {
    width: 80px;
    height: 80px;
  }
}

/* ========= Quick view modal (#quick-view-modal-global) RTL / scoped ========= */
#quick-view-modal-global {
  --qv-space: 14px;
}

/* تفاعل: منع طبقات/حالات من اعتراض النقرات (عمود الصور فوق التفاصيل في RTL، إلخ) */
#quick-view-modal-global.modal .modal-dialog,
#quick-view-modal-global .modal-content {
  pointer-events: auto;
}

#quick-view-modal-global .qv-layout-row {
  position: relative;
  align-items: stretch;
}

#quick-view-modal-global .qv-col--media {
  position: relative;
  padding: 0 !important;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: var(--qv-space);
}

#quick-view-modal-global .qv-col--info {
  position: relative;
  z-index: 5;
}

#quick-view-modal-global .qv-info-scroll,
#quick-view-modal-global .qv-form,
#quick-view-modal-global #quick-view-product-form {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* إخفاء شاشة التحميل/الخطأ بقوة حتى لا تبقى فوق المحتوى */
#quick-view-modal-global .qv-state--loading.d-none,
#quick-view-modal-global .qv-state--error.d-none {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#quick-view-modal-global .qv-state--main {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

#quick-view-modal-global .qv-modal-dialog {
  max-width: min(960px, 100vw - 1rem);
  margin: 0.5rem auto;
}

#quick-view-modal-global .qv-modal-content {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

#quick-view-modal-global .qv-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: var(--qv-space);
  padding: 10px 16px;
  border-bottom: 1px solid var(--secondary-color-alt7, #ebebeb);
}

[dir="rtl"] #quick-view-modal-global .qv-modal-header {
  flex-direction: row-reverse;
}

#quick-view-modal-global .qv-modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: start;
}

#quick-view-modal-global .qv-modal-close {
  margin: 0;
  padding: 0 6px;
  opacity: 0.75;
}

#quick-view-modal-global .qv-modal-body {
  padding: 16px;
}

#quick-view-modal-global .qv-state--loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 200px;
  color: var(--secondary-color-alt1, #5a5a5a);
}

#quick-view-modal-global .qv-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--secondary-color-alt7, #ebebeb);
  border-top-color: var(--primary-color, #28994a);
  animation: qv-spin 0.75s linear infinite;
}

@keyframes qv-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 992px) {
  #quick-view-modal-global .qv-col--media {
    margin-bottom: 0;
  }

  #quick-view-modal-global .qv-gallery {
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
  }

  #quick-view-modal-global .qv-gallery-main {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color-alt13, #f8f8f8);
    border-radius: 12px;
    overflow: hidden;
  }

  #quick-view-modal-global .qv-info-scroll {
    max-height: 100%;
    min-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline-end: 4px;
    display: flex;
    flex-direction: column;
    gap: var(--qv-space);
  }
}

@media (max-width: 991.98px) {
  #quick-view-modal-global .qv-info-scroll {
    display: flex;
    flex-direction: column;
    gap: var(--qv-space);
    max-height: none;
    overflow: visible;
  }

  #quick-view-modal-global .qv-gallery-main {
    background: var(--secondary-color-alt13, #f8f8f8);
    border-radius: 12px;
    overflow: hidden;
  }
}

#quick-view-modal-global .qv-main-image {
  display: block;
  width: 100%;
  max-height: min(30vh, 420px);
  height: auto;
  object-fit: contain;
}

.qv-custom-fields:empty {
  display: none !important;
}

#quick-view-modal-global .qv-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--qv-space);
  justify-content: center;
}

[dir="rtl"] #quick-view-modal-global .qv-thumbs {
  flex-direction: row-reverse;
}

#quick-view-modal-global .qv-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

#quick-view-modal-global .qv-thumb.is-active {
  border-color: var(--primary-color, #28994a);
}

#quick-view-modal-global .qv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#quick-view-modal-global .qv-sku {
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  margin: 0;
}

#quick-view-modal-global .qv-product-intro {
  display: flex;
  flex-direction: column;
  gap: var(--qv-space);
}

#quick-view-modal-global .qv-body-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: #222;
}

#quick-view-modal-global .qv-short-desc {
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  color: #666;
  margin: 0;
}

#quick-view-modal-global .qv-short-desc p {
  margin: 0 !important;
}

#quick-view-modal-global .qv-price-block-wrap {
  margin: 0;
}

#quick-view-modal-global .qv-price-block {
  margin: 0;
}

/* API price HTML: neutralize theme gradients / flex that break quick view */
#quick-view-modal-global .qv-price-block .product-price-modern,
#quick-view-modal-global .qv-price-block .product-formatted-price,
#quick-view-modal-global .qv-price-block .product-formatted-price-current {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  display: inline !important;
  flex: none !important;
  flex-direction: unset !important;
  align-items: unset !important;
  gap: 0 !important;
  white-space: normal;
  line-height: 1.35;
}

#quick-view-modal-global .qv-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#quick-view-modal-global .product-price-block .product-formatted-price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 0;
}

#quick-view-modal-global .product-formatted-price-current {
  color: var(--primary-color);
  font-size: 20px;
  font-weight: 500;
}

[dir="rtl"] #quick-view-modal-global .qv-price-row {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

#quick-view-modal-global .qv-discount-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--product-card-discount-bg, var(--hk-card-discount-bg));
  color: var(--product-card-discount-color, var(--hk-card-discount-text));
  line-height: 1.2;
  text-align: start;
}

#quick-view-modal-global .qv-stock {
  margin: 0;
  font-size: 0.9rem;
}

#quick-view-modal-global .qv-form>*+* {
  margin-top: var(--qv-space);
}

#quick-view-modal-global .qv-option-group {
  margin-bottom: 0;
}

#quick-view-modal-global .qv-option-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

#quick-view-modal-global .qv-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

[dir="rtl"] #quick-view-modal-global .qv-variant-pills {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

#quick-view-modal-global .qv-variant-pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--secondary-color-alt4, #d9d9d9);
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.2;
}

#quick-view-modal-global .qv-variant-pill.is-active {
  border-color: var(--primary-color, #28994a);
  color: var(--primary-color, #28994a);
  font-weight: 600;
}

/* خيارات المتغيرات فقط — وليس حقل كمية المنتج */
#quick-view-modal-global select.form-control.qv-variant-select {
  appearance: auto;
  -webkit-appearance: menulist;
  min-height: 44px;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
}

[dir="rtl"] #quick-view-modal-global select.form-control.qv-variant-select {
  padding-inline-start: 2.25rem;
  padding-inline-end: 12px;
  text-align: right;
  direction: rtl;
}

[dir="ltr"] #quick-view-modal-global select.form-control.qv-variant-select {
  padding-inline-end: 2.25rem;
  padding-inline-start: 12px;
}

/* كمية بنفس شكل صفحة المنتج (product-details.css) */
#quick-view-modal-global .select-quantity-div {
  display: flex;
  align-items: center;
  gap: 10px;
}

#quick-view-modal-global .select-quantity-div .form-group {
  margin-bottom: 0 !important;
}

#quick-view-modal-global .quantity-selector-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 60px;
  max-width: 140px;
  overflow: hidden;
  direction: ltr;
}

#quick-view-modal-global .quantity-selector-wrap .select-quantity {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: 0;
  width: 1px !important;
  height: 1px !important;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#quick-view-modal-global .quantity-selector-wrap .quantity-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  padding: 0;
  border: none;
  background: transparent;
  color: #333;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  flex-shrink: 0;
}

#quick-view-modal-global .quantity-selector-wrap .quantity-btn:hover {
  background: #f5f5f5;
  color: #111;
}

#quick-view-modal-global .quantity-selector-wrap .quantity-value {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 2.5em;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: #333;
  line-height: 1;
}

#quick-view-modal-global .select-quantity-div .form-group .quantity-selector-wrap {
  width: 100%;
}

.qv-buttons-row-add-to-cart {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

#quick-view-modal-global .qv-buttons-row {
  display: flex;
  flex-direction: row;
  gap: var(--qv-space);
}

.qv-variants:empty {
  display: none !important;
}

#quick-view-modal-global .qv-buttons-row .btn-add-to-cart {
  width: 100%;
  border-radius: 80px;
  min-height: 48px;
  font-weight: 600;
  font-size: 1.1rem;
  background-color: var(--primary-color, #28994a);
  color: var(--text-color-primary-bg, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

#quick-view-modal-global .qv-link-details {
  margin-top: 4px;
  text-align: center;
  font-weight: 600;
  text-decoration: underline !important;
}

#quick-view-modal-global .qv-cf-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#quick-view-modal-global .qv-cf-radio-label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

#quick-view-modal-global .qv-custom-field .qv-cf-checkbox {
  width: auto;
  margin-inline-end: 8px;
}

#quick-view-modal-global .qv-file-notice,
#quick-view-modal-global .qv-bundle-notice {
  font-size: 0.9rem;
  margin: 0;
}