/* Eyesavers shared styles (all pages): v2 minimal system.
   Layout uses only flexbox containers so every block maps to
   Elementor: Section (.e-section) → Container (.e-container / .e-row / .e-col) → Widget. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-text);
  font: 400 var(--fs-base)/var(--lh-body) var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-sans); font-weight: 500; line-height: var(--lh-tight); letter-spacing: var(--track-tight); margin: 0; color: inherit; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3, .h3 { font-size: var(--fs-md); line-height: var(--lh-snug); letter-spacing: -.01em; }
h4 { font-size: var(--fs-base); letter-spacing: 0; line-height: var(--lh-snug); }
p { margin: 0; }
.eyebrow, .label {
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--c-text-2); line-height: 1.4;
}
.lead { font-size: var(--fs-md); line-height: 1.35; color: var(--c-text-2); max-width: 46ch; letter-spacing: -.01em; }
.muted { color: var(--c-text-2); }
.serif-italic { font-family: var(--f-serif); font-style: italic; font-weight: 500; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur-normal) var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Layout primitives (Elementor containers) ---------- */
.e-section { padding: var(--section-y) var(--gutter); }
.e-container { max-width: var(--container); margin-inline: auto; display: flex; flex-direction: column; gap: var(--s-6); }
.e-row { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.e-col { display: flex; flex-direction: column; gap: var(--s-4); flex: 1 1 0; min-width: 0; }
.e-head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 760px; }
.e-head--center { align-items: center; text-align: center; margin-inline: auto; }
.e-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-4); }
.align-center { align-items: center; }
.w-50 { flex: 1 1 calc(50% - var(--s-5)); }
.w-33 { flex: 1 1 calc(33.333% - var(--s-5)); }
.w-25 { flex: 1 1 calc(25% - var(--s-5)); }
@media (max-width: 1024px) { .w-25, .w-33 { flex-basis: calc(50% - var(--s-5)); } }
@media (max-width: 767px)  { .w-50, .w-33, .w-25 { flex-basis: 100%; } .e-row { gap: var(--s-4); } }

.band-ink { background: var(--c-surface-inverse); color: var(--c-text-inverse); }
.band-ink .eyebrow, .band-ink .label, .band-ink .muted, .band-ink .lead { color: var(--c-text-inverse-2); }
.band-sand, .band-alt { background: var(--c-surface-alt); }
.hairline { border: 0; border-top: 1px solid var(--c-line); margin: 0; }

/* ---------- Buttons: square, uppercase, quiet ---------- */
.btn-group { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-4); border: 1px solid transparent; border-radius: var(--radius);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
/* primary: black on light, white on dark */
.btn--primary, .btn--ink { background: var(--c-text); color: var(--c-text-inverse); }
.btn--primary:hover, .btn--ink:hover { background: #2B2B2B; }
.band-ink .btn--primary, .site-header .btn--primary, .on-dark .btn--primary { background: var(--c-text-inverse); color: var(--c-text); }
.band-ink .btn--primary:hover, .site-header .btn--primary:hover, .on-dark .btn--primary:hover { background: #DCDCDC; }
/* outline */
.btn--outline { border-color: var(--c-text); color: var(--c-text); background: transparent; }
.btn--outline:hover { background: var(--c-text); color: var(--c-text-inverse); }
.band-ink .btn--outline, .on-dark .btn--outline, .site-header .btn--outline { border-color: var(--c-text-inverse); color: var(--c-text-inverse); }
.band-ink .btn--outline:hover, .on-dark .btn--outline:hover, .site-header .btn--outline:hover { background: var(--c-text-inverse); color: var(--c-text); }
/* WhatsApp buy action (WooCommerce add-to-cart replacement) */
.btn--wa { background: var(--c-text); color: var(--c-text-inverse); }
.btn--wa:hover { background: var(--c-whatsapp); }

/* ---------- Placeholder marker (remove this block when real content arrives) ---------- */
.ph { position: relative; outline: 1px dashed var(--c-accent); outline-offset: 4px; }
.ph-tag {
  display: inline-flex; align-self: flex-start; padding: 1px 6px;
  background: #FFF4D6; color: #6B4E00; font: 600 11px/1.6 var(--f-sans); letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Header (Elementor: Header template) ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--c-surface); color: var(--c-text); padding: 8px 16px; }
.skip-link:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-surface-inverse); color: var(--c-text-inverse); border-bottom: 1px solid var(--c-line-inverse); }
.site-header__inner { max-width: var(--container); margin-inline: auto; padding: 8px var(--gutter); min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.site-logo { display: flex; align-items: center; flex: none; }
.site-logo img { width: 112px; height: auto; }
.site-nav { display: flex; align-items: center; gap: var(--s-6); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-5); }
.site-nav a:not(.btn) { color: var(--c-text-inverse); text-decoration: none; font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-normal) var(--ease); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { min-height: 40px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--c-line-inverse); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--c-text-inverse); cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; transition: transform var(--dur-normal) var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1024px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: fixed; inset: 69px 0 auto 0; background: var(--c-surface-inverse); flex-direction: column; align-items: stretch; padding: var(--s-3) var(--gutter) var(--s-5); gap: var(--s-4); border-top: 1px solid var(--c-line-inverse); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--dur-normal) var(--ease), transform var(--dur-normal) var(--ease), visibility var(--dur-normal); max-height: calc(100vh - 69px); overflow-y: auto; }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a:not(.btn) { display: flex; width: 100%; min-height: 52px; font-size: var(--fs-sm); border-bottom: 1px solid var(--c-line-inverse); }
  .site-nav ul a:not(.btn)::after { display: none; }
  .site-nav .btn { min-height: 48px; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { width: 100%; flex-wrap: wrap; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: var(--s-8) var(--gutter) var(--s-7); border-bottom: 1px solid var(--c-line-inverse); }
.page-hero .e-container { gap: var(--s-4); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 52ch; }
.breadcrumbs { font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--c-text-inverse-2); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--s-2); }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs--light { color: var(--c-text-2); }

/* ---------- Cards: hairline, no boxes ---------- */
.card { border-top: 1px solid var(--c-line-strong); padding: var(--s-4) 0 0; display: flex; flex-direction: column; gap: var(--s-3); }
.card p { color: var(--c-text-2); }
.card--inverse { background: var(--c-surface-inverse); color: var(--c-text-inverse); border-top: 0; padding: var(--s-5); }
.card--inverse p { color: var(--c-text-inverse-2); }
.icon-badge { width: 28px; height: 28px; display: flex; align-items: center; justify-content: flex-start; color: currentColor; flex: none; }
.icon-badge svg { width: 24px; height: 24px; }
.img-arch, .img-round { overflow: hidden; }
.img-arch img, .img-round img { width: 100%; height: 100%; object-fit: cover; }
.icon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.icon-list li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) 0; border-top: 1px solid var(--c-line); }
.icon-list li:last-child { border-bottom: 1px solid var(--c-line); }
.icon-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.band-ink .icon-list li { border-color: var(--c-line-inverse); }
.band-ink .icon-list a { color: var(--c-text-inverse); }

/* ---------- Product card (WooCommerce loop item) ---------- */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card__media { aspect-ratio: 4 / 5; background: var(--c-surface-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-reveal) var(--ease); }
.product-card__media--contain { padding: var(--s-4); }
.product-card__media--contain img { object-fit: contain; mix-blend-mode: multiply; }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body { padding: var(--s-3) 0 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product-card__brand { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--c-text-2); }
.product-card__name { font-size: var(--fs-sm); font-weight: 500; line-height: var(--lh-snug); letter-spacing: 0; }
.product-card__name a { text-decoration: none; display: inline-block; padding: 12px 0; margin: -12px 0; } /* 44px tap target, no layout shift */
.product-card__name a:hover { text-decoration: underline; }
.product-card__price { font-size: var(--fs-sm); color: var(--c-text-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.product-card__actions { margin-top: auto; padding-top: var(--s-3); display: flex; }
.product-card__actions .btn { width: 100%; }

/* ---------- FAQ (Elementor Accordion) ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--c-line-strong); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 64px; padding: var(--s-3) 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat; transition: transform var(--dur-normal) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 var(--s-4); color: var(--c-text-2); max-width: 64ch; display: flex; flex-direction: column; gap: var(--s-2); }
.faq a { color: var(--c-text); }

/* ---------- Forms ---------- */
.form { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-3); }
.field { display: flex; flex-direction: column; gap: var(--s-2); flex: 1 1 calc(50% - var(--s-3)); min-width: 0; }
.field--full { flex-basis: 100%; }
@media (max-width: 767px) { .field { flex-basis: 100%; } }
.field label { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #858585; border-radius: var(--radius); background: var(--c-surface); color: var(--c-text); font-size: var(--fs-base); transition: border-color var(--dur-fast); }
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--c-text-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-text); box-shadow: 0 0 0 1px var(--c-text); }
.field [aria-invalid="true"] { border-color: var(--c-error); box-shadow: 0 0 0 1px var(--c-error); }
.field-error { color: var(--c-error); font-size: var(--fs-xs); min-height: 1em; }
.band-ink .field input, .band-ink .field select, .band-ink .field textarea { background: var(--c-surface-inverse-2); border-color: #4A4A4A; color: var(--c-text-inverse); }
.band-ink .field-error { color: #FDA29B; }
.form-note { font-size: var(--fs-sm); color: var(--c-text-2); flex-basis: 100%; }
.req { color: var(--c-error); }

/* ---------- Footer (Elementor: Footer template) ---------- */
.site-footer { background: var(--c-surface-inverse); color: var(--c-text-inverse-2); padding: var(--s-8) var(--gutter) var(--s-4); font-size: var(--fs-sm); }
.site-footer .e-row { gap: var(--s-6); }
.site-footer h2 { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--c-text-inverse-2); }
.site-footer a { color: var(--c-text-inverse); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-footer p { color: var(--c-text-inverse); }
.footer-brand { flex: 1.6 1 300px; }
.footer-brand img { width: 150px; }
.footer-brand p { max-width: 34ch; color: var(--c-text-inverse-2); }
.footer-col { flex: 1 1 170px; }
.socials { display: flex; gap: var(--s-2); }
.socials a { width: 44px; height: 44px; border: 1px solid var(--c-line-inverse); display: flex; align-items: center; justify-content: center; transition: background-color var(--dur-fast), color var(--dur-fast); }
.socials a:hover { background: var(--c-text-inverse); color: var(--c-text); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { max-width: var(--container); margin: var(--s-7) auto 0; padding-top: var(--s-4); border-top: 1px solid var(--c-line-inverse); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-xs); letter-spacing: var(--track-label); text-transform: uppercase; }
.footer-bottom p { color: var(--c-text-inverse-2); }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--c-whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px -8px rgba(0,0,0,.45); transition: transform var(--dur-normal) var(--ease); }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 26px; height: 26px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Prices: sale price + struck-through MRP (WooCommerce <ins>/<del>) ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); font-size: var(--fs-base); margin: 0; }
.price ins { text-decoration: none; font-weight: 600; color: var(--c-text); }
.price del { color: var(--c-text-2); font-size: var(--fs-sm); text-decoration: line-through; text-decoration-thickness: 1px; }
.price__off { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--c-whatsapp); }

/* ---------- Cart: header icon, add-to-cart button, toast ---------- */
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.cart-link { position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--c-text-inverse); border: 1px solid var(--c-line-inverse); text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast); }
.cart-link:hover { background: var(--c-text-inverse); color: var(--c-text); }
.cart-link svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--c-accent); color: #000; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.cart-count[data-empty="true"] { display: none; }
.btn--cart.is-added { background: var(--c-whatsapp); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; background: var(--c-surface-inverse); color: var(--c-text-inverse); font-size: var(--fs-sm); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); max-width: calc(100vw - 32px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--c-text-inverse); font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; white-space: nowrap; }
.site-header__inner > .header-actions { order: 3; }
.product-card__media--contain { aspect-ratio: 4 / 3; }
