:root {
  --olf-forest: #173F32;
  --olf-green: #387653;
  --olf-sage: #A5BE9B;
  --olf-beige: #F5F1E8;
  --olf-white: #FFFFFF;
  --olf-gold: #C3A46B;
  --olf-radius: 16px;
  --olf-shadow: 0 8px 24px rgba(23, 63, 50, .12);
}

:focus-visible {
  outline: 3px solid var(--olf-gold);
  outline-offset: 2px;
}

/* الأزرار */
.olf-btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.6rem; border: 2px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.olf-btn:hover { transform: translateY(-2px); }
.olf-btn--primary { background: var(--olf-green); color: var(--olf-white); }
.olf-btn--primary:hover { background: var(--olf-forest); }
.olf-btn--ghost { border-color: var(--olf-white); background: transparent; color: var(--olf-white); }
.olf-btn--block { width: 100%; }

/* الواجهة الرئيسية */
.olf-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 70vh; padding: 4rem 1.25rem; background: var(--olf-forest) center / cover no-repeat; color: var(--olf-white); }
.olf-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23, 63, 50, .92), rgba(23, 63, 50, .45)); }
.olf-hero__inner { max-width: 640px; }
.olf-hero__title { margin: 0 0 1rem; color: inherit; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.25; }
.olf-hero__text { margin: 0 0 2rem; font-size: 1.1rem; opacity: .92; }
.olf-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* السلة الجانبية */
.olf-drawer[hidden], .olf-toast[hidden] { display: none !important; }
.olf-drawer { position: fixed; inset: 0; z-index: 99999; }
.olf-drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.olf-drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--olf-white); box-shadow: var(--olf-shadow); }
.olf-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem; border-bottom: 1px solid #eee; }
.olf-drawer__head h2 { margin: 0; font-size: 1.25rem; color: var(--olf-forest); }
.olf-drawer__items { flex: 1; margin: 0; padding: 0 1.25rem; list-style: none; overflow-y: auto; }
.olf-drawer__empty { padding: 2rem 1.25rem; text-align: center; color: #666; }
.olf-drawer__foot { padding: 1.25rem; border-top: 1px solid #eee; }
.olf-drawer__total { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.05rem; }
.olf-drawer.is-busy { opacity: .6; pointer-events: none; }
.olf-lock { overflow: hidden; }
.olf-icon-btn, .olf-qty button { width: 32px; height: 32px; border: 1px solid var(--olf-sage); border-radius: 50%; background: var(--olf-white); color: var(--olf-forest); cursor: pointer; }
.olf-item { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid #eee; }
.olf-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--olf-beige); }
.olf-item__info { display: flex; flex: 1; flex-direction: column; gap: .3rem; }
.olf-item__info strong { color: var(--olf-forest); font-size: .95rem; }
.olf-item__price { font-size: .9rem; }
.olf-qty { display: inline-flex; align-items: center; gap: .6rem; }
.olf-item__remove { padding: 0; border: 0; background: none; color: #b42318; font-size: .85rem; cursor: pointer; }

/* التنبيه */
.olf-toast { position: fixed; bottom: 5.5rem; inset-inline: 0; z-index: 99999; width: max-content; max-width: 90%; margin-inline: auto; padding: .75rem 1.25rem; border-radius: 999px; background: var(--olf-forest); color: var(--olf-white); box-shadow: var(--olf-shadow); }

/* واتساب عائم */
.olf-wa-float { position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 9998; padding: .7rem 1rem; border-radius: 999px; background: #25D366; color: #fff; font-weight: 700; text-decoration: none; box-shadow: var(--olf-shadow); }

/* أيقونة السلة في الهيدر */
.olf-cart-icon { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; }
.olf-cart-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: var(--olf-gold); color: var(--olf-forest); font-size: .75rem; font-weight: 700; }

@media (max-width: 600px) {
  .olf-hero { min-height: 60vh; padding: 3rem 1rem; }
  .olf-drawer__panel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .olf-btn { transition: none; }
}
