/*
 * Shared institutional identity for the members' shop.
 * Load after private-shop.css; page layouts remain in their own stylesheets.
 * Tokens mirror kachu-lawen-site/assets/css/editorial.css without styling
 * the public site or WordPress administration.
 */
body.kl-private-shop {
  --kl-ink: #153d38;
  --kl-deep: #005b52;
  --kl-green: #008e7d;
  --kl-mint: #e7f2ed;
  --kl-mist: #fafbf9;
  --kl-cream: #f3f1e9;
  --kl-line: #d9e5e1;
  --kl-muted: #526b65;
  --kl-white: #fff;
  --kl-serif: Cambria, Georgia, "Times New Roman", serif;
  --kl-sans: Inter, "Segoe UI", Arial, sans-serif;
  --kl-focus: #b26731;
  --kl-radius: 3px;
  --kl-content-width: 1112px;
  --kl-shadow: none;
  color: var(--kl-ink);
  background: var(--kl-mist);
  font: 16px/1.65 var(--kl-sans);
}

body.kl-private-shop *,
body.kl-private-shop *::before,
body.kl-private-shop *::after {
  box-sizing: border-box;
}

body.kl-private-shop .site-content {
  min-height: 62vh;
  padding-block: 38px 64px;
  background: var(--kl-mist);
}

body.kl-private-shop .ast-container,
body.kl-private-shop #content > .ast-container {
  width: min(var(--kl-content-width), calc(100% - 80px));
  max-width: var(--kl-content-width);
  margin-inline: auto;
  padding-inline: 0;
}

body.kl-private-shop :is(.content-area, .site-main, .entry-content) {
  min-width: 0;
}

body.kl-private-shop #primary {
  margin-block: 0 !important;
}

body.kl-private-shop .kl-quantity-control {
  border-radius: var(--kl-radius);
}

/* A light, familiar header, with all four shop destinations visible. */
body.kl-private-shop .kl-private-header {
  background: var(--kl-mist);
  border-bottom: 1px solid var(--kl-line);
  box-shadow: none;
  backdrop-filter: none;
}

body.kl-private-shop :is(.kl-private-header__inner, .kl-private-footer__inner) {
  width: min(var(--kl-content-width), calc(100% - 80px));
  margin-inline: auto;
}

body.kl-private-shop .kl-private-header__inner {
  min-height: 124px;
  gap: 24px;
  padding-block: 14px;
}

body.kl-private-shop .kl-private-brand {
  min-width: 0;
  gap: 19px;
}

body.kl-private-shop .kl-private-brand img {
  flex: none;
  width: 84px;
  height: 96px;
  object-fit: contain;
}

body.kl-private-shop .kl-private-brand span {
  display: block;
  padding-left: 19px;
  color: var(--kl-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
}

body.kl-private-shop .kl-private-brand small {
  display: block;
  margin-top: 3px;
  color: var(--kl-muted);
  font-size: 12px;
  font-weight: 400;
}

body.kl-private-shop .kl-private-nav {
  flex-wrap: wrap;
  max-width: none;
  gap: 8px 24px;
  overflow: visible;
  white-space: normal;
  font: 600 13px/1.4 var(--kl-sans);
}

body.kl-private-shop .kl-private-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--kl-ink);
  text-underline-offset: 5px;
}

body.kl-private-shop .kl-private-nav a:hover {
  color: var(--kl-deep);
  text-decoration: underline;
}

body.kl-private-shop .kl-private-nav a.is-current:not(.kl-private-nav__account) {
  color: var(--kl-deep);
  box-shadow: inset 0 -2px 0 var(--kl-deep);
}

body.kl-private-shop .kl-private-nav__account {
  border: 1px solid #8ba99f;
  border-radius: var(--kl-radius);
  padding: 10px 16px;
  background: transparent;
}

body.kl-private-shop .kl-private-nav__account.is-current {
  background: var(--kl-mint);
  border-color: var(--kl-deep);
}

body.kl-private-shop .kl-cart-count {
  min-width: 23px;
  height: 23px;
  border-radius: var(--kl-radius);
  background: var(--kl-mint);
  font-variant-numeric: tabular-nums;
}

/* Serif headings and quiet body text match the public site's hierarchy. */
body.kl-private-shop :is(h1, h2, h3, .entry-title, .product_title, .woocommerce-products-header__title) {
  color: var(--kl-ink);
  font-family: var(--kl-serif);
  font-weight: 400;
  letter-spacing: -.018em;
  text-wrap: pretty;
}

body.kl-private-shop :is(h1, .entry-title, .product_title, .woocommerce-products-header__title) {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
}

body.kl-private-shop h2 {
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.15;
}

body.kl-private-shop h3 {
  font-size: 26px;
  line-height: 1.2;
}

body.kl-private-shop a {
  text-underline-offset: 5px;
}

body.kl-private-shop :is(button, input, select, textarea) {
  font-family: var(--kl-sans);
}

body.kl-private-shop :is(button, a, input, select, textarea, summary) {
  touch-action: manipulation;
}

body.kl-private-shop :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--kl-focus);
  outline-offset: 3px;
}

/* Solid, lightly squared actions retain WooCommerce's native behaviour. */
body.kl-private-shop :is(.button, .wc-block-components-button, .wp-element-button, input[type="submit"], button[type="submit"]) {
  min-height: 48px;
  border: 1px solid var(--kl-deep);
  border-radius: var(--kl-radius) !important;
  padding: 12px 20px !important;
  color: var(--kl-white) !important;
  background: var(--kl-deep) !important;
  font: 600 14px/1.4 var(--kl-sans);
  font-weight: 600 !important;
  text-transform: none;
  letter-spacing: normal;
  text-align: center;
  white-space: normal;
  box-shadow: none !important;
}

body.kl-private-shop :is(.button, .wc-block-components-button, .wp-element-button, input[type="submit"], button[type="submit"]):hover {
  background: #12443c !important;
  border-color: #12443c;
  filter: none;
}

body.kl-private-shop :is(.button, .wc-block-components-button, .wp-element-button, input[type="submit"], button[type="submit"]):disabled,
body.kl-private-shop :is(.button, .wc-block-components-button, .wp-element-button)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
}

/* Inputs stay at 16px to avoid automatic zoom on mobile devices. */
body.kl-private-shop :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not(.qty), select, textarea) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #aebfb7;
  border-radius: var(--kl-radius);
  padding: 11px 13px;
  background: var(--kl-white);
  color: var(--kl-ink);
  font: 16px/1.5 var(--kl-sans);
  box-shadow: none;
}

body.kl-private-shop input[type="file"] {
  overflow: hidden;
}

body.kl-private-shop textarea {
  resize: vertical;
}

body.kl-private-shop :is(input, select, textarea):focus {
  border-color: var(--kl-deep);
  outline-color: var(--kl-focus);
}

body.kl-private-shop :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--kl-deep);
}

body.kl-private-shop .select2-selection--single {
  min-height: 48px;
  border: 1px solid #aebfb7;
  border-radius: var(--kl-radius);
  background: var(--kl-white);
}

body.kl-private-shop .select2-selection--single .select2-selection__rendered {
  padding: 9px 34px 9px 13px;
  color: var(--kl-ink);
  font-size: 16px;
  line-height: 28px;
}

body.kl-private-shop .select2-selection--single .select2-selection__arrow {
  height: 46px;
}

body.kl-private-shop .select2-dropdown {
  border-color: #aebfb7;
  border-radius: var(--kl-radius);
  font: 16px/1.5 var(--kl-sans);
}

body.kl-private-shop .select2-results__option--highlighted[aria-selected] {
  background: var(--kl-deep);
  color: var(--kl-white);
}

body.kl-private-shop .select2-container--focus .select2-selection,
body.kl-private-shop .select2-container--open .select2-selection {
  outline: 3px solid var(--kl-focus);
  outline-offset: 2px;
}

body.kl-private-shop :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  border-radius: var(--kl-radius);
  background: var(--kl-white);
  box-shadow: none;
  color: var(--kl-ink);
  line-height: 1.55;
}

body.kl-private-shop .woocommerce-error {
  border-left-color: #a94025;
}

body.kl-private-shop .woocommerce-breadcrumb {
  color: var(--kl-muted);
  font-size: 13px;
}

body.kl-private-shop .woocommerce-breadcrumb a {
  color: var(--kl-deep);
}

/* Same dark green footer as the institutional site. */
body.kl-private-shop .kl-private-footer {
  background: var(--kl-ink);
  color: #f6faf7;
  border-top: 0;
}

body.kl-private-shop .kl-private-footer__inner {
  min-height: 128px;
  padding-block: 30px;
}

body.kl-private-shop .kl-private-footer strong {
  font: 400 26px/1.2 var(--kl-serif);
}

body.kl-private-shop .kl-private-footer p span {
  margin-top: 7px;
  color: #ccdad4;
  opacity: 1;
}

body.kl-private-shop .kl-private-footer nav {
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
}

body.kl-private-shop .kl-private-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #f6faf7;
}

body.kl-private-shop .kl-private-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  body.kl-private-shop :is(.ast-container, .kl-private-header__inner, .kl-private-footer__inner),
  body.kl-private-shop #content > .ast-container {
    width: min(var(--kl-content-width), calc(100% - 56px));
  }

  body.kl-private-shop .kl-private-nav {
    gap: 8px 16px;
  }

  body.kl-private-shop .kl-private-brand span {
    font-size: 13px;
  }
}

@media (min-width: 783px) {
  body.admin-bar.kl-private-shop .kl-private-header {
    top: 32px;
  }
}

@media (max-width: 760px) {
  body.kl-private-shop .kl-private-header {
    position: relative;
    top: auto !important;
  }

  body.kl-private-shop .kl-private-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
    padding-block: 16px 12px;
  }

  body.kl-private-shop .kl-private-brand {
    justify-content: flex-start;
    gap: 16px;
  }

  body.kl-private-shop .kl-private-brand img {
    width: 62px;
    height: 72px;
  }

  body.kl-private-shop .kl-private-brand span {
    padding-left: 16px;
    font-size: 12px;
  }

  body.kl-private-shop .kl-private-brand small {
    font-size: 11px;
  }

  body.kl-private-shop .kl-private-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 0;
    font-size: 13px;
  }

  body.kl-private-shop .kl-private-nav a {
    padding: 8px 6px;
    min-width: 0;
  }

  body.kl-private-shop .kl-private-footer__inner {
    display: grid;
    gap: 18px;
  }
}

@media (max-width: 650px) {
  body.kl-private-shop :is(.ast-container, .kl-private-header__inner, .kl-private-footer__inner),
  body.kl-private-shop #content > .ast-container {
    width: calc(100% - 46px);
  }

  body.kl-private-shop .site-content {
    padding-block: 25px 42px;
  }
}

@media (max-width: 420px) {
  body.kl-private-shop :is(.ast-container, .kl-private-header__inner, .kl-private-footer__inner),
  body.kl-private-shop #content > .ast-container {
    width: calc(100% - 32px);
  }
}

@media (max-width: 360px) {
  body.kl-private-shop .kl-private-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  body.kl-private-shop *,
  body.kl-private-shop *::before,
  body.kl-private-shop *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Revisión visual 2026-10-06: navegación compacta, cuatro destinos visibles. */
body.kl-private-shop .kl-private-header__inner{min-height:106px;padding-block:10px}
body.kl-private-shop .kl-private-brand img{width:68px;height:78px}
@media(max-width:760px){
 body.kl-private-shop .kl-private-header__inner{min-height:0;padding-block:8px 0;gap:5px}
 body.kl-private-shop .kl-private-brand{gap:12px}
 body.kl-private-shop .kl-private-brand img{width:43px;height:50px}
 body.kl-private-shop .kl-private-brand span{padding-left:12px;font-size:12px}
 body.kl-private-shop .kl-private-brand small{font-size:11px}
 body.kl-private-shop .kl-private-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;font-size:12px}
 body.kl-private-shop .kl-private-nav a{min-height:44px;padding:9px 3px;white-space:nowrap}
 body.kl-private-shop .kl-private-nav__account{border:0}
 body.kl-private-shop .kl-private-nav__account.is-current{box-shadow:inset 0 -2px 0 var(--kl-deep);background:transparent}
 body.kl-private-shop .kl-cart-count{min-width:18px;height:18px;font-size:10px}
}

/* Keep the native logout action within reach throughout the member area. */
body.kl-private-shop .kl-private-header {
  position: sticky;
  top: 0;
}
body.kl-private-shop .kl-private-nav a.kl-private-nav__logout {
  border-left: 1px solid var(--kl-line);
  padding-left: 20px;
  color: var(--kl-deep);
  font-weight: 500;
  white-space: nowrap;
}
body.kl-private-shop .kl-private-nav a.kl-private-nav__logout:focus-visible {
  outline: 2px solid var(--kl-deep);
  outline-offset: 3px;
}
@media (min-width: 783px) {
  body.admin-bar.kl-private-shop .kl-private-header { top: 32px; }
}
@media (min-width: 601px) and (max-width: 782px) {
  body.admin-bar.kl-private-shop .kl-private-header { top: 46px !important; }
}
@media (max-width: 760px) {
  body.kl-private-shop .kl-private-header { top: 0 !important; }
  body.kl-private-shop .kl-private-header__inner { position: relative; }
  body.kl-private-shop .kl-private-brand {
    max-width: calc(100% - 112px);
    gap: 8px;
  }
  body.kl-private-shop .kl-private-brand span { padding-left: 8px; }
  body.kl-private-shop .kl-private-nav a.kl-private-nav__logout {
    position: absolute;
    top: 11px;
    right: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--kl-line);
    border-radius: var(--kl-radius, 3px);
    background: var(--kl-mist);
    font-size: 12px;
  }
}
@media (min-width: 601px) and (max-width: 760px) {
  body.admin-bar.kl-private-shop .kl-private-header { top: 46px !important; }
}
