/*
Theme Name: Master AI Today
Theme URI: https://masteraitoday.com
Author: David Wilson
Author URI: https://masteraitoday.com
Description: A clean, Apple-inspired WooCommerce theme for selling digital AI guides and courses. Large type, generous whitespace, translucent navigation, and a product grid built for downloadable products.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masteraitoday
Tags: e-commerce, one-column, custom-menu, custom-logo, featured-images, full-width-template, translation-ready
WC requires at least: 7.0
WC tested up to: 9.4
*/

/* ═══════════════════════════════════════════════════════════════════════════
   MASTER AI TODAY — Apple-inspired design system
   All styles live here. Edit --accent to rebrand the whole site in one line.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
  /* Brand accent — change these two lines to rebrand */
  --accent:            #0071e3;
  --accent-hover:      #0077ed;

  /* Apple neutral palette */
  --black:             #000000;
  --ink:               #1d1d1f;   /* Apple's primary text */
  --ink-secondary:     #6e6e73;   /* Apple's secondary text */
  --ink-tertiary:      #86868b;
  --hairline:          #d2d2d7;
  --surface:           #ffffff;
  --surface-alt:       #f5f5f7;   /* Apple's signature light gray */
  --surface-dark:      #161617;
  --surface-tint:      #fbfbfd;

  /* Semantic */
  --success:           #1d9e5e;
  --warning:           #bf6516;
  --danger:            #d70015;

  /* Type scale */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --wrap:              980px;
  --wrap-wide:         1240px;
  --nav-h:             48px;
  --radius-sm:         8px;
  --radius:            12px;
  --radius-lg:         18px;
  --radius-xl:         28px;

  /* Motion */
  --ease:              cubic-bezier(0.28, 0.11, 0.32, 1);
  --dur:               0.4s;
}

/* ── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }

/* ── TYPOGRAPHY SCALE ──────────────────────────────────────────────────── */
.t-hero      { font-size: clamp(40px, 7vw, 80px);  font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.t-display   { font-size: clamp(32px, 5.2vw, 56px); font-weight: 700; letter-spacing: -0.032em; line-height: 1.07; }
.t-section   { font-size: clamp(28px, 4vw, 44px);  font-weight: 600; letter-spacing: -0.03em;  line-height: 1.09; }
.t-title     { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.026em; line-height: 1.16; }
.t-lead      { font-size: clamp(19px, 2.1vw, 24px); font-weight: 400; letter-spacing: -0.014em; line-height: 1.38; color: var(--ink-secondary); }
.t-body      { font-size: 17px; line-height: 1.53; color: var(--ink-secondary); }
.t-small     { font-size: 14px; line-height: 1.43; color: var(--ink-secondary); letter-spacing: -0.012em; }
.t-caption   { font-size: 12px; line-height: 1.4; color: var(--ink-tertiary); letter-spacing: 0; }

.eyebrow {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--accent);
  margin-bottom: 6px;
}

.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* ── LAYOUT ────────────────────────────────────────────────────────────── */
.wrap       { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-wide  { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 22px; }
.wrap-narrow{ max-width: 720px; margin: 0 auto; padding: 0 22px; }

.section       { padding: 100px 0; }
.section-sm    { padding: 64px 0; }
.section-lg    { padding: 130px 0; }
.section-alt   { background: var(--surface-alt); }
.section-tint  { background: var(--surface-tint); }
.section-dark  { background: var(--surface-dark); color: #f5f5f7; }
.section-dark .t-lead,
.section-dark .t-body,
.section-dark .t-small { color: #a1a1a6; }

.stack-8  > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 980px;              /* Apple's pill radius */
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), opacity 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: #000; color: #fff; }

.btn-ghost { background: transparent; color: var(--accent); padding: 12px 4px; }
.btn-ghost:hover { text-decoration: underline !important; }

.btn-lg { min-height: 52px; padding: 15px 30px; font-size: 19px; }
.btn-sm { min-height: 34px; padding: 7px 16px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

.link-arrow { font-size: 19px; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 0.8; transition: transform 0.25s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── NAVIGATION ────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 9000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: var(--wrap-wide);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none !important;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--ink); }
.nav-brand img { max-height: 26px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.85;
  text-decoration: none !important;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover { opacity: 1; }
.nav-menu .current-menu-item > a { opacity: 1; font-weight: 500; }

.nav-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }

.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ink);
  opacity: 0.85;
  font-size: 12px;
  text-decoration: none !important;
}
.nav-cart:hover { opacity: 1; }
.nav-cart svg { width: 17px; height: 17px; }

.cart-count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span { display: block; width: 17px; height: 1px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Announcement bar */
.announce {
  background: var(--surface-alt);
  padding: 11px 22px;
  text-align: center;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ink-secondary);
}
.announce a { color: var(--accent); }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 90px 0 80px;
  text-align: center;
  background: var(--surface);
}
.hero .t-lead { max-width: 660px; margin-left: auto; margin-right: auto; margin-top: 18px; }
.hero .btn-row { margin-top: 32px; }

.hero-alt { background: var(--surface-alt); }

.hero-visual {
  margin-top: 54px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-visual img {
  width: 190px;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14), 0 3px 8px rgba(0, 0, 0, 0.06);
  transition: transform var(--dur) var(--ease);
}
.hero-visual img:hover { transform: translateY(-8px); }

/* ── PRODUCT GRID ──────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.11);
}

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ebebef;
  overflow: hidden;
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.035); }

.pcard-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}

.pcard-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.pcard-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.24;
  color: var(--ink);
}
.pcard-title a { color: inherit; text-decoration: none !important; }

.pcard-excerpt { font-size: 14px; line-height: 1.45; color: var(--ink-secondary); flex: 1; }

.pcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.pcard-price { font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.02em; }
.pcard-price del { color: var(--ink-tertiary); font-weight: 400; margin-right: 6px; font-size: 15px; }
.pcard-price ins { text-decoration: none; }

/* Full-card click target */
.pcard-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}
.pcard-foot .btn { position: relative; z-index: 2; }

/* Badge */
.pbadge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 11px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
}
.pbadge.accent { background: var(--accent); }
.pbadge.warn   { background: var(--warning); }

/* ── FEATURE TILES (Apple bento style) ─────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.bento-3 { grid-template-columns: repeat(3, 1fr); }

.tile {
  background: var(--surface-alt);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.tile.dark { background: var(--surface-dark); color: #f5f5f7; }
.tile.dark .t-body { color: #a1a1a6; }
.tile.span-2 { grid-column: span 2; }

.tile-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 4px;
  font-size: 22px;
}
.tile.dark .tile-icon { background: rgba(255,255,255,0.1); }

/* ── VALUE PROP ROW ────────────────────────────────────────────────────── */
.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px 30px;
  text-align: center;
}
.prop-num {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.section-dark .prop-num { color: #fff; }

/* ── SINGLE PRODUCT ────────────────────────────────────────────────────── */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 60px 0 80px;
}

.product-gallery {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-alt);
}
.product-gallery img { width: 100%; height: auto; }

.product-summary { padding-top: 6px; }
.product-summary .price {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 18px 0;
  display: block;
}
.product-summary .price del { color: var(--ink-tertiary); font-weight: 400; font-size: 22px; margin-right: 10px; }
.product-summary .price ins { text-decoration: none; }

.product-meta-list {
  list-style: none;
  padding: 0;
  margin: 26px 0;
  border-top: 1px solid var(--hairline);
}
.product-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-secondary);
}
.product-meta-list .check { color: var(--success); flex-shrink: 0; font-weight: 600; }

.instant-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(29, 158, 94, 0.1);
  color: var(--success);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Tabs */
.woocommerce-tabs { padding: 70px 0; border-top: 1px solid var(--hairline); }
.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}
.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0 0 14px;
  font-size: 17px;
  color: var(--ink-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none !important;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.woocommerce-Tabs-panel h2 { font-size: 24px; margin-bottom: 16px; }
.woocommerce-Tabs-panel { font-size: 17px; line-height: 1.6; color: var(--ink-secondary); }
.woocommerce-Tabs-panel ul { padding-left: 1.2em; }
.woocommerce-Tabs-panel li { margin-bottom: 8px; }

/* ── FORMS ─────────────────────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"], textarea, select {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}
label { display: block; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M6 8L0 2l1.4-1.4L6 5.2l4.6-4.6L12 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

/* ── CART & CHECKOUT ───────────────────────────────────────────────────── */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  margin-bottom: 30px;
}
.woocommerce table.shop_table th {
  text-align: left;
  padding: 0 12px 14px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  border-bottom: 1px solid var(--hairline);
}
.woocommerce table.shop_table td {
  padding: 20px 12px 20px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
  font-size: 15px;
}
.woocommerce table.shop_table img { width: 68px; border-radius: var(--radius-sm); }
.woocommerce table.shop_table .product-name a { color: var(--ink); font-weight: 500; }

.cart_totals, .checkout-review {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.cart_totals h2, .checkout-review h3 { font-size: 21px; margin-bottom: 18px; }
.cart_totals table { width: 100%; }
.cart_totals th, .cart_totals td { padding: 11px 0; font-size: 15px; text-align: left; border-bottom: 1px solid var(--hairline); }
.cart_totals .order-total th, .cart_totals .order-total td { font-size: 19px; font-weight: 600; border-bottom: 0; padding-top: 16px; }

.woocommerce .quantity input { width: 68px; text-align: center; }

.remove {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  color: var(--ink-tertiary) !important;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
  text-decoration: none !important;
}
.remove:hover { background: var(--danger); color: #fff !important; }

/* Checkout layout */
.checkout-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
#customer_details .col-1, #customer_details .col-2 { width: 100%; }
.woocommerce-billing-fields h3, .woocommerce-additional-fields h3 { font-size: 21px; margin: 0 0 18px; }
.form-row { margin-bottom: 16px; }
.form-row-first, .form-row-last { width: 48.5%; float: left; }
.form-row-last { float: right; }
.form-row.form-row-wide { clear: both; }
#order_review { position: sticky; top: calc(var(--nav-h) + 30px); }

#payment { background: transparent; }
#payment ul.payment_methods { list-style: none; margin: 0 0 20px; padding: 0; border: 0; }
#payment ul.payment_methods li { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
#payment div.payment_box { background: var(--surface); padding: 14px; border-radius: var(--radius-sm); margin-top: 12px; font-size: 14px; }

.woocommerce #place_order, .woocommerce .checkout-button {
  width: 100%;
  min-height: 52px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 980px;
  font-size: 19px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.25s;
}
.woocommerce #place_order:hover, .woocommerce .checkout-button:hover { background: var(--accent-hover); }

/* ── NOTICES ───────────────────────────────────────────────────────────── */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.woocommerce-message { background: rgba(29,158,94,0.1); color: #14663d; }
.woocommerce-info    { background: rgba(0,113,227,0.09); color: #0a4a92; }
.woocommerce-error   { background: rgba(215,0,21,0.08); color: #9c0010; }
.woocommerce-error li { margin: 0; }

/* ── DOWNLOADS (My Account) ────────────────────────────────────────────── */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--hairline); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 13px 0; color: var(--ink-secondary); text-decoration: none !important; font-size: 15px; }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--ink); font-weight: 500; }
.account-cols { display: grid; grid-template-columns: 230px 1fr; gap: 50px; align-items: start; }

/* ── FAQ / ACCORDION ───────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.faq-icon { flex-shrink: 0; width: 15px; height: 15px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--ink-secondary);
  top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translateY(-50%) rotate(0deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a-inner { padding: 0 0 24px; font-size: 17px; line-height: 1.55; color: var(--ink-secondary); max-width: 760px; }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-alt);
  padding: 50px 0 34px;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.5;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}
.footer-col h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--ink-secondary); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  align-items: center;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--ink-secondary); }

.footer-disclaimer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-tertiary);
  max-width: 900px;
  font-size: 11px;
  line-height: 1.55;
}

/* ── UTILITIES ─────────────────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.hairline-top { border-top: 1px solid var(--hairline); }
.clearfix::after { content: ""; display: table; clear: both; }
.hide { display: none !important; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .checkout-cols { grid-template-columns: 1fr; gap: 40px; }
  #order_review { position: static; }
}

@media (max-width: 860px) {
  .section     { padding: 70px 0; }
  .section-lg  { padding: 84px 0; }
  .product-hero { grid-template-columns: 1fr; gap: 34px; padding: 34px 0 56px; }
  .product-gallery { position: static; max-width: 420px; margin: 0 auto; }
  .bento, .bento-3 { grid-template-columns: 1fr; }
  .tile.span-2 { grid-column: span 1; }
  .tile { min-height: 0; padding: 40px 28px; }
  .account-cols { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 26px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .nav-open .nav-menu { max-height: 76vh; overflow-y: auto; }
  .nav-menu a { padding: 15px 0; font-size: 17px; border-bottom: 1px solid rgba(0,0,0,0.06); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 50px; }
  .product-grid, .product-grid.cols-3, .product-grid.cols-2 { grid-template-columns: 1fr; gap: 18px; }
  .woocommerce-tabs ul.tabs { gap: 20px; overflow-x: auto; }
  .form-row-first, .form-row-last { width: 100%; float: none; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .woocommerce table.shop_table thead { display: none; }
  .woocommerce table.shop_table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
  .woocommerce table.shop_table td { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
