/* Nonbinary Chess Club theme — The Free Website Guys */

:root {
  --color-background: #f8f5ed;
  --color-foreground: #2a1e18;
  --color-secondary: #eae5dc;
  --color-muted: #ded9cf;
  --color-muted-foreground: #6b5e57;
  --color-border: #d3ccc5;
  --color-lavender: #d6c9ee;
  --color-sky: #c2daf5;
  --color-blush: #f9d2eb;
  --color-nopal: #62498d;

  --color-primary: var(--color-foreground);
  --color-primary-foreground: var(--color-background);
  --color-button-text: var(--color-background);
  --color-surface: var(--color-secondary);
  --color-sand: var(--color-secondary);
  --color-accent: var(--color-lavender);
  --color-ring: var(--color-nopal);
  --color-destructive: #bd2828;

  --fg-10: color-mix(in srgb, var(--color-foreground) 10%, transparent);
  --fg-15: color-mix(in srgb, var(--color-foreground) 15%, transparent);
  --fg-20: color-mix(in srgb, var(--color-foreground) 20%, transparent);
  --fg-30: color-mix(in srgb, var(--color-foreground) 30%, transparent);
  --fg-35: color-mix(in srgb, var(--color-foreground) 35%, transparent);
  --fg-40: color-mix(in srgb, var(--color-foreground) 40%, transparent);
  --fg-45: color-mix(in srgb, var(--color-foreground) 45%, transparent);
  --fg-50: color-mix(in srgb, var(--color-foreground) 50%, transparent);
  --fg-55: color-mix(in srgb, var(--color-foreground) 55%, transparent);
  --fg-60: color-mix(in srgb, var(--color-foreground) 60%, transparent);
  --fg-65: color-mix(in srgb, var(--color-foreground) 65%, transparent);
  --fg-70: color-mix(in srgb, var(--color-foreground) 70%, transparent);
  --fg-75: color-mix(in srgb, var(--color-foreground) 75%, transparent);
  --fg-80: color-mix(in srgb, var(--color-foreground) 80%, transparent);
  --fg-85: color-mix(in srgb, var(--color-foreground) 85%, transparent);
  --bg-80: color-mix(in srgb, var(--color-background) 80%, transparent);
  --bg-85: color-mix(in srgb, var(--color-background) 85%, transparent);
  --bg-90: color-mix(in srgb, var(--color-background) 90%, transparent);

  --radius: 0.125rem;
  --font-display: 'Instrument Serif', serif;
  --font-body: 'DM Sans', sans-serif;
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-motion: cubic-bezier(0.25, 0.4, 0.25, 1);
  --shadow-elevated: 0 20px 40px -30px color-mix(in srgb, var(--color-foreground) 35%, transparent);
  --logo-height: 57px;
  --header-height: 80px;

  --btn-radius: 9999px;
  --btn-height: 0px;
  --btn-padding: 1rem 2rem;
  --btn-font-size: 12px;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.25em;
  --btn-text-transform: uppercase;
  --btn-icon-padding: 0.5rem 1rem;
  --card-radius: var(--radius);
  --section-padding: 1.5rem;
}

/* ---------- Reset (utility-framework preflight parity) ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--color-border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; max-width: 100%; overflow-x: clip; }
body {
  margin: 0; line-height: inherit; max-width: 100%; overflow-x: clip;
  font-family: var(--font-body); background: var(--color-background); color: var(--color-foreground);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-size: inherit; font-weight: inherit; margin: 0;
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em;
}
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
button, input, optgroup, select, textarea {
  font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit;
  margin: 0; padding: 0; letter-spacing: inherit; text-transform: none; background: transparent; border-radius: 0;
}
button, [type='button'], [type='submit'] { -webkit-appearance: button; appearance: button; background-color: transparent; background-image: none; cursor: pointer; }
button:disabled { cursor: default; }
p, figure, dl, dd, blockquote, pre { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
table { border-collapse: collapse; border-color: inherit; text-indent: 0; }
svg, video, canvas { display: block; vertical-align: middle; }
img:not(.cover-img):not(.hero-bg-img):not(.product-card-img):not(.product-gallery-img):not(.product-thumb-img):not(.cart-thumb-img) {
  display: block; max-width: 100%; height: auto; vertical-align: middle;
}
.cover-img, .hero-bg-img, .product-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; max-width: none;
}
.product-gallery-img, .product-thumb-img, .cart-thumb-img { display: block; width: 100%; height: 100%; object-fit: contain; max-width: none; }
::placeholder { opacity: 1; color: var(--fg-40); }
[hidden] { display: none !important; }
.screen-reader-text, .sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.italic, em { font-style: italic; }
em { font-style: italic; }
.lucide { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container-wide { width: 100%; max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1024px) { .container-wide { padding-left: 2rem; padding-right: 2rem; } }

.eyebrow { display: block; font-size: 12px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.2em; }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 3px; padding: 0.5rem 1rem;
  font-size: 12px; line-height: 1; font-family: var(--font-body); text-transform: lowercase; letter-spacing: normal;
  transition: all 0.3s var(--ease-smooth); border: 0;
}
.pill-cream { background: var(--color-background); color: var(--color-foreground); }
.pill-cream:hover { background: var(--color-blush); }
.pill-pink { background: var(--color-blush); color: var(--color-foreground); }
.pill-pink:hover { background: var(--color-lavender); }
.pill-lavender { background: var(--color-lavender); color: var(--color-foreground); }
.pill-lavender:hover { background: var(--color-blush); }
.pill-ink { background: var(--color-foreground); color: var(--color-background); }
.pill-ink:hover { background: var(--color-nopal); }
.pill .icon-arrow { width: 0.75rem; height: 0.75rem; transition: transform 0.15s var(--ease-smooth); }
.pill:hover .icon-arrow { transform: translateX(0.125rem); }
.pill-ink-sm { padding: 0.625rem 1rem; }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: currentColor;
  transform-origin: left; transform: scaleX(0); transition: transform 0.3s var(--ease-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }
.break-all { word-break: break-all; }

/* ---------- Buttons (shadcn button parity) ---------- */
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; white-space: nowrap;
  border-radius: 9999px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 600; border: 1px solid; transition: color .15s, background-color .15s, border-color .15s;
  height: 2.75rem; padding: 0.75rem 2rem;
}
.theme-btn:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-ring); }
.theme-btn svg { width: 1rem; height: 1rem; pointer-events: none; }
.theme-btn--default { background: var(--color-primary); color: var(--color-primary-foreground); border-color: var(--color-primary); }
.theme-btn--default:hover { background: var(--color-background); color: var(--color-primary); }
.theme-btn--outline { background: transparent; color: var(--color-foreground); border-color: var(--fg-40); }
.theme-btn--outline:hover { border-color: var(--color-foreground); background: var(--color-foreground); color: var(--color-background); }
.theme-btn--sm { height: 2.25rem; padding: 0 1.25rem; font-size: 11px; }
.theme-btn--lg { height: 3rem; padding: 0.875rem 2.5rem; }
.theme-btn--full { width: 100%; }
.theme-btn:disabled { pointer-events: none; opacity: 0.5; }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroScale { from { scale: 1.08; } to { scale: 1; } }
@keyframes heroRise12 { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroRise24 { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialogIn {
  from { opacity: 0; transform: translate3d(-50%, -48%, 0) scale3d(0.95, 0.95, 0.95); }
}
@keyframes dialogOut {
  to { opacity: 0; transform: translate3d(-50%, -48%, 0) scale3d(0.95, 0.95, 0.95); }
}
@keyframes overlayIn { from { opacity: 0; } }
@keyframes overlayOut { to { opacity: 0; } }
.animate-fade-in { animation: fadeIn 0.6s var(--ease-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--ease-smooth) forwards; }

.hero-anim-meta { animation: heroRise12 0.8s 0.3s ease-out both; }
.hero-anim-title { animation: heroRise24 1s 0.5s var(--ease-motion) both; }
.hero-anim-sub { animation: fadeIn 0.8s 0.8s ease-out both; }
.hero-anim-cta { animation: fadeIn 0.8s 1s ease-out both; }

.reveal-item { opacity: 0; }
.reveal-fade-up { transform: translateY(24px); }
.reveal-clip { clip-path: inset(0 0 100% 0); }
.reveal-fade-up.is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s var(--ease-motion) var(--reveal-delay, 0s), transform 0.8s var(--ease-motion) var(--reveal-delay, 0s);
}
.reveal-clip.is-visible {
  opacity: 1; clip-path: inset(0 0 0% 0);
  transition: opacity 0.9s var(--ease-motion) var(--reveal-delay, 0s), clip-path 0.9s var(--ease-motion) var(--reveal-delay, 0s);
}
.reveal-item.is-visible.reveal-done { transition: none; }
.load-fade-up { animation: loadFadeUp 0.8s var(--ease-motion) var(--load-delay, 0s) both; }
@keyframes loadFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
body.is-customizer .reveal-item { opacity: 1 !important; transform: none !important; clip-path: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero-anim-meta, .hero-anim-title, .hero-anim-sub, .hero-anim-cta, .load-fade-up { animation: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: transparent;
  border-bottom: 1px solid transparent; transition: background-color 0.5s var(--ease-smooth), border-color 0.5s var(--ease-smooth), color 0.5s var(--ease-smooth);
}
.site-header.is-solid { background: var(--color-background); border-bottom-color: var(--fg-10); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.site-header__inner { padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 768px) { .site-header__inner { padding-left: 1.5rem; padding-right: 1.5rem; } }
.site-nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 3.5rem; gap: 1rem; }
@media (min-width: 768px) { .site-nav { height: 4rem; } }
.nav-group { display: none; align-items: center; gap: 0.375rem; }
@media (min-width: 1024px) { .nav-group { display: flex; } }
.nav-right { display: flex; align-items: center; gap: 0.375rem; }
.site-logo-link { display: flex; align-items: center; }
@media (min-width: 1024px) { .site-logo-link { position: absolute; left: 50%; transform: translateX(-50%); } }
.site-logo-img { height: calc(var(--logo-height) * 0.8246) !important; width: auto !important; display: block; object-fit: contain; transition: all 0.5s var(--ease-smooth); max-width: none; }
@media (min-width: 768px) { .site-logo-img { height: var(--logo-height) !important; } }
.site-logo-text { line-height: var(--logo-height); display: block; font-family: var(--font-display); font-size: 1.5rem; }
.site-header:not(.is-solid) .site-logo-img { filter: brightness(0) invert(1); }
.theme-cart-btn { display: inline-flex; }
.menu-toggle { display: inline-flex; padding: 0.375rem; }
.menu-toggle svg { width: 1rem; height: 1rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded='true'] .icon-close { display: block; }
.menu-toggle[aria-expanded='true'] .icon-open { display: none; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.mobile-menu { border-top: 1px solid var(--fg-10); padding: 1rem 0; }
.mobile-menu__list { display: flex; flex-direction: column; }
.mobile-menu__link { text-align: left; font-family: var(--font-display); font-size: 2.25rem; line-height: 1.25; padding: 0.375rem 0; color: var(--color-foreground); transition: color 0.15s; }
.mobile-menu__link:hover { color: var(--color-nopal); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }
.theme-cart-count:empty { display: none; }

/* ---------- Main offsets ---------- */
.site-main { background: var(--color-background); padding-top: 6rem; }
@media (min-width: 1024px) { .site-main { padding-top: 7rem; } }
body.home .site-main, body.theme-front .site-main { padding-top: 0; }
body.admin-bar.theme-front .site-main { padding-top: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; width: 100%; min-height: 100dvh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--color-foreground); }
.hero-bg-img { height: 112%; animation: heroScale 2.2s var(--ease-motion) both; will-change: transform; }
.hero__overlay { position: absolute; inset: 0; background: var(--fg-60); }
.hero__content { position: relative; z-index: 10; width: 100%; padding: 0 1.5rem; text-align: center; color: var(--color-background); }
.hero__eyebrow { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.hero__eyebrow svg { width: 0.875rem; height: 0.875rem; }
.hero__eyebrow span { font-size: 12px; text-transform: uppercase; letter-spacing: 0.24em; }
.hero__title { margin-top: 1rem; font-family: var(--font-display); line-height: 0.88; letter-spacing: -0.03em; font-size: clamp(3.5rem, 11vw, 9.5rem); }
.hero__sub { margin-top: 1.5rem; font-size: 14px; color: var(--bg-90); }
@media (min-width: 768px) { .hero__sub { font-size: 15px; } }
.hero__cta { margin-top: 1.5rem; }
.hero__glyph {
  position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 18%); font-family: var(--font-display);
  color: var(--color-background); line-height: 1; user-select: none; font-size: clamp(6rem, 14vw, 11rem);
}

/* ---------- Generic sections ---------- */
.section { background: var(--color-background); scroll-margin-top: 5rem; }
.section-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-60); margin-bottom: 0.75rem; }

/* Events */
.events-section .container-wide { padding-top: 5rem; }
.events-heading { text-align: center; font-family: var(--font-display); font-size: 3rem; line-height: 1; margin-bottom: 2.5rem; }
.events-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
  .events-section .container-wide { padding-top: 7rem; }
  .events-heading { font-size: 3.75rem; margin-bottom: 3.5rem; }
  .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 1024px) { .events-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.event-card { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--color-sand); border-radius: 2px; }
.event-card .cover-img { transition: transform 1.2s ease-out; }
.event-card:hover .cover-img { transform: scale(1.05); }
.event-card__shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--fg-85), var(--fg-35), var(--fg-10)); }
.event-card__body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: var(--color-background); }
@media (min-width: 768px) { .event-card__body { padding: 1.75rem; } }
.event-card__title { font-family: var(--font-display); font-size: 2.25rem; line-height: 0.95; }
@media (min-width: 768px) { .event-card__title { font-size: 3rem; } }
.event-card__meta { margin-top: 0.5rem; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--bg-80); }
.event-card__desc { margin-top: 0.75rem; max-width: 32ch; font-size: 14px; line-height: 1.375; color: var(--bg-85); }
.event-card__btn { margin-top: 1.25rem; align-self: flex-start; }

/* About */
.about-section .container-wide { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 768px) { .about-section .container-wide { padding-top: 9rem; padding-bottom: 9rem; } }
.about-statement { margin: 0 auto; max-width: 64rem; text-align: center; font-family: var(--font-display); line-height: 1.02; letter-spacing: -0.02em; font-size: clamp(2.25rem, 5.6vw, 4.75rem); }
.about-highlight { background: var(--color-lavender); padding-left: 0.5rem; padding-right: 0.5rem; }
.about-end { position: relative; display: inline-block; }
.about-badge {
  position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%) rotate(-6deg); background: var(--color-foreground);
  color: var(--color-background); font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em;
  padding: 0.25rem 0.75rem; border-radius: 3px; white-space: nowrap; font-style: normal;
}
@media (min-width: 768px) { .about-badge { bottom: -2rem; } }
.about-sub { margin: 4rem auto 0; max-width: 36rem; text-align: center; font-size: 14px; color: var(--fg-70); line-height: 1.625; }
@media (min-width: 768px) { .about-sub { font-size: 15px; } }

/* Memberships */
.memberships-section .container-wide { padding-top: 5rem; }
@media (min-width: 768px) { .memberships-section .container-wide { padding-top: 7rem; } }
.memberships-head { display: grid; gap: 1.5rem; align-items: end; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .memberships-head { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 3.5rem; } }
.memberships-title { font-family: var(--font-display); line-height: 0.9; letter-spacing: -0.02em; font-size: clamp(3rem, 8vw, 6.5rem); }
.memberships-intro { max-width: 28rem; font-size: 14px; color: var(--fg-75); line-height: 1.625; }
@media (min-width: 768px) { .memberships-intro { font-size: 15px; justify-self: end; } }
.memberships-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--fg-15); border-left: 1px solid var(--fg-15); }
@media (min-width: 768px) { .memberships-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .memberships-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.membership-card { display: flex; flex-direction: column; border-right: 1px solid var(--fg-15); border-bottom: 1px solid var(--fg-15); padding: 1.5rem; min-height: 520px; }
@media (min-width: 768px) {
  .membership-card { padding: 2rem; }
  .membership-card.is-wide { grid-column: span 2 / span 2; }
}
@media (min-width: 1024px) { .membership-card.is-wide { grid-column: span 1 / span 1; } }
.membership-card.bg-lavender, .membership-bg-lavender { background: var(--color-lavender); }
.membership-bg-sky { background: var(--color-sky); }
.membership-bg-blush { background: var(--color-blush); }
.membership-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.membership-card__pass { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-70); }
.membership-card__glyph { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--fg-80); }
.membership-card__name { margin-top: 2.5rem; font-family: var(--font-display); font-size: 2.25rem; line-height: 0.95; }
@media (min-width: 768px) { .membership-card__name { font-size: 3rem; } }
.membership-card__desc { margin-top: 0.75rem; font-size: 14px; color: var(--fg-75); }
.membership-card__benefits { margin-top: 1.5rem; border-top: 1px solid var(--fg-15); }
.membership-card__benefits li { border-bottom: 1px solid var(--fg-15); padding: 0.625rem 0; font-size: 13px; line-height: 1.375; }
.membership-card__foot { margin-top: auto; padding-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.membership-card__price { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; }
.memberships-note { margin: 2.5rem auto 0; max-width: 42rem; text-align: center; font-size: 14px; color: var(--fg-65); line-height: 1.625; }

/* Shop */
.shop-section .container-wide { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .shop-section .container-wide { padding-top: 7rem; padding-bottom: 7rem; } }
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .shop-head { margin-bottom: 2.5rem; } }
.shop-heading { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
@media (min-width: 768px) { .shop-heading { font-size: 3.75rem; } }
.shop-aside { font-size: 13px; color: var(--fg-60); }
.theme-product-grid { display: grid; grid-template-columns: 1fr; column-gap: 1rem; row-gap: 3rem; align-items: stretch; }
@media (min-width: 420px) { .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.theme-featured-products .theme-product-grid { grid-template-columns: 1fr; }
@media (min-width: 420px) { .theme-featured-products .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .theme-featured-products .theme-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Product card */
.theme-product-card-wrap { min-width: 0; height: 100%; }
.load-fade-up { min-width: 0; }
.theme-product-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.theme-product-card__image-wrapper { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--color-sand); margin-bottom: 0.75rem; isolation: isolate; }
.theme-card-link--media { position: absolute; inset: 0; z-index: 1; display: block; }
.theme-card-link--title { color: inherit; text-decoration: none; }
.theme-card-link--title:hover { opacity: 0.7; }
.theme-product-card .product-card-img { transition: transform 1.2s ease-out; }
.theme-product-card:hover .product-card-img { transform: scale(1.05); }
.theme-product-card .product-card-img.is-soldout { opacity: 0.6; }
.theme-product-card__badge-soldout { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 3; }
.theme-product-card__info { flex: 1; }
.theme-product-card__title { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.375; color: var(--color-foreground); letter-spacing: 0.08em; }
.theme-product-card__type { margin-top: 0.125rem; font-size: 12px; color: var(--fg-45); }
.theme-product-card__price { margin-top: 0.125rem; font-size: 12px; color: var(--fg-60); }
.theme-product-card .theme-product-card__add.add_to_cart_button.ajax_add_to_cart,
.theme-product-card a.theme-product-card__add.add_to_cart_button {
  position: absolute !important; bottom: 0.5rem; right: 0.5rem; z-index: 4; pointer-events: auto !important;
  min-height: unset !important; padding: 0.5rem 1rem !important; border-radius: 3px !important;
  background-color: var(--color-background) !important; color: var(--color-foreground) !important;
  font-size: 12px !important; line-height: 1 !important; font-weight: 400 !important; letter-spacing: normal !important; text-transform: lowercase !important;
  opacity: 0; transform: translateY(0.25rem); transition: all 0.3s var(--ease-smooth) !important; gap: 0.375rem;
}
.theme-product-card:hover .theme-product-card__add.add_to_cart_button,
.theme-product-card .theme-product-card__add.add_to_cart_button:focus { opacity: 1 !important; transform: translateY(0); }
.theme-product-card .theme-product-card__add.add_to_cart_button:hover { background-color: var(--color-blush) !important; color: var(--color-foreground) !important; opacity: 1 !important; }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .founder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.founder-copy { background: var(--color-lavender); order: 2; display: flex; align-items: center; justify-content: center; padding: 4rem 1.5rem; }
@media (min-width: 768px) { .founder-copy { padding: 6rem 4rem; } }
@media (min-width: 1024px) { .founder-copy { order: 1; } }
.founder-copy__inner { max-width: 28rem; text-align: center; }
.founder-copy .eyebrow { color: var(--fg-60); margin-bottom: 1.25rem; }
.founder-name { font-family: var(--font-display); font-size: 3rem; line-height: 0.95; margin-bottom: 2rem; }
@media (min-width: 768px) { .founder-name { font-size: 3.75rem; } }
.founder-bio { font-size: 13px; color: var(--fg-80); line-height: 1.625; }
.founder-bio > * + * { margin-top: 1rem; }
@media (min-width: 768px) { .founder-bio { font-size: 14px; } }
.founder-cta { margin-top: 2rem; }
.founder-media { position: relative; order: 1; min-height: 420px; background: var(--color-sand); overflow: hidden; }
@media (min-width: 768px) { .founder-media { min-height: 560px; } }
@media (min-width: 1024px) { .founder-media { order: 2; min-height: 720px; } }
.founder-badge { position: absolute; top: 1.5rem; right: 1.5rem; transform: rotate(-3deg); background: var(--color-background); color: var(--color-foreground); font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; padding: 0.25rem 0.75rem; }
@media (min-width: 768px) { .founder-badge { font-size: 1.875rem; line-height: 2.25rem; } }

/* ---------- FAQ ---------- */
.faq-section .container-wide { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .faq-section .container-wide { padding-top: 7rem; padding-bottom: 7rem; } }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1fr 2fr; gap: 4rem; } }
.faq-heading { font-family: var(--font-display); font-size: 3.75rem; line-height: 0.9; }
@media (min-width: 768px) { .faq-heading { font-size: 6rem; } }
.faq-sub { margin-top: 1.25rem; font-size: 14px; color: var(--fg-65); max-width: 28ch; }
.faq-list { border-top: 1px solid var(--fg-80); }
.faq-item { border-bottom: 1px solid var(--fg-20); }
.faq-item h3 { font-family: var(--font-body); }
.faq-trigger { width: 100%; display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline; gap: 0.5rem; padding: 1.25rem 0; text-align: left; font-family: var(--font-body); }
.faq-trigger:focus { outline: none; }
.faq-trigger:focus-visible { background: var(--color-sand); }
.faq-num { font-size: 12px; color: var(--fg-50); font-variant-numeric: tabular-nums; }
.faq-q { font-size: 15px; color: var(--color-foreground); line-height: 1.375; }
@media (min-width: 768px) { .faq-q { font-size: 1rem; } }
.faq-icon { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--fg-70); width: 1.25rem; text-align: center; }
.faq-icon .minus { display: none; }
.faq-item.is-open .faq-icon .minus { display: inline; }
.faq-item.is-open .faq-icon .plus { display: none; }
.faq-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.35s var(--ease-motion), opacity 0.35s var(--ease-motion); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; opacity: 1; }
.faq-panel__inner { overflow: hidden; min-height: 0; }
.faq-a { padding: 0 2rem 1.5rem 3rem; font-size: 14px; color: var(--fg-75); line-height: 1.625; max-width: 42rem; }
@media (min-width: 768px) { .faq-a { font-size: 15px; } }

/* ---------- Contact ---------- */
.contact-section { border-top: 1px solid var(--fg-15); scroll-margin-top: 5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-info { background: var(--color-sky); padding: 4rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
@media (min-width: 768px) { .contact-info { padding: 6rem 4rem; } }
.contact-info .eyebrow { color: var(--fg-60); margin-bottom: 1.25rem; }
.contact-title { font-family: var(--font-display); line-height: 0.88; letter-spacing: -0.03em; font-size: clamp(4rem, 10vw, 8.5rem); }
.contact-details > * + * { margin-top: 1.5rem; }
.contact-list { font-size: 15px; }
.contact-list > * + * { margin-top: 0.375rem; }
@media (min-width: 768px) { .contact-list { font-size: 1rem; } }
.contact-list .contact-location { color: var(--fg-70); }
.contact-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.contact-form-col { background: var(--color-background); padding: 4rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .contact-form-col { padding: 6rem 4rem; } }
.contact-lead { font-family: var(--font-display); font-size: 1.875rem; line-height: 1.25; margin-bottom: 2.5rem; max-width: 28rem; }
@media (min-width: 768px) { .contact-lead { font-size: 2.25rem; line-height: 2.5rem; } }
.contact-form > * + * { margin-top: 1.5rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .contact-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-form label { color: var(--fg-60); }
.contact-input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--fg-30); padding: 0.75rem 0; font-size: 1rem;
  font-family: var(--font-body); transition: color .15s, border-color .15s; border-radius: 0; outline: none; display: block;
}
.contact-input:focus { outline: none; border-bottom-color: var(--color-foreground); }
textarea.contact-input { resize: none; }
.contact-modal-link { margin-top: 1.5rem; align-self: flex-start; font-size: 12px; color: var(--fg-60); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-background); }
.site-footer .container-wide { padding-top: 5rem; padding-bottom: 2.5rem; }
@media (min-width: 768px) { .site-footer .container-wide { padding-top: 7rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; column-gap: 3rem; row-gap: 3.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.25fr 1fr 1.1fr 1.25fr; } }
.footer-brand-link { display: inline-block; }
.footer-logo-img { width: 10rem; height: auto; object-fit: contain; }
.footer-logo-text { font-family: var(--font-display); font-size: 1.5rem; display: block; }
.footer-tagline { margin-top: 2rem; max-width: 220px; font-size: 14px; line-height: 1.625; color: var(--fg-80); }
.footer-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-55); }
.footer-list { margin-top: 2rem; }
.footer-list > li + li { margin-top: 1.5rem; }
.footer-link { font-size: 14px; color: var(--fg-80); transition: color .15s; }
.footer-link:hover { color: var(--color-foreground); }
.footer-connect-link { display: inline-flex; align-items: center; gap: 0.75rem; }
.footer-connect-link svg { width: 1rem; height: 1rem; color: var(--fg-60); }
.footer-bottom { margin-top: 6rem; border-top: 1px solid var(--fg-10); padding-top: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 0.5rem; font-size: 13px; color: var(--fg-55); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; } }
@media (min-width: 768px) { .footer-bottom { margin-top: 8rem; } }
.footer-bottom a { font-weight: 600; color: var(--fg-85); transition: color .15s; }
.footer-bottom a:hover { color: var(--color-foreground); }

/* ---------- Dialogs ---------- */
body.dialog-open { overflow: hidden; }
.theme-dialog { position: fixed; inset: 0; z-index: 50; }
.theme-dialog__overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.8); animation: overlayIn 0.15s ease-out both; }
.theme-dialog[data-state='closed'] .theme-dialog__overlay { animation: overlayOut 0.15s ease-in both; }
.theme-dialog__content {
  position: fixed; left: 50%; top: 50%; z-index: 50; display: grid; width: 100%; max-width: 32rem; transform: translate(-50%, -50%);
  gap: 1rem; border: 1px solid var(--color-border); background: var(--color-background); padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); max-height: 90vh; overflow-y: auto;
  animation: dialogIn 0.2s ease-out both;
}
.theme-dialog[data-state='closed'] .theme-dialog__content { animation: dialogOut 0.2s ease-in both; }
@media (min-width: 640px) { .theme-dialog__content { border-radius: var(--radius); } }
.theme-dialog__content--flush { padding: 0; gap: 0; border-radius: 0; border-color: var(--fg-15); }
.theme-dialog__content--event { width: calc(100vw - 1rem); max-width: 56rem; max-height: 92vh; }
.theme-dialog__close { position: absolute; right: 1rem; top: 1rem; opacity: 0.7; transition: opacity 0.15s; border-radius: 0; z-index: 2; line-height: 0; }
.theme-dialog__close:hover { opacity: 1; }
.theme-dialog__close:focus { outline: none; box-shadow: 0 0 0 2px var(--color-background), 0 0 0 4px var(--color-ring); }
.theme-dialog__close svg { width: 1rem; height: 1rem; }
.theme-dialog__content--event .theme-dialog__close { background: var(--color-background); padding: 0.375rem; opacity: 1; }
.theme-dialog__header { display: flex; flex-direction: column; gap: 0.375rem; text-align: center; }
@media (min-width: 640px) { .theme-dialog__header { text-align: left; } }
.theme-dialog__title { font-size: 1.125rem; font-weight: 600; line-height: 1; letter-spacing: -0.025em; }
.theme-dialog__desc { font-size: 0.875rem; line-height: 1.25rem; color: var(--color-muted-foreground); }

.contact-modal__title { font-family: var(--font-display); font-size: 1.5rem; }
.contact-modal__desc { font-family: var(--font-body); }
.contact-modal__subject { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-70); padding-top: 0.5rem; }
.contact-modal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.contact-modal__links > div { display: flex; align-items: center; gap: 0.5rem; }
.contact-modal__links svg { width: 1rem; height: 1rem; }
.contact-modal__links a { transition: color .15s; }
.contact-modal__links a:hover { color: var(--color-foreground); }
.contact-modal__form > * + * { margin-top: 1rem; }
.contact-modal__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .contact-modal__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-modal__label { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; margin-bottom: 0.375rem; display: block; font-family: var(--font-body); }
.contact-modal__input {
  width: 100%; padding: 0.625rem 0.75rem; background: var(--color-background); border: 1px solid var(--color-border);
  font-size: 1rem; line-height: 1.5rem; font-family: var(--font-body); border-radius: 0; transition: box-shadow 0.3s; display: block;
}
.contact-modal__input:focus { outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-ring) 50%, transparent); }
textarea.contact-modal__input { resize: none; }
.contact-modal__actions { display: flex; justify-content: flex-end; }
.contact-modal__actions .theme-btn svg { margin-left: 0.5rem; }

.membership-modal__top { padding: 2rem 1.5rem 1.5rem; }
@media (min-width: 768px) { .membership-modal__top { padding-left: 2rem; padding-right: 2rem; } }
.membership-modal__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-70); }
.membership-modal__top .theme-dialog__header { text-align: left; margin-top: 0.75rem; }
.membership-modal__title { font-family: var(--font-display); font-size: 2.25rem; font-weight: 400; line-height: 1; }
@media (min-width: 768px) { .membership-modal__title { font-size: 3rem; } }
.membership-modal__desc { font-family: var(--font-body); font-size: 14px; color: var(--fg-75); padding-top: 0.5rem; }
.membership-modal__bottom { padding: 1.5rem; }
@media (min-width: 768px) { .membership-modal__bottom { padding-left: 2rem; padding-right: 2rem; } }
.membership-modal__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-60); }
.membership-modal__benefits { margin-top: 0.75rem; border-top: 1px solid var(--fg-10); border-bottom: 1px solid var(--fg-10); }
.membership-modal__benefits li { padding: 0.75rem 0; font-size: 14px; line-height: 1.375; }
.membership-modal__benefits li + li { border-top: 1px solid var(--fg-10); }
.membership-modal__foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.membership-modal__price { font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; }

.event-modal__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .event-modal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.event-modal__media { position: relative; aspect-ratio: 4 / 3; background: var(--color-sand); }
@media (min-width: 768px) { .event-modal__media { aspect-ratio: auto; min-height: 520px; } }
.event-modal__body { padding: 1.5rem; display: flex; flex-direction: column; }
@media (min-width: 768px) { .event-modal__body { padding: 2.5rem; } }
.event-modal__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--fg-60); }
.event-modal__title { margin-top: 0.75rem; font-family: var(--font-display); font-size: 2.25rem; font-weight: 400; line-height: 0.95; }
@media (min-width: 768px) { .event-modal__title { font-size: 3.75rem; } }
.event-modal__meta { margin-top: 1.5rem; border-top: 1px solid var(--fg-10); border-bottom: 1px solid var(--fg-10); }
.event-modal__meta > div { padding: 0.625rem 0; display: flex; justify-content: space-between; gap: 1rem; font-size: 13px; }
.event-modal__meta > div + div { border-top: 1px solid var(--fg-10); }
.event-modal__meta dt { text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg-55); font-size: 12px; }
.event-modal__meta dd { text-align: right; }
.event-modal__desc { margin-top: 1.5rem; font-size: 15px; line-height: 1.625; color: var(--fg-80); }
.event-modal__pie { margin-top: 2rem; align-self: flex-start; }

/* ---------- Cart drawer ---------- */
#theme-cart-overlay { display: none; position: fixed; inset: 0; background: var(--fg-20); z-index: 100000; }
#theme-cart-drawer {
  display: none; position: fixed; right: 0; top: 0; height: 100%; width: 100%; max-width: 28rem; background: var(--color-background);
  z-index: 100000; box-shadow: var(--shadow-elevated); flex-direction: column;
}
body.admin-bar #theme-cart-drawer { top: 32px; height: calc(100% - 32px); }
body.admin-bar #theme-cart-overlay { top: 32px; height: calc(100% - 32px); }
@media (max-width: 782px) {
  body.admin-bar #theme-cart-drawer { top: 46px; height: calc(100% - 46px); }
  body.admin-bar #theme-cart-overlay { top: 46px; height: calc(100% - 46px); }
}
.cart-drawer__body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
body.cart-open #theme-cart-overlay { display: block; }
body.cart-open #theme-cart-drawer { display: flex; }
body.cart-just-opened #theme-cart-overlay { animation: fadeIn 0.6s var(--ease-smooth) forwards; }
body.cart-just-opened #theme-cart-drawer { animation: slideUp 0.6s var(--ease-smooth) forwards; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem; border-bottom: 1px solid var(--color-border); }
.cart-drawer__title { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.75rem; font-weight: 700; }
.cart-drawer__close { padding: 0.25rem; transition: opacity 0.15s; line-height: 0; }
.cart-drawer__close:hover { opacity: 0.6; }
.cart-drawer__close svg { width: 1.25rem; height: 1.25rem; }
.cart-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.cart-drawer__empty svg { width: 3rem; height: 3rem; color: var(--color-muted-foreground); margin-bottom: 1rem; }
.cart-drawer__empty p { color: var(--color-muted-foreground); margin-bottom: 1.5rem; font-family: var(--font-body); }
.cart-drawer__items { flex: 1; overflow: auto; padding: 1.5rem; }
.cart-drawer__items > * + * { margin-top: 1.5rem; }
.cart-item { display: flex; gap: 1rem; }
.cart-item__thumb { width: 5rem; height: 6rem; background: var(--color-secondary); overflow: hidden; flex-shrink: 0; border-radius: calc(var(--radius) - 2px); display: block; }
.cart-item__thumb img { padding: 0.5rem; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.15s; font-family: var(--font-body); }
.cart-item__name:hover { opacity: 0.7; }
.cart-item__price { font-size: 0.875rem; line-height: 1.25rem; color: var(--color-muted-foreground); margin-top: 0.125rem; font-family: var(--font-body); }
.cart-item__attrs { font-size: 12px; color: var(--color-muted-foreground); margin-top: 0.125rem; }
.cart-item__controls { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.cart-item__btn { padding: 0.25rem; transition: background-color .15s; border-radius: 0.25rem; line-height: 0; }
.cart-item__btn:hover { background: var(--color-secondary); }
.cart-item__btn svg { width: 0.75rem; height: 0.75rem; }
.cart-item__qty { font-size: 0.875rem; line-height: 1.25rem; width: 1.5rem; text-align: center; font-family: var(--font-body); }
.cart-item__remove { margin-left: auto; font-size: 0.875rem; line-height: 1.25rem; color: var(--color-muted-foreground); transition: color .15s; font-family: var(--font-body); }
.cart-item__remove:hover { color: var(--color-foreground); }
.cart-drawer__foot { padding: 1.5rem; border-top: 1px solid var(--color-border); }
.cart-drawer__foot > * + * { margin-top: 1rem; }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-size: 0.875rem; line-height: 1.25rem; font-family: var(--font-body); }
.cart-drawer__subtotal span:first-child { color: var(--color-muted-foreground); }
.cart-drawer__subtotal span:last-child { font-weight: 500; }
.cart-drawer__notice { font-size: 0.875rem; line-height: 1.25rem; color: var(--color-muted-foreground); font-family: var(--font-body); }
.cart-drawer__foot .theme-btn svg { margin-right: 0.5rem; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* ---------- Product page ---------- */
.product-page { background: var(--color-background); }
.product-page .container-wide { padding-bottom: 0; }
.theme-breadcrumb { padding: 1.5rem 0; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.theme-breadcrumb a { transition: color .15s; }
.theme-breadcrumb a:hover { color: var(--color-foreground); }
.theme-breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }
.theme-breadcrumb .current { color: var(--color-foreground); }
.theme-product-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 6rem; padding-top: 1rem; align-items: start; min-width: 0; }
@media (min-width: 1024px) { .theme-product-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; } }
.theme-product-gallery, .theme-product-info { min-width: 0; max-width: 100%; }
@media (min-width: 1024px) {
  .theme-product-gallery { grid-column: span 7 / span 7; }
  .theme-product-info { grid-column: span 5 / span 5; padding-left: 1rem; position: sticky; top: 7rem; align-self: start; }
}
.gallery-mobile { display: block; }
.gallery-desktop { display: none; }
@media (min-width: 1024px) { .gallery-mobile { display: none; } .gallery-desktop { display: flex; flex-direction: column; gap: 1rem; } }
.gallery-frame { aspect-ratio: 1 / 1; background: var(--color-secondary); overflow: hidden; border-radius: 1rem; }
.gallery-mobile .gallery-frame .product-gallery-img { padding: 3rem; }
.gallery-desktop .gallery-frame .product-gallery-img { padding: 4rem; }
.theme-product-thumbnails { display: flex; gap: 0.75rem; margin-top: 1rem; overflow-x: auto; padding-bottom: 0.25rem; max-width: 100%; }
.theme-thumb { position: relative; width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; background: var(--color-secondary); border-radius: var(--radius); }
.theme-thumb .product-thumb-img { padding: 0.5rem; opacity: 0.6; transition: opacity .15s; }
.theme-thumb:hover .product-thumb-img, .theme-thumb.is-active .product-thumb-img { opacity: 1; }
.product-category { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-muted-foreground); font-family: var(--font-body); }
.product-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 1.1; margin-top: 0.75rem; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .product-title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .product-title { font-size: 2.75rem; } }
.product-price { font-size: 1.25rem; line-height: 1.75rem; margin-bottom: 1.5rem; font-family: var(--font-body); color: var(--color-foreground); }
.product-price del { opacity: 0.5; }
.product-price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--color-muted-foreground); line-height: 1.625; margin-bottom: 2rem; font-family: var(--font-body); font-size: 1rem; }
.product-option { margin-bottom: 1.5rem; }
.product-option__label, .theme-qty-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--font-body); color: var(--color-muted-foreground); margin-bottom: 0.75rem; display: block; font-style: normal; font-weight: 400; }
.theme-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.theme-attr-pill { padding: 0.5rem 1rem; font-size: 0.75rem; line-height: 1; letter-spacing: 0.15em; text-transform: uppercase; border: 1px solid var(--color-border); transition: all .15s; font-family: var(--font-body); border-radius: 9999px; }
.theme-attr-pill:hover { border-color: var(--fg-60); }
.theme-attr-pill:disabled { opacity: 0.4; cursor: not-allowed; }
.theme-attr-pill.is-selected { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
.theme-attr-select-hidden { display: none !important; }
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.single-product .variations { margin-bottom: 0.5rem; width: 100%; }
.variations label { font-family: var(--font-body); font-weight: 400; font-style: normal; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted-foreground); }
.single-product .reset_variations { display: none !important; }
.single-product .woocommerce-variation-price { font-family: var(--font-body); margin-bottom: 1rem; }
.single-product .woocommerce-variation-availability { font-size: 14px; color: var(--color-muted-foreground); }
.theme-add-to-cart-area { display: flex; flex-direction: column; align-items: stretch; gap: 0; flex-wrap: nowrap; }
.theme-quantity-block { margin-bottom: 1rem; }
.theme-quantity-wrapper { display: inline-flex; align-items: center; border: 1px solid var(--color-border); }
.theme-qty-minus, .theme-qty-plus { padding: 0.5rem 0.75rem; transition: background-color .15s; line-height: 0; }
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-minus svg, .theme-qty-plus svg { width: 0.875rem; height: 0.875rem; }
.theme-qty-input {
  width: 44px; min-width: 44px; padding: 0.5rem 0; text-align: center; font-family: var(--font-body); font-size: 0.875rem; line-height: 1.25rem;
  border: 0; background: transparent; -moz-appearance: textfield; appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button, .theme-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.theme-qty-input:focus { outline: none; }
.product-accordion { margin-top: 2.5rem; border-top: 1px solid var(--color-border); }
.product-accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; text-align: left; }
.product-accordion__trigger span { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; font-family: var(--font-body); }
.product-accordion__trigger svg { width: 1rem; height: 1rem; transition: transform .15s; }
.product-accordion__trigger[aria-expanded='true'] svg { transform: rotate(180deg); }
.product-accordion__body { padding-bottom: 1.5rem; font-family: var(--font-body); font-size: 15px; color: var(--color-muted-foreground); line-height: 1.625; }
.product-accordion__body p { margin-bottom: 1rem; white-space: pre-line; }
.product-accordion__body[hidden] { display: none; }
.product-accordion__end { border-top: 1px solid var(--color-border); }
.single-product .woocommerce-message, .single-product .woocommerce-info { display: none; }
.single-product .woocommerce-product-details__short-description, .single-product .woocommerce-variation-description, .single-product .posted_in { overflow-wrap: break-word; word-break: break-word; }
.related-products-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-products-head { text-align: center; margin-bottom: 3rem; }
.related-products-eyebrow { font-family: var(--font-display); font-style: italic; font-size: 1rem; line-height: 1.5rem; color: var(--color-muted-foreground); margin-bottom: 0.5rem; }
.related-products-title { font-family: var(--font-display); font-weight: 400; font-size: 1.875rem; line-height: 2.25rem; }
@media (min-width: 768px) { .related-products-title { font-size: 2.25rem; line-height: 2.5rem; } }
.related-products-section .theme-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 1024px) { .related-products-section .theme-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

/* Woo button overrides */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
  background-color: var(--color-primary) !important; color: var(--color-button-text) !important; border: none !important;
  border-radius: var(--btn-radius) !important; min-height: var(--btn-height) !important; padding: var(--btn-padding) !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font-family: var(--font-body) !important; font-size: var(--btn-font-size) !important; font-weight: var(--btn-font-weight) !important;
  letter-spacing: var(--btn-letter-spacing) !important; text-transform: var(--btn-text-transform) !important;
  cursor: pointer !important; transition: opacity 0.2s ease !important; line-height: 1 !important; text-decoration: none !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover { opacity: 0.9 !important; background-color: var(--color-primary) !important; color: var(--color-button-text) !important; }
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled { cursor: not-allowed !important; opacity: 0.6 !important; pointer-events: none !important; }
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover { opacity: 0.6 !important; background-color: var(--color-primary) !important; }
.single-product .single_add_to_cart_button { width: 100%; flex: 1 1 auto; min-width: 160px; text-transform: uppercase; }
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after { display: none !important; }
.ajax_add_to_cart.theme-btn-loading { opacity: 0.6 !important; pointer-events: none !important; cursor: wait !important; }
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* ---------- Shop archive / generic pages ---------- */
.archive-section .container-wide { padding-top: 1rem; padding-bottom: 5rem; }
.archive-title, .page-title { font-family: var(--font-display); font-size: 3rem; line-height: 1; margin-bottom: 2rem; }
@media (min-width: 768px) { .archive-title, .page-title { font-size: 3.75rem; } }
.page-title { font-size: 1.875rem; line-height: 2.25rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .page-title { font-size: 2.25rem; line-height: 2.5rem; } }
.archive-empty { color: var(--color-muted-foreground); }
.page-main .container-wide { padding-top: 2.5rem; padding-bottom: 5rem; }
.entry-content { max-width: 100%; }
.entry-content p { margin-bottom: 1rem; line-height: 1.625; }
.woocommerce-pagination { margin-top: 3rem; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 0.5rem; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-block; padding: 0.5rem 1rem; border: 1px solid var(--color-border); font-size: 13px; }
.woocommerce-pagination .current { background: var(--color-foreground); color: var(--color-background); }
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  font-family: var(--font-body); border: 1px solid var(--color-border); background: var(--color-secondary);
  border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; list-style: none;
}
.woocommerce-error { border-color: var(--color-destructive); color: var(--color-destructive); }
.notfound-wrap { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: var(--color-muted); }
.notfound-wrap__inner { text-align: center; }
.notfound-wrap h1 { margin-bottom: 1rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
.notfound-wrap p { margin-bottom: 1rem; font-size: 1.25rem; line-height: 1.75rem; color: var(--color-muted-foreground); }
.notfound-wrap a { color: var(--color-primary); text-decoration: underline; }

/* ---------- Checkout / Cart / Account (native blocks) ---------- */
body.woocommerce-checkout .site-main, body.woocommerce-cart .site-main, body.woocommerce-account .site-main { padding-top: var(--header-height, 80px); padding-bottom: 4rem; }
.checkout-back {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem;
  font-family: var(--font-body); font-size: 0.875rem; line-height: 1.25rem;
  color: var(--color-muted-foreground); transition: color 0.15s;
}
.checkout-back:hover { color: var(--color-foreground); }
.checkout-back__icon { width: 1rem; height: 1rem; flex-shrink: 0; }
body.woocommerce-checkout .page-title { margin-bottom: 2.5rem; }
body.woocommerce-checkout .wc-block-checkout { display: block; font-family: var(--font-body); color: var(--color-foreground); }
@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
  }
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar { min-width: 0; width: 100%; max-width: none; padding: 0; }
body.woocommerce-checkout .wc-block-checkout__sidebar { background-color: var(--color-surface, #f8f8f8); border-radius: var(--card-radius); padding: var(--section-padding, 2rem); }
body.woocommerce-checkout .wc-block-components-notice-banner { grid-column: 1 / -1; border-radius: var(--radius); font-family: var(--font-body); }
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; }
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .form-row select {
  width: 100% !important; max-width: none !important; font-family: var(--font-body); color: var(--color-foreground);
  background-color: var(--color-background); border: 1px solid var(--color-border); border-radius: calc(var(--radius) - 2px);
}
body.woocommerce-checkout .wc-block-components-text-input input { padding: revert; }
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus { outline: none; box-shadow: 0 0 0 1px var(--color-primary); border-color: var(--color-primary); }
body.woocommerce-checkout .wc-block-components-text-input input::placeholder { color: var(--color-muted-foreground); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart__submit-button {
  background: var(--color-primary); color: var(--color-primary-foreground); border: 1px solid var(--color-primary); border-radius: 9999px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; min-height: 3rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover { background: var(--color-background); color: var(--color-primary); }
body.woocommerce-checkout .wc-block-cart-items { font-family: var(--font-body); }
body.woocommerce-cart .wc-block-cart { font-family: var(--font-body); }
body.woocommerce-checkout .entry-content, body.woocommerce-cart .entry-content, body.woocommerce-account .entry-content { max-width: none; }
body.woocommerce-account .woocommerce { font-family: var(--font-body); }
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 1.5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fg-60); }
body.theme-thankyou-page .woocommerce-order-overview li strong { display: block; font-size: 15px; text-transform: none; letter-spacing: normal; color: var(--color-foreground); font-weight: 500; }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title { font-family: var(--font-display); font-size: 1.5rem; padding: 0 0 1rem 0; }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; border: 1px solid var(--color-border); }
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
body.theme-thankyou-page .woocommerce-customer-details address { max-width: 480px; overflow-wrap: break-word; font-style: normal; border: 1px solid var(--color-border); padding: 1rem; }

.founder-section { scroll-margin-top: 5rem; }
body.error404 .site-main { padding-top: 0; }
