/* Add custom CSS styles below */ 
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --aril-design-version: 3;
  --aril-font: 'IBM Plex Sans Arabic', sans-serif;
  --font-main: 'IBM Plex Sans Arabic', sans-serif;
  --aril-ivory: #f8efe3;
  --aril-paper: #fffcf7;
  --aril-brown: #422b1b;
  --aril-muted: #786759;
  --aril-line: #ddcebb;
  --color-primary: #422b1b;
  --color-primary-dark: #2c1c12;
  --color-primary-light: #80674f;
}

/* الخط */
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.form-label,
.s-button-text,
.s-product-card-content-title,
.aril-fit,
.aril-fit a {
  font-family: var(--aril-font) !important;
}

/* الهوية العامة */
body {
  background: var(--aril-paper);
  color: var(--aril-brown);
}

.store-header,
.main-nav-container {
  background: var(--aril-paper);
}

.top-navbar {
  background: var(--aril-ivory);
  border-bottom: 1px solid var(--aril-line);
}

.s-block__title h2 {
  color: var(--aril-brown);
  font-weight: 500;
}

/* عرض الشعار */
.navbar-brand {
  display: block;
  width: 180px;
  height: 70px;
  overflow: hidden;
  flex-shrink: 0;
}

.navbar-brand img {
  width: 180px !important;
  height: 180px !important;
  max-height: none !important;
  max-width: none !important;
  object-fit: contain;
  transform: translateY(-56px);
}

/* بطاقات المنتجات */
.s-product-card-entry {
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  background: transparent;
}

.s-product-card-image {
  border-radius: 4px;
  overflow: hidden;
  background: var(--aril-ivory);
  aspect-ratio: 3 / 4;
}

.s-product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.s-product-card-content {
  padding: 16px 0;
}

.s-product-card-content-title a {
  color: var(--aril-brown);
  font-weight: 500;
  line-height: 1.9;
}

.s-product-card-price {
  color: var(--aril-brown);
}

/* الأزرار */
.s-button-primary {
  background: var(--aril-brown);
  border-color: var(--aril-brown);
  color: #fffaf3;
  border-radius: 4px;
}

.s-button-outline {
  border-color: var(--aril-line);
  color: var(--aril-brown);
}

/* صفحة المنتج */
.container--product-details [data-testid="store-product-title"] {
  color: var(--aril-brown);
  font-weight: 500;
  line-height: 1.8;
}

.container--product-details .details-slider {
  border-radius: 4px;
  background: var(--aril-ivory);
}

.container--product-details .form-label {
  color: var(--aril-brown);
}

/* الفوتر */
.store-footer {
  background: var(--aril-ivory);
  color: var(--aril-brown);
  border-top: 1px solid var(--aril-line);
}

.store-footer__inner {
  background: transparent;
}

/* إخفاء البانر الافتراضي بعد تحميل الجديد */
body.index.aril-home-ready [data-testid="store-home-slider"] {
  display: none !important;
}

.aril-editorial[hidden],
.aril-editorial [hidden] {
  display: none !important;
}

/* البانر الرئيسي */
.aril-editorial {
  direction: rtl;
  display: grid;
  grid-template-columns: 43% 57%;
  max-width: 1360px;
  margin: 32px auto 64px;
  padding: 0 32px;
  color: var(--aril-brown);
  box-sizing: border-box;
}

.aril-editorial *,
.aril-collection-heading *,
.aril-home-fit * {
  box-sizing: border-box;
}

.aril-editorial__copy {
  align-self: center;
  padding: 40px 0 40px 45px;
}

.aril-editorial__label,
.aril-collection-heading small,
.aril-home-fit small {
  display: block;
  font: 11px Arial, sans-serif;
  letter-spacing: 3px;
  color: var(--aril-muted);
}

.aril-editorial__title {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 400;
  line-height: 1.55;
  margin: 24px 0 16px;
  color: var(--aril-brown);
}

.aril-editorial__title span {
  display: block;
}

.aril-editorial__copy p {
  font-size: 16px;
  line-height: 2;
  color: var(--aril-muted);
  max-width: 360px;
  margin: 0 0 28px;
}

.aril-editorial__link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 16px 26px;
  min-height: 54px;
  border-radius: 4px;
  background: var(--aril-brown);
  color: #fffaf3 !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
}

.aril-editorial__art {
  display: grid;
  direction: ltr;
  grid-template-columns: 31% 69%;
  align-items: end;
  padding-left: 12px;
  min-width: 0;
}

.aril-editorial__main {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 620px;
  object-fit: cover;
  background: var(--aril-ivory);
  border-radius: 3px;
}

.aril-editorial__mini {
  grid-column: 1;
  grid-row: 1;
  width: calc(100% + 32px);
  max-width: none;
  height: 310px;
  object-fit: cover;
  transform: translateY(-40px);
  border: 7px solid var(--aril-paper);
  z-index: 1;
  border-radius: 2px;
}

.aril-editorial__art.aril-art-single {
  grid-template-columns: 1fr;
}

.aril-art-single .aril-editorial__main {
  grid-column: 1;
}

/* عنوان المجموعة */
.aril-collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 0 0 30px;
}

.aril-collection-heading h2 {
  margin: 12px 0 0;
  font-size: 32px;
  line-height: 1.6;
  font-weight: 500;
}

.aril-collection-heading p {
  margin: 0;
  font-size: 13px;
  color: var(--aril-muted);
  line-height: 1.9;
}

#aril-collection {
  scroll-margin-top: 130px;
  margin-bottom: 64px;
}

/* توزيع المنتجات الفعلية */
body.index #aril-collection .s-products-list-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

body.index #aril-collection [data-aril-count="1"] .s-products-list-wrapper {
  grid-template-columns: minmax(0, 360px) !important;
  justify-content: center;
}

body.index #aril-collection [data-aril-count="2"] .s-products-list-wrapper {
  grid-template-columns: repeat(2, minmax(0, 360px)) !important;
  justify-content: center;
}

body.index #aril-collection .s-product-card-image {
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 3 / 4;
}

/* تعريف الخدمة في الرئيسية */
.aril-home-fit {
  direction: rtl;
  max-width: 1280px;
  margin: 48px auto 64px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  background: var(--aril-ivory);
  border: 1px solid var(--aril-line);
  border-radius: 6px;
}

.aril-home-fit h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.6;
  margin: 14px 0;
}

.aril-home-fit p {
  font-size: 14px;
  line-height: 2;
  color: var(--aril-muted);
  margin: 0;
}

.aril-home-fit ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.aril-home-fit li {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.aril-home-fit li span:first-child {
  font: italic 30px Georgia, serif;
  color: #9d8263;
}

/* تقييمات الإعداد التجريبية فقط */
body.index .aril-demo-testimonials {
  display: none !important;
}

/* بطاقة تجربة المنتج */
.aril-fit {
  direction: rtl;
  text-align: right;
  padding: 24px;
  margin: 24px 0;
  background: var(--aril-ivory);
  border: 1px solid #c6ad8e;
  border-radius: 8px;
  color: var(--aril-brown);
}

.aril-fit__eyebrow {
  display: block;
  font: 11px Arial, sans-serif;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.aril-fit__heading {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0 0 8px;
}

.aril-fit__text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--aril-muted);
  margin: 0 0 18px;
}

.aril-fit__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  min-height: 52px;
  border-radius: 5px;
  background: var(--aril-brown);
  color: #fffaf3 !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.aril-fit__action:hover {
  background: #2c1c12;
}

.aril-fit__note {
  display: block;
  color: var(--aril-muted);
  font-size: 12px;
  line-height: 1.9;
  margin-top: 12px;
}

.aril-fit__action:focus-visible,
.aril-editorial__link:focus-visible {
  outline: 3px solid #a47a46;
  outline-offset: 4px;
}

@media (hover: hover) {
  .s-product-card-entry:hover .s-product-card-image img {
    transform: scale(1.025);
  }
}

/* الجوال */
@media (max-width: 800px) {
  .aril-editorial {
    grid-template-columns: 1fr;
    padding: 0 20px;
    margin: 20px auto 36px;
  }

  .aril-editorial__art {
    grid-row: 1;
  }

  .aril-editorial__main {
    height: 460px;
  }

  .aril-editorial__mini {
    height: 245px;
    width: calc(100% + 25px);
    border-width: 5px;
    transform: translateY(-25px);
  }

  .aril-editorial__copy {
    padding: 30px 0 0;
  }

  .aril-editorial__title {
    font-size: 40px;
    line-height: 1.5;
    margin: 17px 0 12px;
  }

  .aril-editorial__copy p {
    font-size: 15px;
    max-width: none;
  }

  .aril-collection-heading {
    align-items: start;
    gap: 15px;
    margin-bottom: 22px;
  }

  .aril-collection-heading h2 {
    font-size: 27px;
  }

  .aril-collection-heading p {
    font-size: 12px;
    max-width: 130px;
  }

  body.index #aril-collection .s-products-list-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  .aril-home-fit {
    margin: 32px 20px;
    padding: 26px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .aril-home-fit h2 {
    font-size: 28px;
  }

  .navbar-brand {
    width: 140px;
    height: 54px;
  }

  .navbar-brand img {
    width: 140px !important;
    height: 140px !important;
    transform: translateY(-44px);
  }
}

@media (max-width: 640px) {
  .aril-fit {
    padding: 18px;
    margin: 20px 0;
  }

  .aril-fit__heading {
    font-size: 20px;
  }

  .aril-fit__action {
    font-size: 15px;
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .aril-editorial__main {
    height: 390px;
  }

  .aril-editorial__mini {
    height: 210px;
  }

  .aril-editorial__title {
    font-size: 35px;
  }

  .aril-editorial__link {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s-product-card-image img {
    transition: none;
  }
}