/* ============================================================
   RASHFAN — Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

::selection {
  background: rgba(var(--primary-rgb), 0.3);
  color: var(--primary);
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0;
  color: #d4a851;
}

p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

select,
.product-weight-select,
.weight-select {
  width: 100%;
  max-width: 100%;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--border-rgb), 0.25);
  background: var(--card);
  color: var(--foreground);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

select:focus,
.product-weight-select:focus,
.weight-select:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb), 0.8);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

select option,
.product-weight-select option,
.weight-select option {
  background: var(--card);
  color: var(--foreground);
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--primary);
}

.section-eyebrow .rule {
  width: 3rem;
  height: 1px;
  background: rgba(var(--primary-rgb), 0.5);
  display: block;
}

.section-eyebrow span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.skip-link {
  position: absolute;
  right: 1rem;
  top: -60px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
