* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #f2f2f2;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: #0a7a32;
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .brand { text-decoration: none; color: white; }
.site-header h1 { font-size: 1.35rem; }
.site-header .tagline { font-size: 0.8rem; opacity: 0.9; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}

.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: white;
}

main { flex: 1; }

.site-footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 0.85rem;
  background: #e8e8e8;
  margin-top: auto;
}

.site-footer a { color: #0a7a32; }

.hero {
  background: linear-gradient(135deg, #0a7a32, #12a84a);
  color: white;
  text-align: center;
  padding: 36px 20px;
}

.hero h2 { font-size: 1.7rem; margin-bottom: 8px; }

.hub {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
}

.hub h2 {
  text-align: center;
  color: #0a7a32;
  margin-bottom: 20px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.hub-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s;
  display: block;
}

.hub-card:hover { transform: translateY(-3px); }
.hub-card .icon { font-size: 2rem; margin-bottom: 8px; }
.hub-card h3 { font-size: 1rem; margin-bottom: 6px; color: #0a7a32; }
.hub-card p { font-size: 0.8rem; color: #666; }

.page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* —— retail.pk shop + AI —— */
.shop-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 960px) {
  .shop-layout {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
  .ai-panel { position: sticky; top: 80px; }
}

.shop-products .section-title,
.shop-products .section-subtitle { text-align: left; margin-bottom: 16px; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.product-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.15s;
}

.product-card:hover { transform: translateY(-3px); }
.product-card .emoji { font-size: 2.2rem; margin-bottom: 8px; }
.product-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.product-card .price { color: #0a7a32; font-weight: bold; font-size: 1rem; margin-bottom: 8px; }
.product-card .stock { font-size: 0.75rem; color: #666; margin-bottom: 10px; }
.product-card .desc { font-size: 0.78rem; color: #555; margin-bottom: 8px; line-height: 1.35; }
.product-card button {
  background: #0a7a32; color: white; border: none; padding: 10px 14px;
  border-radius: 10px; cursor: pointer; font-size: 0.85rem; width: 100%;
}
.product-card button:hover { background: #086028; }
.product-card.ai { border: 2px solid #2563eb; }
.product-card.ai .price { color: #2563eb; }
.product-card.ai button { background: #2563eb; }
.product-card.ai button:hover { background: #1d4ed8; }

.section-subtitle { font-size: 1.15rem; color: #2563eb; margin: 8px 0 16px; }

.ai-panel {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 20px;
  padding: 22px;
  color: white;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35);
}

.ai-panel h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-panel .ai-badge {
  font-size: 0.7rem;
  background: #00bfff;
  color: #000;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: bold;
}

.ai-panel .ai-sub { font-size: 0.8rem; opacity: 0.85; margin-bottom: 14px; }

#chat {
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  padding: 14px;
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: left;
}

#chat .chat-line { margin-bottom: 10px; }
#chat a { color: #7dd3fc; }
#chat b { color: #e2e8f0; }

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ai-chips button {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
}

.ai-chips button:hover { background: rgba(0, 191, 255, 0.35); }

.chat-input-row { display: flex; gap: 8px; }

.chat-input-row input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
}

.chat-input-row button {
  background: #00bfff;
  color: #0f172a;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.chat-input-row button:hover { background: #38bdf8; }

.hero-ai {
  background: linear-gradient(135deg, #0a7a32 0%, #0d9488 50%, #2563eb 100%);
  color: white;
  text-align: center;
  padding: 44px 20px 36px;
}

.hero-ai h2 { font-size: 2rem; margin-bottom: 10px; }
.hero-ai p { opacity: 0.95; max-width: 520px; margin: 0 auto 16px; }
.hero-ai .hero-cta {
  display: inline-block;
  background: white;
  color: #0a7a32;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
}
.hero-ai .hero-cta:hover { background: #e9ffe9; }
