(() => {
  'use strict';

  if (window.__himmaLuxuryV4) return;
  window.__himmaLuxuryV4 = true;

  const CSS = `
/* الهوية */
body.hm-luxe {
  --lx-paper: #FCFAF7;
  --lx-white: #FFFFFF;
  --lx-ink: #19171B;
  --lx-wine: #7C2437;
  --lx-muted: #756D70;
  --lx-line: #E7DFDA;

  --color-primary: #7C2437 !important;
  --color-primary-dark: #551626 !important;
  --color-primary-light: #F5ECEE !important;
  --color-primary-reverse: #FFFFFF !important;

  background: var(--lx-paper) !important;
  color: var(--lx-ink);
  font-size: 14px;
  line-height: 1.8;
}

body.hm-luxe .container {
  max-width: 1260px;
}

body.hm-luxe :where(a,button,input,select,textarea):focus-visible {
  outline: 2px solid var(--lx-wine);
  outline-offset: 3px;
}

/* الهيدر */
body.hm-luxe .top-navbar {
  background: var(--lx-paper) !important;
  color: var(--lx-ink) !important;
  border-bottom: 1px solid var(--lx-line);
}

body.hm-luxe .top-navbar a {
  color: var(--lx-muted) !important;
  font-size: 12px;
}

body.hm-luxe .main-nav-container,
body.hm-luxe .main-nav-container .inner {
  background: var(--lx-white) !important;
  box-shadow: none !important;
}

body.hm-luxe .main-nav-container {
  border-bottom: 1px solid var(--lx-line);
}

body.hm-luxe .main-nav-container .inner {
  min-height: 76px;
}

body.hm-luxe .navbar-brand img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

body.hm-luxe .main-menu .root-level > a {
  color: var(--lx-ink) !important;
  font-size: 13px;
  font-weight: 600;
}

body.hm-luxe .main-menu .sub-menu {
  background: #FFFFFF;
  border: 1px solid var(--lx-line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(25,23,27,.05);
}

body.hm-luxe .header-btn__icon,
body.hm-luxe .s-user-menu-login-btn {
  color: var(--lx-ink) !important;
  border-color: var(--lx-line);
}

body.hm-luxe .s-cart-summary-count {
  background: var(--lx-wine) !important;
  color: #FFFFFF !important;
}

body.hm-luxe .s-search-input {
  background: #FFFFFF !important;
  color: var(--lx-ink) !important;
  border: 1px solid var(--lx-line);
  border-radius: 10px;
  min-height: 42px;
  font-size: 14px;
}

/* عناوين الأقسام: حجم واحد دون تغيير النص */
body.hm-luxe.index .s-block {
  margin-top: 32px !important;
}

body.hm-luxe .s-block__title,
body.hm-luxe .s-slider-block__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px !important;
}

body.hm-luxe .s-block__title h2,
body.hm-luxe .s-slider-block__title h2,
body.hm-luxe .s-reviews-header {
  font-size: 21px !important;
  font-weight: 600 !important;
  line-height: 1.65 !important;
  color: var(--lx-ink) !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}

body.hm-luxe .s-slider-block__title-right,
body.hm-luxe .s-block__title .right-side {
  min-width: 0;
}

body.hm-luxe .s-block__display-all,
body.hm-luxe .s-slider-block__display-all {
  flex-shrink: 0;
  color: var(--lx-wine) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(124,36,55,.25) !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}

body.hm-luxe .s-block--slider-with-bg {
  background: var(--lx-paper) !important;
  border-radius: 0 !important;
  padding-block: 18px !important;
}

body.hm-luxe .s-slider-nav-arrow {
  background: #FFFFFF;
  border: 1px solid var(--lx-line);
  color: var(--lx-ink);
  border-radius: 50%;
}

body.hm-luxe .banner--fixed {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none;
}

/* بطاقات المنتجات */
body.hm-luxe .s-product-card-vertical {
  display: flex;
  flex-direction: column;
  background: #FFFFFF !important;
  border: 1px solid var(--lx-line) !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(25,23,27,.02) !important;
  height: 100%;
  transform: none !important;
}

body.hm-luxe .s-product-card-vertical .s-product-card-image {
  position: relative;
  height: auto !important;
  aspect-ratio: 1;
  background: #FFFFFF !important;
  overflow: hidden;
}

body.hm-luxe .s-product-card-vertical .s-product-card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

body.hm-luxe .s-product-card-vertical .s-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  padding: 8px;
}

body.hm-luxe .s-product-card-vertical .s-product-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px !important;
}

body.hm-luxe .s-product-card-content-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.75 !important;
}

body.hm-luxe .s-product-card-content-title a {
  display: block !important;
  color: var(--lx-ink) !important;
  overflow: visible !important;
  max-height: none !important;
  -webkit-line-clamp: unset !important;
}

body.hm-luxe .s-product-card-vertical .s-product-card-content-title a {
  min-height: 3.5em;
}

body.hm-luxe .s-product-card-content-subtitle {
  color: var(--lx-muted) !important;
  font-size: 12px !important;
  line-height: 1.75;
}

body.hm-luxe .s-product-card-content-sub {
  margin-block: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

body.hm-luxe .s-product-card-price,
body.hm-luxe .s-product-card-sale-price h4,
body.hm-luxe .s-product-card-starting-price h4 {
  color: var(--lx-wine) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

body.hm-luxe .s-product-card-sale-price > span {
  color: var(--lx-muted);
  font-size: 11px;
}

body.hm-luxe .s-product-card-content-footer {
  margin-top: auto;
  padding-top: 5px;
}

body.hm-luxe .s-product-card-promotion-title {
  background: var(--lx-ink) !important;
  color: #FFFFFF !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  padding: 5px 9px !important;
  max-width: calc(100% - 58px);
}

body.hm-luxe .s-product-card-wishlist-btn .s-button-element {
  width: 34px;
  height: 34px;
  border: 1px solid var(--lx-line);
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--lx-muted);
}

body.hm-luxe salla-add-product-button
.s-button-element:not(:disabled):not([aria-disabled=true]) {
  background: var(--lx-wine) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--lx-wine) !important;
  min-height: 44px !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

body.hm-luxe .s-button-element:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* المميزات */
body.hm-luxe .s-block--features > .grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 12px !important;
}

body.hm-luxe .s-block--features__item {
  display: grid !important;
  grid-template-columns: 42px minmax(0,1fr) !important;
  grid-column: auto !important;
  gap: 0 12px;
  align-content: center;
  min-height: 94px !important;
  height: auto !important;
  background: #FFFFFF !important;
  border: 1px solid var(--lx-line) !important;
  border-radius: 12px !important;
  padding: 16px !important;
  text-align: start !important;
  box-shadow: none !important;
}

body.hm-luxe .feature-icon {
  display: grid !important;
  place-items: center;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #F5ECEE !important;
  color: var(--lx-wine) !important;
  border-radius: 10px !important;
}

body.hm-luxe .feature-icon svg {
  width: 22px !important;
  height: 22px !important;
  fill: none !important;
  stroke: currentColor !important;
}

body.hm-luxe .feature-icon svg * {
  fill: none !important;
  stroke: currentColor !important;
}

body.hm-luxe .s-block--features__item h2 {
  grid-column: 2;
  margin: 0 0 3px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.7 !important;
  color: var(--lx-ink) !important;
}

body.hm-luxe .s-block--features__item p {
  grid-column: 2;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.85 !important;
  color: var(--lx-muted) !important;
}

/* التقييمات */
body.hm-luxe .s-reviews-testimonial__inner {
  background: #FFFFFF;
  border: 1px solid var(--lx-line);
  border-radius: 14px;
  box-shadow: none;
}

body.hm-luxe .s-reviews-testimonial__text p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--lx-muted);
}

body.hm-luxe .s-reviews-testimonial__info h2 {
  font-size: 13px !important;
  color: var(--lx-ink);
}

/* القسم والمنتج */
body.hm-luxe .breadcrumbs,
body.hm-luxe .s-breadcrumb-item a {
  font-size: 12px;
  color: var(--lx-muted);
}

body.hm-luxe .cat-filter {
  background: #FFFFFF;
  border: 1px solid var(--lx-line);
  border-radius: 12px;
}

body.hm-luxe.product-single .main-content > h1 {
  font-size: 26px !important;
  line-height: 1.65;
  color: var(--lx-ink);
}

body.hm-luxe.product-single .product-entry__sub-title {
  color: var(--lx-muted);
  font-size: 13px;
}

body.hm-luxe.product-single .details-slider,
body.hm-luxe.product-single .product-form,
body.hm-luxe.product-single .product__description {
  background: #FFFFFF;
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  box-shadow: none;
}

body.hm-luxe.product-single .product-form,
body.hm-luxe.product-single .product__description {
  padding: 20px !important;
  line-height: 1.95;
}

body.hm-luxe .form-label {
  font-size: 13px;
  color: var(--lx-ink);
  font-weight: 600;
}

body.hm-luxe :where(
  .form-input,
  .form-select,
  .s-form-control,
  .s-product-options-wrapper select,
  .s-product-options-wrapper input[type=text],
  .s-product-options-wrapper textarea
) {
  border: 1px solid var(--lx-line);
  border-radius: 10px;
  min-height: 44px;
  background: #FFFFFF;
  color: var(--lx-ink);
  font-size: 16px;
}

body.hm-luxe .s-quantity-input-container {
  border: 1px solid var(--lx-line);
  border-radius: 10px;
  overflow: hidden;
}

body.hm-luxe .s-quantity-input-button {
  background: var(--lx-paper);
  color: var(--lx-ink);
  min-width: 40px;
}

body.hm-luxe .sticky-product-bar {
  background: #FFFFFF;
  border-top: 1px solid var(--lx-line);
  box-shadow: 0 -5px 20px rgba(25,23,27,.03);
  padding-bottom: max(12px,env(safe-area-inset-bottom));
}

body.hm-luxe .sticky-product-bar__price {
  color: var(--lx-wine);
}

/* السلة */
body.hm-luxe.cart .cart-item,
body.hm-luxe.cart .sidebar,
body.hm-luxe.cart .no-content-placeholder {
  background: #FFFFFF;
  border: 1px solid var(--lx-line);
  border-radius: 14px;
  box-shadow: none;
}

body.hm-luxe.cart .cart-item,
body.hm-luxe.cart .sidebar {
  padding: 18px;
}

body.hm-luxe.cart .cart-submit-wrap {
  background: #FFFFFF;
  border-color: var(--lx-line);
}

body.hm-luxe.cart .cart-submit-wrap .s-button-primary,
body.hm-luxe.cart .no-content-placeholder a {
  background: var(--lx-wine) !important;
  color: #FFFFFF !important;
  border-color: var(--lx-wine) !important;
  border-radius: 10px;
}

/* الفوتر: تمركز كامل */
body.hm-luxe .store-footer {
  background: var(--lx-ink) !important;
  color: #EDE5DD !important;
  text-align: center !important;
  border-top: 3px solid var(--lx-wine) !important;
  margin-top: 44px !important;
}

body.hm-luxe .store-footer__inner {
  background: transparent !important;
  padding-block: 34px !important;
}

body.hm-luxe .store-footer__inner > .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 26px !important;
}

body.hm-luxe .store-footer__inner > .container > * {
  width: 100%;
  max-width: 740px;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  text-align: center !important;
}

body.hm-luxe .store-footer .max-w-sm {
  max-width: 470px !important;
  margin-inline: auto !important;
}

body.hm-luxe .store-footer :where(h3,p,a,blockquote) {
  text-align: center !important;
}

body.hm-luxe .store-footer h3,
body.hm-luxe .store-footer .s-contacts-title {
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin-bottom: 12px;
}

body.hm-luxe .store-footer :where(p,blockquote) {
  font-size: 13px !important;
  line-height: 1.95 !important;
  color: #C9BDB8 !important;
}

body.hm-luxe .store-footer a {
  font-size: 13px;
  color: #EDE5DD !important;
}

body.hm-luxe .store-footer__inner > .container > div > a,
body.hm-luxe .store-footer__inner > .container > div > .flex {
  justify-content: center !important;
}

body.hm-luxe .store-footer .s-menu-footer-list {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: