/* D. H. Panchal & Co. — shared stylesheet
   Futuristic, vastu-aligned to the proprietor's birthday, 29 June 1968:
   - Day number 29 -> 2 (Moon): silver, white, pearl, soft blue-grey —
     sleek, premium, reflective surfaces, glass-like cards.
   - Destiny 29+06+1968 = 41 -> 5 (Mercury): emerald/jade green accents —
     trade, communication, sharpness. Green carries links, buttons, glows.
   Light backgrounds throughout; no dominant dark tones; no warm-metal palette. */
:root {
  /* Moon — silver / pearl / soft blue-grey */
  --pearl: #f7f9f9;
  --silver: #eef2f2;
  --mist: #e2e8e8;
  --white: #ffffff;
  --border: #d8e0e0;
  --border-light: #e6ebeb;
  /* Text — deep slate-grey / blue-grey (never near-black) */
  --ink: #2f3a3a;
  --ink-soft: #5a6a6a;
  --ink-light: #7d8f8f;
  /* Mercury — emerald / jade accents */
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-bright: #10b981;
  --mint: #e6f7f0;
  --mint-soft: #f0faf6;
  --glow: rgba(16, 185, 129, 0.35);
  --glow-soft: rgba(16, 185, 129, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pearl);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--emerald-dark); }
a:hover, a:focus { color: var(--emerald); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 2px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin-top: 0; }
h1 { font-size: 2.1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

/* Uppercase letter-spaced section label (kicker) for futuristic typography.
   Integration pass: add <p class="kicker">…</p> above a section heading. */
.kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--emerald-bright), 0 6px 18px rgba(47, 58, 58, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--mint-soft);
  color: var(--emerald-dark);
  border-color: var(--border-light);
}
.main-nav a[aria-current="page"] {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 0 0 1px var(--emerald-dark), 0 4px 14px var(--glow-soft);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(560px 220px at 85% -40px, var(--glow-soft), transparent 70%),
    radial-gradient(420px 180px at 8% 0, rgba(226, 232, 232, 0.9), transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--silver) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero .tagline {
  font-size: 1.25rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 16px;
}
.hero p { max-width: 680px; color: var(--ink-soft); }
.hero .cta-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--emerald);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid var(--emerald-dark);
  box-shadow: 0 6px 18px var(--glow-soft);
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover, .btn:focus {
  background: var(--emerald-dark);
  color: var(--white);
  box-shadow: 0 6px 22px var(--glow);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink-light);
  box-shadow: none;
}
.btn-outline:hover, .btn-outline:focus {
  background: var(--white);
  color: var(--emerald-dark);
  border-color: var(--emerald);
  box-shadow: 0 4px 14px var(--glow-soft);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.trust-strip li::before {
  content: "\2713  ";
  color: var(--emerald);
  font-weight: 700;
}

/* ---------- Sections / cards ---------- */
.section { padding: 48px 0; }
.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.card {
  background: linear-gradient(180deg, var(--white) 0%, var(--pearl) 100%);
  border: 1px solid var(--border);
  border-top: 2px solid var(--emerald-bright);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(47, 58, 58, 0.05);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); flex: 1; margin: 0 0 16px; }
.card a.card-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--emerald-dark);
}
.card a.card-link:hover { color: var(--emerald); }

/* ---------- Contact details ---------- */
.contact-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  max-width: 640px;
  box-shadow: 0 4px 16px rgba(47, 58, 58, 0.05);
}
.contact-box dl { margin: 0; }
.contact-box dt { font-weight: 700; margin-top: 16px; }
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { margin: 4px 0 0; color: var(--ink-soft); }
.to-be-added {
  display: inline-block;
  background: var(--mint);
  border: 1px dashed var(--emerald);
  border-radius: 6px;
  padding: 2px 10px;
  font-style: italic;
  color: var(--ink-soft);
}
.map-link { display: inline-block; margin-top: 16px; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--silver);
  color: var(--ink-soft);
  padding: 36px 0 28px;
  margin-top: 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.site-footer h3 { color: var(--emerald-dark); font-size: 1.05rem; margin-bottom: 8px; }
.site-footer p, .site-footer address { color: var(--ink-soft); font-style: normal; margin: 0 0 8px; font-size: 0.95rem; }
.site-footer a { color: var(--emerald-dark); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-light);
  text-align: center;
}

/* ---------- Product cards ---------- */
.product-card { padding: 0 0 24px; overflow: hidden; }
.product-card h3, .product-card p { padding-left: 24px; padding-right: 24px; }
.product-card h3 { margin-top: 16px; }
.product-media {
  height: 200px;
  background: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* CSS-only placeholder for products with no photo: emerald circle with initial. */
.product-placeholder span {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--emerald-bright);
  color: var(--emerald-dark);
  font-size: 2.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--glow-soft);
}

/* ---------- Feature images (AI-generated futuristic visuals) ---------- */
.hero-img, .section-img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(47, 58, 58, 0.08), 0 0 0 1px var(--glow-soft);
  object-fit: cover;
}
.hero-img { margin-top: 28px; max-height: 420px; }
.section-img { margin: 8px 0 24px; max-height: 360px; }

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.8rem; }
  .hero .tagline { font-size: 1.1rem; }
  .section { padding: 36px 0; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 8px 10px; }
}

/* ---------- AI features (Nov 18 upgrade) ---------- */
/* Card hover polish */
.card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(47, 58, 58, 0.10), 0 0 0 1px var(--glow-soft);
  border-color: var(--emerald-bright);
}
.product-card.flash {
  animation: card-flash 1.8s ease;
}
@keyframes card-flash {
  0%, 100% { box-shadow: 0 4px 16px rgba(47, 58, 58, 0.05); }
  25%, 60% { box-shadow: 0 0 0 3px var(--emerald-bright), 0 10px 26px var(--glow); }
}

/* Product card actions */
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 24px;
  margin-top: auto;
}
.card-actions .btn, .card-actions .btn-outline { padding: 9px 16px; font-size: 0.9rem; }
.wa-btn { white-space: nowrap; }

/* Search + filters */
.search-bar { margin: 8px 0 4px; }
.search-bar input[type="search"] {
  width: 100%;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(47, 58, 58, 0.04);
}
.search-bar input[type="search"]:focus {
  outline: none;
  border-color: var(--emerald-bright);
  box-shadow: 0 0 0 3px var(--glow-soft);
}
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 8px;
}
.filter-chip {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--emerald-bright); color: var(--emerald-dark); }
.filter-chip.is-active {
  background: var(--emerald);
  border-color: var(--emerald-dark);
  color: var(--white);
  box-shadow: 0 4px 12px var(--glow-soft);
}
.product-count { color: var(--ink-light); font-size: 0.92rem; margin: 4px 0 0; }
.product-empty {
  background: var(--white);
  border: 1px dashed var(--emerald);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  margin-top: 20px;
}

/* Guided part finder */
.finder {
  background: linear-gradient(180deg, var(--white) 0%, var(--mint-soft) 100%);
  border: 1px solid var(--border);
  border-top: 2px solid var(--emerald-bright);
  border-radius: 10px;
  padding: 28px;
  margin-top: 24px;
  box-shadow: 0 4px 16px rgba(47, 58, 58, 0.05);
}
.finder h2 { margin-bottom: 6px; }
.finder p.lede { color: var(--ink-soft); margin-top: 0; }
.finder-step { margin-top: 20px; }
.finder-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  margin: 0 0 10px;
}
.finder-options { display: flex; gap: 8px; flex-wrap: wrap; }
.finder-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.finder-btn:hover { border-color: var(--emerald-bright); color: var(--emerald-dark); }
.finder-btn.is-active {
  background: var(--emerald);
  border-color: var(--emerald-dark);
  color: var(--white);
  box-shadow: 0 4px 12px var(--glow-soft);
}
.finder-results {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.finder-results h3 { margin-bottom: 10px; }
.finder-result {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--mint);
  border: 1px solid var(--emerald-bright);
  color: var(--emerald-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.finder-result:hover { background: var(--emerald); color: var(--white); }
.finder-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Quick-view modal */
.qv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(47, 58, 58, 0.45);
  z-index: 40;
}
.qv-dialog {
  position: fixed;
  z-index: 41;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--emerald-bright);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(47, 58, 58, 0.25);
  padding: 0 0 24px;
}
.qv-media {
  height: 280px;
  background: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.qv-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv-media.product-placeholder span {
  width: 110px; height: 110px; border-radius: 50%;
  background: var(--mint); border: 2px solid var(--emerald-bright);
  color: var(--emerald-dark); font-size: 2.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qv-body { padding: 20px 24px 0; }
.qv-category {
  margin: 0 0 6px;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--emerald);
}
.qv-name { font-size: 1.4rem; margin-bottom: 8px; }
.qv-note { color: var(--ink-soft); margin: 0 0 18px; }
.qv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qv-close {
  position: absolute;
  top: 10px; right: 12px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(47, 58, 58, 0.12);
}
.qv-close:hover { color: var(--emerald-dark); border-color: var(--emerald-bright); }

/* ---------- AI chat widget ---------- */
.ai-chat { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.ai-chat-bubble {
  display: flex;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: 999px;
  border: 2px solid var(--emerald-dark);
  background: var(--emerald);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 8px 22px var(--glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ai-chat-bubble:hover { transform: translateY(-2px); box-shadow: 0 12px 26px var(--glow); }
.ai-chat-bubble-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: ai-pulse 2s infinite;
}
@keyframes ai-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.ai-chat-panel {
  width: min(360px, calc(100vw - 36px));
  height: min(520px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--emerald-bright);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(47, 58, 58, 0.22);
  overflow: hidden;
}
.ai-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--mint-soft), var(--white));
  border-bottom: 1px solid var(--border-light);
}
.ai-chat-head strong { display: block; font-size: 1rem; }
.ai-chat-head span { display: block; font-size: 0.78rem; color: var(--ink-light); line-height: 1.4; margin-top: 2px; }
.ai-chat-close {
  border: none; background: none;
  font-size: 1.5rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; padding: 0 2px;
}
.ai-chat-close:hover { color: var(--emerald-dark); }
.ai-chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--pearl);
}
.ai-chat-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.ai-chat-msg-assistant {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.ai-chat-msg-user {
  background: var(--emerald);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.ai-chat-msg a { font-weight: 700; }
.ai-chat-msg-user a { color: var(--white); }
.ai-chat-typing span {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--emerald-bright);
  animation: ai-typing 1.2s infinite;
}
.ai-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.ai-chat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px 4px;
  border-top: 1px solid var(--border-light);
}
.ai-chat-chip {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--mint-soft);
  color: var(--emerald-dark);
  cursor: pointer;
}
.ai-chat-chip:hover { background: var(--mint); }
.ai-chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border-light);
}
.ai-chat-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.93rem;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
}
.ai-chat-form input:focus { outline: none; border-color: var(--emerald-bright); box-shadow: 0 0 0 3px var(--glow-soft); }
.ai-chat-form button {
  font: inherit;
  font-weight: 700;
  font-size: 0.93rem;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--emerald);
  color: var(--white);
  cursor: pointer;
}
.ai-chat-form button:hover { background: var(--emerald-dark); }

@media (max-width: 640px) {
  .ai-chat { right: 12px; bottom: 12px; }
  .ai-chat-panel { height: min(480px, calc(100vh - 90px)); }
  .finder { padding: 20px; }
  .qv-media { height: 220px; }
}

/* The hidden attribute must always win over component display rules. */
[hidden] { display: none !important; }
