/* Fonts and Base */
:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #1a73e8;
  --primary-600: #1557b3;
  --accent: #22c55e;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
/* Dark theme */
[data-theme="dark"] {
  --bg: #0f172a;
  --card: #0b1223;
  --text: #e5e7eb;
  --muted: #a3a7b3;
  --primary: #60a5fa;
  --primary-600: #3b82f6;
  --accent: #4ade80;
  --border: #1f2a44;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nav { display: flex; gap: 24px; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  align-items: center; justify-content: center;
  gap: 5px; flex-direction: column;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(10, 22, 50, 0.45), rgba(10, 22, 50, 0.45)), url('../img/hero.svg');
  background-size: cover; background-position: center;
  filter: saturate(1.05);
}
.hero-content {
  position: relative; color: #fff;
  padding: 96px 0 88px;
  text-align: center;
}
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(28px, 4vw + 8px, 48px); margin: 0 0 10px; }
.tagline { font-size: 18px; opacity: 0.95; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 26px; }
.hero-features { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.feature { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.12); padding: 10px 14px; border-radius: 999px; }
.feature .icon { font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; transition: transform .15s ease, background .2s, box-shadow .2s, color .2s, border-color .2s; font-weight: 600; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: #0b2b16; font-weight: 700; }
.btn-whatsapp:hover { background: #1ebe5a; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: #eef3fb; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 { font-size: 28px; margin: 0 0 8px; font-family: 'Montserrat', sans-serif; }
.section-header p { color: var(--muted); margin: 0; }

/* Cards Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(17,24,39,.12); }
.card-image { height: 180px; background-size: cover; background-position: center; }
.card-body { padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.price { font-weight: 700; color: var(--primary); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stock-badge { font-size: 12px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--border); }
.stock-badge.in-stock { background: #e8f7ef; color: #137a3a; border-color: #c4e8d1; }
.stock-badge.low-stock { background: #fff6e5; color: #8a6100; border-color: #ffe2a8; }
.stock-badge.out-stock { background: #fde8e8; color: #8a1f1f; border-color: #f7c2c2; }

/* Catalog */
.catalog-actions { margin-bottom: 18px; display: flex; justify-content: flex-end; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s; }
.product-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 14px 40px rgba(17,24,39,.12); }
.product-image { position: relative; overflow: hidden; }
.product-image img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-body { padding: 16px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Enquiry Panel */
.enquiry-fab { position: fixed; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; z-index: 60; }
.enquiry-panel { position: fixed; top: 0; right: 0; height: 100vh; width: 360px; max-width: 92vw; background: var(--card); border-left: 1px solid var(--border); box-shadow: -8px 0 30px rgba(0,0,0,.08); transform: translateX(100%); transition: transform .25s ease; z-index: 70; display: flex; flex-direction: column; }
.enquiry-panel.open { transform: translateX(0); }
.enquiry-header { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--border); }
.enquiry-items { padding: 12px; overflow: auto; flex: 1; display: grid; gap: 10px; }
.enquiry-item { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.enquiry-qty { display: inline-flex; align-items: center; gap: 6px; }
.enquiry-form { border-top: 1px solid var(--border); padding: 12px; display: grid; gap: 10px; }
.enquiry-actions { display: flex; gap: 8px; }
.enquiry-close { border: 1px solid var(--border); background: transparent; border-radius: 8px; height: 36px; width: 36px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 80; }
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.lightbox-image { position: relative; max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: #fff; border: 0; border-radius: 50%; width: 36px; height: 36px; }

/* Testimonials */
.testimonial-slider { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 16px; overflow: hidden; }
.testimonial { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.testimonial .stars { color: #f59e0b; font-weight: 700; }
.testimonial .name { color: var(--muted); margin-top: 8px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat-num { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 32px; color: var(--primary); }
.stat-label { color: var(--muted); margin-top: 6px; }

/* Newsletter */
.newsletter-form { display: flex; gap: 10px; justify-content: center; }
.newsletter-form input { width: 100%; max-width: 420px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); }

/* Floating WhatsApp */
.wa-floating { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; background: #25d366; color: #0b2b16; border-radius: 50%; box-shadow: var(--shadow); font-size: 22px; z-index: 60; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.about-image img { width: 100%; border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: '✔'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.muted { color: var(--muted); }
.contact-actions { margin: 12px 0 18px; }
.map-wrapper { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

.contact-form { background: var(--card); border: 1px solid var(--border); padding: 18px; border-radius: 16px; box-shadow: var(--shadow); }
.form-group { display: grid; gap: 6px; margin-bottom: 14px; }
.form-group label { font-weight: 600; }
.form-group input, .form-group textarea {
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none; background: #fff; color: var(--text);
  transition: border .15s ease, box-shadow .15s ease;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,115,232,0.12); }
.error { color: #b00020; min-height: 16px; }
.form-status { margin-top: 8px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 18px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.socials { display: flex; gap: 12px; }
.social { color: var(--muted); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border); background: var(--card); transition: background .15s, color .15s, transform .15s; }
.social:hover { color: var(--primary); background: #f6f9ff; transform: translateY(-1px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav { position: fixed; right: 12px; left: 12px; top: 68px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; flex-direction: column; gap: 10px; display: none; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero-content { padding: 72px 0 56px; }
  .category-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .product-image img { aspect-ratio: 1 / 1; }
  .map-wrapper { aspect-ratio: 4/3; }
}

/* Very small phones */
@media (max-width: 375px) {
  .header-inner { height: 60px; }
  .btn, .social, .enquiry-close { min-height: 40px; }
  .enquiry-fab, .wa-floating { width: 52px; height: 52px; }
}

/* Enquiry panel on small screens */
@media (max-width: 480px) {
  .enquiry-panel { width: 100vw; }
}


