*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg-dark:    #0a0906;
      --bg-section: #0f0d09;
      --bg-card:    #131109;
      --gold:       #c9a84c;
      --gold-light: #e2c472;
      --gold-dim:   rgba(201,168,76,0.25);
      --border:     rgba(201,168,76,0.12);
      --white:      #f5f0e8;
      --cream-dim:  rgba(245,240,232,0.55);
      --navbar-h:   72px;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg-dark);
      color: var(--white);
      font-family: 'Cormorant Garamond', serif;
      font-size: 16px;
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
    }

    body.ar { font-family: 'Tajawal', sans-serif; }

    /* ─── NAVBAR ─── */
    #navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--navbar-h);
      z-index: 100;
      transition: background 0.4s, border-bottom 0.4s;
      border-bottom: 1px solid transparent;
    }
    #navbar.scrolled {
      background: rgba(10,9,6,0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .nav-inner {
      max-width: 1320px;
      margin: 0 auto;
      padding: 0 40px;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-logo img { height: 38px; display: block; }
    .nav-links {
      display: flex;
      list-style: none;
      gap: 36px;
    }
    .nav-links a {
      text-decoration: none;
      color: var(--cream-dim);
      font-size: 12px;
      letter-spacing: 2px;
      text-transform: uppercase;
      transition: color 0.2s;
    }
    .nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
    .nav-right { display: flex; align-items: center; gap: 16px; }
    .lang-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--cream-dim);
      padding: 6px 16px;
      font-size: 12px;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }
    .lang-btn:hover { border-color: var(--gold); color: var(--gold-light); }
    .hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
    }
    .hamburger span {
      display: block;
      width: 22px;
      height: 1px;
      background: var(--cream-dim);
      transition: all 0.3s;
    }
    #mobile-menu {
      display: none;
      position: fixed;
      top: var(--navbar-h);
      left: 0; right: 0;
      background: rgba(10,9,6,0.97);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      padding: 24px 40px;
      z-index: 99;
    }
    #mobile-menu.open { display: block; }
    #mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
    #mobile-menu a {
      text-decoration: none;
      color: var(--cream-dim);
      font-size: 13px;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    /* ─── PAGE HERO ─── */
    .page-hero {
      min-height: 280px;
      background: linear-gradient(to bottom, rgba(10,9,6,0) 0%, var(--bg-dark) 100%),
                  linear-gradient(135deg, #0a0906 0%, #1a1508 50%, #0a0906 100%);
      display: flex;
      align-items: flex-end;
      padding: 0 40px 48px;
      margin-top: var(--navbar-h);
      position: relative;
      overflow: hidden;
      border-bottom: 1px solid var(--border);
    }
    .page-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at 60% 50%, rgba(201,168,76,0.04) 0%, transparent 70%);
    }
    .page-hero-inner {
      max-width: 1320px;
      margin: 0 auto;
      width: 100%;
      position: relative;
    }
    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--cream-dim);
    }
    .breadcrumb a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
    .breadcrumb a:hover { color: var(--gold-light); }
    .breadcrumb span { color: var(--border); }
    .page-hero h1 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.8rem, 3.5vw, 2.8rem);
      font-weight: 600;
      color: var(--white);
      line-height: 1.2;
    }
    body.ar .page-hero h1 { font-family: 'Tajawal', sans-serif; }

    /* ─── MAIN CONTENT ─── */
    .product-wrapper {
      max-width: 1320px;
      margin: 0 auto;
      padding: 72px 40px;
    }

    /* ─── PRODUCT MAIN GRID ─── */
    .product-main {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
      align-items: start;
      margin-bottom: 80px;
    }

    /* ─── GALLERY ─── */
    .gallery-wrap { position: sticky; top: calc(var(--navbar-h) + 24px); }

    .main-image-frame {
      position: relative;
      background: var(--bg-card);
      border: 1px solid var(--border);
      overflow: hidden;
      margin-bottom: 16px;
    }
    .main-image-frame::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at center, rgba(201,168,76,0.03) 0%, transparent 70%);
      z-index: 1;
      pointer-events: none;
    }
    .main-img {
      width: 100%;
      height: 480px;
      object-fit: contain;
      display: block;
      transition: transform 0.5s ease;
      padding: 24px;
    }
    .main-image-frame:hover .main-img { transform: scale(1.03); }

    .corner-accent {
      position: absolute;
      width: 28px;
      height: 28px;
      border-color: var(--gold-dim);
      border-style: solid;
      pointer-events: none;
      z-index: 2;
    }
    .ca-tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
    .ca-tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
    .ca-bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
    .ca-br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

    .thumbnails {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .thumb {
      width: 72px;
      height: 72px;
      object-fit: contain;
      cursor: pointer;
      border: 1px solid var(--border);
      background: var(--bg-card);
      padding: 6px;
      transition: border-color 0.2s, transform 0.2s;
    }
    .thumb:hover, .thumb.active {
      border-color: var(--gold);
      transform: translateY(-2px);
    }

    /* ─── PRODUCT INFO ─── */
    .product-info-col {}

    .product-category-tag {
      font-size: 10px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gold);
      display: inline-block;
      margin-bottom: 14px;
      border: 1px solid var(--gold) !important;
      padding: 4px 14px;
    }

    .product-title {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.6rem, 2.8vw, 2.2rem);
      font-weight: 700;
      color: var(--white);
      line-height: 1.2;
      margin-bottom: 16px;
    }
    body.ar .product-title { font-family: 'Tajawal', sans-serif; }

    .gold-line {
      width: 48px;
      height: 1px;
      background: var(--gold);
      margin-bottom: 24px;
    }

    .product-desc-text {
      font-size: 15px;
      color: var(--cream-dim);
      line-height: 1.85;
      margin-bottom: 36px;
    }
    body.ar .product-desc-text { font-family: 'Tajawal', sans-serif; font-size: 15px; }

    /* Details Box */
    .details-box {
      border: 1px solid var(--border);
      background: var(--bg-card);
      padding: 28px;
      margin-bottom: 28px;
    }
    .details-box-title {
      font-size: 11px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
      padding-bottom: 14px;
      border-bottom: 1px solid var(--border);
    }
    .detail-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid rgba(201,168,76,0.06);
      gap: 16px;
    }
    .detail-row:last-child { border-bottom: none; padding-bottom: 0; }
    .detail-label {
      font-size: 12px;
      letter-spacing: 1px;
      color: var(--cream-dim);
      text-transform: uppercase;
      flex-shrink: 0;
    }
    body.ar .detail-label { font-family: 'Tajawal', sans-serif; letter-spacing: 0; font-size: 13px; }
    .detail-value {
      font-size: 14px;
      color: var(--white);
      display: flex;
      align-items: center;
      gap: 8px;
      text-align: right;
    }
    body.ar .detail-value { text-align: left; }
    .detail-check {
      width: 16px;
      height: 16px;
      border: 1px solid var(--gold);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .detail-check i { font-size: 8px; color: var(--gold); }

    /* ─── NUTRITIONAL SECTION ─── */
    .nutrition-section {
      border-top: 1px solid var(--border);
      padding-top: 80px;
      margin-bottom: 80px;
    }

    .section-label-sm {
      font-size: 10px;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 10px;
      display: block;
    }
    .section-h2 {
      font-family: 'Playfair Display', serif;
      font-size: clamp(1.4rem, 2.5vw, 2rem);
      font-weight: 600;
      color: var(--white);
      margin-bottom: 8px;
    }
    body.ar .section-h2 { font-family: 'Tajawal', sans-serif; }

    /* Weight bar */
    .weight-bar {
      display: flex;
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      margin-top: 40px;
      margin-bottom: 1px;
    }
    .weight-cell {
      flex: 1;
      background: rgba(201,168,76,0.08);
      padding: 24px 28px;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .weight-value {
      font-family: 'Playfair Display', serif;
      font-size: 1.4rem;
      color: var(--gold-light);
      font-weight: 600;
      line-height: 1;
    }
    body.ar .weight-value { font-family: 'Tajawal', sans-serif; }
    .weight-label {
      font-size: 10px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--cream-dim);
    }
    body.ar .weight-label { font-family: 'Tajawal', sans-serif; letter-spacing: 0; font-size: 11px; }

    .nutrition-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 1px;
      background: var(--border);
      border: 1px solid var(--border);
      border-top: none;
    }
    .nutr-cell {
      background: var(--bg-card);
      padding: 28px 20px;
      text-align: center;
      transition: background 0.2s;
    }
    .nutr-cell:hover { background: var(--bg-section); }
    .nutr-value {
      font-family: 'Playfair Display', serif;
      font-size: 1.7rem;
      color: var(--gold-light);
      font-weight: 600;
      line-height: 1;
      margin-bottom: 6px;
    }
    body.ar .nutr-value { font-family: 'Tajawal', sans-serif; }
    .nutr-label {
      font-size: 11px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--cream-dim);
    }
    body.ar .nutr-label { font-family: 'Tajawal', sans-serif; letter-spacing: 0; font-size: 12px; }

    /* ─── DESCRIPTION SECTION ─── */
    .desc-section {
      border-top: 1px solid var(--border);
      padding-top: 80px;
      margin-bottom: 80px;
    }
    .desc-content {
      margin-top: 40px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 40px 48px;
      position: relative;
    }
    .desc-content::before {
      content: '"';
      position: absolute;
      top: 20px;
      left: 40px;
      font-family: 'Playfair Display', serif;
      font-size: 80px;
      color: var(--gold-dim);
      line-height: 1;
      pointer-events: none;
    }
    body.ar .desc-content::before { left: auto; right: 40px; content: '"'; }
    .desc-content p {
      font-size: 15px;
      color: var(--cream-dim);
      line-height: 1.9;
      position: relative;
      z-index: 1;
    }
    body.ar .desc-content p { font-family: 'Tajawal', sans-serif; font-size: 15px; }

    /* ─── RELATED PRODUCTS ─── */
    .related-section {
      border-top: 1px solid var(--border);
      padding-top: 80px;
    }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 20px;
      margin-top: 40px;
    }
    .rel-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      overflow: hidden;
      cursor: pointer;
      transition: border-color 0.3s, transform 0.3s;
    }
    .rel-card:hover { border-color: var(--gold-dim); transform: translateY(-4px); }
    .rel-img {
      width: 100%;
      height: 180px;
      object-fit: contain;
      display: block;
      background: var(--bg-dark);
      padding: 16px;
      transition: transform 0.4s;
    }
    .rel-card:hover .rel-img { transform: scale(1.05); }
    .rel-info { padding: 16px 20px; }
    .rel-tag {
      font-size: 10px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 6px;
      display: block;
    }
    .rel-name {
      font-family: 'Playfair Display', serif;
      font-size: 1rem;
      color: var(--white);
      margin-bottom: 12px;
      line-height: 1.3;
    }
    body.ar .rel-name { font-family: 'Tajawal', sans-serif; }
    .rel-link {
      font-size: 10px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      text-decoration: none;
      transition: color 0.2s;
    }
    .rel-link:hover { color: var(--gold-light); }

    /* ─── LOADER ─── */
    .loader-wrap {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 60vh;
      gap: 24px;
    }
    .loader-ring {
      width: 48px;
      height: 48px;
      border: 1px solid var(--border);
      border-top-color: var(--gold);
      border-radius: 50%;
      animation: spin 0.9s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .loader-text {
      font-size: 11px;
      letter-spacing: 4px;
      text-transform: uppercase;
      color: var(--gold);
    }

    /* ─── FOOTER ─── */
    footer {
      background: var(--bg-section);
      border-top: 1px solid var(--border);
      padding: 60px 40px 32px;
    }
    .footer-inner { max-width: 1320px; margin: 0 auto; }
    .footer-top {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr 1fr;
      gap: 48px;
      padding-bottom: 48px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 32px;
    }
    .footer-brand img { height: 40px; margin-bottom: 20px; display: block; }
    .footer-brand p { font-size: 14px; color: var(--cream-dim); line-height: 1.8; max-width: 280px; }
    body.ar .footer-brand p { font-family: 'Tajawal', sans-serif; }
    .footer-col h4 {
      font-family: 'Playfair Display', serif;
      font-size: 13px;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
    }
    body.ar .footer-col h4 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .footer-col a { text-decoration: none; color: var(--cream-dim); font-size: 14px; transition: color 0.2s; }
    .footer-col a:hover { color: var(--gold-light); }
    body.ar .footer-col a { font-family: 'Tajawal', sans-serif; }
    .footer-social { display: flex; gap: 12px; margin-top: 20px; }
    .social-btn {
      width: 36px; height: 36px;
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      color: var(--cream-dim); text-decoration: none; font-size: 13px;
      transition: all 0.2s;
    }
    .social-btn:hover { border-color: var(--gold); color: var(--gold-light); }
    .footer-bottom {
      display: flex; align-items: center; justify-content: space-between;
      font-size: 12px; color: var(--cream-dim); letter-spacing: 0.5px;
    }

    /* ─── FADE IN ─── */
    .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
    .fade-in.visible { opacity: 1; transform: none; }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 1024px) {
      .product-main { grid-template-columns: 1fr; gap: 48px; }
      .gallery-wrap { position: static; }
      .footer-top { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      :root { --navbar-h: 60px; }
      #navbar { padding: 0 20px; }
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .product-wrapper { padding: 48px 20px; }
      .page-hero { padding: 0 20px 40px; }
      .nav-inner { padding: 0 20px; }
      .main-img { height: 320px; }
      .desc-content { padding: 28px 24px; }
      .desc-content::before { font-size: 60px; }
      .footer-top { grid-template-columns: 1fr; gap: 32px; }
      .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
      footer { padding: 48px 20px 28px; }
    }

select.lang-btn {
  width: 120px !important;
  min-width: 120px !important;
  height: 34px;
  padding: 0 12px;
  color: var(--gold);
  border: 1px solid var(--gold) !important;
  background: rgba(10, 12, 12, 0.55);
  cursor: pointer;
  text-align: center;
}

select.lang-btn option {
  color: #111;
  background: #fff;
}

select.lang-btn:focus,
select.lang-btn:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 1px var(--gold) !important;
  outline: none;
}

/* Product details: place check mark on the outer side of the value */
.detail-value {
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
  text-align: right !important;
}

body.ar .detail-value {
  flex-direction: row-reverse !important;
  text-align: left !important;
}

.detail-value .detail-check {
  margin: 0 !important;
}

@media (max-width: 768px) {
  .detail-row {
    align-items: flex-start !important;
  }

  .detail-value {
    max-width: 68%;
    line-height: 1.6;
  }
}

/* ─── RELATED PRODUCTS CAROUSEL ─── */
.related-section {
  border-top: 1px solid var(--border);
  padding-top: 72px;
  margin-top: 72px;
  margin-bottom: 80px;
}

.related-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.related-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.related-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: rgba(201,168,76,0.06);
  color: var(--gold);
  cursor: pointer;
  transition: all 0.2s ease;
}

.related-nav-btn:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.14);
  color: var(--gold-light);
}

.related-carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) rgba(201,168,76,0.08);
  padding: 4px 2px 18px;
}

.related-carousel::-webkit-scrollbar {
  height: 6px;
}

.related-carousel::-webkit-scrollbar-track {
  background: rgba(201,168,76,0.08);
}

.related-carousel::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 999px;
}

.rel-card {
  min-width: 245px;
  max-width: 245px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.rel-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.rel-img-wrap {
  height: 220px;
  background: #d9d9d9;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 18px;
  display: block;
}

.rel-info {
  padding: 18px;
}

.rel-tag {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.rel-name {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  line-height: 1.35;
}

.rel-weight {
  margin-top: 8px;
  color: var(--cream-dim);
  font-size: 13px;
}

body.ar .rel-name,
body.ar .rel-weight {
  font-family: 'Tajawal', sans-serif;
}

@media (max-width: 768px) {
  .related-section {
    padding-top: 52px;
    margin-top: 52px;
    margin-bottom: 56px;
  }

  .related-head {
    align-items: flex-start;
  }

  .related-controls {
    display: none;
  }

  .rel-card {
    min-width: 220px;
    max-width: 220px;
  }

  .rel-img-wrap {
    height: 200px;
  }
}

/* Related carousel arrows: keep arrow direction visually correct in Arabic */
body.ar .related-controls {
  direction: ltr !important;
}
