/* 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; }

/* ── Primary nav ────────────────────────────────────────── */
.nav { display: flex; gap: 4px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav ul, .nav-dropdown ul { list-style: none; padding: 0; margin: 0; }
.nav ul li, .nav-dropdown ul li { list-style: none; }
.nav-link {
  color: var(--text); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.nav-link:hover { color: var(--green-dark); background: var(--bg-soft); }
.nav-link .caret { font-size: 10px; opacity: 0.6; transition: transform 0.15s; }

.nav-item { position: relative; }
.nav-item--has-dropdown:hover .caret,
.nav-item--has-dropdown:focus-within .caret { transform: rotate(180deg); }

/* ── Dropdown panel ─────────────────────────────────────── */
.nav-dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  padding: 18px;
  z-index: 110; min-width: 380px;
}
.nav-item--has-dropdown:hover > .nav-dropdown,
.nav-item--has-dropdown:focus-within > .nav-dropdown {
  display: block;
}
.nav-dropdown-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nav-dropdown-col { min-width: 0; }
.nav-dropdown-col h5,
.nav-dropdown-col h5.nav-dropdown-heading {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-dim);
  margin: 0 0 10px 0; padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}
.nav-dropdown-col ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.nav-dropdown-col ul li { margin: 0; list-style: none !important; padding: 0; }
.nav-dropdown-col ul li::marker { content: none; }
.nav-dropdown-col ul li a {
  display: block; padding: 6px 8px; font-size: 13px;
  color: var(--text); border-radius: 4px; line-height: 1.4;
  text-decoration: none;
}
.nav-dropdown-col ul li a:hover { background: var(--green-light); color: var(--green-dark); }

/* keep dropdown anchored to right edge for last item */
.nav-item--has-dropdown:nth-last-child(-n+3) .nav-dropdown { left: auto; right: 0; }

/* ── Header CTA ──────────────────────────────────────────── */
.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;
  white-space: nowrap;
}
.header-cta:hover { background: var(--green-dark); color: #fff; }

/* ── Mobile hamburger ───────────────────────────────────── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
  flex-direction: column; gap: 5px; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .header-inner { gap: 12px; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .header-cta span.label { display: none; }
  .nav {
    display: none; order: 99; width: 100%; flex-direction: column;
    gap: 0; padding: 12px 0;
    border-top: 1px solid var(--border-light); margin-top: 8px;
  }
  .nav.is-open { display: flex; }
  .nav-link { width: 100%; padding: 10px 4px; border-radius: 0;
    border-bottom: 1px solid var(--bg-soft); justify-content: space-between;
  }
  .nav-item { width: 100%; }
  .nav-dropdown {
    display: none;
    position: static;
    box-shadow: none; border: none; border-radius: 0;
    padding: 8px 0 8px 16px; min-width: 0;
    background: var(--bg-soft);
  }
  .nav-item--has-dropdown.is-open .nav-dropdown { display: block; }
  /* Disable hover-to-show on touch devices to avoid sticky-open dropdowns */
  .nav-item--has-dropdown:hover > .nav-dropdown,
  .nav-item--has-dropdown:focus-within > .nav-dropdown { display: none; }
  .nav-item--has-dropdown.is-open > .nav-dropdown { display: block; }
  .nav-dropdown-inner { grid-template-columns: 1fr; gap: 12px; }
  .nav-item--has-dropdown:nth-last-child(-n+3) .nav-dropdown { right: auto; left: auto; }
}

/* ── 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; }


/* ════════════════════════════════════════════════════════════════
   CONTENT-AREA READABILITY
   Scoped to .description-content, .cat-description, .faq-answer
   The global * { margin:0; padding:0 } reset strips browser defaults,
   so all content rhythm must be explicit here.
   ──────────────────────────────────────────────────────────────── */
.description-content,
.cat-description,
.faq-answer {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

/* Paragraphs — proper vertical rhythm */
.description-content p,
.cat-description p,
.faq-answer p {
  margin: 0 0 16px 0;
}
.description-content p:last-child,
.cat-description p:last-child,
.faq-answer p:last-child { margin-bottom: 0; }

/* Headings inside content — clear section breaks */
.description-content h2,
.cat-description h2 {
  font-size: 22px; font-weight: 600;
  margin: 36px 0 12px 0;
  color: var(--green-darker); line-height: 1.3;
}
.description-content h2:first-child,
.cat-description h2:first-child { margin-top: 8px; }

.description-content h3,
.cat-description h3 {
  font-size: 18px; font-weight: 600;
  margin: 28px 0 10px 0;
  color: var(--green-darker); line-height: 1.35;
}

.description-content h4,
.cat-description h4 {
  font-size: 16px; font-weight: 600;
  margin: 22px 0 8px 0;
  color: var(--text);
}

/* Lists — restore bullets & spacing the global reset stripped */
.description-content ul,
.description-content ol,
.cat-description ul,
.cat-description ol,
.faq-answer ul,
.faq-answer ol {
  margin: 0 0 16px 0;
  padding-left: 26px;
}
.description-content ul,
.cat-description ul,
.faq-answer ul { list-style: disc outside; }
.description-content ol,
.cat-description ol,
.faq-answer ol { list-style: decimal outside; }

.description-content li,
.cat-description li,
.faq-answer li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.description-content li:last-child,
.cat-description li:last-child,
.faq-answer li:last-child { margin-bottom: 0; }

/* Nested lists */
.description-content li > ul,
.description-content li > ol,
.cat-description li > ul,
.cat-description li > ol {
  margin: 8px 0 4px 0;
}

/* Strong / em — clear emphasis */
.description-content strong,
.cat-description strong,
.faq-answer strong {
  font-weight: 600;
  color: var(--green-darker);
}
.description-content em,
.cat-description em { font-style: italic; }

/* Tables inside content */
.description-content table,
.cat-description table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px 0;
  font-size: 14px;
}
.description-content th,
.description-content td,
.cat-description th,
.cat-description td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.description-content th,
.cat-description th {
  background: var(--bg-section);
  font-weight: 600;
  color: var(--green-darker);
}
.description-content tr:nth-child(even) td,
.cat-description tr:nth-child(even) td {
  background: var(--bg-soft);
}

/* Blockquotes */
.description-content blockquote,
.cat-description blockquote {
  border-left: 3px solid var(--green);
  padding: 8px 0 8px 18px;
  margin: 16px 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Inline code & code blocks (rare but possible in blog content) */
.description-content code,
.cat-description code {
  background: var(--bg-section);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.description-content pre,
.cat-description pre {
  background: var(--bg-section);
  padding: 14px 16px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
}

/* Links inside content — clearly distinguishable */
.description-content a,
.cat-description a,
.faq-answer a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.description-content a:hover,
.cat-description a:hover,
.faq-answer a:hover {
  color: var(--green);
}

/* Definition lists */
.description-content dl,
.cat-description dl { margin: 0 0 16px 0; }
.description-content dt,
.cat-description dt { font-weight: 600; margin-top: 10px; }
.description-content dd,
.cat-description dd { margin-left: 18px; margin-bottom: 8px; }

/* HR */
.description-content hr,
.cat-description hr {
  border: 0; border-top: 1px solid var(--border-light);
  margin: 28px 0;
}

/* Intro paragraph (lead text) — slightly larger */
.cat-intro p:first-child,
.description-content > p:first-of-type {
  font-size: 16px;
  line-height: 1.7;
}

/* FAQ items — internal spacing */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}
.faq-item summary {
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 0;
  color: var(--green-darker);
  list-style: none;
  position: relative;
  padding-right: 32px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 4px;
  font-size: 22px;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.15s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item .faq-answer {
  padding: 8px 0 6px 0;
  color: var(--text);
}

/* Mobile content adjustments */
@media (max-width: 640px) {
  .description-content h2,
  .cat-description h2 { font-size: 20px; margin-top: 28px; }
  .description-content h3,
  .cat-description h3 { font-size: 17px; margin-top: 22px; }
  .description-content,
  .cat-description,
  .faq-answer { font-size: 15px; }
  .description-content ul,
  .description-content ol,
  .cat-description ul,
  .cat-description ol { padding-left: 22px; }
  .description-content table,
  .cat-description table { font-size: 13px; }
  .description-content th,
  .description-content td,
  .cat-description th,
  .cat-description td { padding: 8px 10px; }
}
