/*
Theme Name: Stoned Ape Club
Theme URI: https://stonedape.pt/
Description: Child theme para a experiência privada Stoned Ape Club.
Author: Stoned Ape Portugal
Template: stoned-ape
Version: 0.9.7
Text Domain: stoned-ape
*/

:root {
  --club-green: #185425;
  --club-green-dark: #0e3618;
  --club-green-soft: #edf4ec;
  --club-ink: #101710;
  --club-muted: #667068;
  --club-border: #dfe5df;
  --club-bg: #f7f8f5;
  --club-card: #fff;
  --club-gold: #f1a900;
  --club-radius: 18px;
  --club-shadow: 0 12px 40px rgba(18, 48, 26, .07);
}

/* Checkout modal: the real WooCommerce checkout stays inside the Clubhouse. */
.club-modal-shell.is-checkout { padding: 18px; background: rgba(9,25,13,.68); }
.club-checkout-dialog { width: min(1180px, 96vw); height: min(860px, 94svh); overflow: hidden; border: 1px solid rgba(255,255,255,.42); border-radius: 22px; display: grid; grid-template-rows: 72px minmax(0,1fr); background: var(--club-bg); box-shadow: 0 32px 110px rgba(0,0,0,.36); }
.club-checkout-dialog__header { display: grid; grid-template-columns: 1fr auto 42px; align-items: center; gap: 18px; padding: 0 18px 0 24px; border-bottom: 1px solid var(--club-border); background: #fff; }
.club-checkout-dialog__header div { display: grid; gap: 2px; }
.club-checkout-dialog__header span { color: var(--club-green); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.club-checkout-dialog__header strong { color: var(--club-ink); font-size: 19px; }
.club-checkout-dialog__header a { color: var(--club-green); font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.club-checkout-dialog__header button { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--club-bg); color: var(--club-ink); cursor: pointer; font-size: 27px; }
.club-checkout-dialog__frame { position: relative; min-height: 0; background: var(--club-bg); }
.club-checkout-dialog__frame iframe { position: relative; z-index: 2; width: 100%; height: 100%; border: 0; display: block; background: var(--club-bg); opacity: 1; transition: opacity .2s ease; }
.club-checkout-dialog__frame.is-loading iframe { opacity: 0; }
.club-checkout-dialog__loader { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; color: var(--club-green); font-size: 12px; font-weight: 850; }

body.club-checkout-embed .club-header,
body.club-checkout-embed .stone-header,
body.club-checkout-embed .stone-footer { display: none !important; }
body.club-checkout-embed { min-width: 0; background: var(--club-bg); }
body.club-checkout-embed .stone-coffee { min-height: 100svh; padding: 22px 0 40px; }
body.club-checkout-embed .stone-coffee > .stone-shell { width: min(100% - 32px, 1110px); }
body.club-checkout-embed .stone-coffee h1 { margin-bottom: 22px; font-size: 34px; }

@media (max-width: 620px) {
  .club-modal-shell.is-checkout { padding: 0; }
  .club-checkout-dialog { width: 100vw; height: 100svh; border: 0; border-radius: 0; grid-template-rows: 64px minmax(0,1fr); }
  .club-checkout-dialog__header { grid-template-columns: 1fr auto 40px; gap: 9px; padding: 0 10px 0 15px; }
  .club-checkout-dialog__header strong { font-size: 16px; }
  .club-checkout-dialog__header a { max-width: 70px; font-size: 9px; line-height: 1.2; text-align: right; }
  .club-checkout-dialog__header button { width: 38px; height: 38px; }
  body.club-checkout-embed .stone-coffee { padding: 14px 0 40px; }
  body.club-checkout-embed .stone-coffee > .stone-shell { width: min(100% - 20px, 1110px); }
  body.club-checkout-embed .stone-coffee h1 { margin-bottom: 16px; font-size: 28px; }
}

body.club-private-page { background: var(--club-bg); color: var(--club-ink); }
.club-private-page .stone-header,
.club-private-page .stone-footer { display: none; }
.club-private-page main { min-height: 100svh; }
.club-shell { width: min(1460px, calc(100% - 32px)); margin-inline: auto; }
.club-card { border: 1px solid var(--club-border); border-radius: var(--club-radius); background: var(--club-card); box-shadow: var(--club-shadow); }
.club-kicker { margin: 0 0 6px; color: var(--club-green); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.club-muted { color: var(--club-muted); }

.club-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--club-border); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.admin-bar .club-header { top: 32px; }
.club-header__inner { min-height: 76px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.club-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--club-ink); text-decoration: none; }
.club-logo img { width: 46px; height: 46px; object-fit: contain; }
.stone-brand--with-logo { display: inline-flex; align-items: center; gap: 9px; }
.stone-brand--with-logo img { width: 34px; height: 34px; object-fit: contain; }
.club-logo strong { display: block; font-size: 18px; line-height: 1; letter-spacing: .03em; }
.club-logo small { display: block; margin-top: 4px; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.club-header__nav { display: flex; justify-content: center; gap: 30px; }
.club-header__nav button, .club-header__nav a { border: 0; padding: 12px 0; background: transparent; color: var(--club-ink); cursor: pointer; font-size: 12px; font-weight: 750; text-transform: uppercase; text-decoration: none; }
.club-header__nav button.is-active, .club-header__nav a.is-active { color: var(--club-green); }
.club-header__actions { display: flex; align-items: center; gap: 10px; }
.club-profile-link, .club-cart-trigger { min-height: 44px; border: 1px solid var(--club-border); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; background: #fff; color: var(--club-ink); text-decoration: none; font-weight: 800; }
.club-profile-link img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #f4f6f1; }
.club-cart-trigger { position: relative; width: 46px; justify-content: center; padding: 0; cursor: pointer; font-size: 20px; }
.club-cart-count { position: absolute; top: -5px; right: -4px; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; background: var(--club-green); color: #fff; font-size: 10px; }
.club-mobile-menu { display: none; border: 0; background: transparent; font-size: 24px; }

.club-main { padding: 34px 0 64px; }
.club-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.club-hero { position: relative; min-height: 210px; overflow: hidden; display: flex; align-items: center; padding: 34px 36px; background: #fff; }
.club-hero__copy { position: relative; z-index: 2; max-width: 620px; }
.club-hero h1 { margin: 4px 0 10px; color: var(--club-green); font-size: clamp(34px, 5vw, 64px); line-height: .95; letter-spacing: -.04em; }
.club-hero p { margin: 0; color: var(--club-muted); }
.club-hero__ape { position: absolute; right: 20px; bottom: -35px; width: min(270px, 32vw); filter: drop-shadow(0 12px 18px rgba(0,0,0,.06)); }

.club-filters { margin: 18px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.club-filter { min-height: 38px; border: 1px solid var(--club-border); border-radius: 999px; padding: 0 16px; background: #fff; color: var(--club-ink); cursor: pointer; font-size: 12px; font-weight: 800; }
.club-filter.is-active { border-color: var(--club-green); background: var(--club-green); color: #fff; }
.club-filter-separator { width: 1px; height: 28px; margin: 0 4px; background: var(--club-border); }
.club-catalog-status { min-height: 24px; color: var(--club-muted); font-size: 13px; }
.club-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.club-product-card { position: relative; overflow: hidden; border: 1px solid var(--club-border); border-radius: 16px; display: flex; flex-direction: column; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.club-product-card:hover { transform: translateY(-3px); box-shadow: var(--club-shadow); }
.club-product-card__open { flex: 1; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.club-product-card__image { aspect-ratio: 1 / .92; display: block; overflow: hidden; background: #f3f5f0; }
.club-product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.club-product-card:hover .club-product-card__image img { transform: scale(1.025); }
.club-product-card__meta { display: flex; flex-direction: column; min-height: 164px; padding: 13px; }
.club-product-card__tag { align-self: flex-start; border: 1px solid #a9c3aa; border-radius: 5px; padding: 2px 6px; color: var(--club-green); font-size: 10px; font-weight: 850; }
.club-product-card__meta strong { margin-top: 8px; font-size: 14px; line-height: 1.25; }
.club-product-card__meta small { margin-top: 3px; color: var(--club-green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.club-product-card__profile { min-height: 32px; margin-top: 7px; color: var(--club-muted); font-size: 11px; line-height: 1.4; }
.club-product-card__price { margin-top: auto; padding-top: 10px; font-size: 16px; font-weight: 900; }
.club-add-button { min-height: 39px; margin: 0 12px 12px; border: 1px solid var(--club-green); border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--club-green); cursor: pointer; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.club-add-button:hover { background: var(--club-green); color: #fff; }
.club-add-button.is-disabled { border-color: var(--club-border); color: var(--club-muted); cursor: default; }
.club-favorite { position: absolute; z-index: 3; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--club-green); cursor: pointer; font-size: 20px; box-shadow: 0 5px 18px rgba(0,0,0,.08); }
.club-favorite.is-active { background: var(--club-green); color: #fff; }
.club-load-more { min-height: 46px; margin: 22px auto 0; border: 1px solid var(--club-green); border-radius: 999px; display: block; padding: 0 24px; background: #fff; color: var(--club-green); cursor: pointer; font-weight: 800; }
.club-empty { grid-column: 1 / -1; min-height: 180px; border: 1px dashed var(--club-border); border-radius: var(--club-radius); display: grid; place-content: center; gap: 6px; background: #fff; color: var(--club-muted); text-align: center; }

.club-cart-panel { position: sticky; top: 98px; overflow: hidden; padding: 18px; }
.admin-bar .club-cart-panel { top: 130px; }
.club-cart-panel__header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--club-border); }
.club-cart-panel__header div { display: flex; gap: 8px; font-weight: 900; text-transform: uppercase; }
.club-cart-panel__header strong { min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--club-green); color: #fff; font-size: 11px; }
.club-cart-panel__header button { display: none; border: 0; background: transparent; font-size: 26px; }
.club-cart-empty { min-height: 280px; display: grid; place-content: center; gap: 8px; color: var(--club-muted); text-align: center; }
.club-cart-empty span { font-size: 34px; }
.club-cart-empty p { margin: 0; font-size: 12px; }
.club-cart-items { max-height: 540px; overflow: auto; }
.club-cart-item { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--club-border); }
.club-cart-item__image img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.club-cart-item__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.club-cart-item__body small { color: var(--club-muted); }
.club-cart-item__controls { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.club-cart-item__controls button { border: 1px solid var(--club-border); border-radius: 6px; background: #fff; cursor: pointer; }
.club-cart-item__remove { margin-left: auto; border: 0 !important; color: #8a312d; font-size: 10px; }
.club-cart-total { display: flex; justify-content: space-between; padding: 18px 0; font-size: 18px; font-weight: 900; }
.club-primary-button { min-height: 48px; border: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 20px; background: var(--club-green); color: #fff; cursor: pointer; font-size: 12px; font-weight: 900; text-decoration: none; text-transform: uppercase; }

.club-lower-grid { margin-top: 22px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.club-section-card { padding: 22px; }
.club-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 16px; }
.club-section-heading h2 { margin: 0; font-size: 20px; }
.club-section-heading p { margin: 4px 0 0; color: var(--club-muted); font-size: 12px; }
.club-board-form { display: flex; gap: 8px; margin-bottom: 14px; }
.club-board-form textarea { min-height: 46px; flex: 1; resize: vertical; border: 1px solid var(--club-border); border-radius: 10px; padding: 12px; }
.club-board-post { padding: 16px 0; border-top: 1px solid var(--club-border); }
.club-board-post__head { display: flex; align-items: center; gap: 9px; }
.club-board-post__head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #f4f6f1; }
.club-board-post__head strong { font-size: 12px; }
.club-board-post__head time { color: var(--club-muted); font-size: 10px; }
.club-board-pin { border-radius: 999px; padding: 3px 7px; background: var(--club-green-soft); color: var(--club-green); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.club-board-post__content { margin: 10px 0 0 45px; font-size: 13px; line-height: 1.55; }
.club-board-post__reply { margin: 10px 0 0 45px; display: flex; gap: 6px; }
.club-board-post__reply input { flex: 1; min-height: 38px; border: 1px solid var(--club-border); border-radius: 8px; padding: 0 10px; }
.club-board-replies { margin: 12px 0 0 45px; display: grid; gap: 8px; }
.club-board-reply { display: flex; gap: 8px; padding: 9px; border-radius: 10px; background: var(--club-bg); }
.club-board-reply img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.club-board-reply strong { display: block; font-size: 10px; }
.club-board-reply p { margin: 2px 0 0; font-size: 12px; line-height: 1.45; }
.club-faq details { border-top: 1px solid var(--club-border); }
.club-faq summary { cursor: pointer; padding: 15px 4px; font-size: 13px; font-weight: 750; }
.club-faq__answer { padding: 0 4px 16px; color: var(--club-muted); font-size: 13px; line-height: 1.6; }

.club-modal-shell { position: fixed; z-index: 100100; inset: 0; display: none; place-items: center; padding: 20px; background: rgba(9,25,13,.56); backdrop-filter: blur(6px); }
.club-modal-shell.is-open { display: grid; }
.club-quick-view { position: relative; width: min(860px, 100%); max-height: min(760px, 94svh); overflow: auto; border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.club-quick-view__image { min-height: 520px; background: #f3f5f0; }
.club-quick-view__image img { width: 100%; height: 100%; object-fit: cover; }
.club-quick-view__content { padding: 34px; }
.club-quick-view h2 { margin: 10px 0 4px; font-size: clamp(30px, 5vw, 52px); line-height: .98; letter-spacing: -.04em; }
.club-quick-view__family { color: var(--club-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.club-quick-view__description { max-height: 230px; overflow: auto; color: var(--club-muted); font-size: 13px; line-height: 1.55; }
.club-quick-view__price { margin: 16px 0; font-size: 22px; font-weight: 900; }
.club-quick-view select { width: 100%; min-height: 48px; border: 1px solid var(--club-border); border-radius: 9px; padding: 0 12px; background: #fff; }
.club-modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--club-bg); cursor: pointer; font-size: 24px; }
.club-quantity { width: 132px; margin: 16px 0; border: 1px solid var(--club-border); border-radius: 9px; display: grid; grid-template-columns: 38px 1fr 38px; }
.club-quantity button, .club-quantity input { min-height: 42px; border: 0; background: transparent; text-align: center; }

.member-shell { width: min(1500px, calc(100% - 32px)); margin: 18px auto; display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.member-sidebar { position: sticky; top: 18px; height: calc(100svh - 36px); display: flex; flex-direction: column; padding: 18px; }
.admin-bar .member-sidebar { top: 50px; height: calc(100svh - 68px); }
.member-identity { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; margin: 18px 0; padding: 12px; border: 1px solid var(--club-border); border-radius: 14px; }
.member-identity img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f4f6f1; }
.member-identity strong, .member-identity span, .member-identity small { display: block; }
.member-identity span { width: fit-content; border-radius: 999px; padding: 3px 7px; background: var(--club-green-soft); color: var(--club-green); font-size: 9px; font-weight: 900; }
.member-identity small { margin-top: 5px; color: var(--club-muted); font-size: 10px; }
.member-nav { display: grid; gap: 3px; }
.member-nav a { min-height: 42px; border-radius: 9px; display: flex; align-items: center; gap: 10px; padding: 0 11px; color: var(--club-ink); font-size: 13px; text-decoration: none; }
.member-nav a.is-active, .member-nav a:hover { background: var(--club-green-soft); color: var(--club-green); }
.member-sidebar__bottom { margin-top: auto; display: grid; gap: 8px; }
.member-sidebar__bottom a { min-height: 42px; border: 1px solid var(--club-border); border-radius: 9px; display: grid; place-items: center; color: var(--club-ink); font-size: 12px; text-decoration: none; }
.member-main { min-width: 0; padding: 16px 0 60px; }
.member-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.member-heading h1 { margin: 0; font-size: clamp(26px,4vw,38px); }
.member-heading p { margin: 5px 0 0; color: var(--club-muted); }
.member-stat-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.member-stat { min-height: 170px; display: flex; flex-direction: column; padding: 18px; }
.member-stat__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--club-green-soft); color: var(--club-green); font-size: 20px; }
.member-stat span { margin-top: 14px; font-size: 12px; }
.member-stat strong { margin-top: 3px; font-size: 25px; }
.member-stat a { margin-top: auto; color: var(--club-green); font-size: 12px; font-weight: 800; }
.member-stat--points { background: linear-gradient(145deg,#1c5f2c,#123d1d); color: #fff; }
.member-stat--points .member-stat__icon { background: rgba(255,255,255,.1); color: var(--club-gold); }
.member-stat--points a { color: #fff; }
.member-dashboard-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.member-panel { padding: 22px; }
.member-panel h2 { margin: 0 0 16px; font-size: 20px; }
.member-panel--wide { grid-column: 1 / -1; }
.member-order-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.member-order-status { border-radius: 999px; padding: 4px 8px; background: var(--club-green-soft); color: var(--club-green); font-size: 10px; font-weight: 900; }
.member-tracking { display: grid; grid-template-columns: repeat(4,1fr); margin: 24px 0; }
.member-tracking span { position: relative; padding-top: 26px; color: var(--club-muted); font-size: 10px; text-align: center; }
.member-tracking span::before { content: ''; position: absolute; z-index: 2; top: 0; left: 50%; width: 17px; height: 17px; border: 3px solid #fff; border-radius: 50%; transform: translateX(-50%); background: #dfe5df; box-shadow: 0 0 0 1px var(--club-border); }
.member-tracking span::after { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px; background: var(--club-border); }
.member-tracking span:first-child::after { display: none; }
.member-tracking span.is-done::before, .member-tracking span.is-current::before { background: var(--club-green); }
.member-tracking span.is-done::after, .member-tracking span.is-current::after { background: var(--club-green); }
.member-profile-summary { display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
.member-profile-summary img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; background: #f4f6f1; }
.member-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.member-chip { border-radius: 999px; padding: 6px 11px; background: var(--club-green-soft); color: var(--club-green); font-size: 11px; }
.member-list { display: grid; gap: 10px; }
.member-list-item { border: 1px solid var(--club-border); border-radius: 12px; padding: 16px; background: #fff; }
.member-list-item__head { display: flex; justify-content: space-between; gap: 12px; }
.member-profile-form fieldset { margin: 0 0 26px; border: 0; padding: 0; }
.member-profile-form legend { margin-bottom: 12px; font-weight: 900; }
.member-avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(80px,1fr)); gap: 10px; }
.member-avatar-option input { position: absolute; opacity: 0; }
.member-avatar-option span { border: 2px solid transparent; border-radius: 14px; display: block; padding: 5px; background: #f4f6f1; cursor: pointer; }
.member-avatar-option img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.member-avatar-option input:checked + span { border-color: var(--club-green); }
.member-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.member-choice input { position: absolute; opacity: 0; }
.member-choice span { border: 1px solid var(--club-border); border-radius: 999px; display: block; padding: 8px 13px; cursor: pointer; font-size: 12px; }
.member-choice input:checked + span { border-color: var(--club-green); background: var(--club-green); color: #fff; }
.member-profile-form textarea, .member-message-form input, .member-message-form textarea, .member-message-form select { width: 100%; min-height: 48px; border: 1px solid var(--club-border); border-radius: 9px; padding: 12px; background: #fff; }
.member-profile-form textarea, .member-message-form textarea { min-height: 120px; resize: vertical; }
.member-form-status { min-height: 24px; margin-top: 10px; color: var(--club-green); font-size: 12px; }
.member-invite-code { display: flex; gap: 8px; }
.member-invite-code input { min-width: 0; flex: 1; border: 1px solid var(--club-border); border-radius: 9px; padding: 0 12px; background: var(--club-bg); }

.club-bottom-nav, .club-mobile-cart-bar { display: none; }
.club-toast { position: fixed; z-index: 1200; right: 18px; bottom: 18px; max-width: 340px; border-radius: 10px; padding: 13px 16px; background: var(--club-green-dark); color: #fff; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; box-shadow: var(--club-shadow); }
.club-toast.is-visible { opacity: 1; transform: none; }
.club-login-page { min-height: 100svh; display: grid; place-items: center; padding: 110px 20px 50px; background: radial-gradient(circle at 70% 15%, #2e6b3a, var(--stone-green) 58%); }
.club-login-page .stone-login-card { position: relative; top: auto; width: min(470px,100%); }
.club-login-page .club-logo { margin-bottom: 30px; color: var(--stone-cream); }
.club-login-page .club-logo img { width: 58px; height: 58px; }
.club-login-page h1 { margin: 8px 0 14px; font-size: clamp(34px,7vw,58px); line-height: .95; letter-spacing: -.04em; }

/* WooCommerce inherits the same visual language as the private club. */
body.woocommerce-checkout,
body.woocommerce-account,
body.woocommerce-order-received { background: var(--club-bg); color: var(--club-ink); }
body.woocommerce-checkout .stone-woo,
body.woocommerce-account .stone-woo,
body.woocommerce-order-received .stone-woo { min-height: 100svh; padding: 42px 0 72px; background: var(--club-bg); }
body.woocommerce-checkout .stone-coffee,
body.woocommerce-account .stone-coffee,
body.woocommerce-order-received .stone-coffee { min-height: 100svh; padding: 34px 0 72px; background: var(--club-bg); }
body.woocommerce-checkout .stone-coffee > .stone-shell,
body.woocommerce-account .stone-coffee > .stone-shell,
body.woocommerce-order-received .stone-coffee > .stone-shell { width: min(1180px, calc(100% - 32px)); }
body.woocommerce-checkout .stone-woo > .stone-shell,
body.woocommerce-account .stone-woo > .stone-shell,
body.woocommerce-order-received .stone-woo > .stone-shell { width: min(1180px, calc(100% - 32px)); border: 1px solid var(--club-border); border-radius: 22px; padding: 30px; background: #fff; box-shadow: var(--club-shadow); }
body.woocommerce-checkout .stone-main,
body.woocommerce-account .stone-main,
body.woocommerce-order-received .stone-main { width: min(1180px, calc(100% - 32px)); margin-inline: auto; padding: 42px 0 72px; }
body.woocommerce-checkout .stone-main > article,
body.woocommerce-account .stone-main > article,
body.woocommerce-order-received .stone-main > article,
body.woocommerce-checkout main > article,
body.woocommerce-account main > article,
body.woocommerce-order-received main > article { overflow: hidden; border: 1px solid var(--club-border); border-radius: 22px; padding: 30px; background: #fff; box-shadow: var(--club-shadow); }
body.woocommerce-checkout h1,
body.woocommerce-account h1,
body.woocommerce-order-received h1 { margin: 0 0 26px; color: var(--club-ink); font-size: clamp(32px, 4vw, 42px); line-height: 1; letter-spacing: -.035em; }
body.woocommerce-checkout .wc-block-components-sidebar-layout { gap: 0; }
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar,
body.woocommerce-checkout .woocommerce-checkout-review-order,
body.woocommerce-checkout #customer_details,
body.woocommerce-order-received .woocommerce-order { border: 1px solid var(--club-border); border-radius: 16px; padding: 20px; background: #fff; }
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout select,
body.woocommerce-account input.input-text,
body.woocommerce-account select { min-height: 48px; border: 1px solid var(--club-border); border-radius: 9px; background: #fff; }
body.woocommerce-checkout .wc-block-components-button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout #place_order,
body.woocommerce-account .button,
body.woocommerce-order-received .button { min-height: 48px; border: 0; border-radius: 9px; background: var(--club-green); color: #fff; font-weight: 850; text-transform: uppercase; }
body.woocommerce-checkout .wc-block-components-button:hover,
body.woocommerce-checkout button.button:hover,
body.woocommerce-account .button:hover,
body.woocommerce-order-received .button:hover { background: var(--club-green-dark); color: #fff; }
body.woocommerce-account .woocommerce { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content { border: 1px solid var(--club-border); border-radius: 16px; padding: 18px; background: #fff; }
body.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
body.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; border-radius: 8px; padding: 11px 12px; color: var(--club-ink); text-decoration: none; }
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--club-green-soft); color: var(--club-green); }

@media (max-width: 1180px) {
  .club-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .member-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .member-stat--points { grid-column: span 2; }
}

@media (max-width: 920px) {
  .admin-bar .club-header { top: 46px; }
  .club-header__inner { grid-template-columns: auto 1fr auto; min-height: 66px; gap: 10px; }
  .club-mobile-menu { display: block; }
  .club-logo strong { font-size: 14px; }
  .club-logo small { font-size: 6px; }
  .club-logo img { width: 36px; height: 36px; }
  .club-header__nav { position: fixed; top: 66px; left: 0; right: 0; display: none; flex-direction: column; gap: 0; padding: 16px; background: #fff; box-shadow: var(--club-shadow); }
  .admin-bar .club-header__nav { top: 112px; }
  .club-header__nav.is-open { display: flex; }
  .club-header__nav button, .club-header__nav a { width: 100%; text-align: left; }
  .club-profile-link span { display: none; }
  .club-profile-link { width: 44px; padding: 5px; }
  .club-layout { grid-template-columns: 1fr; }
  .club-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .club-cart-panel { position: fixed; z-index: 900; top: 0 !important; right: 0; bottom: 0; width: min(390px,92vw); border-radius: 0; transform: translateX(105%); transition: transform .25s ease; }
  .club-cart-panel.is-open { transform: none; }
  .club-cart-panel__header button { display: block; }
  .club-mobile-cart-bar { position: fixed; z-index: 750; left: 12px; right: 12px; bottom: 12px; min-height: 52px; border: 0; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: var(--club-green); color: #fff; box-shadow: 0 14px 40px rgba(14,54,24,.28); font-size: 12px; font-weight: 850; text-transform: uppercase; }
  .club-mobile-cart-bar strong { font-size: 13px; }
  .club-lower-grid { grid-template-columns: 1fr; }
  .member-shell { grid-template-columns: 1fr; margin-bottom: 78px; }
  .member-sidebar { position: fixed; z-index: 800; inset: 0 auto 0 0; width: min(330px,88vw); height: 100svh !important; border-radius: 0; transform: translateX(-105%); transition: transform .25s ease; }
  .member-sidebar.is-open { transform: none; }
  .member-main { padding-top: 0; }
  .member-dashboard-grid { grid-template-columns: 1fr; }
  .member-panel--wide { grid-column: auto; }
  .club-bottom-nav { position: fixed; z-index: 700; left: 10px; right: 10px; bottom: 10px; min-height: 62px; border: 1px solid var(--club-border); border-radius: 18px; display: grid; grid-template-columns: repeat(4,1fr); background: rgba(255,255,255,.96); box-shadow: 0 12px 45px rgba(0,0,0,.13); backdrop-filter: blur(12px); }
  .club-bottom-nav a { display: grid; place-content: center; gap: 2px; color: var(--club-muted); font-size: 9px; text-align: center; text-decoration: none; }
  .club-bottom-nav a.is-active { color: var(--club-green); font-weight: 900; }
  body.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .club-shell, .member-shell { width: min(100% - 20px, 1460px); }
  .club-main { min-width: 0; padding: 10px 0 82px; overflow: hidden; }
  .club-layout, .club-layout > div, [data-club-catalog] { min-width: 0; }
  .club-hero { min-height: 176px; padding: 18px 16px; align-items: flex-start; }
  .club-hero__copy { max-width: 61%; }
  .club-hero h1 { margin-top: 2px; font-size: clamp(29px, 9.5vw, 36px); }
  .club-hero p { max-width: 190px; font-size: 11px; line-height: 1.4; }
  .club-hero__ape { right: -8px; bottom: -5px; width: 49%; }
  .club-filters { margin: 12px 0; flex-wrap: nowrap; overflow-x: auto; padding: 0 1px 5px; scrollbar-width: none; }
  .club-filter { min-height: 34px; flex: 0 0 auto; padding: 0 12px; font-size: 10px; }
  .club-filter-separator { flex: 0 0 1px; }
  .club-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .club-product-card { min-width: 0; border-radius: 13px; }
  .club-product-card__image { aspect-ratio: 1 / 1; }
  .club-product-card__meta { min-height: 142px; padding: 9px; }
  .club-product-card__tag { padding: 1px 5px; font-size: 8px; }
  .club-product-card__meta strong { margin-top: 6px; overflow: hidden; font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .club-product-card__meta small { font-size: 8px; }
  .club-product-card__profile { min-height: 27px; margin-top: 5px; display: -webkit-box; overflow: hidden; font-size: 9px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .club-product-card__price { padding-top: 7px; font-size: 14px; }
  .club-add-button { min-height: 34px; margin: 0 7px 7px; padding: 0 5px; font-size: 8px; }
  .club-favorite { top: 7px; right: 7px; width: 29px; height: 29px; font-size: 17px; }
  .club-quick-view { max-height: 92svh; grid-template-columns: 1fr; align-self: end; border-radius: 22px 22px 0 0; }
  .club-quick-view__image { min-height: 260px; max-height: 36svh; }
  .club-quick-view__content { padding: 22px; }
  .club-quick-view h2 { font-size: 34px; }
  .club-lower-grid { gap: 12px; }
  .club-section-card { padding: 16px; }
  .club-board-form { flex-direction: column; }
  .club-board-form .club-primary-button { width: 100%; }
  .club-board-post__content, .club-board-post__reply, .club-board-replies { margin-left: 0; }
  .club-board-post__reply { flex-wrap: wrap; }
  .club-board-post__reply input { flex-basis: 100%; }
  .club-board-post__reply button { width: 100%; }
  .member-heading { align-items: flex-start; }
  .member-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-stat { min-height: 150px; padding: 14px; }
  .member-stat--points { grid-column: 1 / -1; }
  .member-profile-summary { grid-template-columns: 1fr; }
  .member-profile-summary img { width: 110px; height: 110px; }
  .member-avatar-grid { grid-template-columns: repeat(3,1fr); }
  .member-tracking span { font-size: 8px; }
  body.woocommerce-checkout .stone-main,
  body.woocommerce-account .stone-main,
  body.woocommerce-order-received .stone-main { width: min(100% - 20px, 1180px); padding: 18px 0 80px; }
  body.woocommerce-checkout .stone-woo,
  body.woocommerce-account .stone-woo,
  body.woocommerce-order-received .stone-woo { padding: 18px 0 80px; }
  body.woocommerce-checkout .stone-coffee,
  body.woocommerce-account .stone-coffee,
  body.woocommerce-order-received .stone-coffee { padding: 18px 0 80px; }
  body.woocommerce-checkout .stone-coffee > .stone-shell,
  body.woocommerce-account .stone-coffee > .stone-shell,
  body.woocommerce-order-received .stone-coffee > .stone-shell { width: min(100% - 20px, 1180px); }
  body.woocommerce-checkout .stone-woo > .stone-shell,
  body.woocommerce-account .stone-woo > .stone-shell,
  body.woocommerce-order-received .stone-woo > .stone-shell { width: min(100% - 20px, 1180px); border-radius: 16px; padding: 15px; }
  body.woocommerce-checkout .stone-main > article,
  body.woocommerce-account .stone-main > article,
  body.woocommerce-order-received .stone-main > article,
  body.woocommerce-checkout main > article,
  body.woocommerce-account main > article,
  body.woocommerce-order-received main > article { border-radius: 16px; padding: 15px; }
  body.woocommerce-checkout h1,
  body.woocommerce-account h1,
  body.woocommerce-order-received h1 { margin-bottom: 18px; font-size: 30px; }
  body.woocommerce-checkout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-components-sidebar,
  body.woocommerce-checkout .woocommerce-checkout-review-order,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-order-received .woocommerce-order { padding: 13px; }
}

/* These embedded-checkout overrides must win over the regular checkout page. */
body.woocommerce-checkout.club-checkout-embed .stone-coffee { min-height: 100svh; padding: 22px 0 40px; }
body.woocommerce-checkout.club-checkout-embed .stone-coffee > .stone-shell { width: min(100% - 32px, 1110px); }
body.woocommerce-checkout.club-checkout-embed .stone-coffee h1 { display: none; }

@media (max-width: 620px) {
  body.woocommerce-checkout.club-checkout-embed .stone-coffee { padding: 14px 0 40px; }
  body.woocommerce-checkout.club-checkout-embed .stone-coffee > .stone-shell { width: min(100% - 20px, 1110px); }
  body.woocommerce-checkout.club-checkout-embed .stone-coffee h1 { display: none; }
}
