:root {
  --purple: #703D5F;
  --purple-dark: #4f2942;
  --red: #E30707;
  --ink: #1D1E20;
  --slate: #495867;
  --slate-dark: #37424c;
  --gray: #6b6058;
  --cream: #faf6f0;
  --gold: #C9A24B;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: var(--ink);
}

h1, h2, .hero h1, .product-name, .brand-name {
  font-family: 'Abel', sans-serif;
}

.main-nav a, .brand-sub, .btn-primary, .btn-order {
  font-family: 'Cabin', sans-serif;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.site-header {
  background: var(--purple);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: auto;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.brand-sub {
  color: #e7d3de;
  font-size: 11px;
  letter-spacing: 2px;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.main-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}

.main-nav a:hover { color: var(--red); }

.main-nav a.cat-link.active {
  color: var(--red);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.lang-switch { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-family: 'Cabin', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}

.lang-btn:hover { background: rgba(255,255,255,.22); }

.lang-icon { width: 16px; height: 16px; flex-shrink: 0; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  overflow: hidden;
  display: none;
  z-index: 60;
}

.lang-menu.open { display: block; }

.lang-menu button {
  display: block;
  width: 100%;
  text-align: start;
  background: none;
  border: none;
  padding: 12px 18px;
  font-family: 'Cabin', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}

.lang-menu button:hover { background: var(--cream); }

html[dir="rtl"] .lang-menu { right: auto; left: 0; }

@media (max-width: 720px) {
  .lang-btn span:not(.lang-icon) { display: none; }
  .lang-btn { padding: 8px 10px; }
}

/* RTL (Arabic) adjustments */
html[dir="rtl"] body,
html[dir="rtl"] .main-nav a,
html[dir="rtl"] .lang-btn,
html[dir="rtl"] .lang-menu button,
html[dir="rtl"] .quick-links-list a,
html[dir="rtl"] .btn-primary,
html[dir="rtl"] .btn-order,
html[dir="rtl"] .btn-whatsapp,
html[dir="rtl"] .about-link,
html[dir="rtl"] .back-link,
html[dir="rtl"] .copyright {
  font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] .product-name,
html[dir="rtl"] .brand-name {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

html[dir="rtl"] .profile-eyebrow {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 0;
}

html[dir="rtl"] .quick-links-list .chevron { transform: scaleX(-1); }

/* profile hero — full-bleed photo with overlay text */
.profile-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  overflow: hidden;
}

.profile-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .8;
}

.profile-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.75) 100%);
}

.profile-hero-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 24px;
}

.profile-hero-body h1 {
  color: #fff;
  font-size: clamp(40px, 7vw, 72px);
  margin: 0 0 14px;
}

.profile-hero-ar {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #f1e6d8;
  margin: 0 0 18px !important;
}

.profile-hero-tagline {
  color: rgba(255,255,255,.8);
  font-size: 16.5px;
  max-width: 480px;
  margin: 0;
}

/* profile story sections — image beside text, clearly separated */
.profile-eyebrow {
  font-family: 'Cabin', sans-serif;
  color: var(--gold);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 11.5px;
  margin: 0 0 16px;
}

.profile-split {
  position: relative;
  max-width: 1080px;
  margin: 0 auto 96px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 52px;
}

.profile-split.reverse { grid-template-columns: .95fr 1.05fr; }
.profile-split.reverse .profile-split-media { order: 2; }
.profile-split.reverse .profile-split-text { order: 1; }
.profile-split.center { max-width: 780px; grid-template-columns: 1fr 1fr; gap: 36px; }

.profile-split-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.35);
}

.profile-split-media img {
  position: absolute; top: -10%; left: 0;
  width: 100%; height: 120%;
  object-fit: cover; object-position: 50% center;
  display: block;
  will-change: transform;
}

.profile-split-media img.shift-right { object-position: 74% center; }

.profile-split-text h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0 0 16px;
  line-height: 1.15;
}

.profile-split-text p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
}

.profile-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.4s cubic-bezier(.16,.7,.2,1), transform 1.4s cubic-bezier(.16,.7,.2,1);
}

.profile-reveal.in { opacity: 1; transform: translateY(0); }

@media (max-width: 760px) {
  .profile-split, .profile-split.center, .profile-split.reverse {
    grid-template-columns: 1fr; gap: 24px; padding: 0 24px; margin-bottom: 64px;
  }
  .profile-split.reverse .profile-split-media,
  .profile-split.reverse .profile-split-text { order: initial; }
  .profile-split-media { aspect-ratio: 5 / 4; }
}

main { max-width: 1600px; margin: 0 auto; padding: 0 16px; }

.products-section { padding: 30px 0 70px; background: var(--cream); }
.products-section > h2,
.about-section > h2,
.site-footer h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  margin: 0;
  padding: 50px 0 36px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--cream);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.btn-order {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--slate);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: background .2s;
}

.btn-order:hover { background: var(--slate-dark); }

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 22px;
}

.product-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 8px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.price-old {
  text-decoration: line-through;
  color: var(--gray);
  font-weight: 400;
  font-size: 0.85em;
}

.price-current {
  color: var(--red);
}

.product-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quick-links-section {
  background: var(--cream);
  padding: 0 0 50px;
}

.quick-links-list {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}

.quick-links-list li + li { border-top: 1px solid #ece4d9; }

.quick-links-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s;
}

.quick-links-list a:hover { background: var(--cream); }

.quick-links-list .chevron {
  font-size: 20px;
  color: var(--gray);
  line-height: 1;
}

.about-section { padding-bottom: 60px; }

.about-section p {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  line-height: 2;
  font-size: 17px;
  color: var(--gray);
}

.about-contact {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--slate);
  transition: color .2s;
}

.about-link:hover { color: var(--slate-dark); }

.about-link .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.site-footer {
  background: var(--purple);
  color: #fff;
  text-align: center;
  padding: 10px 24px 50px;
}

.site-footer h2 { color: #fff; }

.btn-whatsapp {
  display: inline-block;
  background: #25D366;
  color: #fff;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 24px;
}

.copyright {
  color: #d9c3d0;
  font-size: 14px;
  margin: 0;
}

.admin-entry {
  color: #b189a0;
  opacity: .7;
}

.admin-entry:hover { opacity: 1; }

.loading-msg { text-align: center; color: var(--gray); grid-column: 1 / -1; }

.back-link {
  display: inline-block;
  margin: 28px 0 10px;
  color: var(--slate);
  font-weight: 600;
  font-size: 15px;
}

.back-link:hover { color: var(--slate-dark); }

.product-detail {
  display: flex;
  gap: 40px;
  padding: 10px 0 70px;
  align-items: flex-start;
}

.product-detail-media {
  flex: 1 1 420px;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
}

.product-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-info {
  flex: 1 1 360px;
  padding-top: 10px;
}

.product-detail-info h1 {
  color: var(--red);
  font-size: 34px;
  margin: 0 0 12px;
}

.product-detail-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 20px;
}

.btn-order-static {
  position: static;
  display: inline-block;
}

.product-detail-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
  margin: 0 0 28px;
}

@media (max-width: 720px) {
  .product-detail { flex-direction: column; gap: 24px; }
  .product-detail-media { max-width: 100%; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--purple);
    padding: 12px 0;
  }
  .main-nav.open ul { flex-direction: column; align-items: center; gap: 18px; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .product-name { font-size: 15px; }
  .product-price { font-size: 13px; }
  .product-desc { font-size: 12px; }
  .product-info { padding: 12px 12px 16px; }
  .btn-order { font-size: 11px; padding: 5px 12px; top: 8px; right: 8px; }
}
