@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo/Cairo-Arabic-Variable.woff2") format("woff2-variations"),
       url("../fonts/cairo/Cairo-Arabic-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

* {
  touch-action: manipulation;
}

body,
html {
  font-family: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  margin: 0 auto;
}
.header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  background: transparent;
}
.back-button {
  position: absolute;
  top: 7%;
  left: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
.logo {
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  z-index: 1001;
  background: transparent;
}
.logo img {
  height: 125px;
  width: 125px;
}
.item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.item a {
  text-decoration: none;
  font-weight: 600;
  color: #000;
}
.item p {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.category-tabs button {
  flex: 1;
  border: 1px solid #000;
  color: #000;
  background: #fff;
  padding: 8px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}
.category-tabs button.active {
  background: #000;
  color: #fff;
}
.category-menu {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  bottom: 80px !important;
  inset-inline-start: 22px;
  width: 280px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 999;
}
.category-menu h5 {
  font-weight: 700;
  margin-bottom: 10px;
}
.category-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-menu li {
  padding: 5px 8px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s;
}
.category-menu li.active {
  background: #000;
  color: #fff;
}
/* .category-menu li:hover{
    background: #000;
    color: #fff;
} */
.menu-button {
  background: #000;
  color: #fff;
  position: fixed !important;
  bottom: 20px !important;
  left: auto !important;
  right: 20px !important;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-button img {
  width: 22px;
  height: 22px;
}
.menu-button img.xmark {
  display: none;
}

/* Keep static pages aligned with header width */
.page-hero-banner {
  padding-left: 50px !important;
  padding-right: 50px !important;
}

.page-hero-banner > .container,
.page-content-wrapper > .container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 991px) {
  .page-hero-banner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

.border-dark-top {
  border-top: 1px solid #000 !important;
}
.footer-copyright {
  letter-spacing: 1px;
  padding: 20px 0;
  text-align: right;
}

.product-detail-img {
  width: 100%;
  height: auto;
}

.product-detail-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #212529;
}
.nav-link {
  color: #212529;
}
.nav-link:focus,
.nav-link:hover {
  color: #212529;
}
.jq-toast-single {
  border-radius: 5px;
}

.swal2-popup .swal2-styled.swal2-confirm {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  box-shadow: none !important;
}
.swal2-popup .swal2-styled.swal2-confirm:hover {
  background-color: #333 !important;
  border-color: #333 !important;
}
.swal2-popup .swal2-styled.swal2-cancel {
  background-color: #fff !important;
  border: 1px solid #000 !important;
  color: #000 !important;
  box-shadow: none !important;
}
.swal2-popup .swal2-styled.swal2-cancel:hover {
  background-color: #f5f5f5 !important;
}
.swal2-popup .swal2-styled:focus {
  outline: none !important;
  box-shadow: none !important;
}
.item a img {
  padding: 15px;
  transition: transform 0.5s ease-in-out; /* smooth zoom */
}
.item a:hover img {
  transform: scale(1.2); /* zoom in effect */
}
.item a p {
  padding: 15px;
}

@media (max-width: 576px) {
  .logo img {
    height: 85px;
    width: 85px;
  }
  .back-button {
    position: absolute;
    top: 5.5%;
    left: 10px;
    font-size: 16px;
  }
}

input[type="email"] {
  direction: rtl;
  text-align: right;
}

input[type="tel"] {
  direction: rtl;
  text-align: right;
}

.iti {
  direction: ltr;
}

/* Header + footer parity with EN styles */
.notification-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

.main-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 15px 50px;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.header-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-left {
  flex: 0 0 auto;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link-item {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-link-item:hover {
  color: #000;
}

.nav-link-item.active {
  font-weight: 700;
  color: #000;
}

.icon-btn {
  color: #333;
  font-size: 20px;
  position: relative;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.icon-badge {
  position: absolute;
  top: -8px;
  inset-inline-end: -10px;
  background: #000;
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn {
  border: 1px solid #ccc;
  background: #fff;
  padding: 5px 20px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  color: #333;
  min-width: 80px;
}

/* Search RTL */
.header-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.search-toggle-btn:hover {
  color: #000;
}

.search-expandable {
  position: absolute;
  top: 50%;
  left: 0;
  right: auto;
  transform: translateY(-50%);
  width: 0;
  opacity: 0;
  overflow: visible;
  transition:
    width 0.3s ease,
    opacity 0.3s ease;
  pointer-events: none;
  z-index: 1002;
}

.search-expandable.active {
  width: 320px;
  opacity: 1;
  pointer-events: auto;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
  border: none;
  outline: none;
  font-size: 14px;
  flex: 1;
  background: transparent;
  min-width: 0;
  text-align: right;
  direction: rtl;
}

.search-close-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-close-btn:hover {
  color: #333;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1003;
}

.search-results-dropdown.show {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
  direction: rtl;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f9f9f9;
  color: #000;
}

.search-result-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 12px;
  color: #888;
  margin: 2px 0 0;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.search-loading {
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 14px;
}

.main-header .logo {
  top: auto;
  left: auto;
  width: auto;
  display: block;
  justify-content: initial;
  align-items: initial;
  padding: 0;
  z-index: auto;
  background: transparent;
}

.main-header .logo img {
  height: 50px;
  width: auto;
}

.footer-main {
  /* border-top: 1px solid #ddd; */
  background-color: #fff;
  margin-top: 50px;
}

.footer-inner-container {
  padding: 40px 50px 0;
  max-width: 100%;
}

.footer-column {
  margin-bottom: 30px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: underline;
  color: #444;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #000;
  text-decoration: underline;
}

.footer-info-item {
  margin-bottom: 25px;
}

.footer-info-item p {
  margin: 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.footer-info-item .info-label {
  display: block;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
  font-size: 14px;
}

.footer-map-container {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  height: 170px;
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 30px;
  position: relative;
}

.footer-social-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 69px;
}

.social-label {
  font-weight: 700;
  font-size: 14px;
  color: #000;
}

.social-icons-list {
  display: flex;
  gap: 15px;
}

.social-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-copyright-text {
  font-size: 14px;
  color: #666;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer-cart-button {
  width: 60px;
  height: 60px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: auto;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10005;
  transition: transform 0.2s;
}

.footer-cart-button:hover {
  transform: scale(1.1);
  color: #fff;
}

.footer-cart-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  right: auto;
  background: #e91e63;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #000;
}

@media (max-width: 991px) {
  .main-header {
    padding: 10px 20px;
  }

  .header-right-group {
    gap: 15px;
  }

  .header-icons {
    gap: 12px;
  }

  .main-header .logo img {
    height: 40px;
    width: auto;
  }

  .lang-btn {
    padding: 4px 12px;
    font-size: 13px;
    min-width: 60px;
  }

  .search-expandable.active {
    width: 220px;
  }

  .search-toggle-btn {
    font-size: 16px;
  }

  .footer-inner-container {
    padding: 40px 20px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    position: static;
  }

  .footer-copyright-text {
    position: static;
    transform: none;
  }

  .footer-social-section {
    margin-right: 0;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* ============================================================
   DN 2026 modernization layer — design tokens + components
   Shared between custom.css and custom_rtl.css (logical props).
   ============================================================ */
:root {
  /* black & white only — no hues */
  --dn-ink: #111111;
  --dn-ink-soft: #666666;
  --dn-paper: #ffffff;
  --dn-cream: #f5f5f5;
  --dn-surface: #ffffff;
  --dn-line: #e2e2e2;
  --dn-gold: #111111;
  --dn-gold-deep: #000000;
  --dn-terracotta: #111111;
  --dn-whatsapp: #111111;
  --dn-radius: 14px;
  --dn-radius-sm: 9px;
  --dn-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --dn-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --dn-font-display: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: var(--dn-paper);
  color: var(--dn-ink);
}

/* --- notification bar --- */
.notification-bar {
  background: var(--dn-ink);
  letter-spacing: 0.02em;
}
.notification-bar strong { color: var(--dn-cream); }

/* --- header refresh --- */
.main-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--dn-line);
}
/* --- header control cluster (search / account / language) --- */
.header-right-group { display: flex; align-items: center; gap: 4px; }
.header-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--dn-ink);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background .18s ease, border-color .18s ease;
}
.header-ctl:hover { background: var(--dn-cream); color: var(--dn-ink); }
.header-ctl svg { width: 19px; height: 19px; display: block; }
.header-ctl--icon { width: 40px; padding: 0; }
.header-ctl--pill { border-color: var(--dn-line); }
.header-ctl--pill:hover { border-color: var(--dn-ink); background: transparent; }
.header-ctl--solid { background: var(--dn-ink); color: #fff; border-color: var(--dn-ink); font-weight: 600; }
.header-ctl--solid:hover { background: #000; color: #fff; border-color: #000; }
.header-ctl--solid svg { color: #fff; }
@media (max-width: 575px) {
  .header-ctl { height: 38px; padding: 0 11px; font-size: 13px; }
  .header-ctl--icon { width: 38px; padding: 0; }
  .header-ctl--solid { padding: 0 14px; }
  .header-login-label { display: inline; }
}
.nav-link-item {
  color: var(--dn-ink-soft);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
}
.nav-link-item:hover { color: var(--dn-ink); }
.nav-link-item.active {
  color: var(--dn-ink);
  border-bottom-color: var(--dn-gold);
}
.header-nav .dropdown-menu {
  border: 1px solid var(--dn-line);
  border-radius: var(--dn-radius-sm);
  box-shadow: var(--dn-shadow-md);
  padding: 6px;
}
.header-nav .dropdown-item {
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--dn-ink-soft);
}
.header-nav .dropdown-item:hover {
  background: var(--dn-cream);
  color: var(--dn-ink);
}
.icon-btn { color: var(--dn-ink); }
.icon-badge {
  background: var(--dn-terracotta);
  border: none;
}
.lang-btn {
  border: 1px solid var(--dn-line);
  border-radius: var(--dn-radius-sm);
  color: var(--dn-ink-soft);
  background: var(--dn-surface);
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--dn-gold); color: var(--dn-ink); }

/* --- mobile offcanvas nav --- */
.dn-offcanvas .offcanvas-header { border-bottom: 1px solid var(--dn-line); }
.dn-offcanvas .nav-link-item {
  display: block;
  font-size: 17px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dn-line);
}
.dn-offcanvas .dn-offcanvas-cats { padding: 0; margin: 10px 0 0; list-style: none; }
.dn-offcanvas .dn-offcanvas-cats a {
  display: block;
  padding: 9px 0;
  color: var(--dn-ink-soft);
  text-decoration: none;
}
.dn-offcanvas .dn-offcanvas-cats a:hover { color: var(--dn-ink); }
.dn-mobile-toggle {
  background: none;
  border: none;
  color: var(--dn-ink);
  font-size: 22px;
  padding: 4px 8px;
  cursor: pointer;
}

/* --- hero --- */
.dn-hero {
  background:
    radial-gradient(1200px 400px at 85% -80px, rgba(163, 132, 84, 0.16), transparent 60%),
    var(--dn-cream);
  border-bottom: 1px solid var(--dn-line);
  padding: 56px 50px 52px;
  text-align: center;
}
.dn-hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dn-gold-deep);
  margin-bottom: 12px;
}
.dn-hero h1 {
  font-family: var(--dn-font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--dn-ink);
}
.dn-hero-sub {
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--dn-ink-soft);
}
.dn-hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.dn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dn-ink);
  color: #fff;
  border: 1px solid var(--dn-ink);
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.dn-btn:hover {
  background: var(--dn-gold-deep);
  border-color: var(--dn-gold-deep);
  color: #fff;
  transform: translateY(-1px);
}
.dn-btn-outline {
  background: transparent;
  color: var(--dn-ink);
}
.dn-btn-outline:hover {
  background: var(--dn-ink);
  color: #fff;
  transform: translateY(-1px);
}
@media (max-width: 767px) {
  .dn-hero { padding: 38px 20px 36px; }
  .product-detail-content { margin-top: 20px; }
}

/* --- section headings --- */
.dn-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 4px;
}
.dn-section-title {
  font-family: var(--dn-font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dn-ink);
  margin: 0;
}

/* --- category pills --- */
.dn-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 14px 0 18px;
  margin: 0;
  list-style: none;
}
.dn-pills::-webkit-scrollbar { display: none; }
.dn-pill {
  flex: 0 0 auto;
  border: 1px solid var(--dn-line);
  background: var(--dn-surface);
  color: var(--dn-ink-soft);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
}
.dn-pill:hover { border-color: var(--dn-gold); color: var(--dn-ink); }
.dn-pill.active {
  background: var(--dn-ink);
  border-color: var(--dn-ink);
  color: #fff;
}

/* --- product cards --- */
.home-product-card {
  position: relative;
  border-radius: var(--dn-radius);
  padding: 12px 16px 18px;
  transition: transform 0.2s ease;
}
/* keep text off the card edges (surface is inset 7px, so give text real breathing room) */
.home-product-title,
.home-product-price { padding-inline: 10px; }
/* card surface drawn inset so adjacent cards have a real gap (column gutter is
   swallowed by the card padding, so we inset the surface instead) */
.home-product-card::before {
  content: "";
  position: absolute;
  inset: 0 7px;
  z-index: 0;
  background: var(--dn-surface);
  border: 1px solid var(--dn-line);
  border-radius: var(--dn-radius);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-product-card > * { position: relative; z-index: 1; }
.home-product-card:hover { transform: translateY(-3px); }
.home-product-card:hover::before {
  box-shadow: var(--dn-shadow-md);
  border-color: var(--dn-gold);
}
/* neutralize legacy conflicting zoom */
.item img:hover { transform: none; }
.home-product-card .home-product-link img {
  border-radius: calc(var(--dn-radius) - 5px);
}
.home-product-title p { color: var(--dn-ink); }
.home-product-price {
  color: var(--dn-gold-deep);
  font-weight: 600 !important;
}
.home-add-to-cart-btn {
  background: var(--dn-ink) !important;
  color: #fff !important;
  border: 1px solid var(--dn-ink) !important;
  border-radius: 999px !important;
  padding: 7px 18px;
  font-size: 0.88rem !important;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}
.home-add-to-cart-btn:hover {
  background: var(--dn-gold-deep) !important;
  border-color: var(--dn-gold-deep) !important;
}
.home-add-to-cart-btn:disabled { opacity: 0.55; }

/* --- homepage grid layout (ported from custom.css; head.php loads this file instead of custom.css for Arabic) --- */
.homepage-products-wrapper {
  padding: 0 50px;
  width: 100%;
  margin-top: 20px;
}
@media (max-width: 991px) {
  .homepage-products-wrapper {
    padding: 40px 20px 0;
  }
}

/* --- grid row needs breathing room now cards have surfaces --- */
.homepage-products-wrapper .row.g-3 { row-gap: 1.25rem !important; }

/* --- floating cart + category buttons --- */
.footer-cart-button {
  background: var(--dn-ink);
  box-shadow: var(--dn-shadow-md);
}
.footer-cart-badge {
  background: var(--dn-terracotta);
  border: 2px solid var(--dn-surface);
}
.menu-button { background: var(--dn-ink) !important; }

/* --- category FAB menu panel --- */
.category-menu { border: 1px solid var(--dn-line); }
.category-menu li a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.category-menu li.active { background: var(--dn-ink); }
.category-tabs button {
  border: 1px solid var(--dn-ink);
  border-radius: var(--dn-radius-sm);
}
.category-tabs button.active { background: var(--dn-ink); }

/* --- footer --- */
.footer-main {
  background: var(--dn-cream);
  border-top: 1px solid var(--dn-line);
  margin-top: 60px;
}
/* --- footer redesign: even 4-column grid, contained, consistent spacing --- */
.footer-inner-container { max-width: 1160px; margin-inline: auto; padding: 54px 24px 26px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 44px 48px;
  align-items: start;
}
.footer-nav { display: contents; }
.footer-column { margin: 0; }
.footer-brand-blurb { margin: 14px 0 18px; max-width: 320px; }
.footer-top .info-label { display: block; margin-bottom: 16px; font-weight: 700; }
.footer-top .footer-links { list-style: none; margin: 0; padding: 0; }
.footer-top .footer-links li { margin-bottom: 11px; }
.footer-top .footer-links li:last-child { margin-bottom: 0; }
.footer-top .footer-info-item p { margin-bottom: 10px; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 40px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}
.footer-links a { color: var(--dn-ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--dn-ink); text-decoration: underline; }
.footer-info-item p { color: var(--dn-ink-soft); }
.footer-info-item .info-label { color: var(--dn-ink); }
.footer-brand-blurb {
  color: var(--dn-ink-soft);
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
  margin-top: 12px;
}
.dn-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dn-whatsapp);
  color: #fff !important;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  margin-top: 8px;
  transition: filter 0.2s;
}
.dn-whatsapp-btn:hover { filter: brightness(1.08); }
.footer-bottom { border-top: 1px solid var(--dn-line); }
.footer-copyright-text { color: var(--dn-ink-soft); }
.dn-footer-copyright { font-size: 13px; color: var(--dn-ink-soft); }

/* --- RTL-specific overrides for the modernization layer --- */
:root { --dn-font-display: "Cairo", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; }
.dn-hero {
  background:
    radial-gradient(1200px 400px at 15% -80px, rgba(163,132,84,0.16), transparent 60%),
    var(--dn-cream);
}
.dn-hero h1 { font-weight: 800; }

/* ============================================================
   Product-detail page (PDP) — black & white redesign
   ============================================================ */
.breadcrumb { font-size: 13px; margin-bottom: 0; }
.breadcrumb-item a { color: var(--dn-ink-soft); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--dn-ink); text-decoration: underline; }
.breadcrumb-item.active { color: var(--dn-ink); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--dn-line); }

.product-detail-img {
  background: var(--dn-surface);
  border: 1px solid var(--dn-line);
  border-radius: var(--dn-radius);
  padding: 22px;
  display: flex; align-items: center; justify-content: center;
}
.product-detail-img img { width: 100%; height: auto; object-fit: contain; max-height: 360px; }

.product-detail-content h1 {
  font-family: var(--dn-font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700; line-height: 1.2; margin: 0 0 14px; color: var(--dn-ink);
}
.product-detail-content h5 { font-size: 1rem; font-weight: 400; color: var(--dn-ink-soft); margin: 0 0 8px; }
.product-detail-content h5 b { color: var(--dn-ink); font-weight: 600; }

/* quantity stepper */
.item-qty-box {
  display: inline-flex; align-items: center;
  border: 1px solid var(--dn-line); border-radius: 999px; overflow: hidden; margin-top: 6px !important;
}
.item-qty-box .qty-minus-plus-btn {
  width: 46px; height: 46px; border: 0; border-radius: 0; background: var(--dn-surface); color: var(--dn-ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
}
.item-qty-box .qty-minus-plus-btn:hover { background: var(--dn-ink); color: #fff; }
.item-qty-box .quantity_input {
  width: 56px; border: 0 !important; height: 46px; font-weight: 700; font-size: 16px;
  background: transparent; cursor: default !important; margin: 0 !important;
}

/* tabs */
#pills-tab { gap: 8px; border-bottom: 1px solid var(--dn-line); padding-bottom: 14px; margin-bottom: 18px !important; }
#pills-tab .nav-link {
  border-radius: 999px; padding: 7px 18px; font-size: 14px; font-weight: 600;
  color: var(--dn-ink-soft); background: transparent; border: 1px solid var(--dn-line);
}
#pills-tab .nav-link:hover { color: var(--dn-ink); border-color: var(--dn-ink); }
#pills-tab .nav-link.active { background: var(--dn-ink) !important; color: #fff !important; border-color: var(--dn-ink); }
.tab-content h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; color: var(--dn-ink); }
.tab-content ul { padding-inline-start: 20px; }
.tab-content li { margin-bottom: 4px; }

/* nutrition cards */
.info-box {
  background: var(--dn-surface); border: 1px solid var(--dn-line); border-radius: var(--dn-radius-sm);
  padding: 14px; margin-bottom: 14px; text-align: center; box-shadow: none;
}
.info-box h4 { font-size: 12px; font-weight: 600; color: var(--dn-ink-soft); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.info-box p { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--dn-ink); }

/* allergen alert -> mono */
#allergens .alert-warning {
  background: var(--dn-cream); border: 1px solid var(--dn-line); color: var(--dn-ink);
  border-radius: var(--dn-radius-sm); font-weight: 600;
}

/* related products sidebar */
.pdp-related h2 { font-family: var(--dn-font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; color: var(--dn-ink); }
.pdp-related .item { text-align: center; margin-bottom: 6px; }
.pdp-related .item a { text-decoration: none; }
.pdp-related .item img {
  border: 1px solid var(--dn-line); border-radius: var(--dn-radius-sm); background: var(--dn-surface);
  padding: 10px; transition: border-color .2s, box-shadow .2s;
}
.pdp-related .item:hover img { border-color: var(--dn-ink); box-shadow: var(--dn-shadow-sm); }
.pdp-related .item p { font-size: 13px; margin: 8px 0 0; color: var(--dn-ink); line-height: 1.35; }

/* --- contact card (policy pages) --- */
.dn-contact-card {
  font-style: normal; line-height: 2.1;
  background: var(--dn-surface); border: 1px solid var(--dn-line);
  border-radius: var(--dn-radius); padding: 18px 22px; max-width: 460px; margin-top: 6px;
}
.dn-contact-card strong { color: var(--dn-ink); font-size: 1.05rem; }
.dn-contact-card a { color: var(--dn-ink) !important; }
.dn-contact-card a:hover { text-decoration: underline !important; }
/* --- footer cart badge polish (clean white-on-black) --- */
.footer-cart-badge { background: #fff !important; color: var(--dn-ink) !important; border: 2px solid var(--dn-ink) !important; font-weight: 700; }

/* --- fix: compact quantity stepper (Bootstrap .d-flex was stretching it) --- */
.item-qty-box { width: fit-content !important; }
/* --- fix: footer bottom bar spacing (copyright was absolute-centered, overlapping icons) --- */
.footer-bottom {
  justify-content: space-between !important;
  gap: 16px 32px; flex-wrap: wrap; padding-top: 24px;
}
.footer-social-section { margin: 0 !important; }
.footer-copyright-text {
  position: static !important; transform: none !important; left: auto !important; margin: 0;
}

/* ============================================================
   App download — store badges, footer block, homepage strip
   Badge artwork is Apple/Google official and must stay unmodified.
   The Play badge PNG ships 1/8-of-height clear space baked in, so it
   renders taller than the Apple SVG and pulls that padding back with
   negative margins to keep both badges optically the same height.
   ============================================================ */
.dn-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dn-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dn-badge:hover { opacity: 0.82; transform: translateY(-1px); }
.dn-badge:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* max-width:none is load-bearing: the Play badge below carries negative
   horizontal margins to cancel its baked-in clear space, which shrinks the
   inline-flex anchor to the image's margin box. A global img{max-width:100%}
   then clamps the image to that shrunken parent and squashes it ~10%. */
.dn-badge img { display: block; height: 44px; width: auto; max-width: none; }
/* Clear-space compensation belongs on the ANCHOR, not the image: on the image
   it pushed the artwork outside its own tap target (visual 142x55, tappable
   only 128x44), so the badge edges did not respond to taps. */
.dn-badge--play     { margin: -5.5px -7px; }
.dn-badge--play img { height: 55px; }

/* --- footer: "Get the app" under the brand blurb --- */
.footer-app { margin-top: 24px; }
.footer-top .footer-app .info-label { margin-bottom: 10px; }

/* --- homepage: slim dark strip directly under the sticky header --- */
.dn-app-strip {
  background: var(--dn-ink);
  color: #fff;
}
.dn-app-strip-inner {
  max-width: 1160px;
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
}
.dn-app-strip-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.dn-app-strip-icon { font-size: 30px; line-height: 1; opacity: 0.9; }
.dn-app-strip-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.dn-app-strip-sub {
  margin: 3px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 700px) {
  .dn-app-strip-inner {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
    gap: 16px;
  }
  .dn-app-strip-copy { flex-direction: column; gap: 10px; }
  .dn-app-strip-icon { font-size: 26px; }
  .dn-app-strip .dn-badges { justify-content: center; }
}

/* --- notification bar: now an App Store link --- */
.notification-bar-link {
  color: inherit;
  text-decoration: none;
  padding: 2px 4px;
}
/* NOT inline-flex: a flex gap would also space out the text nodes around <strong>. */
.notification-bar-link i { margin-inline-end: 8px; }
.notification-bar-link:hover { color: inherit; text-decoration: underline; }
.notification-bar-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
