html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

.brand-display {
  font-family: "Fraunces", "IBM Plex Sans Arabic", serif;
}

.hero-scrim {
  background:
    linear-gradient(105deg, rgba(18, 32, 28, 0.88) 0%, rgba(18, 32, 28, 0.62) 42%, rgba(18, 32, 28, 0.28) 70%, rgba(18, 32, 28, 0.12) 100%),
    linear-gradient(180deg, rgba(18, 32, 28, 0.35) 0%, transparent 35%, rgba(18, 32, 28, 0.55) 100%);
}

[dir="rtl"] .hero-scrim {
  background:
    linear-gradient(255deg, rgba(18, 32, 28, 0.88) 0%, rgba(18, 32, 28, 0.62) 42%, rgba(18, 32, 28, 0.28) 70%, rgba(18, 32, 28, 0.12) 100%),
    linear-gradient(180deg, rgba(18, 32, 28, 0.35) 0%, transparent 35%, rgba(18, 32, 28, 0.55) 100%);
}

@media (max-width: 768px) {
  .hero-scrim,
  [dir="rtl"] .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18, 32, 28, 0.55) 0%, rgba(18, 32, 28, 0.35) 35%, rgba(18, 32, 28, 0.82) 100%);
  }
}

.page-header {
  background: #12201c;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c45c26;
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background: #9e4518;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(243, 239, 230, 0.5);
  color: #f3efe6;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-secondary:hover {
  border-color: #f3efe6;
  background: rgba(243, 239, 230, 0.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #12201c;
  color: #12201c;
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  background: #12201c;
  color: #f3efe6;
}

.input-field {
  width: 100%;
  border: 1px solid rgba(18, 32, 28, 0.2);
  background: #fff;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-field:focus {
  border-color: #2f6b56;
}

.cart-badge {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #c45c26;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge.is-empty {
  display: none;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 50;
  background: #12201c;
  color: #f3efe6;
  padding: 0.85rem 1.25rem;
  font-size: 0.925rem;
  transition: transform 0.35s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

.lang-switch {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(243, 239, 230, 0.35);
  color: #f3efe6;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.lang-switch option {
  color: #12201c;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(18, 32, 28, 0.15);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pay-option:has(input:checked) {
  border-color: #2f6b56;
  background: #e7f0eb;
}

.pay-option input {
  accent-color: #2f6b56;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-icon-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.nav-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.back-to-top {
  position: fixed;
  bottom: 1.25rem;
  inset-inline-end: 1.25rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #12201c;
  color: #f3efe6;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #c45c26;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes drift {
  0% { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, 1%); }
}

@keyframes softPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.7; }
}

.animate-fade-up { animation: fadeUp 0.9s ease-out both; }
.animate-fade-up-delay { animation: fadeUp 0.9s ease-out 0.15s both; }
.animate-fade-up-delay-2 { animation: fadeUp 0.9s ease-out 0.3s both; }
.animate-fade-up-delay-3 { animation: fadeUp 0.9s ease-out 0.45s both; }
.animate-drift { animation: drift 18s ease-in-out alternate infinite; }
.animate-soft-pulse { animation: softPulse 6s ease-in-out infinite; }
