/*
Theme Name:   ArsLens
Theme URI:    https://arslens.com
Author:       ArsLens Studio
Description:  Premium WooCommerce theme for ArsLens eyewear. Dark homepage, light shop, Cormorant Garamond typography. All sections editable via Customizer. Child-theme ready.
Version:      2.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License:      Proprietary
Text Domain:  arslens
Tags:         woocommerce, e-commerce, eyewear, dark, luxury
WC requires at least: 8.0
WC tested up to: 9.9
*/

/* ═══════════════════════════════════════════════
   1. CSS VARIABLES
═══════════════════════════════════════════════ */
:root {
  /* Colours */
  --al-dark:       #0C0A08;
  --al-dark2:      #141210;
  --al-dark3:      #1E1B18;
  --al-ink:        #2C2824;
  --al-white:      #FDFBF8;
  --al-cream:      #F5F1EB;
  --al-cream2:     #EDE8E0;
  --al-cream3:     #E2DBD0;
  --al-gold:       #A8864A;
  --al-gold2:      #C4A46E;
  --al-gold3:      #D9BF94;
  --al-mid:        #7A7268;
  --al-light:      #ADA69E;
  --al-border:     rgba(44,40,36,0.12);
  --al-border-inv: rgba(253,251,248,0.12);
  --al-error:      #AD2E1A;
  --al-new:        #1A4A2E;

  /* Typography */
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Cormorant Garamond', Georgia, serif;
  --f-ui:      'Jost', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --nav-h:     70px;
  --max-w:     1440px;
  --pad:       clamp(1.5rem, 4vw, 4rem);

  /* Motion */
  --ease:      cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out:  cubic-bezier(0, 0, 0.24, 1);
  --dur:       0.4s;
}

/* ═══════════════════════════════════════════════
   2. RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  background: var(--al-cream);
  color: var(--al-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════
   3. LAYOUT UTILITIES
═══════════════════════════════════════════════ */
.al-wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.al-section { padding-block: clamp(4rem, 8vw, 8rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ═══════════════════════════════════════════════
   4. TYPOGRAPHY
═══════════════════════════════════════════════ */
.al-eyebrow {
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--al-gold);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.al-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.al-title {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--al-ink);
}
.al-title--xl  { font-size: clamp(3rem,   6vw,  7rem); }
.al-title--lg  { font-size: clamp(2.5rem, 4vw,  5rem); }
.al-title--md  { font-size: clamp(2rem,   3vw,  3.5rem); }
.al-title--sm  { font-size: clamp(1.5rem, 2vw,  2rem); }
.al-title--inv { color: var(--al-white); }
.al-title em   { font-style: italic; color: var(--al-gold2); }

.al-body {
  font-family: var(--f-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.85;
  color: var(--al-mid);
}
.al-body--inv { color: rgba(253,251,248,0.55); }
.al-body--lg  { font-size: clamp(1.1rem, 2vw, 1.3rem); }

/* ═══════════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════════ */
.al-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform 0.2s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.al-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--al-gold);
  transform: translateX(-101%);
  transition: transform var(--dur) var(--ease);
  z-index: 0;
}
.al-btn:hover::before { transform: translateX(0); }
.al-btn > * { position: relative; z-index: 1; }
.al-btn span { position: relative; z-index: 1; }

.al-btn--primary { background: var(--al-ink); color: var(--al-white); padding: 14px 38px; }
.al-btn--primary:hover { color: var(--al-white); transform: translateY(-1px); }

.al-btn--outline {
  background: transparent;
  color: var(--al-ink);
  padding: 13px 37px;
  border: 1px solid var(--al-ink);
}
.al-btn--outline:hover { color: var(--al-white); }

.al-btn--outline-inv {
  background: transparent;
  color: var(--al-white);
  padding: 13px 37px;
  border: 1px solid rgba(253,251,248,0.35);
}
.al-btn--outline-inv::before { background: rgba(253,251,248,0.12); }
.al-btn--outline-inv:hover { color: var(--al-white); transform: translateY(-1px); }

.al-btn--gold { background: var(--al-gold); color: var(--al-white); padding: 14px 38px; }
.al-btn--gold::before { background: var(--al-ink); }
.al-btn--gold:hover { color: var(--al-white); }

.al-link {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--al-mid);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.25s, gap 0.3s var(--ease);
}
.al-link::after { content: '→'; }
.al-link:hover { color: var(--al-gold); gap: 1rem; }
.al-link--inv { color: rgba(253,251,248,0.45); }
.al-link--inv:hover { color: var(--al-gold2); }

/* ═══════════════════════════════════════════════
   6. BADGES
═══════════════════════════════════════════════ */
.al-badge {
  display: inline-block;
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 11px;
}
.al-badge--new  { background: var(--al-new);   color: #A8DFBA; }
.al-badge--best { background: var(--al-gold);  color: var(--al-white); }
.al-badge--sale { background: var(--al-error); color: var(--al-white); }
.al-badge--ai   { background: #0E1F3A;         color: #7EB0F5; }
.al-badge--rx   { background: var(--al-ink);   color: var(--al-cream); }

/* ═══════════════════════════════════════════════
   7. NAVIGATION
═══════════════════════════════════════════════ */
.al-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(12,10,8,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--al-border-inv);
  transition: background 0.4s;
  box-sizing: border-box;
}
.al-nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad);
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 3rem;
}

/* Logo */
.al-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.al-nav__logo-svg { display: block; height: 28px; width: auto; }
.al-nav__logo-name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--al-white);
  line-height: 1;
}
.al-nav__logo-tag {
  font-family: var(--f-ui);
  font-size: 8px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--al-gold);
  display: block;
  margin-top: 3px;
}

/* Nav links */
.al-nav__links {
  display: flex;
  gap: 0;
}
.al-nav__links li { position: relative; }
.al-nav__links a {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(253,251,248,0.6);
  padding: 0 1.25rem;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: color 0.25s;
  position: relative;
}
.al-nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1.25rem; right: 1.25rem;
  height: 1px;
  background: var(--al-gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.al-nav__links a:hover { color: var(--al-white); }
.al-nav__links a:hover::after { transform: scaleX(1); }

/* Nav right icons */
.al-nav__right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: flex-end;
}
.al-nav__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(253,251,248,0.55);
  transition: color 0.25s;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
}
.al-nav__icon:hover { color: var(--al-white); }
.al-nav__cart-count {
  position: absolute;
  top: 6px; right: 4px;
  width: 15px; height: 15px;
  background: var(--al-gold);
  border-radius: 50%;
  font-size: 8px;
  font-family: var(--f-ui);
  color: var(--al-white);
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.al-nav__cart-wrap { position: relative; }

/* Mobile drawer */
.al-nav__toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--al-white);
  flex-shrink: 0;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}
.al-nav__drawer {
  display: none; /* JS adds al-nav__drawer--open class to show */
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--al-dark2);
  border-bottom: 1px solid var(--al-border-inv);
  padding: 2rem var(--pad) 2.5rem;
  z-index: 899;
}
.al-nav__drawer--open { display: block !important; }
.al-nav__drawer .al-nav__links { flex-direction: column; gap: 0; }
.al-nav__drawer .al-nav__links a {
  height: auto; padding: 1rem 0;
  border-bottom: 1px solid var(--al-border-inv);
  font-size: 13px;
}
.al-nav__drawer .al-nav__links a::after { display: none; }

/* Search overlay */
.al-search {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(12,10,8,0.97);
  align-items: center; justify-content: center;
  padding: var(--pad);
}
.al-search--open { display: flex; }
.al-search__inner { width: 100%; max-width: 640px; }
.al-search__form { display: flex; border-bottom: 1px solid var(--al-border-inv); }
.al-search__input {
  flex: 1;
  background: none; border: none;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--al-white);
  padding: 1rem 0;
  outline: none;
}
.al-search__input::placeholder { color: rgba(253,251,248,0.2); }
.al-search__submit {
  background: none; border: none;
  color: var(--al-gold); cursor: pointer; padding: 0 0 0 1rem;
  font-family: var(--f-ui); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.al-search__close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none;
  color: rgba(253,251,248,0.4);
  font-size: 1rem; font-family: var(--f-ui);
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: color 0.2s;
}
.al-search__close:hover { color: var(--al-white); }

/* ═══════════════════════════════════════════════
   8. MARQUEE
═══════════════════════════════════════════════ */
.al-marquee {
  overflow: hidden;
  background: var(--al-gold);
  padding: 12px 0;
  user-select: none;
}
.al-marquee__track {
  display: flex;
  width: max-content;
  animation: al-marquee 35s linear infinite;
}
.al-marquee:hover .al-marquee__track { animation-play-state: paused; }
.al-marquee__item {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--al-dark);
  font-weight: 500;
  padding: 0 2.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.al-marquee__sep {
  font-size: 10px;
  color: rgba(12,10,8,0.4);
  padding: 0 0.5rem;
  flex-shrink: 0;
}
@keyframes al-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   9. HERO — DARK FULL SCREEN
═══════════════════════════════════════════════ */
.al-hero {
  min-height: 100svh;
  background: var(--al-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Left text panel */
.al-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 7rem) var(--pad) clamp(3rem, 6vw, 7rem) var(--pad);
  position: relative;
  z-index: 2;
}
.al-hero__eyebrow { color: var(--al-gold); margin-bottom: 2rem; }
.al-hero__title {
  color: var(--al-white);
  margin-bottom: 2rem;
  font-size: clamp(3rem, 5.5vw, 6.5rem);
}
.al-hero__title em { color: var(--al-gold2); font-style: italic; }
.al-hero__desc {
  color: rgba(253,251,248,0.55);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.85;
  max-width: 420px;
  margin-bottom: 3rem;
  font-family: var(--f-display);
}
.al-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.al-hero__scroll {
  position: absolute;
  bottom: 2.5rem; left: var(--pad);
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(253,251,248,0.3);
}
.al-hero__scroll-line {
  width: 40px; height: 1px;
  background: rgba(253,251,248,0.2);
}

/* Right image panel */
.al-hero__image {
  position: relative; overflow: hidden;
}
.al-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.al-hero__badge {
  position: absolute;
  bottom: 2.5rem; right: 2.5rem;
  width: 88px; height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(168,134,74,0.5);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--al-gold2); text-align: center; line-height: 1.6;
}
.al-hero__tag {
  position: absolute; top: 2rem; left: 2rem;
  background: var(--al-gold);
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--al-dark); padding: 6px 16px;
}

/* ═══════════════════════════════════════════════
   10. GENDER STRIP
═══════════════════════════════════════════════ */
.al-gender { background: var(--al-dark); padding-bottom: 0; }
.al-gender__header { padding: clamp(3rem,5vw,5rem) var(--pad) 2rem; }
.al-gender__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.al-gender__tile {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 40vw, 520px);
  display: flex; align-items: flex-end;
  text-decoration: none;
}
.al-gender__tile-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.8s var(--ease);
}
.al-gender__tile:hover .al-gender__tile-img { transform: scale(1.05); }
.al-gender__tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,10,8,0.75) 0%, rgba(12,10,8,0.1) 60%, transparent 100%);
  pointer-events: none;
}
.al-gender__tile-bg { /* fallback if no img */ position: absolute; inset: 0; }
.al-gender__info {
  position: relative; z-index: 1;
  padding: 2rem 2.5rem;
  transform: translateY(6px);
  transition: transform 0.4s var(--ease);
}
.al-gender__tile:hover .al-gender__info { transform: translateY(0); }
.al-gender__count {
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--al-gold2); margin-bottom: 6px;
}
.al-gender__name {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400; color: var(--al-white);
  margin-bottom: 8px; line-height: 1.1;
}
.al-gender__sub {
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(253,251,248,0.45); margin-bottom: 12px;
}
.al-gender__cta {
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--al-gold); display: flex; align-items: center; gap: 6px;
  transition: gap 0.3s var(--ease);
}
.al-gender__cta::after { content: '→'; }
.al-gender__tile:hover .al-gender__cta { gap: 12px; }

/* ═══════════════════════════════════════════════
   11. PRODUCT CARD
═══════════════════════════════════════════════ */
.al-card {
  background: var(--al-white);
  display: flex; flex-direction: column;
}
.al-card__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--al-cream2);
  aspect-ratio: 4 / 5;
  flex-shrink: 0;
}
/* THE ONE IMAGE FIX — always, absolutely correct */
.al-card__img-wrap img,
.al-card__img-wrap .attachment-woocommerce_thumbnail,
.al-card__img-wrap .wp-post-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.7s var(--ease);
}
.al-card:hover .al-card__img-wrap img { transform: scale(1.05); }
.al-card__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.al-card__tryon {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(12,10,8,0.82);
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--al-gold); text-align: center; padding: 10px;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
  text-decoration: none;
}
.al-card:hover .al-card__tryon { transform: translateY(0); }
.al-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  border-top: 1px solid var(--al-border);
  flex: 1; display: flex; flex-direction: column;
}
.al-card__ref {
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--al-gold); margin-bottom: 5px;
}
.al-card__name {
  font-family: var(--f-display); font-size: 1.15rem;
  font-weight: 400; color: var(--al-ink);
  line-height: 1.3; margin-bottom: 4px;
  text-decoration: none;
  transition: color 0.2s;
}
.al-card__name:hover { color: var(--al-gold); }
.al-card__material {
  font-family: var(--f-display); font-size: 0.95rem;
  font-style: italic; color: var(--al-light);
  margin-bottom: 1rem;
}
.al-card__foot {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.al-card__price {
  font-family: var(--f-ui); font-size: 14px;
  letter-spacing: 0.05em; color: var(--al-ink);
}
.al-card__price del { font-size: 12px; color: var(--al-light); margin-left: 5px; }
.al-card__add {
  width: 34px; height: 34px;
  border: 1px solid var(--al-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--al-mid); font-size: 20px; font-weight: 300;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.al-card:hover .al-card__add {
  background: var(--al-ink); border-color: var(--al-ink);
  color: var(--al-white);
}

/* Product grid */
.al-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

/* ═══════════════════════════════════════════════
   12. FEATURED PRODUCTS SECTION (light bg)
═══════════════════════════════════════════════ */
.al-featured { background: var(--al-cream); }
.al-featured__header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  gap: 1rem; flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   13. USP BAR
═══════════════════════════════════════════════ */
.al-usp {
  background: var(--al-dark2);
  border-top: 1px solid var(--al-border-inv);
  border-bottom: 1px solid var(--al-border-inv);
}
.al-usp__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--max-w);
  margin-inline: auto;
}
.al-usp__cell {
  padding: 2.5rem clamp(1rem, 2vw, 2.5rem);
  border-right: 1px solid var(--al-border-inv);
  text-align: center;
  transition: background 0.3s;
}
.al-usp__cell:last-child { border-right: none; }
.al-usp__cell:hover { background: var(--al-dark3); }
.al-usp__val {
  font-family: var(--f-display);
  font-size: 2.2rem; font-style: italic;
  color: var(--al-gold); line-height: 1;
  margin-bottom: 6px;
}
.al-usp__label {
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--al-white); margin-bottom: 5px;
}
.al-usp__desc {
  font-family: var(--f-display); font-size: 0.9rem;
  color: rgba(253,251,248,0.4); line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   14. AI GLASSES SECTION (dark)
═══════════════════════════════════════════════ */
.al-ai { background: var(--al-dark3); position: relative; overflow: hidden; }
.al-ai::before {
  content: 'AI';
  position: absolute; bottom: -4rem; right: -1rem;
  font-family: var(--f-display); font-size: 22rem;
  font-style: italic; color: rgba(253,251,248,0.02);
  pointer-events: none; line-height: 1; letter-spacing: -0.06em;
}
.al-ai .al-wrap { position: relative; z-index: 1; }
.al-ai__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.al-ai__cards { display: flex; flex-direction: column; gap: 2px; }
.al-ai-card {
  background: rgba(253,251,248,0.04);
  border: 1px solid rgba(253,251,248,0.08);
  padding: 2.5rem;
  transition: border-color 0.3s, background 0.3s;
}
.al-ai-card:hover {
  border-color: rgba(168,134,74,0.4);
  background: rgba(253,251,248,0.06);
}
.al-ai-card__name {
  font-family: var(--f-display); font-size: 1.5rem;
  font-weight: 400; color: var(--al-white); margin: 1rem 0 0.75rem;
}
.al-ai-card__desc {
  font-family: var(--f-display); font-size: 1rem;
  color: rgba(253,251,248,0.45); line-height: 1.75;
  margin-bottom: 1.25rem;
}
.al-ai-card__price {
  font-family: var(--f-ui); font-size: 12px;
  letter-spacing: 0.1em; color: var(--al-gold2);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════
   15. HOW IT WORKS (dark)
═══════════════════════════════════════════════ */
.al-hiw { background: var(--al-dark); position: relative; overflow: hidden; }
.al-hiw::after {
  content: 'ArsLens';
  position: absolute; bottom: -4rem; right: var(--pad);
  font-family: var(--f-display); font-size: 13rem;
  font-style: italic; color: rgba(253,251,248,0.025);
  pointer-events: none; line-height: 1; letter-spacing: -0.04em;
}
.al-hiw .al-wrap { position: relative; z-index: 1; }
.al-hiw__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}
.al-hiw__steps { border-top: 1px solid var(--al-border-inv); }
.al-hiw__step {
  display: grid; grid-template-columns: 52px 1fr;
  gap: 1.5rem; padding: 2rem 0;
  border-bottom: 1px solid var(--al-border-inv);
  transition: padding-left 0.25s var(--ease);
}
.al-hiw__step:hover { padding-left: 6px; }
.al-hiw__num {
  font-family: var(--f-display); font-size: 2rem;
  font-style: italic; color: rgba(168,134,74,0.45);
  line-height: 1.2; padding-top: 2px;
}
.al-hiw__step-title {
  font-family: var(--f-ui); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--al-white); margin-bottom: 6px;
}
.al-hiw__step-desc {
  font-family: var(--f-display); font-size: 1rem;
  color: rgba(253,251,248,0.45); line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   16. NEWSLETTER (dark)
═══════════════════════════════════════════════ */
.al-newsletter { background: var(--al-dark2); position: relative; overflow: hidden; }
.al-newsletter::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,134,74,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.al-newsletter__layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem); align-items: center;
}
.al-newsletter__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400; line-height: 1.1; color: var(--al-white);
  margin: 1rem 0;
}
.al-newsletter__title em { font-style: italic; color: var(--al-gold2); }
.al-newsletter__form { display: flex; }
.al-newsletter__input {
  flex: 1;
  background: rgba(253,251,248,0.06);
  border: 1px solid rgba(253,251,248,0.14);
  border-right: none;
  color: var(--al-white);
  padding: 16px 20px;
  font-family: var(--f-display); font-size: 1.1rem;
  outline: none;
  transition: border-color 0.25s;
}
.al-newsletter__input:focus { border-color: rgba(168,134,74,0.6); }
.al-newsletter__input::placeholder { color: rgba(253,251,248,0.2); }
.al-newsletter__btn {
  background: var(--al-gold); border: none; color: var(--al-dark);
  padding: 16px 28px; cursor: pointer;
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500; transition: background 0.25s;
  white-space: nowrap;
}
.al-newsletter__btn:hover { background: var(--al-white); }
.al-newsletter__note {
  margin-top: 0.75rem;
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.08em; color: rgba(253,251,248,0.2); line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   17. FOOTER
═══════════════════════════════════════════════ */
.al-footer { background: #07050C; padding: 5rem 0 0; position: relative; overflow: hidden; }
.al-footer__watermark {
  position: absolute; bottom: -3rem; right: var(--pad);
  font-family: var(--f-display); font-size: 12rem; font-style: italic;
  color: rgba(253,251,248,0.025); pointer-events: none; line-height: 1;
  letter-spacing: -0.04em;
}
.al-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(253,251,248,0.07);
}
.al-footer__brand-logo { margin-bottom: 1rem; }
.al-footer__brand-about {
  font-family: var(--f-display); font-size: 1rem;
  color: rgba(253,251,248,0.28); line-height: 1.8; margin-bottom: 1.5rem;
}
.al-footer__col-title {
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(253,251,248,0.3); margin-bottom: 1.5rem;
}
.al-footer__links { display: flex; flex-direction: column; gap: 0.8rem; }
.al-footer__links a {
  font-family: var(--f-display); font-size: 1rem;
  color: rgba(253,251,248,0.3); transition: color 0.2s;
}
.al-footer__links a:hover { color: var(--al-gold2); }
.al-footer__bottom {
  padding: 1.5rem 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.al-footer__copy {
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(253,251,248,0.18);
}
.al-footer__legal { display: flex; gap: 2rem; }
.al-footer__legal a {
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(253,251,248,0.18); transition: color 0.2s;
}
.al-footer__legal a:hover { color: var(--al-gold); }

/* ═══════════════════════════════════════════════
   18. SHOP / ARCHIVE PAGE (light)
═══════════════════════════════════════════════ */
.al-shop { background: var(--al-cream); padding-top: var(--nav-h); }
.al-shop__hero {
  background: var(--al-dark);
  padding: clamp(3rem, 5vw, 5rem) var(--pad);
}
.al-shop__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding-top: 3rem; padding-bottom: 6rem;
  align-items: start;
}

/* Filter sidebar */
.al-filters { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.al-filters__group { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--al-border); }
.al-filters__group:last-child { border-bottom: none; }
.al-filters__title {
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--al-mid); margin-bottom: 1rem;
}
.woocommerce .al-filters .widget_price_filter .price_slider { background: var(--al-cream3); height: 2px; }
.woocommerce .al-filters .widget_price_filter .price_slider .ui-slider-handle { background: var(--al-gold); border: none; width: 14px; height: 14px; top: -6px; border-radius: 50%; }
.woocommerce .al-filters .widget_price_filter .price_slider .ui-slider-range { background: var(--al-gold); }
.woocommerce .al-filters .widget_layered_nav ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.woocommerce .al-filters .widget_layered_nav ul li a {
  font-family: var(--f-display); font-size: 1rem; color: var(--al-mid); display: flex; justify-content: space-between; transition: color 0.2s;
}
.woocommerce .al-filters .widget_layered_nav ul li a:hover { color: var(--al-gold); }
.woocommerce .al-filters .widget_layered_nav ul li.chosen a { color: var(--al-ink); }

/* ═══════════════════════════════════════════════
   19. SINGLE PRODUCT PAGE (light)
═══════════════════════════════════════════════ */
.al-product { background: var(--al-cream); padding-top: var(--nav-h); }
.al-product__breadcrumb {
  padding: 1.5rem var(--pad);
  max-width: var(--max-w); margin-inline: auto;
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--al-light);
}
.al-product__breadcrumb a { color: var(--al-mid); transition: color 0.2s; }
.al-product__breadcrumb a:hover { color: var(--al-gold); }

/* Main product grid */
.al-product__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  max-width: var(--max-w); margin-inline: auto;
  padding: 0 var(--pad) 6rem;
  align-items: start;
}

/* Gallery */
.al-product__gallery { position: sticky; top: calc(var(--nav-h) + 2rem); }
.al-product__main-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--al-cream2);
  overflow: hidden; position: relative; margin-bottom: 8px;
}
.al-product__main-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.5s var(--ease);
}
.al-product__main-img:hover img { transform: scale(1.04); }
.al-product__thumbs {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.al-product__thumb {
  width: 72px; height: 72px; overflow: hidden;
  background: var(--al-cream2); cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.2s;
  flex-shrink: 0;
}
.al-product__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.al-product__thumb--active { border-color: var(--al-gold); }

/* Product info */
.al-product__info { padding-top: 0.5rem; }
.al-product__genders { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1rem; }
.al-product__gender-tag {
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--al-cream2); color: var(--al-mid);
  padding: 4px 10px; border: 1px solid var(--al-border);
}
.al-product__name {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400; line-height: 1.1;
  color: var(--al-ink); margin-bottom: 0.5rem;
}
.al-product__material {
  font-family: var(--f-display); font-size: 1rem;
  font-style: italic; color: var(--al-light);
  margin-bottom: 1.5rem;
}
.al-product__price {
  font-family: var(--f-ui); font-size: 1.4rem;
  letter-spacing: 0.06em; color: var(--al-ink);
  margin-bottom: 2rem;
}
.al-product__price del { font-size: 1rem; color: var(--al-light); margin-left: 8px; }
.al-product__short-desc {
  font-family: var(--f-display); font-size: 1.05rem;
  line-height: 1.85; color: var(--al-mid);
  margin-bottom: 2rem;
}

/* Product specs grid */
.al-product__specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-bottom: 2rem;
  background: var(--al-cream3);
}
.al-product__spec {
  background: var(--al-cream); padding: 1rem 1.25rem;
}
.al-product__spec-label {
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--al-light); margin-bottom: 4px;
}
.al-product__spec-value {
  font-family: var(--f-display); font-size: 1.05rem;
  color: var(--al-ink);
}

/* Add to cart + Try-On */
.al-product__actions { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.al-product__qty-row { display: flex; gap: 10px; align-items: center; }
.al-product__qty {
  width: 70px; height: 52px;
  border: 1px solid var(--al-border);
  background: var(--al-white);
  text-align: center; font-family: var(--f-display); font-size: 1.2rem;
  color: var(--al-ink); outline: none;
}
.al-product__atc {
  flex: 1; height: 52px;
  background: var(--al-ink); color: var(--al-white);
  border: none; cursor: pointer;
  font-family: var(--f-ui); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.3s;
}
.al-product__atc:hover { background: var(--al-gold); }
.al-product__tryon {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px;
  border: 1px solid rgba(168,134,74,0.45);
  color: var(--al-gold); text-decoration: none;
  font-family: var(--f-ui); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.al-product__tryon:hover { background: var(--al-gold); color: var(--al-white); }

/* Reassurance strip */
.al-product__reassurance {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding: 1.25rem 0; border-top: 1px solid var(--al-border);
  border-bottom: 1px solid var(--al-border);
  margin-bottom: 2rem;
}
.al-product__reassurance-item {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-ui); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--al-mid);
}

/* Product tabs */
.al-product__tabs { margin-top: 2rem; }
.al-product__tab-nav { display: flex; border-bottom: 1px solid var(--al-border); margin-bottom: 2rem; }
.al-product__tab-btn {
  font-family: var(--f-ui); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--al-mid); padding: 1rem 1.25rem;
  background: none; border: none; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.al-product__tab-btn--active { color: var(--al-ink); border-bottom-color: var(--al-gold); }
.al-product__tab-panel { display: none; }
.al-product__tab-panel--active { display: block; }
.al-product__tab-panel p {
  font-family: var(--f-display); font-size: 1.05rem;
  line-height: 1.85; color: var(--al-mid); margin-bottom: 1rem;
}

/* Specs full table in tab */
.al-specs-table { width: 100%; border-collapse: collapse; }
.al-specs-table tr { border-bottom: 1px solid var(--al-border); }
.al-specs-table th {
  font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--al-light);
  width: 40%; padding: 0.9rem 1rem 0.9rem 0;
  text-align: left; font-weight: 400;
}
.al-specs-table td {
  font-family: var(--f-display); font-size: 1rem;
  color: var(--al-ink); padding: 0.9rem 0;
}
.al-specs-icon { display: flex; align-items: center; gap: 6px; }
.al-specs-yes { color: var(--al-new); }
.al-specs-no  { color: var(--al-light); }

/* Prescription upload tab */
.al-rx-info { }
.al-rx-steps { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; }
.al-rx-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.al-rx-step-n {
  font-family: var(--f-display); font-size: 1.8rem;
  font-style: italic; color: var(--al-gold); line-height: 1;
  flex-shrink: 0; width: 2rem;
}
.al-rx-step-title { font-family: var(--f-ui); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--al-ink); margin-bottom: 4px; }
.al-rx-step-desc { font-family: var(--f-display); font-size: 0.95rem; color: var(--al-mid); line-height: 1.7; }

/* Reviews */
.al-reviews { }
.al-review { padding: 1.5rem 0; border-bottom: 1px solid var(--al-border); }
.al-review:last-child { border-bottom: none; }
.al-review__header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.al-review__stars { color: var(--al-gold); font-size: 0.9rem; letter-spacing: 2px; }
.al-review__author { font-family: var(--f-ui); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--al-mid); }
.al-review__text { font-family: var(--f-display); font-size: 1rem; color: var(--al-mid); line-height: 1.75; }

/* ═══════════════════════════════════════════════
   20. WOOCOMMERCE — OVERRIDE BASE STYLES
═══════════════════════════════════════════════ */

/* Remove default WC floats that break layout */
.woocommerce div.product div.images,
.woocommerce div.product div.summary { float: none !important; width: 100% !important; }
.woocommerce div.product::after { content: ''; display: table; clear: both; }

/* WC product gallery images — DEFINITIVE FIX */
.woocommerce div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image a,
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image { display: block !important; }
.woocommerce div.product .woocommerce-product-gallery .woocommerce-product-gallery__image img,
.woocommerce div.product .woocommerce-product-gallery img.wp-post-image,
.woocommerce div.product .woocommerce-product-gallery .attachment-shop_single { display: block !important; width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; object-position: center !important; }
.woocommerce div.product .woocommerce-product-gallery__wrapper { margin: 0 !important; width: 100% !important; }

/* WC loop product images — DEFINITIVE FIX */
.woocommerce ul.products li.product { margin: 0 !important; padding: 0 !important; float: none !important; width: auto !important; }
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product img.wp-post-image,
.woocommerce ul.products li.product img.attachment-woocommerce_thumbnail { display: block !important; width: 100% !important; height: 280px !important; object-fit: cover !important; object-position: center !important; aspect-ratio: unset !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; text-decoration: none; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 2px !important; float: none !important; clear: none !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }

/* WC buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit { font-family: var(--f-ui) !important; font-size: 10px !important; letter-spacing: 0.2em !important; text-transform: uppercase !important; background: var(--al-ink) !important; color: var(--al-white) !important; border: none !important; padding: 14px 28px !important; border-radius: 0 !important; transition: background 0.3s !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--al-gold) !important; color: var(--al-white) !important; }

/* WC notices */
.woocommerce-message, .woocommerce-info { background: var(--al-cream2); border-top: 3px solid var(--al-gold); font-family: var(--f-display); font-size: 1rem; color: var(--al-ink); padding: 1rem 1.5rem; margin: 1.5rem 0; }
.woocommerce-error { background: #fff2f0; border-top-color: var(--al-error); }

/* WC breadcrumb */
.woocommerce-breadcrumb { font-family: var(--f-ui); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--al-light); margin-bottom: 2rem; }
.woocommerce-breadcrumb a { color: var(--al-mid); transition: color 0.2s; }
.woocommerce-breadcrumb a:hover { color: var(--al-gold); }

/* WC tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0; border-bottom: 1px solid var(--al-border); display: flex; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: none !important; background: none !important; border-radius: 0 !important; margin: 0 !important; padding: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-family: var(--f-ui); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--al-mid); padding: 1rem 1.25rem; display: block; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; background: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--al-ink); border-bottom-color: var(--al-gold); }
.woocommerce div.product .woocommerce-tabs .panel { background: transparent !important; border: none !important; padding: 2rem 0 0 !important; margin: 0 !important; box-shadow: none !important; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; color: var(--al-ink); margin-bottom: 1rem; }
.woocommerce div.product .woocommerce-tabs .panel p { font-family: var(--f-display); font-size: 1rem; line-height: 1.85; color: var(--al-mid); margin-bottom: 1rem; }

/* WC variations */
.woocommerce div.product .variations { border-collapse: collapse; width: 100%; margin-bottom: 1.5rem; }
.woocommerce div.product .variations td, .woocommerce div.product .variations th { border: none; padding: 0.4rem 0; }
.woocommerce div.product .variations .label label { font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--al-mid); }
.woocommerce div.product .variations select { border: 1px solid var(--al-border); background: var(--al-white); padding: 10px 14px; font-family: var(--f-display); font-size: 1rem; color: var(--al-ink); width: 100%; outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color 0.2s; }
.woocommerce div.product .variations select:focus { border-color: var(--al-gold); }

/* WC cart & checkout */
.woocommerce-cart table.shop_table, .woocommerce-checkout table.shop_table { border-collapse: collapse; width: 100%; font-family: var(--f-display); font-size: 1rem; }
.woocommerce-cart table.shop_table th, .woocommerce-checkout table.shop_table th { font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--al-mid); padding: 0.75rem 1rem; border-bottom: 1px solid var(--al-border); text-align: left; }
.woocommerce-cart table.shop_table td, .woocommerce-checkout table.shop_table td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--al-border); color: var(--al-ink); vertical-align: middle; }
.woocommerce-cart table.shop_table td.product-name { font-family: var(--f-display); font-size: 1.1rem; }
.woocommerce-cart table.shop_table td.product-thumbnail img { width: 80px; height: 80px; object-fit: cover; }
.woocommerce-cart .cart-collaterals { margin-top: 3rem; max-width: 400px; margin-left: auto; }

/* Checkout form */
.woocommerce-checkout .form-row label { font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--al-mid); margin-bottom: 0.4rem; display: block; }
.woocommerce-checkout .form-row input, .woocommerce-checkout .form-row select, .woocommerce-checkout .form-row textarea { width: 100%; border: 1px solid var(--al-border); background: var(--al-white); color: var(--al-ink); padding: 12px 16px; font-family: var(--f-display); font-size: 1rem; outline: none; transition: border-color 0.25s; border-radius: 0; -webkit-appearance: none; appearance: none; }
.woocommerce-checkout .form-row input:focus, .woocommerce-checkout .form-row select:focus { border-color: var(--al-gold); }
.woocommerce-checkout #payment { background: var(--al-cream2); padding: 2rem; border: 1px solid var(--al-border); margin-top: 1.5rem; }

/* WC My Account */
/* ── MY ACCOUNT — explicit wrapper from our template override ── */
.al-myaccount {
  display: block;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 3rem) var(--pad) 5rem;
  min-width: 0;
}

/* Navigation — horizontal tab bar */
.woocommerce-MyAccount-navigation {
  width: 100%;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--al-border);
}
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.woocommerce-MyAccount-navigation li { border-bottom: none; }
.woocommerce-MyAccount-navigation li a {
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--al-mid);
  display: block;
  padding: 0 1.5rem 1rem 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
  color: var(--al-gold);
  border-bottom-color: var(--al-gold);
}

/* Content — full width below nav */
.woocommerce-MyAccount-content {
  min-width: 0;
  width: 100%;
}
.woocommerce-MyAccount-content > p:first-child {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--al-mid);
  line-height: 1.75;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--al-border);
}
.woocommerce-MyAccount-content > p:first-child a { color: var(--al-gold); }

/* Address cards side by side */
.woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.woocommerce-MyAccount-content .woocommerce-Address {
  border: 1px solid var(--al-border);
  padding: 1.5rem;
}
.woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--al-mid);
}
.woocommerce-MyAccount-content address {
  font-family: var(--f-display);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--al-mid);
  font-style: normal;
}

/* Forms */
.woocommerce-MyAccount-content form .form-row { width: 100%; margin-bottom: 1.5rem; }
.woocommerce-MyAccount-content form .form-row-first,
.woocommerce-MyAccount-content form .form-row-last {
  width: calc(50% - 0.75rem);
  display: inline-block;
}
.woocommerce-MyAccount-content form .form-row-first { margin-right: 1.5rem; }
.woocommerce-MyAccount-content form label {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--al-mid);
  display: block;
  margin-bottom: 0.5rem;
}
.woocommerce-MyAccount-content form input,
.woocommerce-MyAccount-content form select,
.woocommerce-MyAccount-content form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--al-border);
  background: var(--al-white);
  padding: 12px 16px;
  font-family: var(--f-display);
  font-size: 1rem;
  color: var(--al-ink);
  outline: none;
  transition: border-color 0.2s;
}
.woocommerce-MyAccount-content form input:focus,
.woocommerce-MyAccount-content form select:focus { border-color: var(--al-gold); }

@media (max-width: 768px) {
  .al-myaccount { padding-inline: 1.25rem; }
  .woocommerce-MyAccount-navigation ul { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .woocommerce-MyAccount-content .woocommerce-Addresses { grid-template-columns: 1fr; }
  .woocommerce-MyAccount-content form .form-row-first,
  .woocommerce-MyAccount-content form .form-row-last { width: 100%; display: block; margin-right: 0; }
}

/* ═══════════════════════════════════════════════
   21. PAGE TEMPLATE (About, FAQ, etc.)
═══════════════════════════════════════════════ */
.al-page-hero { background: var(--al-dark); padding: clamp(3rem,5vw,5rem) var(--pad); }
.al-page-content {
  max-width: 760px; margin-inline: auto;
  padding: clamp(3rem,5vw,5rem) var(--pad) clamp(4rem,7vw,7rem);
}
.al-page-content h1, .al-page-content h2, .al-page-content h3 { font-family: var(--f-display); font-weight: 400; color: var(--al-ink); line-height: 1.15; }
.al-page-content h1 { font-size: clamp(2rem,4vw,3.5rem); margin-bottom: 1.5rem; }
.al-page-content h2 { font-size: clamp(1.5rem,3vw,2.2rem); margin: 2.5rem 0 1rem; }
.al-page-content h3 { font-size: 1.3rem; margin: 2rem 0 0.75rem; }
.al-page-content p, .al-page-content li { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.85; color: var(--al-mid); margin-bottom: 1.25rem; }
.al-page-content strong { color: var(--al-ink); font-weight: 500; }
.al-page-content a { color: var(--al-gold); text-decoration: underline; text-decoration-color: rgba(168,134,74,0.35); }
.al-page-content ul, .al-page-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }

/* ── PREVENT CONTENT OVERFLOW (block editor images, tables, embeds) ── */
.al-page-content img,
.al-page-content figure img,
.al-product__short-desc img,
.al-product__tab-panel img,
.woocommerce-product-details__short-description img,
.woocommerce div.product .woocommerce-tabs .panel img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
}
.al-page-content figure { max-width: 100%; margin: 1.5rem 0; overflow-x: auto; }
.al-page-content table {
  max-width: 100%;
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
}
.al-page-content iframe,
.al-page-content embed,
.al-page-content object,
.al-page-content video {
  max-width: 100%;
}
.al-page-content pre,
.al-page-content code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.al-page-content * { max-width: 100%; }

/* ═══════════════════════════════════════════════
   22. AI GLASSES PAGE
═══════════════════════════════════════════════ */
.al-ai-page__hero { background: var(--al-dark); padding: clamp(4rem,7vw,7rem) var(--pad); position: relative; overflow: hidden; }
.al-ai-page__hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 80% 30%, rgba(168,134,74,0.12) 0%, transparent 70%); pointer-events: none; }
.al-ai-page__hero .al-wrap { position: relative; z-index: 1; }
.al-ai-page__lines { background: var(--al-cream2); padding: 4rem var(--pad); }
.al-ai-page__lines-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; max-width: var(--max-w); margin-inline: auto; }
.al-ai-page__line-card { background: var(--al-cream); padding: 2.5rem; border: 1px solid var(--al-border); }
.al-ai-page__line-card h2 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; color: var(--al-ink); margin: 1rem 0 0.75rem; }
.al-ai-page__line-card p { font-family: var(--f-display); font-size: 1rem; line-height: 1.75; color: var(--al-mid); }
.al-ai-page__products { padding: clamp(3rem,5vw,5rem) var(--pad); background: var(--al-cream); max-width: var(--max-w); margin-inline: auto; }

/* ═══════════════════════════════════════════════
   23. VIRTUAL TRY-ON
═══════════════════════════════════════════════ */
.al-tryon { background: var(--al-dark); min-height: 100svh; padding-top: var(--nav-h); display: grid; grid-template-columns: 1fr 380px; }
.al-tryon__viewport { position: relative; background: #000; display: flex; flex-direction: column; }
.al-tryon__cam-wrap { flex: 1; position: relative; overflow: hidden; }
.al-tryon__video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.al-tryon__canvas { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(-1); }
.al-tryon__guide { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(320px,55%); aspect-ratio: 3/4; border: 1px solid rgba(168,134,74,0.4); border-radius: 50%; pointer-events: none; }
.al-tryon__status { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(12,10,8,0.75); color: rgba(253,251,248,0.7); font-family: var(--f-ui); font-size: 10px; letter-spacing: 0.14em; padding: 8px 16px; backdrop-filter: blur(8px); white-space: nowrap; }
.al-tryon__status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--al-gold); }
.al-tryon__status-dot--loading { animation: al-pulse 1.2s ease-in-out infinite; }
.al-tryon__status-dot--active { background: #4CAF50; }
.al-tryon__status-dot--error { background: var(--al-error); }
@keyframes al-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.al-tryon__cam-bar { background: rgba(12,10,8,0.9); padding: 1rem var(--pad); display: flex; gap: 1rem; align-items: center; }
.al-tryon__privacy { background: rgba(12,10,8,0.9); padding: 0.5rem var(--pad) 0.75rem; font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.1em; color: rgba(253,251,248,0.2); display: flex; align-items: center; gap: 6px; }
.al-tryon__sidebar { background: var(--al-dark2); padding: 2.5rem 2rem; overflow-y: auto; border-left: 1px solid var(--al-border-inv); display: flex; flex-direction: column; gap: 2rem; }
.al-tryon__sidebar-title { font-family: var(--f-display); font-size: 1.6rem; font-weight: 400; color: var(--al-white); }
.al-tryon__sidebar-desc { font-family: var(--f-display); font-size: 0.95rem; color: rgba(253,251,248,0.4); line-height: 1.7; }
.al-tryon__active-product { display: grid; grid-template-columns: 80px 1fr; gap: 1rem; align-items: center; background: rgba(253,251,248,0.04); border: 1px solid var(--al-border-inv); padding: 1.25rem; }
.al-tryon__active-img img { width: 80px; height: 80px; object-fit: cover; }
.al-tryon__active-name { font-family: var(--f-display); font-size: 1.05rem; color: var(--al-white); margin-bottom: 4px; }
.al-tryon__active-price { font-family: var(--f-ui); font-size: 11px; letter-spacing: 0.08em; color: var(--al-gold2); margin-bottom: 8px; }
.al-tryon__frame-section-title { font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(253,251,248,0.3); }
.al-tryon__frame-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.al-tryon__frame-btn { background: rgba(253,251,248,0.04); border: 1px solid rgba(253,251,248,0.07); padding: 0; cursor: pointer; overflow: hidden; transition: border-color 0.2s; }
.al-tryon__frame-btn img { width: 100%; height: 68px; object-fit: cover; display: block; transition: transform 0.4s; }
.al-tryon__frame-btn:hover img { transform: scale(1.06); }
.al-tryon__frame-btn:hover, .al-tryon__frame-btn--active { border-color: var(--al-gold); }
.al-tryon__cta { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid var(--al-border-inv); display: flex; flex-direction: column; gap: 0.75rem; }

/* ═══════════════════════════════════════════════
   24. THANK YOU PAGE
═══════════════════════════════════════════════ */
.al-thankyou { padding: clamp(3rem,5vw,5rem) var(--pad); max-width: var(--max-w); margin-inline: auto; }
.al-thankyou__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; margin-top: 3rem; }
.al-thankyou__col h3 { font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--al-mid); margin-bottom: 1.5rem; }
.al-order-table { width: 100%; border-collapse: collapse; }
.al-order-table th, .al-order-table td { padding: 0.75rem 0; border-bottom: 1px solid var(--al-border); font-family: var(--f-display); font-size: 1rem; text-align: left; }
.al-order-table th { font-family: var(--f-ui); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--al-mid); }
.al-order-table tfoot th, .al-order-table tfoot td { border-bottom: none; font-weight: 500; color: var(--al-ink); font-size: 1.1rem; }

/* ═══════════════════════════════════════════════
   25. RESPONSIVE — COMPLETE MOBILE FIXES
═══════════════════════════════════════════════ */

/* ── Tablet: 1100px ─────────────────────────── */
@media (max-width: 1100px) {
  /* Hero: stack vertically */
  .al-hero { grid-template-columns: 1fr; min-height: auto; }
  .al-hero__text { padding: clamp(2rem,5vw,4rem) var(--pad); }
  .al-hero__image { height: 60vw; min-height: 280px; }
  .al-hero__scroll { display: none; }

  /* Dark sections: single column */
  .al-hiw__layout,
  .al-ai__layout,
  .al-newsletter__layout { grid-template-columns: 1fr; gap: 3rem; }

  /* Footer: 2 cols */
  .al-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  /* Product page: stack */
  .al-product__grid { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
  .al-product__gallery { position: static; }

  /* Shop: hide sidebar on tablet */
  .al-shop__layout { grid-template-columns: 1fr; }
  .al-filters { position: static; display: none; } /* hidden by default on mobile, toggle if needed */

  /* Try-On: stack */
  .al-tryon { grid-template-columns: 1fr; }
  .al-tryon__viewport { min-height: 55vw; }
  .al-tryon__sidebar { max-height: 50vh; overflow-y: auto; }

  /* Gender: 2 cols */
  .al-gender__grid { grid-template-columns: 1fr 1fr; }

  /* Products: 2 cols */
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; }
  .al-product-grid { grid-template-columns: repeat(2,1fr); }

  /* WooCommerce account */
  /* My Account: horizontal nav becomes scrollable on mobile,
     address cards stack instead of sitting side by side */
  .woocommerce-MyAccount-navigation ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .woocommerce-MyAccount-navigation li a {
    padding-right: 1rem;
    margin-right: 0.5rem;
    font-size: 10px;
  }
  .woocommerce-MyAccount-content .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
  .woocommerce-MyAccount-content form .form-row-first,
  .woocommerce-MyAccount-content form .form-row-last {
    width: 100%;
    display: block;
    margin-right: 0;
  }
}

/* ── Mobile: 768px ──────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  /* NAV — hide desktop links, show hamburger */
  .al-nav__links { display: none !important; }
  /* Hide secondary icons on mobile so toggle always has room */
  .al-nav__icon:not(.al-nav__cart-wrap):not(#alSearchBtn) { display: none; }
  .al-nav__toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--al-white);
    flex-shrink: 0;
  }

  /* Nav inner: logo + icons only */
  .al-nav__inner {
    grid-template-columns: auto 1fr auto;
    padding-inline: 1.25rem;
    gap: 0;
  }

  /* Keep only cart + search + toggle visible on mobile — guarantees
     the hamburger always has room and is never crowded/overlapped */
  .al-nav__icon:not(.al-nav__cart-wrap):not(#alSearchBtn) {
    display: none;
  }
  .al-nav__right {
    gap: 0.5rem;
  }

  /* Drawer: full-width dropdown */
  .al-nav__drawer {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--al-dark2);
    border-bottom: 1px solid var(--al-border-inv);
    padding: 1.5rem 1.25rem 2rem;
    z-index: 899;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }
  .al-nav__drawer--open { display: block !important; }
  .al-nav__drawer .al-nav__links {
    display: flex !important;
    flex-direction: column;
    gap: 0;
  }
  .al-nav__drawer .al-nav__links li { border-bottom: 1px solid var(--al-border-inv); }
  .al-nav__drawer .al-nav__links a {
    height: auto;
    padding: 1rem 0;
    font-size: 14px;
    color: rgba(253,251,248,0.75);
    display: flex;
    align-items: center;
    letter-spacing: 0.12em;
  }
  .al-nav__drawer .al-nav__links a::after { display: none; }
  .al-nav__drawer .al-nav__links a:hover { color: var(--al-gold); }

  /* Hero */
  .al-hero__title { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .al-hero__desc { font-size: 1rem; }
  .al-hero__actions { flex-direction: column; align-items: flex-start; }
  .al-hero__actions .al-btn { width: 100%; justify-content: center; }

  /* Marquee */
  .al-marquee__item { font-size: 9px; padding: 0 1.5rem; }

  /* Gender: single column */
  .al-gender__grid { grid-template-columns: 1fr; }
  .al-gender__tile { height: 220px; }
  .al-gender__header { padding-inline: 1.25rem; }

  /* Products: 2 cols */
  .al-product-grid { grid-template-columns: repeat(2,1fr); gap: 2px; }
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; gap: 2px !important; }
  .woocommerce ul.products li.product img { height: 200px !important; }

  /* USP: 2×2 grid */
  .al-usp__grid { grid-template-columns: repeat(2,1fr); }
  .al-usp__cell { padding: 1.5rem 1rem; }
  .al-usp__cell:nth-child(2) { border-right: none; }
  .al-usp__cell:nth-child(3),
  .al-usp__cell:nth-child(4) { border-top: 1px solid var(--al-border-inv); }
  .al-usp__cell:nth-child(4) { border-right: none; }

  /* Product page */
  .al-product__specs { grid-template-columns: 1fr; }
  .al-product__qty-row { flex-direction: column; }
  .al-product__qty { width: 100%; }
  .al-product__atc { width: 100%; }
  .al-product__tab-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .al-product__tab-btn { white-space: nowrap; flex-shrink: 0; }

  /* Footer: single column */
  .al-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .al-footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .al-footer__legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  /* Thank you */
  .al-thankyou__grid { grid-template-columns: 1fr; }

  /* AI page */
  .al-ai-page__lines-grid { grid-template-columns: 1fr; }

  /* WooCommerce cart/checkout */
  .woocommerce-cart .woocommerce,
  .woocommerce-checkout .woocommerce { padding-inline: 1.25rem; }
  .al-newsletter__input-wrap { flex-direction: column; }
  .al-newsletter__input { border-right: 1px solid rgba(253,251,248,0.14); }
  .al-newsletter__btn { width: 100%; padding: 14px; }

  /* Page hero */
  .al-page-hero { padding: 3rem 1.25rem 2.5rem; }
  .al-page-content { padding-inline: 1.25rem; }
  .al-shop__hero { padding: 2.5rem 1.25rem; }

  /* AI section */
  .al-ai__layout { gap: 2.5rem; }
  .al-ai::before { font-size: 10rem; }
  .al-hiw::after { font-size: 8rem; }
}

/* ── Small mobile: 480px ────────────────────── */
@media (max-width: 480px) {
  :root { --nav-h: 60px; }

  /* Products: still 2 cols but smaller */
  .al-product-grid { grid-template-columns: repeat(2,1fr); }
  .woocommerce ul.products li.product img { height: 160px !important; }
  .al-card__body { padding: 0.9rem 0.9rem 1.1rem; }
  .al-card__name { font-size: 1rem; }

  /* Icon visibility already handled at 768px breakpoint */

  /* Hero */
  .al-hero__image { height: 65vw; }

  /* Wrap padding */
  .al-wrap { padding-inline: 1rem; }

  /* USP: 2 cols */
  .al-usp__val { font-size: 1.8rem; }
  .al-usp__label { font-size: 8px; }
  .al-usp__desc { display: none; }
}
