/**
 * FAKHARALI (فخر علي) — Main Stylesheet
 * Responsive Design System, Variables & Core Components
 */

:root {
  --fk-navy: #101B35;
  --fk-blue-electric: #0866F5;
  --fk-blue-deep: #064DBA;
  --fk-orange: #FF7900;
  --fk-orange-hover: #E56D00;
  --fk-bg: #F7F9FC;
  --fk-surface: #FFFFFF;
  --fk-surface-subtle: #F1F4F9;
  --fk-border: #E5EAF2;
  --fk-border-hover: #CBD5E1;
  --fk-text-main: #172033;
  --fk-text-muted: #758198;
  --fk-text-subtle: #94A3B8;
  --fk-success: #10B981;
  --fk-warning: #F59E0B;
  --fk-danger: #EF4444;
  --fk-whatsapp: #25D366;

  --fk-font-ar: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fk-font-latin: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fk-font: var(--fk-font-ar);

  --fk-radius-sm: 6px;
  --fk-radius-md: 10px;
  --fk-radius-lg: 16px;
  --fk-radius-full: 9999px;

  --fk-shadow-sm: 0 1px 3px rgba(16, 27, 53, 0.05);
  --fk-shadow-md: 0 4px 14px rgba(16, 27, 53, 0.08);
  --fk-shadow-lg: 0 12px 32px rgba(16, 27, 53, 0.12);
  --fk-shadow-sticky: 0 -4px 18px rgba(16, 27, 53, 0.08);

  --fk-container-max: 1240px;
}

[dir="ltr"] {
  --fk-font: var(--fk-font-latin);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fk-font);
  background-color: var(--fk-bg);
  color: var(--fk-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-container {
  width: 100%;
  max-width: var(--fk-container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* 1. Announcement Bar */
.fakharali-announcement-bar {
  background: var(--fk-navy);
  color: #FFF;
  font-size: 13px;
  padding-block: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.announcement-badge {
  background: var(--fk-orange);
  color: #FFF;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--fk-radius-sm);
  margin-inline-end: 8px;
}

.announcement-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.announcement-whatsapp:hover {
  opacity: 0.85;
}

/* 2. Site Header */
.site-header {
  background: var(--fk-surface);
  border-bottom: 1px solid var(--fk-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 14px;
  box-shadow: var(--fk-shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fakharali-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--fk-blue-electric), var(--fk-navy));
  color: #FFF;
  border-radius: var(--fk-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--fk-navy);
  display: block;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 11px;
  color: var(--fk-text-muted);
  display: block;
}

.header-search-wrap {
  flex: 1;
  max-width: 520px;
}

.fakharali-search-form {
  position: relative;
  width: 100%;
}

.fakharali-search-form .search-field {
  width: 100%;
  background: var(--fk-surface-subtle);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-full);
  padding: 10px 44px 10px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

[dir="ltr"] .fakharali-search-form .search-field {
  padding: 10px 18px 10px 44px;
}

.fakharali-search-form .search-field:focus {
  background: #FFF;
  border-color: var(--fk-blue-electric);
  box-shadow: 0 0 0 3px rgba(8, 102, 245, 0.12);
}

.fakharali-search-form .search-submit {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fk-text-muted);
  display: flex;
  align-items: center;
}

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

.fakharali-action-pill {
  background: var(--fk-surface-subtle);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fk-text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.fakharali-action-pill:hover {
  background: #FFF;
  border-color: var(--fk-blue-electric);
  color: var(--fk-blue-electric);
}

.cod-highlight-pill {
  background: rgba(255, 121, 0, 0.1);
  border-color: var(--fk-orange);
  color: var(--fk-orange);
}

.cod-highlight-pill:hover {
  background: var(--fk-orange);
  color: #FFF;
}

.cart-pill-counter {
  background: var(--fk-orange);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  border-radius: 9999px;
  padding: 2px 7px;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fk-navy);
}

/* 3. Category Horizontal Bar */
.fakharali-cat-nav {
  background: #FFF;
  border-bottom: 1px solid var(--fk-border);
  padding-block: 10px;
}

.cat-chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.cat-chips-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 6px 14px;
  border-radius: var(--fk-radius-full);
  background: var(--fk-surface-subtle);
  border: 1px solid var(--fk-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--fk-text-main);
  transition: all 0.2s;
}

.cat-chip:hover, .cat-chip.active {
  background: var(--fk-navy);
  color: #FFF;
  border-color: var(--fk-navy);
}

/* 4. Hero Banner */
.fakharali-hero-section {
  padding-block: 24px;
}

.hero-banner-card {
  background: linear-gradient(135deg, var(--fk-navy) 0%, var(--fk-blue-deep) 100%);
  border-radius: var(--fk-radius-lg);
  padding: 44px;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--fk-shadow-md);
}

.hero-banner-card::after {
  content: '';
  position: absolute;
  inset-inline-end: -80px;
  bottom: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(8, 102, 245, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner-content {
  max-width: 580px;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: var(--fk-radius-full);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #FFD29D;
}

.hero-heading {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.hero-subtext {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 26px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary-hero {
  background: var(--fk-orange);
  color: #FFF;
  padding: 12px 26px;
  border-radius: var(--fk-radius-md);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 121, 0, 0.35);
  transition: all 0.2s;
}

.btn-primary-hero:hover {
  background: var(--fk-orange-hover);
  transform: translateY(-2px);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
  padding: 12px 22px;
  border-radius: var(--fk-radius-md);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.hero-badge-showcase {
  z-index: 1;
  width: 280px;
  flex-shrink: 0;
}

.showcase-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--fk-radius-lg);
  padding: 24px;
  text-align: center;
}

.sc-icon {
  margin-bottom: 12px;
}

.sc-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 6px;
}

.sc-desc {
  font-size: 12px;
  opacity: 0.85;
}

/* 5. Trust Pillars */
.fakharali-trust-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-block: 28px;
}

.trust-pillar-item {
  background: var(--fk-surface);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--fk-shadow-sm);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--fk-radius-md);
  background: rgba(8, 102, 245, 0.08);
  color: var(--fk-blue-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--fk-navy);
  margin-bottom: 2px;
}

.pillar-content p {
  font-size: 12px;
  color: var(--fk-text-muted);
}

/* 6. Section Headers */
.section-title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--fk-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--fk-orange);
  border-radius: 2px;
}

.section-subheading {
  font-size: 13px;
  color: var(--fk-text-muted);
  margin-top: 4px;
}

.section-more-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--fk-blue-electric);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* 7. Promotional Callout Banner */
.fakharali-promo-callout {
  padding-block: 24px 36px;
}

.promo-card {
  background: linear-gradient(135deg, #1E293B, var(--fk-navy));
  border-radius: var(--fk-radius-lg);
  padding: 32px 40px;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.promo-tag {
  display: inline-block;
  background: var(--fk-orange);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--fk-radius-sm);
  margin-bottom: 8px;
}

.promo-content h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.promo-content p {
  font-size: 14px;
  opacity: 0.85;
  max-width: 680px;
}

.btn-promo {
  background: #FFF;
  color: var(--fk-navy);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--fk-radius-md);
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-promo:hover {
  background: var(--fk-orange);
  color: #FFF;
}

/* 8. Site Footer */
.site-footer {
  background: var(--fk-navy);
  color: #FFF;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 4px solid var(--fk-orange);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-payment-cod .cod-tag {
  display: inline-block;
  background: rgba(255, 121, 0, 0.15);
  color: #FFD29D;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--fk-radius-sm);
  border: 1px solid rgba(255, 121, 0, 0.3);
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: #FFD29D;
  margin-bottom: 14px;
}

.footer-link-list {
  list-style: none;
}

.footer-link-list li {
  margin-bottom: 8px;
  font-size: 13px;
  opacity: 0.85;
}

.footer-link-list a:hover {
  color: var(--fk-orange);
}

.contact-hint {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 14px;
}

.footer-whatsapp-btn {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid var(--fk-whatsapp);
  color: #FFF;
  padding: 10px 16px;
  border-radius: var(--fk-radius-md);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.footer-whatsapp-btn:hover {
  background: var(--fk-whatsapp);
  color: #000;
}

.footer-legal-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 18px;
  font-size: 12px;
  opacity: 0.7;
}

.legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Drawer */
.fakharali-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.fakharali-mobile-drawer.active {
  display: block;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 280px;
  background: #FFF;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--fk-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-list {
  list-style: none;
}

.mobile-menu-list li {
  padding-block: 10px;
  border-bottom: 1px solid var(--fk-border);
  font-weight: 600;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .fakharali-trust-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .header-search-wrap, .cod-highlight-pill {
    display: none;
  }
  .hero-banner-card {
    padding: 28px 20px;
    flex-direction: column;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-badge-showcase {
    display: none;
  }
  .fakharali-trust-pillars {
    grid-template-columns: 1fr;
  }
  .promo-card {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
  }
  .legal-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
