/*
Theme Name: Neuro Modern
Theme URI: http://172.30.31.132:1212
Author: Neuro Assessment Platform
Description: تم اختصاصی، راست‌به‌چپ و مدرن برای سامانه ارزیابی عصبروانشناختی. طراحی آرام، بالینی و اعتماد محور با پالت اسلیت و اکسنت کبود سبز.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: neuro-modern
Tags: rtl-language-support, custom-menu, woocommerce, one-column, two-columns
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette - locked for whole site */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --ink: #1e293b;
  --ink-2: #475569;
  --ink-3: #64748b;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-deep: #134e4a;
  --accent-soft: #ccfbf1;
  --accent-soft-2: #f0fdfa;
  --border: #e2e8f0;
  --border-2: #cbd5e1;

  /* Shape - one system */
  --r-card: 12px;
  --r-input: 8px;
  --r-pill: 999px;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 72px;

  /* Elevation - tinted, not pure black */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 10px 28px rgba(15, 23, 42, .07);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 56px rgba(15, 23, 42, .12);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ============================================================
   2. FONTS (self-hosted Vazirmatn)
   ============================================================ */
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}

/* ============================================================
   3. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; font-weight: 800; color: var(--ink); margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--accent-deep); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section--tight { padding-block: 56px; }

/* Eyebrow - used sparingly */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; }

.lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; }

/* ============================================================
   4. BUTTONS (pill)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 16px; font-weight: 700; line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft-2); }
.btn--light { background: #fff; color: var(--accent-deep); }
.btn--light:hover { background: var(--accent-soft); color: var(--accent-deep); }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ============================================================
   5. HEADER / NAV (single line, <=72px)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand:hover { color: var(--accent); }
.brand-mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; border-radius: 10px;
}
.brand-mark svg { width: 22px; height: 22px; }

.header-nav { flex: 1; display: flex; justify-content: center; overflow: visible; }
.header-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.header-nav li { display: block; position: relative; margin: 0; padding: 0; }
.header-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.header-nav a:hover, .header-nav .current-menu-item > a { color: var(--accent); background: var(--accent-soft-2); }
.header-nav .caret { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.header-nav li.open .caret { transform: rotate(180deg); }

/* Dropdown */
.header-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  z-index: 60;
}
.header-nav li:hover .sub-menu, .header-nav li.open .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.header-nav .sub-menu a { padding: 10px 14px; border-radius: 8px; font-size: 14px; white-space: nowrap; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }

/* Mobile toggle */
.nav-toggle {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-2); border-radius: 10px; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   6. HERO (asymmetric split)
   ============================================================ */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.25; font-weight: 800; letter-spacing: -.01em; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual { position: relative; }
.hero-visual .frame {
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3.4; background: var(--surface-2);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; bottom: 20px; right: -18px;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px 18px; box-shadow: var(--shadow-lg);
}
.hero-chip .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.hero-chip .ic svg { width: 22px; height: 22px; }
.hero-chip b { display: block; font-size: 15px; }
.hero-chip span { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   7. TRUST STRIP (under hero)
   ============================================================ */
.trust { border-block: 1px solid var(--border); background: var(--surface); padding-block: 26px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 44px; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.trust-item svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ============================================================
   8. BENTO (test catalog)
   ============================================================ */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.bento-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 28px; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.bento-card h3 { font-size: 20px; margin: 0; }
.bento-card p { font-size: 15px; color: var(--ink-2); margin: 0; }
.bento-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft-2); border-radius: var(--r-pill); padding: 5px 12px; align-self: flex-start; }
.bento-meta { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--ink-3); }
.bento-meta span { display: inline-flex; align-items: center; gap: 6px; }
.bento-meta svg { width: 16px; height: 16px; }
.bento-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--accent); margin-top: 4px; }
.bento-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.bento-card:hover .bento-link svg { transform: translateX(-4px); }

/* cell spans - asymmetric rhythm */
.bento-card--a { grid-column: span 7; }
.bento-card--b { grid-column: span 5; }
.bento-card--c { grid-column: span 5; }
.bento-card--d { grid-column: span 7; }

.bento-card--tint { background: linear-gradient(150deg, var(--accent-deep), var(--accent)); border-color: transparent; color: #fff; }
.bento-card--tint h3, .bento-card--tint p { color: #fff; }
.bento-card--tint p { opacity: .85; }
.bento-card--tint .bento-tag { background: rgba(255,255,255,.16); color: #fff; }
.bento-card--tint .bento-meta { color: rgba(255,255,255,.8); }
.bento-card--tint .bento-link { color: #fff; }

.bento-card--img { padding: 0; }
.bento-card--img .bento-img { aspect-ratio: 16 / 8; overflow: hidden; }
.bento-card--img .bento-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.bento-card--img:hover .bento-img img { transform: scale(1.04); }
.bento-card--img .bento-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bento-img--wcst { aspect-ratio: 16 / 9; }
.bento-figure { margin: 4px 0 8px; }
.bento-figure img { width: 100%; height: auto; display: block; }

/* ============================================================
   9. STEPS (how it works - vertical)
   ============================================================ */
.steps-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.steps { display: flex; flex-direction: column; }
.step { position: relative; display: flex; gap: 22px; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; right: 23px; top: 52px; bottom: 8px; width: 2px;
  background: var(--border);
}
.step:last-child::before { display: none; }
.step-num {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 18px;
  position: relative; z-index: 1;
}
.step h3 { font-size: 19px; margin: 2px 0 8px; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; max-width: 46ch; }
.steps-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.steps-aside .frame { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); aspect-ratio: 4/3; }
.steps-aside .frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   10. STATS BAND (full-width dark teal)
   ============================================================ */
.band { background: linear-gradient(135deg, var(--accent-deep), var(--accent)); color: #fff; padding-block: 72px; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.band-item svg { width: 30px; height: 30px; margin: 0 auto 14px; opacity: .9; }
.band-item b { display: block; font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.band-item span { font-size: 14px; opacity: .82; }

/* ============================================================
   11. TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
}
.quote .stars { display: flex; gap: 3px; color: #f59e0b; }
.quote .stars svg { width: 18px; height: 18px; }
.quote p { font-size: 15.5px; color: var(--ink); margin: 0; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none; }
.quote-author b { display: block; font-size: 15px; }
.quote-author span { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   12. FAQ (accordion)
   ============================================================ */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; background: transparent; border: 0;
  font-size: 16px; font-weight: 700; color: var(--ink); text-align: right;
}
.faq-q svg { width: 20px; height: 20px; color: var(--accent); flex: none; transition: transform .25s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; font-size: 15px; color: var(--ink-2); }
.faq-item.open .faq-a { max-height: 320px; }

/* ============================================================
   13. FINAL CTA
   ============================================================ */
.cta-final { padding-block: 88px; }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 64px 32px; box-shadow: var(--shadow);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 220px at 50% -40px, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.cta-box h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; position: relative; }
.cta-box p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 30px; position: relative; }
.cta-box .btn { position: relative; }

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 64px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: #94a3b8; font-size: 14px; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #94a3b8; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: 13px; color: #64748b; }
.site-footer .brand { color: #fff; }

/* ============================================================
   15. GENERIC PAGE / CONTENT
   ============================================================ */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.page-hero-sub { color: var(--ink-2); font-size: 17px; max-width: 640px; margin: 0; line-height: 1.9; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.contact-card-icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; background: var(--accent-soft-2); color: var(--accent); border-radius: 10px; }
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 15px; margin: 0 0 4px; }
.contact-card a, .contact-card span { color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.contact-card a:hover { color: var(--accent); }
.contact-note { background: var(--accent-soft-2); border: 1px solid var(--accent-soft); color: var(--accent-deep); border-radius: var(--r-card); padding: 16px 18px; font-size: 13.5px; line-height: 1.9; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-field .req { color: #dc2626; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid var(--border-2); border-radius: var(--r-input); padding: 12px 14px; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { align-self: flex-start; }
.contact-alert { border-radius: var(--r-card); padding: 14px 18px; margin-bottom: 24px; font-size: 14.5px; font-weight: 600; }
.contact-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.contact-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
}
.entry-content { max-width: 760px; }
.entry-content h2 { font-size: 24px; margin-top: 2em; }
.entry-content p { color: var(--ink-2); }

/* ============================================================
   16. WOOCOMMERCE
   ============================================================ */
/* Shop grid: ALWAYS 4 cards in one single row on desktop/tablet — independent of
   screen size, Windows scale or browser zoom (no viewport breakpoint above 640px).
   Grid + minmax(0,1fr) makes wrapping mathematically impossible. */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
}
.woocommerce ul.products[class*=columns-],
.woocommerce-page ul.products[class*=columns-] {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after { content: none !important; display: none !important; }
/* Responsive: below 640px -> 2 per row, below 420px -> 1 per row (phones) */
@media (max-width: 640px) {
  .woocommerce ul.products, .woocommerce ul.products[class*=columns-],
  .woocommerce-page ul.products, .woocommerce-page ul.products[class*=columns-] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 420px) {
  .woocommerce ul.products, .woocommerce ul.products[class*=columns-],
  .woocommerce-page ul.products, .woocommerce-page ul.products[class*=columns-] { grid-template-columns: 1fr !important; }
}
/* Related products on single product pages: section itself carries the "products"
   class, so scope the grid to ul.products only and style the section separately. */
.woocommerce section.related.products { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); display: block; }
.woocommerce section.related.products > h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 24px; }
.woocommerce section.related.products ul.products { grid-template-columns: repeat(3, 1fr) !important; }
@media (max-width: 1080px) { .woocommerce section.related.products ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .woocommerce section.related.products ul.products { grid-template-columns: 1fr !important; } }
.woocommerce ul.products li.product {
  margin: 0 !important; padding: 0 !important; width: 100% !important; float: none !important; clear: none !important;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.woocommerce ul.products li.product img { border-radius: 0; margin: 0 !important; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { flex: 1; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px; font-weight: 700; padding: 18px 20px 6px; color: var(--ink); line-height: 1.6; }
.woocommerce ul.products li.product .price { padding: 0 20px 4px; color: var(--accent); font-weight: 800; font-size: 16px; margin-top: auto; }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .cart .button, .woocommerce .checkout .button {
  background: var(--accent) !important; color: #fff !important; border-radius: var(--r-pill) !important;
  font-weight: 700 !important; padding: 12px 22px !important; border: 0 !important;
  transition: background .18s var(--ease);
}
.woocommerce ul.products li.product .button { margin: 14px 20px 20px; text-align: center; }
.woocommerce .woocommerce-result-count { float: none; display: inline-block; margin: 0 0 18px; color: var(--ink-3); font-size: 14px; }
.woocommerce .woocommerce-ordering { float: none; display: inline-block; margin: 0 0 18px; vertical-align: middle; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--accent-dark) !important; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--accent); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); }

/* Forms */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .input-text, input[type=text], input[type=email],
input[type=tel], input[type=password], input[type=number], textarea, select {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-input);
  padding: 12px 16px; font-family: inherit; font-size: 15px; color: var(--ink); width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { font-weight: 500; font-size: 14px; color: var(--ink); display: block; margin-bottom: 6px; }

/* Account nav — tab/button style */
.woocommerce-MyAccount-navigation { margin-bottom: 28px; }
.woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.woocommerce-MyAccount-navigation li { margin: 0; }
.woocommerce-MyAccount-navigation a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px 10px 0 0;
  color: var(--ink-2); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; border-bottom: none;
  background: transparent; white-space: nowrap;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
  position: relative; top: 1px;
}
.woocommerce-MyAccount-navigation a svg { width: 18px; height: 18px; flex: 0 0 18px; }
.woocommerce-MyAccount-navigation a:hover {
  color: var(--accent); background: var(--accent-soft-2);
}
.woocommerce-MyAccount-navigation li.is-active a {
  color: var(--accent); background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 1px 0 0 var(--surface);
}
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #b91c1c; }
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fef2f2; color: #991b1b; }

/* Dashboard welcome */
.nm-account-welcome {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card, 14px); padding: 32px;
  text-align: center;
}
.nm-account-welcome-title { margin: 0 0 8px; font-size: 22px; color: var(--ink); }
.nm-account-welcome-text { margin: 0; color: var(--ink-3); font-size: 15px; }

/* Account nav responsive */
@media (max-width: 768px) {
  .woocommerce-MyAccount-navigation ul { flex-direction: column; gap: 4px; border-bottom: none; }
  .woocommerce-MyAccount-navigation a {
    border-radius: 10px; border: 1px solid var(--border);
    width: 100%; justify-content: flex-start; top: 0;
  }
  .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--accent-soft-2); border-color: var(--accent);
    box-shadow: none;
  }
  .nm-account-welcome { padding: 24px 18px; }
}
@media (max-width: 480px) {
  .woocommerce-MyAccount-navigation a { padding: 12px 16px; font-size: 14px; }
}

/* ============================================================
   17. REVEAL ANIMATION (reduced-motion safe)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .steps-wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps-aside { position: static; order: -1; max-width: 560px; }
  .band-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento-card--a, .bento-card--b, .bento-card--c, .bento-card--d { grid-column: span 12; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .header-nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; top: var(--nav-h);
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px; display: none; box-shadow: var(--shadow-lg);
  }
  .header-nav.open { display: block; }
  .header-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .header-nav a { display: flex; justify-content: space-between; padding: 14px 16px; border-radius: 10px; }
  .header-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 4px 16px 8px; display: none; min-width: 0;
  }
  .header-nav li.open .sub-menu { display: flex; }
  .header-actions .btn--ghost { display: none; }
  .section { padding-block: 64px; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .hero { padding: 48px 0 64px; }
  .hero-cta .btn { flex: 1; }
  .band-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-chip { right: 12px; }
}
