/* ألوان نَوَاه */
      :root {
        --nawah-green: #2e492e;
        --nawah-cream: #f7f2e8;
        --nawah-paper: #fffcf6;
        --nawah-gold: #cbb17b;
        --nawah-line: #ded3bd;
        --background: #f7f2e8 !important;
        --foreground: #2e492e !important;
        --primary: #2e492e !important;
        --primary-foreground: #fffcf6 !important;
        --secondary: #eee7d9 !important;
        --secondary-foreground: #2e492e !important;
        --muted: #62675b !important;
        --border: #ded3bd !important;
        --border-light: #e7decd !important;
        --ring: #2e492e !important;
      }

      body {
        background: var(--nawah-cream);
        color: var(--nawah-green);
        font-family: "ARA HAMAH ALFIDAA", var(--font-family, sans-serif);
      }

      /* رأس الصفحة والشعار */
      body > div.sticky:has(> header.bg-secondary) {
        position: relative !important;
        background: transparent !important;
      }

      header.bg-secondary {
        --foreground: #2e492e !important;
        background: transparent !important;
        color: var(--nawah-green) !important;
        border: 0 !important;
        box-shadow: none !important;
        padding-block: 14px !important;
      }

      header.bg-secondary nav > div > a[href="/"] {
        display: block;
        flex-shrink: 0;
        padding: 0 !important;
        background: transparent !important;
      }

      header.bg-secondary nav > div > a[href="/"] > img {
        position: static !important;
        translate: none !important;
        transform: none !important;
        width: auto !important;
        height: 70px !important;
        max-height: 70px !important;
        max-width: 100%;
        object-fit: contain;
        background: transparent !important;
      }

      header.bg-secondary nav > div > ul > li > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 9px;
        color: var(--nawah-green);
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
      }

      header.bg-secondary nav > div > ul > li > a:hover {
        background: #eee7d9;
      }

      /* شعار الجوال في الوسط والقائمة تحته */
      @media (max-width: 1023px) {
        header.bg-secondary {
          padding: 12px 16px 4px !important;
        }

        header.bg-secondary > nav {
          display: grid !important;
          grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
          align-items: center;
          gap: 8px 6px;
        }

        header.bg-secondary > nav > div.flex {
          display: contents !important;
        }

        header.bg-secondary > nav > el-dialog > button {
          grid-area: 1 / 1;
          justify-self: start;
        }

        header.bg-secondary nav > div > a[href="/"] {
          grid-area: 1 / 2;
          justify-self: center;
          margin-top: 8px;
        }

        header.bg-secondary > nav > ul {
          grid-area: 1 / 3;
          justify-self: end;
        }

        header.bg-secondary nav > div > ul {
          display: flex !important;
          grid-column: 1 / -1;
          grid-row: 2;
          width: 100%;
          min-width: 0;
          gap: 6px;
          overflow-x: auto;
          overscroll-behavior-x: contain;
          padding-block: 4px 8px;
          scrollbar-width: thin;
          scrollbar-color: var(--nawah-gold) transparent;
        }

        header.bg-secondary nav > div > ul > li {
          flex-shrink: 0;
        }

        header.bg-secondary nav > div > ul > li > a {
          border: 1px solid var(--nawah-line);
          font-size: 14px;
        }
      }

      @media (max-width: 767px) {
        header.bg-secondary nav > div > a[href="/"] > img {
          height: 64px !important;
          max-height: 64px !important;
        }
      }

      /* البانر وأزرار أقسام الزيت */
      body[data-template="home"] #main > .section-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
        align-items: stretch;
        width: min(calc(100% - 32px), 1120px);
        min-height: 0 !important;
        margin: clamp(12px, 2vw, 28px) auto 0;
        padding: 0;
        overflow: hidden;
        background: #ece7d9;
        border: 1px solid var(--nawah-line);
        border-radius: 16px;
      }

      body[data-template="home"] #main > .section-hero > div:has(> picture) {
        position: relative;
        inset: auto;
        grid-area: 1 / 2;
        display: grid;
        place-items: center;
        background: #293d25;
      }

      body[data-template="home"] #main > .section-hero > div:has(> picture) picture {
        display: block;
        width: 100%;
      }

      body[data-template="home"] #main > .section-hero > div:has(> picture) img {
        display: block;
        width: 100%;
        height: clamp(320px, 36vw, 452px);
        object-fit: contain !important;
        object-position: center !important;
      }

      body[data-template="home"] #main > .section-hero > div:has(> picture) > .bg-primary {
        display: none;
      }

      body[data-template="home"] #main > .section-hero > .theme-container {
        grid-area: 1 / 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
        padding: clamp(20px, 5vw, 72px);
      }

      #main .nw-intro h2 {
        margin: 0;
        color: var(--nawah-green);
        font-size: clamp(28px, 4.6vw, 64px);
        line-height: 1.3;
      }

      .nw-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .nw-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 7px 16px;
        border: 1px solid #79836e;
        border-radius: 8px;
        color: var(--nawah-green);
        font-weight: 600;
        text-decoration: none;
      }

      .nw-links a:first-child,
      .nw-links a:hover {
        background: var(--nawah-green);
        border-color: var(--nawah-green);
        color: var(--nawah-paper);
      }

      @media (max-width: 700px) {
        body[data-template="home"] #main > .section-hero {
          width: calc(100% - 24px);
          grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
          border-radius: 12px;
        }

        body[data-template="home"] #main > .section-hero > .theme-container {
          padding: 16px 12px;
          gap: 14px;
        }

        #main .nw-intro h2 {
          font-size: clamp(23px, 6vw, 32px);
        }

        body[data-template="home"] #main > .section-hero > div:has(> picture) img {
          height: auto;
          aspect-ratio: 600 / 1013;
        }

        .nw-links {
          flex-direction: column;
          align-items: stretch;
        }

        .nw-links a {
          padding: 6px 10px;
          font-size: 14px;
        }
      }

      /* منتجات الرئيسية */
      body[data-template="home"] #main .section-products {
        padding-block: clamp(30px, 5vw, 64px) !important;
      }

      #main .section-products > .theme-container {
        max-width: 1120px;
        margin-inline: auto;
      }

      #main .section-products h2 {
        margin-bottom: 18px;
        color: var(--nawah-green);
        font-size: clamp(24px, 3vw, 36px);
        line-height: 1.45;
      }

      body[data-template="home"] #main .section-products [data-grid-root] {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: clamp(12px, 2vw, 24px) !important;
      }

      body[data-template="home"] #main .section-products [data-product-card] {
        display: flex !important;
        flex-direction: column;
        min-width: 0;
        gap: 12px !important;
        padding: clamp(8px, 1.2vw, 14px);
        background: var(--nawah-paper);
        border: 1px solid var(--nawah-line);
        border-radius: 14px;
        box-shadow: none;
      }

      body[data-template="home"] #main .section-products [data-product-card] > a:first-child {
        display: block;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        overflow: hidden;
        background: var(--nawah-cream);
        border-radius: 9px;
      }

      body[data-template="home"] #main .section-products [data-product-card] > a:first-child > img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
      }

      body[data-template="home"] #main [data-product-card] > div {
        width: 100%;
        min-width: 0;
      }

      body[data-template="home"] #main [data-product-card] > div:last-child {
        margin-top: auto !important;
      }

      body[data-template="home"] #main [data-product-card] p.text-muted {
        display: none !important;
      }

      #main [data-product-card] h3 {
        font-size: clamp(15px, 1.5vw, 20px);
        line-height: 1.6;
      }

      #main [data-product-card] p.text-foreground,
      #main [data-product-price] {
        color: var(--nawah-green);
        font-weight: 700;
      }

      #main :is([data-add-to-cart], [data-add-to-cart-form]) {
        min-height: 46px;
        border: 1px solid var(--nawah-green);
        border-radius: 9px;
        background: var(--nawah-green);
        color: var(--nawah-paper);
      }

      body[data-template="home"] #main [data-product-card]
      :is([data-add-to-cart], [data-quantity-section]) {
        width: 100% !important;
      }

      #main [data-wishlist-btn] {
        min-width: 44px;
        min-height: 44px;
        background: var(--nawah-paper);
        color: var(--nawah-green);
      }

      @media (max-width: 767px) {
        body[data-template="home"] #main .section-products [data-grid-root] {
          grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
          gap: 10px !important;
        }
      }

      /* صفحة المنتج */
      #product-main-section {
        max-width: 1120px;
        margin-inline: auto;
        gap: clamp(20px, 4vw, 60px);
      }

      #product-main-section .product-gallery {
        overflow: hidden;
        background: var(--nawah-cream);
        border-radius: 14px;
      }

      #product-main-section .product-gallery__slide img {
        height: clamp(260px, 55vh, 580px);
        object-fit: contain;
      }

      #product-main-section .product-details-column h1 {
        font-size: clamp(24px, 3vw, 40px);
        line-height: 1.45;
      }

      @media (max-width: 380px) {
        #product-main-section [data-in-stock] {
          flex-wrap: wrap;
        }

        #product-main-section [data-add-to-cart-form] {
          flex-basis: 100%;
        }
      }

      /* الصفحات التعريفية والسياسات */
      body[data-template="pages"] #main h1 {
        margin-bottom: 24px;
        color: var(--nawah-green);
        font-size: clamp(26px, 4vw, 36px);
      }

      body[data-template="pages"] #main .prose {
        width: 100%;
        max-width: 780px !important;
        margin-inline: auto;
        padding: clamp(20px, 4vw, 44px);
        background: var(--nawah-paper);
        border: 1px solid var(--nawah-line);
        border-radius: 16px;
        color: var(--nawah-green);
        font-size: 17px;
        line-height: 2;
        text-align: start;
        overflow-wrap: anywhere;
      }

      body[data-template="pages"] #main .prose p {
        margin: 0 0 16px !important;
      }

      body[data-template="pages"] #main .prose :is(h2, h3) {
        margin-block: 24px 10px;
        line-height: 1.6;
      }

      body[data-template="pages"] #main .prose a {
        color: var(--nawah-green);
        text-decoration: underline;
        text-underline-offset: 4px;
      }

      body[data-template="pages"] #main .prose img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
      }

      /* أسفل المتجر */
      #footer {
        --foreground: #2e492e !important;
        padding-block: 36px !important;
        background: #eee7d9 !important;
        color: var(--nawah-green);
        border-top: 1px solid var(--nawah-line);
      }

      #footer > .theme-container > .grid {
        grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
        gap: 12px 32px;
      }

      #footer > .theme-container > .grid > div {
        min-width: 0;
      }

      #footer > .theme-container > .grid > div:first-child {
        grid-column: 1;
        grid-row: 1 / span 4;
      }

      #footer > .theme-container > .grid > div:not(:first-child):not(:last-child) {
        grid-column: 2;
      }

      #footer > .theme-container > .grid > div:last-child {
        grid-column: 3;
        grid-row: 1 / span 4;
      }

      #footer > .theme-container > .grid a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        overflow-wrap: anywhere;
      }

      #footer > .theme-container > .grid > div:first-child img {
        width: auto;
        height: 80px;
        max-width: 100%;
        object-fit: contain;
      }

      @media (max-width: 767px) {
        #footer > .theme-container > .grid {
          grid-template-columns: minmax(0, 1fr);
          gap: 8px;
        }

        #footer > .theme-container > .grid > div {
          grid-column: 1 !important;
          grid-row: auto !important;
        }

        #footer > .theme-container > .grid > div:last-child {
          margin-top: 12px;
          padding-top: 16px;
          border-top: 1px solid var(--nawah-line);
        }
      }

      :is(header.bg-secondary, #main, #footer) :is(a, button):focus-visible {
        outline: 2px solid var(--nawah-green);
        outline-offset: 4px;
      }
    
/* نَوَاه | تنسيق روابط الفوتر في ثيم نمو */
footer .theme-container > .grid:has(a[href="/pages/privacy-policy"]) {
  row-gap: 0 !important;
  align-content: start;
}

/* إلغاء الهامش فوق قوائم الروابط */
footer .theme-container > .grid > div > ul {
  margin-block: 0 !important;
  padding-block: 0 !important;
  list-style: none;
}

/* إلغاء الحشوة التي يضيفها الثيم حول كل رابط */
footer .theme-container > .grid > div > ul > li {
  margin-block: 0 !important;
  padding-block: 0 !important;
}

/* توحيد ارتفاع الروابط ومحاذاتها */
footer .theme-container > .grid > div > ul > li > a {
  display: flex !important;
  align-items: center;
  min-height: 36px !important;
  padding-block: 0 !important;
  line-height: 1.5;
}

/* إخفاء السطر الفاضي الموجود قبل «من نحن» */
footer .theme-container > .grid > div > ul > li:has(> a[href=""]) {
  display: none !important;
}

/* عنوان فوق أول مجموعة روابط */
footer .theme-container > .grid > div:has(> ul > li > a[href="/shipping-and-payment"])::before {
  content: "روابط مهمة";
  display: block;
  margin-block-end: 8px;
  color: #2E492E;
  font-size: 1rem;
  font-weight: 700;
}

/* على الجوال نترك فاصلًا بين النبذة والروابط ومعلومات التواصل */
@media (max-width: 767px) {
  footer .theme-container > .grid > div:has(> ul > li > a[href="/shipping-and-payment"]) {
    margin-block-start: 24px;
  }

  footer .theme-container > .grid > div:has(a[href^="mailto:"]) {
    margin-block-start: 24px;
  }

  footer .theme-container > .grid > div > ul > li > a {
    min-height: 44px !important;
  }
}
footer .theme-container > .grid > div > ul > li:has(> a[href="/pages/complaints-and-suggestions"]) {
  margin-block-start: 12px !important;
}
main nav.nw-links[aria-label="تسوّق حسب نوع الزيت"] > a {
  background-color: #2E492E !important;
  border-color: #2E492E !important;
  color: #FFFCF6 !important;
}
@media (max-width: 767px) {
  #nw-fahad-film button {
    max-width: 96%;
    padding-inline: 8px;
    line-height: 1.35;
  }
  #footer img.block[alt="Nawaah"] {
    aspect-ratio: 106 / 44;
    object-fit: contain;
  }
}