/* =============================================
   AZKA FOODS — STORE LOCATOR
   style.css
   ============================================= */

/* ---- VARIABLES ---- */
:root {
  --green: #009938;
  --green-light: #00b844;
  --green-dark:  #1a4a2e;
  --green-faint: #e6f7ec;
  --red: #E11728;
  --red-faint: #fdeaea;
  --bg: #f6f7fb;
  --white: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  text-align: right;
  min-height: 100vh;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================
   HEADER
   ================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.nav-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-faint);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,153,56,.2);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  background: var(--red);
  overflow: hidden;
  padding: 40px 24px 48px;
  text-align: center;
}
/* Background image layer — ratio ~3365×1245 ≈ 2.7:1 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('assets/bg.png') center center / cover no-repeat;
  opacity: 0.18;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .10;
  background: #fff;
}
.shape-1 { width: 460px; height: 460px; top: -140px; right: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: -70px; left: 40px; }
.shape-3 { width: 200px; height: 200px; top: 40px; left: 32%; opacity: .06; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}
.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-title em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  
  bottom: 4px;
  right: 0; left: 0;
  height: 5px;
  background: rgba(255,255,255,0.55);
  border-radius: 4px;
  opacity: .85;
}
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.88);
  font-weight: 400;
  line-height: 1.75;
}

/* ================================================
   ORDER BANNER
   ================================================ */
.order-banner-section {
  padding: 36px 0 0;
}
.order-banner {
  background: linear-gradient(135deg, #1a4a2e 0%, #0f2d1b 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  box-shadow: 0 8px 32px rgba(0,60,20,.28);
  position: relative;
  overflow: hidden;
}
.order-banner::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  pointer-events: none;
}
.order-banner-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.order-banner-icon svg { width: 24px; height: 24px; }
.order-banner-text { flex: 1; min-width: 200px; }
.order-banner-text h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.order-banner-text p { font-size: 13px; color: rgba(255,255,255,.82); line-height: 1.6; }
.btn-order {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  color: var(--green-dark);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-order svg { width: 16px; height: 16px; }
.btn-order:hover { background: #e6f7ec; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ================================================
   PRODUCTS SECTION
   ================================================ */
.products-section {
  padding: 56px 0 16px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .2s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.product-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }
.product-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-4);
}
.product-placeholder svg { width: 48px; height: 48px; }
.product-info {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.product-order-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  transition: color .2s;
}
.product-order-link:hover { color: var(--green-dark); }

/* ================================================
   SECTION HEADERS (shared)
   ================================================ */
.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 32px;
}

/* ================================================
   NEAR ME SECTION
   ================================================ */
.near-me-section {
  padding: 40px 0 0;
}
.near-me-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--border);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transition: box-shadow .3s;
}
.near-me-card:hover { box-shadow: var(--shadow-lg); }
.near-me-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-faint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.near-me-icon svg { width: 26px; height: 26px; }
.near-me-text { flex: 1; min-width: 200px; }
.near-me-text h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.near-me-text p { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.btn-locate {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-dark);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-locate svg { width: 18px; height: 18px; }
.btn-locate:hover { background: #c2101e; transform: translateY(-1px); }
.btn-locate:active { transform: translateY(0); }
.btn-locate.loading { background: var(--ink-3); pointer-events: none; }
.near-results { margin-top: 24px; }
.near-results.hidden { display: none; }
.near-results-title {
  font-size: 15px; font-weight: 700; color: var(--ink);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.near-results-title span.tag {
  background: var(--green-faint);
  color: var(--green);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.near-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

/* ================================================
   SEARCH SECTION
   ================================================ */
.search-section { padding: 52px 0 36px; }
.filter-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.select-wrapper {
  flex: 1;
  min-width: 200px;
  transition: opacity .3s;
}
.select-wrapper label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.custom-select-wrap { position: relative; }
.custom-select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 46px 13px 16px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.custom-select-wrap select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,153,56,.12);
}
.custom-select-wrap select option { font-weight: 400; }
.select-arrow {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.select-arrow svg { width: 18px; height: 18px; }
.btn-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, opacity .2s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(225,23,40,.25);
}
.btn-search svg { width: 18px; height: 18px; }
.btn-search:hover:not(:disabled) { background: #c2101e; transform: translateY(-1px); }
.btn-search:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ================================================
   RESULTS SECTION
   ================================================ */
.results-section { padding: 0 0 72px; }
.results-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .results-layout { grid-template-columns: 1fr; }
  .map-panel { order: -1; }
}
.results-panel { min-height: 300px; }
.results-header { margin-bottom: 18px; }
.results-count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.results-count strong { color: var(--ink); }
.results-city-title { font-size: 20px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.results-list { display: flex; flex-direction: column; gap: 12px; }

/* Store Card */
.store-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  position: relative;
  overflow: hidden;
  animation: slideUp .35s ease both;
}
.store-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--green);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  transform: scaleY(0);
  transition: transform .25s;
  transform-origin: top;
}
.store-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateX(-3px); }
.store-card:hover::before { transform: scaleY(1); }
.store-card.active { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,153,56,.1); background: var(--green-faint); }
.store-card.active::before { transform: scaleY(1); }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.store-name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.store-address {
  font-size: 13px; color: var(--ink-3); line-height: 1.6;
  display: flex; align-items: flex-start; gap: 6px;
}
.store-address svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: var(--red); }
.store-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--green); background: var(--green-faint);
  padding: 3px 10px; border-radius: 999px;
  margin-top: 10px;
  border: 1px solid rgba(0,153,56,.2);
}
.store-badge svg { width: 11px; height: 11px; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--ink-3); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 14px; opacity: .35; }
.empty-state p { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.empty-state span { font-size: 13px; }

/* Map Panel */
.map-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
}
#map { height: 540px; width: 100%; }
.map-overlay-label {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--white);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  z-index: 500;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #0d1117;
  color: rgba(255,255,255,.55);
  padding: 56px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* Brand col */
.footer-brand {}
.footer-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  /* invert if logo is dark on dark bg — remove if logo has white variant */
  filter: brightness(0) invert(1);
  opacity: .9;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 260px;
}
.footer-store-link {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green);
  color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.footer-store-link svg { width: 15px; height: 15px; }
.footer-store-link:hover { background: var(--green-dark); transform: translateY(-1px); }

/* Generic col */
.footer-col {}
.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

/* Contact list */
.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list a {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-contact-list a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--green); }
.footer-contact-list a:hover { color: #fff; }

/* Social list */
.footer-social-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.social-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s, transform .15s;
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
}
.social-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-link:hover { transform: translateX(-3px); color: #fff; }
.social-fb:hover { background: rgba(24,119,242,.15); border-color: rgba(24,119,242,.4); }
.social-ig:hover { background: rgba(225,48,108,.15); border-color: rgba(225,48,108,.4); }
.social-li:hover { background: rgba(10,102,194,.15); border-color: rgba(10,102,194,.4); }
.social-wa:hover { background: rgba(37,211,102,.15); border-color: rgba(37,211,102,.4); }

/* Footer bottom */
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }
.footer-link {
  font-size: 12px;
  color: var(--green-light);
  font-weight: 600;
  transition: color .2s;
}
.footer-link:hover { color: #fff; }

/* ================================================
   UTILITIES
   ================================================ */
.hidden { display: none !important; }

/* Stagger animation delays */
.store-card:nth-child(1) { animation-delay: .05s; }
.store-card:nth-child(2) { animation-delay: .10s; }
.store-card:nth-child(3) { animation-delay: .15s; }
.store-card:nth-child(4) { animation-delay: .20s; }
.store-card:nth-child(5) { animation-delay: .25s; }
.store-card:nth-child(6) { animation-delay: .30s; }
.store-card:nth-child(7) { animation-delay: .35s; }
.store-card:nth-child(8) { animation-delay: .40s; }

/* ================================================
   ONLINE STORES SECTION
   ================================================ */

/* ================================================
   ORDER BANNER SIDE DRAWER
   ================================================ */
.order-banner-trigger {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(160deg, #1a4a2e 0%, #0f2d1b 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  z-index: 900;
  box-shadow: 4px 0 20px rgba(0,40,15,.25);
  transition: transform .3s ease, box-shadow .3s;
  writing-mode: vertical-rl;
  writing-mode: unset;
}
.order-banner-trigger:hover {
  transform: translateY(-50%) translateX(4px);
  box-shadow: 6px 0 28px rgba(0,40,15,.35);
}
.order-banner-trigger svg { width: 20px; height: 20px; flex-shrink: 0; }
.order-banner-trigger span {
  font-size: 12px;
  font-weight: 700;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  letter-spacing: .5px;
  white-space: nowrap;
}
.order-banner-drawer {
  position: fixed;
  left: -320px;
  top: 0;
  height: 100%;
  width: 300px;
  background: linear-gradient(160deg, #1a4a2e 0%, #0a1f11 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left .4s cubic-bezier(.4,0,.2,1);
  box-shadow: 6px 0 40px rgba(0,0,0,.3);
}
.order-banner-drawer.open {
  left: 0;
}
.drawer-inner {
  text-align: center;
  padding: 40px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.drawer-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.drawer-close:hover { background: rgba(255,255,255,.22); }
.drawer-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.12);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.drawer-icon svg { width: 30px; height: 30px; color: #fff; }
.drawer-inner h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}
.drawer-inner p {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
}
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.drawer-overlay.visible { display: block; }

/* ================================================
   REMOVE OLD ORDER BANNER SECTION (not in use now)
   ================================================ */
.order-banner-section { display: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-4); }

/* Responsive */
@media (max-width: 600px) {
  .filter-row { flex-direction: column; }
  .select-wrapper { min-width: unset; width: 100%; }
  .btn-search { width: 100%; justify-content: center; }
  .near-me-card { flex-direction: column; align-items: flex-start; }
  .btn-locate { width: 100%; justify-content: center; }
  .order-banner { flex-direction: column; align-items: flex-start; }
  .btn-order { width: 100%; justify-content: center; }
}
