/* ═══════════════════════════════════════════════
   HAYAT STORE - Main Stylesheet
   Font: Tajawal | Colors: Green #2d5a27, Gold #c8a951
═══════════════════════════════════════════════ */

:root {
  --green:      #2d5a27;
  --green-dark: #1e3d1a;
  --green-light:#4a8c42;
  --gold:       #c8a951;
  --gold-dark:  #a88930;
  --cream:      #faf8f2;
  --text-dark:  #222;
  --border:     #e8e0d0;
}

* { box-sizing: border-box; }
body { font-family: 'Tajawal', sans-serif; background: var(--cream); color: var(--text-dark); direction: rtl; }

/* ── Utilities ──────────────────────────────── */
.bg-green   { background-color: var(--green) !important; }
.text-green { color: var(--green) !important; }
.text-gold  { color: var(--gold) !important; }
.fw-800     { font-weight: 800; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

/* ── Top Bar ────────────────────────────────── */
.topbar { background: var(--green-dark); color: #fff; padding: 6px 0; font-size: 0.83rem; }
.topbar-link { color: #d4c9a0; text-decoration: none; transition: color .2s; }
.topbar-link:hover { color: var(--gold); }
.topbar-logo-text { color: #a8c5a0; font-size: 0.8rem; }

/* ── Navbar ─────────────────────────────────── */
.navbar-brand { display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.brand-text { display: flex; flex-direction: column; }
.brand-hayat  { font-size: 1.5rem; font-weight: 800; color: var(--gold); letter-spacing: -1px; }
.brand-store  { font-size: 0.65rem; color: #a8c5a0; letter-spacing: 1px; text-transform: uppercase; }
.site-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; border: 1px solid rgba(255,255,255,.2); }
.navbar-nav .nav-link { font-weight: 500; color: rgba(255,255,255,.88) !important; padding: 8px 14px; border-radius: 4px; transition: all .2s; }
.navbar-nav .nav-link:hover { background: rgba(255,255,255,.12); color: var(--gold) !important; }

.btn-cart { position: relative; background: rgba(255,255,255,.15); color: #fff; border: none; padding: 7px 14px; border-radius: 6px; font-size: 1.1rem; transition: background .2s; }
.btn-cart:hover { background: var(--gold); color: #fff; }
.cart-badge { position: absolute; top: -4px; left: -4px; background: var(--gold); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: .7rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ── Hero Banner ────────────────────────────── */
.hero-banner {
  position: relative;
  min-height: 520px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-light) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-banner .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.35;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,61,26,.85) 50%, transparent 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.2; }
.hero-title span { color: var(--gold); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.82); }
.hero-badge { display: inline-block; background: var(--gold); color: var(--green-dark); padding: 4px 14px; border-radius: 20px; font-size: .8rem; font-weight: 700; margin-bottom: 12px; }
.btn-hero { background: var(--gold); color: #fff; padding: 13px 36px; font-size: 1.05rem; font-weight: 700; border: none; border-radius: 8px; text-decoration: none; transition: all .3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-hero:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.btn-hero-outline { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.btn-hero-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Section Headers ────────────────────────── */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 1.9rem; font-weight: 800; color: var(--green); }
.section-divider { width: 60px; height: 3px; background: var(--gold); margin: 10px auto 0; border-radius: 2px; }

/* ── Category Cards ─────────────────────────── */
.cat-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: transform .3s, box-shadow .3s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(30,61,26,.92) 0%, transparent 100%);
  padding: 32px 16px 16px;
  color: #fff; font-size: 1.1rem; font-weight: 700; text-align: center;
}
.cat-card-label span { display: block; font-size: .75rem; color: var(--gold); margin-top: 3px; }

/* ── Product Cards ──────────────────────────── */
.product-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; transition: all .3s; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,.12); border-color: var(--gold); }
.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge { position: absolute; top: 10px; right: 10px; background: var(--gold); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: .73rem; font-weight: 700; }
.product-body { padding: 14px; }
.product-name { font-weight: 700; font-size: .97rem; color: var(--text-dark); margin-bottom: 6px; }
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--green); }
.product-currency { font-size: .8rem; font-weight: 500; color: #888; }
.btn-add-cart { background: var(--green); color: #fff; border: none; border-radius: 6px; padding: 7px 0; width: 100%; font-weight: 600; font-size: .88rem; transition: background .2s; margin-top: 10px; }
.btn-add-cart:hover { background: var(--green-dark); }

/* ── Contact Section ────────────────────────── */
.contact-section { background: #fff; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,.07); padding: 40px; }
.form-control, .form-select { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-family: 'Tajawal', sans-serif; }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 .25rem rgba(45,90,39,.15); }
.country-code-fixed { background: #f1f5ec; border: 1px solid var(--border); color: var(--green-dark); font-weight: 700; direction: ltr; }
.btn-submit { background: var(--green); color: #fff; border: none; padding: 12px 40px; border-radius: 8px; font-size: 1rem; font-weight: 700; transition: background .2s; }
.btn-submit:hover { background: var(--green-dark); }

/* ── Footer ─────────────────────────────────── */
.site-footer { background: var(--green-dark); color: #c8d8c4; padding-top: 50px; }
.footer-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid rgba(255,255,255,.15); margin-bottom: 10px; padding: 6px; }
.footer-brand { font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 10px; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: 14px; font-size: .95rem; letter-spacing: .5px; border-right: 3px solid var(--gold); padding-right: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: #9dc49a; text-decoration: none; font-size: .88rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-links.contact-info li { font-size: .85rem; display: flex; align-items: flex-start; gap: 8px; color: #9dc49a; }
.footer-links.contact-info i { color: var(--gold); margin-top: 2px; }
.footer-payments { background: rgba(0,0,0,.2); }
.payment-tiles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.payment-title { color: #7a9e78; font-size: .82rem; }
.payment-tile { min-width: 86px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.13); color: #f1f1f1; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; font-size: .84rem; font-weight: 700; padding: 0 12px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; text-decoration: none; transition: all .2s; color: #fff; }
.social-btn.whatsapp { background: #25d366; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.twitter { background: #000; }
.social-btn.snapchat { background: #fffc00; color: #000; }
.social-btn.facebook { background: #1877f2; }
.social-btn.tiktok { background: #111; }
.social-btn.youtube { background: #ff0000; }
.social-btn:hover { transform: translateY(-3px) scale(1.1); }

/* ── WhatsApp Float ──────────────────────────── */
.whatsapp-float { position: fixed; bottom: 24px; left: 24px; z-index: 999; background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 6px 20px rgba(37,211,102,.4); text-decoration: none; transition: all .3s; }
.whatsapp-float:hover { transform: scale(1.1); background: #1fa855; color: #fff; }

/* ── Cart / Checkout ────────────────────────── */
.cart-table { background: #fff; border-radius: 12px; overflow: hidden; }
.cart-table th { background: var(--green); color: #fff; padding: 12px 16px; font-weight: 600; }
.cart-table td { padding: 14px 16px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.cart-total-box { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.qty-input { width: 60px; text-align: center; border: 1px solid var(--border); border-radius: 6px; padding: 4px; }
.steps-bar { display: flex; gap: 0; justify-content: center; margin-bottom: 32px; }
.step { display: flex; align-items: center; gap: 8px; }
.step-num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; background: #ddd; color: #888; }
.step.active .step-num { background: var(--green); color: #fff; }
.step.done .step-num { background: var(--gold); color: #fff; }
.step-label { font-size: .85rem; color: #888; font-weight: 600; }
.step.active .step-label { color: var(--green); }
.step-line { width: 60px; height: 2px; background: #ddd; margin: 0 8px; }
.step.done + .step-line, .step.done .step-line { background: var(--gold); }
.order-success { text-align: center; padding: 60px 20px; }
.order-success-icon { font-size: 5rem; color: var(--green); margin-bottom: 20px; }

/* ── Product Detail ──────────────────────────── */
.product-detail-img { border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-price { font-size: 2.2rem; font-weight: 800; color: var(--green); }
.product-detail-desc { color: #555; line-height: 1.8; }

/* ── Page Content ────────────────────────────── */
.page-content { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.page-content h4, .page-content h5 { color: var(--green); }
.page-content p, .page-content li { color: #555; line-height: 1.9; }

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb-wrap { background: var(--green); padding: 14px 0; }
.breadcrumb-item a { color: var(--gold); text-decoration: none; }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.7); }
.breadcrumb { margin: 0; }

/* ── Alerts ───────────────────────────────────── */
.alert { border-radius: 8px; }

/* ── Admin Panel ─────────────────────────────── */
.admin-sidebar { background: var(--green-dark); min-height: 100vh; padding: 0; }
.admin-sidebar .brand { padding: 20px; background: rgba(0,0,0,.2); }
.admin-sidebar .brand a { color: var(--gold); text-decoration: none; font-size: 1.3rem; font-weight: 800; }
.admin-nav-link { display: flex; align-items: center; gap: 10px; padding: 13px 20px; color: #9dc49a; text-decoration: none; font-size: .92rem; font-weight: 500; transition: all .2s; border-right: 3px solid transparent; }
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,.08); color: var(--gold); border-right-color: var(--gold); }
.admin-nav-link i { font-size: 1rem; }
.admin-content { padding: 30px; }
.admin-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.07); padding: 24px; }
.stat-card { border-radius: 12px; padding: 22px; color: #fff; }
.stat-card i { font-size: 2.5rem; opacity: .6; }

/* ── Responsive Tweaks ────────────────────────── */
@media (max-width: 768px) {
  .hero-banner { min-height: 340px; }
  .hero-title { font-size: 1.7rem; }
  .cat-card { aspect-ratio: 4/5; }
}
