:root {
  --primary: #8a5a2b;
  --primary-dark: #6b4423;
  --primary-light: #a9743c;
  --gold: #d9a441;
  --gold-light: #eac576;
  --cream: #faf6ef;
  --cream-dark: #f1e9dc;
  --text: #3d2b17;
  --text-light: #7a6a55;
  --green: #1e7a46;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(61, 43, 23, 0.12);
  --shadow-lg: 0 18px 50px rgba(61, 43, 23, 0.18);
  --radius: 16px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ الشريط العلوي ============ */
.topbar {
  background: var(--primary-dark);
  color: var(--gold-light);
  font-size: 13px;
  padding: 8px 0;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .topbar__hours {
    display: none;
  }
}

/* ============ الهيدر ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(61, 43, 23, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 12px rgba(217, 164, 65, 0.4);
}

.logo__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-dark);
  display: block;
  line-height: 1.2;
}

.logo__tag {
  font-size: 12px;
  color: var(--text-light);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-weight: 700;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  position: relative;
  background: var(--primary);
  color: var(--white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition);
}

.cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.cart-btn__badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--gold);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--cream-dark);
  padding: 10px;
}

.menu-toggle span {
  width: 100%;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 200;
  }

  .nav.is-open {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

/* ============ الواجهة الرئيسية ============ */
.hero {
  position: relative;
  background: linear-gradient(rgba(61, 43, 23, 0.55), rgba(61, 43, 23, 0.75)),
    url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/96/Medjool_dates_as_luxury_item.jpg/1200px-Medjool_dates_as_luxury_item.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 120px 0;
  text-align: center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  opacity: 0.95;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 16px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: var(--gold);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(217, 164, 65, 0.4);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

.btn--outline {
  border: 2px solid var(--white);
  color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--text);
  transform: translateY(-3px);
}

.btn--wa {
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn--wa:hover {
  background: var(--wa-dark);
  transform: translateY(-3px);
}

.btn--block {
  width: 100%;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--gold-light);
}

.stat__label {
  font-size: 14px;
  opacity: 0.9;
}

/* ============ العناوين ============ */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-head__title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  border-radius: 4px;
  background: var(--gold);
  margin: 10px auto 0;
}

.section-head__subtitle {
  color: var(--text-light);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto;
}

/* ============ المنتجات ============ */
.products {
  padding: 90px 0;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--cream-dark);
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--gold);
}

.filter-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card__media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--cream-dark);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__img {
  transform: scale(1.08);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 50px;
}

.product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 14px;
  flex: 1;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.product-card__price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
}

.product-card__unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: rgba(30, 122, 70, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

.add-to-cart {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  padding: 12px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  transition: var(--transition);
}

.add-to-cart:hover {
  background: var(--primary-dark);
}

.add-to-cart:active {
  transform: scale(0.97);
}

.product-card.is-hidden {
  display: none;
}

/* ============ من نحن ============ */
.about {
  padding: 90px 0;
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  height: 420px;
  width: 100%;
  object-fit: cover;
}

.about__content p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.about__content p strong {
  color: var(--text);
}

.about__list {
  list-style: none;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.about__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.about__list li::before {
  content: '✓';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about__media img {
    height: 280px;
  }
}

/* ============ لماذا نحن ============ */
.why {
  padding: 90px 0;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.why-card__icon {
  font-size: 44px;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ============ اتصل بنا ============ */
.contact {
  padding: 90px 0;
  background: var(--white);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__info p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.contact__list {
  list-style: none;
  display: grid;
  gap: 22px;
}

.contact__list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid var(--cream-dark);
}

.contact__list strong {
  display: block;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact__list span {
  color: var(--text-light);
  font-size: 15px;
}

.wa-card {
  background: linear-gradient(160deg, var(--cream), var(--cream-dark));
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.wa-card__icon {
  font-size: 52px;
  margin-bottom: 12px;
}

.wa-card h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.wa-card p {
  color: var(--text-light);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============ الفوتر ============ */
.footer {
  background: var(--primary-dark);
  color: #e8d9c0;
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer__brand h3 {
  font-size: 24px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 14px;
  opacity: 0.85;
}

.footer__col h4 {
  color: var(--gold-light);
  font-size: 17px;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer__col a:hover {
  opacity: 1;
  color: var(--gold-light);
  transform: translateX(-4px);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* ============ سلة المشتريات ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 23, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 300;
}

.cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 380px;
  max-width: 90vw;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--transition);
  z-index: 400;
  display: flex;
  flex-direction: column;
}

.cart.is-open {
  transform: translateX(0);
}

.cart__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--cream-dark);
}

.cart__head h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-dark);
}

.cart__close {
  font-size: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text);
  transition: var(--transition);
}

.cart__close:hover {
  background: #e8ddd0;
}

.cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart__empty {
  text-align: center;
  color: var(--text-light);
  margin-top: 40px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.cart-item__img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-weight: 800;
  color: var(--text);
  font-size: 15px;
}

.cart-item__price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.cart-item__btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--cream);
  font-weight: 800;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.cart-item__btn:hover {
  background: var(--gold);
}

.cart-item__qty {
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  color: #d9534f;
  font-size: 13px;
  font-weight: 700;
  align-self: flex-start;
}

.cart-item__remove:hover {
  text-decoration: underline;
}

.cart__foot {
  padding: 20px;
  border-top: 1px solid var(--cream-dark);
}

.cart__total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.cart__note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

/* ============ التنبيه ============ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 500;
  transition: transform var(--transition);
  text-align: center;
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
}

/* ============ أزرار الواتساب العائمة ============ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 200;
  transition: transform var(--transition);
}

.wa-float:hover {
  transform: scale(1.1);
}
