/* ContactLens.pk — Static site styles */
:root {
  --green:        #1D9E75;
  --green-dark:   #0F6E56;
  --green-darker: #04342C;
  --green-light:  #E1F5EE;
  --text:         #1a1a1a;
  --text-muted:   #5F5E5A;
  --text-dim:     #888780;
  --border:       #D3D1C7;
  --border-light: #EDEBE3;
  --bg:           #ffffff;
  --bg-soft:      #FAF9F4;
  --bg-section:   #F5F3EC;
  --amber:        #BA7517;
  --red:          #A32D2D;
  --whatsapp:     #25D366;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg);
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── Top notice bar ─────────────────────────────────────── */
.top-bar {
  background: var(--green-darker); color: #fff; font-size: 12px;
  padding: 6px 0; text-align: center;
}
.top-bar a { color: #fff; text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────── */
.header {
  background: #fff; border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--green); }

.header-cta {
  background: var(--green); color: #fff; padding: 8px 14px;
  border-radius: 6px; font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.header-cta:hover { background: var(--green-dark); color: #fff; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 768px) {
  .nav { display: none; }
  .header-cta span.label { display: none; }
  .mobile-toggle { display: block; font-size: 22px; }
}

/* ── Breadcrumbs ────────────────────────────────────────── */
.breadcrumbs {
  padding: 12px 0; font-size: 12px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .sep { margin: 0 6px; color: var(--text-dim); }
.breadcrumbs .current { color: var(--text); }

/* ── Product page ───────────────────────────────────────── */
.product-page { padding: 24px 0 48px; }
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Gallery */
.gallery-main {
  background: var(--bg-soft); border-radius: 8px;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-top: 8px;
}
.gallery-thumb {
  aspect-ratio: 1; background: var(--bg-soft); border-radius: 4px;
  border: 1.5px solid transparent; cursor: pointer; overflow: hidden;
}
.gallery-thumb.active { border-color: var(--green-dark); }
.stock-badge {
  position: absolute; top: 12px; left: 12px; font-size: 11px;
  padding: 4px 10px; border-radius: 4px; font-weight: 500;
}
.stock-badge.in { background: var(--green); color: #fff; }
.stock-badge.out { background: var(--red); color: #fff; }

/* Product info */
.product-info h1 {
  font-size: 24px; font-weight: 600; line-height: 1.25; margin-bottom: 8px;
}
.brand-line {
  font-size: 12px; color: var(--green-dark); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.price-row {
  display: flex; align-items: baseline; gap: 12px;
  margin: 14px 0 18px; padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.price { font-size: 26px; font-weight: 600; color: var(--text); }
.price-range { font-size: 18px; color: var(--text-muted); }
.regular-price { font-size: 14px; color: var(--text-dim); text-decoration: line-through; }
.sale-badge {
  background: #FCEBEB; color: var(--red); font-size: 11px;
  padding: 3px 8px; border-radius: 4px; font-weight: 500;
}

/* Variation options */
.option-group { margin-bottom: 14px; }
.option-label {
  font-size: 12px; color: var(--text-muted); margin-bottom: 6px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px;
}
.option-values { display: flex; flex-wrap: wrap; gap: 6px; }
.option-pill {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 6px 12px; border-radius: 6px; font-size: 12px;
  cursor: pointer; transition: all 0.15s;
}
.option-pill:hover { border-color: var(--green-dark); }
.option-pill.selected {
  border-color: var(--green-dark); background: var(--green-light);
  color: var(--green-darker); font-weight: 500;
}

/* CTA buttons */
.cta-stack { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.btn {
  padding: 13px 18px; border-radius: 8px; font-size: 15px;
  font-weight: 500; text-align: center; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; transition: all 0.15s; text-decoration: none;
}
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1ebd5b; color: #fff; }
.btn-call {
  background: #fff; color: var(--green-dark);
  border: 1.5px solid var(--green-dark);
}
.btn-call:hover { background: var(--green-light); }
.btn-icon { width: 20px; height: 20px; }

/* Trust signals */
.trust-row {
  border-top: 1px solid var(--border-light); padding-top: 14px;
  font-size: 13px; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 8px;
}
.trust-row .item { display: flex; align-items: center; gap: 8px; }
.trust-row .icon { color: var(--green-dark); flex-shrink: 0; }

/* Tabs & description */
.product-tabs { margin-top: 40px; }
.tab-headers {
  display: flex; gap: 24px; border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.tab-header {
  padding: 10px 0; font-size: 14px; font-weight: 500;
  color: var(--text-muted); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-header.active { color: var(--text); border-bottom-color: var(--green-dark); }
.tab-content { padding: 20px 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.description-content { font-size: 15px; line-height: 1.75; }
.description-content p { margin-bottom: 14px; }
.description-content h2 { font-size: 20px; font-weight: 600; margin: 20px 0 10px; }
.description-content h3 { font-size: 17px; font-weight: 600; margin: 18px 0 8px; }
.description-content strong, .description-content b { font-weight: 600; }
.description-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.description-content td, .description-content th {
  padding: 10px 12px; border: 1px solid var(--border-light); text-align: left;
}
.description-content th, .description-content .title {
  background: var(--bg-soft); font-weight: 500;
}
.description-content ul { margin: 10px 0 14px 20px; }

.spec-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--border-light); border-radius: 6px; overflow: hidden;
}
.spec-table tr:nth-child(even) { background: var(--bg-soft); }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); }
.spec-table td:first-child { color: var(--text-muted); width: 35%; }

/* Related products */
.related { margin-top: 48px; }
.section-h { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.product-grid-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 768px) {
  .product-grid-cards { grid-template-columns: repeat(2, 1fr); }
}

.product-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 8px; overflow: hidden; transition: box-shadow 0.15s;
}
.product-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
.product-card a { color: inherit; display: block; }
.product-card-img { background: var(--bg-soft); aspect-ratio: 1; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card-body { padding: 12px; }
.product-card-cat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.product-card-title { font-size: 14px; font-weight: 500; margin: 4px 0 8px; line-height: 1.3; }
.product-card-price { font-size: 15px; font-weight: 600; color: var(--text); }

/* Category page */
.category-page { padding: 24px 0; }
.cat-header { margin-bottom: 24px; }
.cat-header h1 { font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.cat-count { color: var(--text-muted); font-size: 13px; }
.cat-description {
  margin-top: 12px; font-size: 14px; color: var(--text-muted);
  line-height: 1.7; max-width: 720px;
}

/* Home page */
.hero {
  background: var(--bg-section); padding: 32px 0;
}
.hero-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-card {
  background: #fff; border-radius: 10px; padding: 20px;
  text-align: center;
}
.hero-card .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.hero-card h2 { font-size: 18px; font-weight: 600; margin: 6px 0 12px; }
.hero-card img { width: 100%; aspect-ratio: 16/9; object-fit: contain; margin: 10px 0; }
.hero-card .vibe { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

.section { padding: 36px 0; }
.section-title {
  text-align: center; font-size: 24px; font-weight: 600;
  margin-bottom: 6px;
}
.section-sub {
  text-align: center; color: var(--text-muted); font-size: 14px;
  margin-bottom: 24px;
}

.features-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .features-row { grid-template-columns: repeat(2, 1fr); }
}
.feature { text-align: center; padding: 16px; }
.feature-icon { font-size: 24px; color: var(--green-dark); margin-bottom: 8px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--text-muted); }

/* Footer */
.footer {
  background: var(--green-darker); color: #fff; padding: 40px 0 16px;
  margin-top: 60px;
}
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer h4 {
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; font-size: 14px; }
.footer-about { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.footer-contact { font-size: 14px; }
.footer-contact .item { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px;
  text-align: center; font-size: 13px; color: rgba(255,255,255,0.7);
}

/* Floating WhatsApp button */
.float-wa {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  background: var(--whatsapp); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.float-wa:hover { transform: scale(1.05); color: #fff; }
.float-wa svg { width: 28px; height: 28px; }
