:root {
  --kmke-green: #7fbb39;
  --kmke-green-dark: #486922;
  --kmke-green-soft: #a8d85f;
  --kmke-cream: #f8f6ef;
  --kmke-paper: #fffdf8;
  --kmke-ink: #121212;
  --kmke-muted: #6e7368;
  --kmke-line: rgba(77, 111, 36, 0.14);
  --kmke-shadow: 0 28px 70px rgba(54, 78, 22, 0.14);
  --kmke-radius: 28px;
  --kmke-container: min(1400px, calc(100vw - 72px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--kmke-ink);
  background:
    radial-gradient(circle at top left, rgba(139, 197, 63, 0.12), transparent 35%),
    linear-gradient(180deg, #fffefb 0%, var(--kmke-cream) 100%);
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Content-area links — always look like links ─────────────────── */
/* Target flowing text contexts; excludes nav items, buttons, cards  */
.entry-content a:not(.button),
.woocommerce-MyAccount-content a:not(.button),
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button),
.comment-content a:not(.button),
.widget a:not(.button) {
  color: var(--kmke-green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(72, 105, 34, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.entry-content a:not(.button):hover,
.woocommerce-MyAccount-content a:not(.button):hover,
.woocommerce-message a:not(.button):hover,
.woocommerce-info a:not(.button):hover,
.woocommerce-error a:not(.button):hover {
  color: var(--kmke-green-dark);
  text-decoration-color: var(--kmke-green-dark);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* Scoped to the theme's own inline icons only. A bare `svg { … }` rule was
   previously hijacking plugin / WooCommerce SVGs (payment + shipping icons),
   stretching them to fill their container and stripping their fill. */
.kmke-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--kmke-green-dark);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  overflow: visible;
  white-space: normal;
}

.container {
  width: var(--kmke-container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(18, 18, 18, 0.05);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__top {
  padding: 10px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 0 0 auto;
  margin-right: 54px;
}

.custom-logo-link img,
.fallback-logo img {
  width: auto;
  max-height: 128px;
  display: block;
  background: transparent;
}

.site-branding__text {
  display: none;
}

.site-header .site-title,
.site-header .site-tagline,
.site-header .site-branding__text {
  display: none !important;
}

.primary-navigation {
  flex: 0 1 auto;
  margin-right: 28px;
  margin-left: 10px;
}

.site-header__search {
  flex: 0 1 360px;
  display: flex;
  justify-content: center;
  margin-left: 18px;
}

.kmke-search-form {
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: 1fr 56px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f0e6;
}

.kmke-search-form .search-field {
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  background: transparent;
}

.kmke-search-form .search-submit {
  border: 0;
  background: var(--kmke-green);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.kmke-search-form .search-submit:hover {
  background: var(--kmke-green-dark);
}

.site-header__icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 18px;
}

.site-header__icons .icon-link,
.site-header__icons .menu-toggle {
  color: #111 !important;
  background: transparent !important;
  border: 0 !important;
}

.site-header__icons .icon-link svg,
.site-header__icons .menu-toggle svg {
  stroke: #111 !important;
}

.icon-link,
.menu-toggle,
.mobile-drawer__close {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  border-radius: 14px;
  color: #111;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.kmke-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 0;
  vertical-align: middle;
}

.site-header__icons .kmke-icon,
.mobile-actions-row .kmke-icon {
  width: 24px !important;
  height: 24px !important;
}

.icon-link svg,
.menu-toggle svg,
.mobile-drawer__close svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.icon-link:hover,
.menu-toggle:hover,
.mobile-drawer__close:hover {
  transform: translateY(-1px);
  background: rgba(139, 197, 63, 0.1);
  color: var(--kmke-green-dark);
}

.icon-link {
  position: relative;
}

.icon-badge {
  position: absolute;
  top: 7px;
  right: 5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--kmke-green);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.mobile-actions-row {
  display: none;
}

.menu-toggle {
  display: none;
}

.primary-menu,
.footer-menu,
.mobile-menu,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.primary-menu li {
  position: relative;
  display: flex;
  align-items: center;
}

.primary-menu > li:not(:last-child)::after {
  content: "|";
  display: inline-block;
  margin: 0 18px;
  color: #111;
  font-weight: 500;
}

.primary-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-radius: 0;
  font-weight: 700;
  transition: color 0.2s ease;
}

.primary-menu > li > a:hover,
.primary-menu > .current-menu-item > a {
  color: var(--kmke-green-dark);
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 10px;
  margin: 0;
  list-style: none;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(77, 111, 36, 0.08);
  box-shadow: 0 20px 45px rgba(18, 18, 18, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.primary-menu .sub-menu a:hover {
  background: rgba(139, 197, 63, 0.12);
}

/* The whole hero acts as one big link to the shop. */
.hero-section-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hero-section-link .hero-section__inner {
  transition: filter 0.25s ease, box-shadow 0.25s ease;
}

.hero-section-link:hover .hero-section__inner,
.hero-section-link:focus-visible .hero-section__inner {
  filter: brightness(1.04);
}

.hero-section-link:focus-visible {
  outline: 2px solid var(--kmke-green-dark);
  outline-offset: 4px;
}

.hero-section {
  width: 100%;
  padding: 0 0 12px;
}

.hero-section__inner {
  width: 100%;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(8px, 1vw, 14px) 0;
  border-radius: 0;
  overflow: hidden;
  /* Darker green on the left (text side) easing into a slightly lighter
     green on the right. Small tonal shift only — the visual interest on
     the right side comes mostly from the book scribble fade-in. */
  background:
    linear-gradient(to right, rgba(108, 161, 42, 0.99), rgba(128, 178, 56, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 120px);
  box-shadow: var(--kmke-shadow);
  position: relative;
}

.hero-section__content {
  width: var(--kmke-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(540px, 1.3fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-section__inner::before,
.hero-section__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-section__inner::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%2344681a' stroke-width='2' stroke-opacity='0.44'%3E%3Cpath d='M22 44c18-8 36-8 54 0v52c-18-8-36-8-54 0z'/%3E%3Cpath d='M76 44c18-8 36-8 54 0v52c-18-8-36-8-54 0z'/%3E%3Cpath d='M36 118l18-16 18 16 18-16'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px),
    radial-gradient(circle at 34% 80%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px);
  background-size: 180px 180px, 200px 200px, 200px 200px, 200px 200px;
  opacity: 1;
  /* Fade the book scribble pattern in from left to right so it's barely
     visible behind the text and most visible behind the book illustration. */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 40%, #000 75%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.45) 40%, #000 75%);
}

.hero-section__inner::after {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 35%),
    radial-gradient(circle at bottom left, rgba(72, 105, 34, 0.24), transparent 34%);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-left: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(18, 18, 18, 0.68);
  font-weight: 800;
}

.hero-copy h1,
.section-heading h2,
.entry-title,
.woocommerce-products-header__title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 1;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  max-width: 24ch;
  color: #fff;
  text-wrap: balance;
}

.hero-text {
  max-width: 34ch;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 14px 0 0;
}

.button,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--kmke-green-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(77, 111, 36, 0.22);
  background: #3f5f1f;
  color: #fff;
  text-decoration: none;
}

.button--light {
  background: #fff;
  color: var(--kmke-green-dark);
}

.button--light:hover {
  background: var(--kmke-paper);
}

.hero-button {
  min-height: 76px;
  min-width: 290px;
  padding: 0 50px;
  font-size: 1.4rem;
  font-weight: 900;
}

.hero-button:hover,
.hero-button:focus {
  background: #f7f7f2;
  color: var(--kmke-green-dark);
}

.button--outline {
  border-color: rgba(77, 111, 36, 0.36);
  background: transparent;
  color: var(--kmke-green-dark);
}

/* Outline buttons get a quiet hover — keep the transparent fill and dark
   green text, just bring the border to full opacity. Overrides the generic
   .button:hover (which would flood the button dark green). */
.button--outline:hover,
.button--outline:focus-visible {
  background: transparent;
  color: var(--kmke-green-dark);
  border-color: var(--kmke-green-dark);
  text-decoration: none;
}

.hero-button {
  margin-top: 20px;
}

.hero-visual {
  min-height: 420px;
}

.hero-visual__orbit {
  position: absolute;
  inset: 6% 8% 8% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.02) 64%, transparent 74%);
  filter: blur(3px);
}

.hero-book {
  position: absolute;
  top: 50%;
  width: clamp(140px, 15vw, 220px);
  aspect-ratio: 0.7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 45px rgba(71, 50, 19, 0.28);
  transform-origin: center center;
}

.hero-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-book::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44) 0 8%, transparent 8% 88%, rgba(0, 0, 0, 0.08) 88% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 25%, rgba(0, 0, 0, 0.12));
}

.hero-book--placeholder {
  background:
    linear-gradient(180deg, #e9d5a2, #cda85e),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(0, 0, 0, 0.12));
}

.hero-book--1 {
  left: 8%;
  transform: translateY(-50%) rotate(-15deg);
}

.hero-book--2 {
  left: 24%;
  transform: translateY(-50%) rotate(-10deg);
}

.hero-book--3 {
  left: 40%;
  transform: translateY(-50%) rotate(-4deg);
}

.hero-book--4 {
  left: 55%;
  transform: translateY(-50%) rotate(3deg);
}

.hero-book--5 {
  left: 70%;
  transform: translateY(-50%) rotate(9deg);
}

.hero-book--6 {
  left: 84%;
  transform: translateY(-50%) rotate(15deg);
}

.home-section {
  padding: 42px 0;
}

.section-heading,
.site-footer__bottom,
.woocommerce-result-count,
.woocommerce-ordering {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-section .section-heading,
.product-section .section-heading {
  margin-left: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.home-section .section-heading {
  margin-bottom: 32px;
}

/* ── Text-based category list ────────────────────────────────────── */
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-link {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(77, 111, 36, 0.18);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-link:hover {
  background: var(--kmke-green-dark);
  border-color: var(--kmke-green-dark);
  transform: translateY(-2px);
}

.category-link__name {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--kmke-ink);
  transition: color 0.2s ease;
}

.category-link__count {
  font-size: 0.82rem;
  color: var(--kmke-muted);
  transition: color 0.2s ease;
}

.category-link:hover .category-link__name,
.category-link:hover .category-link__count {
  color: #fff;
}

/* Tag section reuses the .category-link pill markup, but renders smaller
   pills so the tag cloud sits visually one level below the Kategóriák
   section in the visual hierarchy. */
.tag-section .category-list {
  gap: 8px;
}

.tag-section .category-link {
  padding: 6px 14px;
  gap: 6px;
}

.tag-section .category-link__name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.tag-section .category-link__count {
  font-size: 0.72rem;
}

.archive-header {
  margin-bottom: 32px;
}

.category-grid,
.product-grid,
.archive-grid {
  display: grid;
  gap: 22px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  position: relative;
  min-height: 310px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #d2eab0, #a5cf67);
  box-shadow: var(--kmke-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.kmke-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 54px rgba(54, 78, 22, 0.18);
}

.category-card__media,
.category-card__overlay {
  position: absolute;
  inset: 0;
}

.category-card__media {
  background-size: cover;
  background-position: center;
  opacity: 0.88;
}

.category-card__overlay {
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.02), rgba(18, 18, 18, 0.46)),
    linear-gradient(135deg, rgba(139, 197, 63, 0.14), rgba(255, 255, 255, 0.05));
}

.category-card__body {
  position: absolute;
  inset: auto 20px 18px;
  z-index: 1;
  display: grid;
  gap: 4px;
  color: #fff;
}

.category-card__name {
  font-family: "Fraunces", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.05;
}

.category-card__count {
  font-size: 0.95rem;
  opacity: 0.92;
}

.kmke-product-card,
.content-card,
.story-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(77, 111, 36, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(18, 18, 18, 0.05);
}

.kmke-product-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kmke-product-thumb {
  display: block;
  position: relative;
  aspect-ratio: 0.82;
  background: linear-gradient(180deg, rgba(139, 197, 63, 0.12), rgba(77, 111, 36, 0.08));
}

/* Sale badge inside custom product cards */
.kmke-product-thumb .onsale {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  line-height: 1;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--kmke-green-dark);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.kmke-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kmke-product-body {
  padding: 20px;
}

.kmke-product-meta {
  margin: 0 0 6px;
  color: var(--kmke-muted);
  font-size: 0.92rem;
}

.kmke-product-title,
.woocommerce-loop-product__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.22;
}

.kmke-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.price {
  color: var(--kmke-ink);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Stack regular price and sale price on separate lines in custom product cards */
.kmke-product-footer .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.3;
}

.kmke-product-footer .price del,
.kmke-product-footer .price ins {
  display: block;
  text-decoration: none; /* reset — del gets its own rule below */
}

.kmke-product-footer .price del {
  text-decoration: line-through;
  opacity: 0.55;
  font-size: 0.95rem;
}

.kmke-add-to-cart,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.product_type_simple {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.94rem;
}

.story-card,
.content-card {
  padding: clamp(24px, 3vw, 40px);
}

.content-layout,
.shop-layout {
  padding: 34px 0 64px;
}

.content-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-layout .breadcrumbs {
  width: min(100%, 980px);
  align-self: flex-start;
  margin-left: auto;
  margin-right: auto;
}

.content-layout .content-card {
  width: min(100%, 980px);
}

.page .content-layout .content-card {
  text-align: center;
}

.page .content-layout .entry-header,
.page .content-layout .entry-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page .content-layout .entry-content {
  text-wrap: pretty;
}

.entry-content > :first-child {
  margin-top: 0;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

.entry-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(77, 111, 36, 0.08);
}

.entry-card__title {
  margin: 0 0 10px;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
}

.empty-state {
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed rgba(77, 111, 36, 0.25);
  background: rgba(255, 255, 255, 0.52);
  color: var(--kmke-muted);
}

/* Subtle partnership strip — sits just above the footer with a tiny nod
   to our publishing partner, Kedvenc Kiadó (kedvenckiado.ro). */
.site-partners {
  margin-top: 28px;
  padding: 18px 0;
  background: rgba(248, 246, 239, 0.55);
  border-top: 1px solid rgba(77, 111, 36, 0.08);
  border-bottom: 1px solid rgba(77, 111, 36, 0.08);
}

.site-partners__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.site-partners__label,
.site-partners__suffix {
  margin: 0;
  font-size: 0.9rem;
  color: var(--kmke-muted);
  letter-spacing: 0.02em;
}

/* The link + the Hungarian "-val" suffix are one inseparable unit so the
   suffix sits flush against the partner name (no gap between them). */
.site-partners__partner {
  display: inline-flex;
  align-items: center;
}

.site-partners__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--kmke-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-partners__link:hover,
.site-partners__link:focus-visible {
  color: var(--kmke-green-dark);
}

.site-partners__logo {
  max-height: 32px;
  width: auto;
  display: block;
}

.site-partners__name {
  font-weight: 600;
}

/* When the partnership strip is present (homepage), the footer sits flush
   below it — the strip's bottom border already separates them, so no extra
   gap is needed. On other pages the footer keeps its own margin-top. */
.site-partners + .site-footer {
  margin-top: 0;
}

.site-footer {
  margin-top: 28px;
  padding: 36px 0 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.88));
  border-top: 1px solid rgba(77, 111, 36, 0.08);
}

.site-footer__grid {
  display: grid;
  /* First column is wider so the full address fits on one line; the
     three remaining columns share the rest equally. */
  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 1fr)
    minmax(0, 1fr)
    minmax(0, 1fr);
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  gap: 34px 24px;
}

.site-footer__grid .footer-column {
  min-width: 0;
}

.footer-column h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.kmke-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.social-links,
.footer-menu {
  display: grid;
  gap: 12px;
}

.footer-menu a,
.social-links a {
  color: var(--kmke-muted);
}

/* Subtle hover treatment for all footer links — just darken to near-black
   with a short ease, no colour shift. Quiet enough not to compete with
   the page but enough to feel responsive. */
.site-footer a {
  transition: color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--kmke-ink);
}

.footer-brand img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
}

.footer-column--brand {
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.footer-column--brand p {
  margin: 0;
  color: var(--kmke-muted);
  font-size: 0.78rem;
  line-height: 1.4;
  text-wrap: balance;
}

.site-footer__bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(77, 111, 36, 0.1);
  justify-content: flex-start;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(77, 111, 36, 0.12);
  font-weight: 700;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.28);
}

.mobile-drawer__panel {
  position: relative;
  width: min(86vw, 380px);
  height: 100%;
  padding: 18px 18px 26px;
  background: #fffdf8;
  box-shadow: 20px 0 45px rgba(18, 18, 18, 0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-drawer__close {
  align-self: flex-start;
}

.mobile-menu {
  display: grid;
}

.mobile-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  font-weight: 700;
}

.mobile-drawer__contact {
  margin-top: auto;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  padding-top: 18px;
}

.mobile-drawer__contact p {
  margin: 0 0 6px;
  color: var(--kmke-muted);
}

.mobile-drawer__contact a {
  display: block;
}

.mobile-drawer__contact a + a {
  margin-top: 4px;
}

.woocommerce .products ul,
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(77, 111, 36, 0.08);
  box-shadow: 0 18px 45px rgba(18, 18, 18, 0.05);
}

.woocommerce ul.products li.product a img {
  display: block;
  width: 100%;
  margin: 0;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: top center;
}

/* Related / upsell product grids: 3 columns, not 4 */
.woocommerce .related ul.products,
.woocommerce .upsells ul.products {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Prevent price amounts from wrapping at the thousands separator */
.woocommerce ul.products li.product .price .woocommerce-Price-amount {
  white-space: nowrap;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 20px;
  margin-right: 20px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding-top: 18px;
}

.woocommerce ul.products li.product .price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-top: 10px;
}

.woocommerce ul.products li.product .button {
  margin-top: 14px;
  margin-bottom: 20px;
}

.woocommerce span.onsale {
  position: absolute;
  z-index: 10;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  min-width: auto;
  min-height: auto;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--kmke-green-dark);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Gallery needs relative positioning so the badge anchors correctly */
.woocommerce div.product .woocommerce-product-gallery {
  position: relative;
}

/* Make the main product image fill its container so there's no white
   padding around a portrait image — this also ensures the zoom trigger
   (moved into this div by JS) always sits on top of the actual image. */
.woocommerce-product-gallery__image {
  overflow: hidden;
  line-height: 0; /* collapse inline whitespace */
}

.woocommerce-product-gallery__image > a {
  display: block;
  width: 100%;
}

.woocommerce-product-gallery__image > a img,
.woocommerce-product-gallery__image img.wp-post-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center; /* keep title area visible when bottom is clipped */
}

/* Zoom trigger — JS moves this inside .woocommerce-product-gallery__image
   (which has position:relative inline). These styles then anchor it to
   the top-right corner of the actual image. */
.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 11;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  opacity: 0.75;
  transition: opacity 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.woocommerce-product-gallery__trigger:hover {
  opacity: 1;
}

.woocommerce div.product {
  position: relative; /* anchor for span.onsale which is a sibling of the gallery */
}

/* Float the gallery left and let summary + tabs flow naturally on the right
   side. Grid was tempting here, but CSS grid can't stack two siblings into
   one cell without a wrapper, and the gallery's tall portrait was inflating
   the row tracks — which is what was leaving a big gap between the cart area
   and the description block when the right column was shorter than the image. */
.woocommerce div.product::after {
  content: "";
  display: block;
  clear: both;
}

.woocommerce div.product .woocommerce-product-gallery {
  float: left;
  width: calc(52.5% - 16px);
  margin: 0 32px 0 0 !important;
}

.woocommerce div.product .summary,
.woocommerce div.product .woocommerce-tabs {
  width: auto !important;
  float: none !important;
  margin: 0 0 0 calc(52.5% + 16px) !important;
}

.woocommerce div.product .summary {
  padding: 24px 0;
}

.woocommerce div.product .woocommerce-tabs {
  padding-top: 12px;
}

/* Upsells / related drop below the floated gallery and take the full content
   width. The top padding gives breathing room between the bottom edge of the
   image and the section heading. */
.woocommerce div.product .up-sells,
.woocommerce div.product .upsells,
.woocommerce div.product .related {
  clear: both;
  width: auto !important;
  float: none !important;
  margin-left: 0 !important;
  padding-top: 48px;
}

/* Hide the tab nav bar — only the description tab remains, so no nav needed */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: none;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--kmke-green-dark);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.2;
}

/* Stack old/sale prices on the single product page */
.woocommerce div.product p.price del,
.woocommerce div.product p.price ins {
  display: block;
  text-decoration: none;
}

.woocommerce div.product p.price del {
  text-decoration: line-through;
  opacity: 0.55;
  font-size: 1.2rem;
}

.woocommerce div.product p.price ins {
  font-size: 1.8rem;
}

.woocommerce div.product .product_meta .posted_in,
.woocommerce div.product .product_meta .tagged_as {
  display: block;
}

.woocommerce div.product .product_meta .posted_in a,
.woocommerce div.product .product_meta .tagged_as a {
  color: var(--kmke-muted);
  font-size: 0.88em;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: rgba(110, 115, 104, 0.3);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.woocommerce div.product .product_meta .posted_in a:hover,
.woocommerce div.product .product_meta .tagged_as a:hover,
.woocommerce div.product .product_meta .posted_in a:focus,
.woocommerce div.product .product_meta .tagged_as a:focus {
  color: var(--kmke-green-dark);
  text-decoration-color: var(--kmke-green-dark);
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.woocommerce .quantity .qty,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  min-height: 48px;
  border: 1px solid rgba(77, 111, 36, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
}

.woocommerce form .form-row textarea {
  min-height: 120px;
  padding-top: 14px;
}

.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  border-radius: 18px;
  border: none;
  border-left: 4px solid var(--kmke-green);
  padding: 16px 20px;
  background: rgba(139, 197, 63, 0.1);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.woocommerce-error {
  background: rgba(193, 57, 36, 0.08);
  border-left-color: #c13924;
}

/* Compact buttons inside notices — right-aligned, don't use the full 54px pill */
.woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-error .button {
  min-height: 38px;
  padding: 0 20px;
  font-size: 0.87rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: auto; /* push button to the right edge of the notice */
}

/* Notice text sits next to the button */
.woocommerce-info > *,
.woocommerce-message > *,
.woocommerce-error > * {
  margin: 0;
}

.woocommerce table.shop_table {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(77, 111, 36, 0.12);
}

/* Hide product descriptions in the cart + checkout line items. The Cart and
   Checkout blocks show each item's short description and fall back to the
   full description when the short one is empty — which pulled the entire
   "Tartalom / ISBN / Méret" block into the cart. We only hide the description
   text; any variation / item data stays visible, and the product page is
   unaffected. */
.wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item__description {
  display: none;
}

.woocommerce-checkout-review-order,
.cart-collaterals .cart_totals {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(77, 111, 36, 0.08);
  padding: 24px;
}

/* ── Order received / thank-you page ──────────────────────────────── */
.woocommerce-order {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* "Köszönjük! A rendelést megkaptuk." success banner */
.woocommerce-order > .woocommerce-thankyou-order-received,
.woocommerce-thankyou-order-received {
  margin: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(139, 197, 63, 0.12);
  border: 1px solid rgba(77, 111, 36, 0.18);
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--kmke-green-dark);
}

/* Order overview — cards instead of a bordered inline list */
ul.woocommerce-order-overview {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

ul.woocommerce-order-overview li {
  list-style: none;
  float: none;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid rgba(77, 111, 36, 0.12);
  border-right: 1px solid rgba(77, 111, 36, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--kmke-muted);
}

ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--kmke-ink);
}

/* Payment instructions callout. The BACS instructions print as a bare <p>
   with no class, but always sit immediately before the bank-details block —
   so we target the <p> whose next sibling is that block and turn it into a
   hard-to-miss amber "!" notice. */
.woocommerce-order p:has(+ .woocommerce-bacs-bank-details),
.woocommerce-order p:has(+ .wc-bacs-bank-details-heading) {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(224, 168, 46, 0.12);
  border: 1px solid rgba(193, 137, 28, 0.4);
  color: var(--kmke-ink);
  font-weight: 500;
  line-height: 1.55;
}

.woocommerce-order p:has(+ .woocommerce-bacs-bank-details)::before,
.woocommerce-order p:has(+ .wc-bacs-bank-details-heading)::before {
  content: "!";
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d8932a;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}

/* Bank transfer (BACS) details — highlighted callout */
.wc-bacs-bank-details-heading,
.woocommerce-order-details__title,
.woocommerce-customer-details > h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  margin: 0 0 14px;
}

ul.wc-bacs-bank-details {
  list-style: none;
  margin: 0;
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(139, 197, 63, 0.08);
  border: 1px solid rgba(77, 111, 36, 0.16);
  display: grid;
  gap: 8px;
}

ul.wc-bacs-bank-details li {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--kmke-muted);
}

ul.wc-bacs-bank-details li strong {
  color: var(--kmke-ink);
}

/* Order + customer detail tables inherit the rounded shop_table look;
   give the address blocks a little breathing room. */
.woocommerce-customer-details address {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(77, 111, 36, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font-style: normal;
  line-height: 1.6;
}

/* Sidebar + content grid — only when logged in (navigation exists) */
.woocommerce-account.logged-in .woocommerce {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: start;
}

/* Strip any accidental card appearance from WooCommerce-injected wrappers */
.woocommerce-account #primary,
.woocommerce-account .site-main,
.woocommerce-account #main,
.woocommerce-account article,
.woocommerce-account .hentry,
.woocommerce-account .entry-content,
.woocommerce-account .woocommerce-page {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  max-width: none;
  width: auto;
  text-align: left;
}

/* Nav card */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(77, 111, 36, 0.08);
  border-radius: 20px;
  padding: 16px;
  position: sticky;
  top: 24px;
}

/* Content card */
.woocommerce-account .woocommerce-MyAccount-content {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(77, 111, 36, 0.08);
  border-radius: 20px;
  padding: 32px 36px;
  min-width: 0; /* prevent grid blowout */
}

/* All headings inside content left-aligned */
.woocommerce-MyAccount-content h1,
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
  text-align: left;
}

/* Account layout outer sizing */
.account-layout {
  padding: 34px 0 64px;
}

/* Section heading — spans full width above the nav + content grid */
.account-page-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--kmke-ink);
  margin: 0 0 28px;
  line-height: 1.1;
}

/* ── My Account navigation ───────────────────────────────────────── */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--kmke-ink);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(127, 187, 57, 0.1);
  color: var(--kmke-green-dark);
  padding-left: 20px;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
  background: rgba(72, 105, 34, 0.1);
  color: var(--kmke-green-dark);
  font-weight: 700;
}

/* Logout link */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(77, 111, 36, 0.1);
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #c13924;
  text-decoration: underline;
  text-decoration-color: rgba(193, 57, 36, 0.3);
  text-underline-offset: 3px;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: rgba(193, 57, 36, 0.07);
  color: #c13924;
  text-decoration-color: #c13924;
  padding-left: 20px;
}

/* ── My Account content ──────────────────────────────────────────── */
.woocommerce-MyAccount-content p {
  color: var(--kmke-muted);
  line-height: 1.65;
  margin-top: 0;
}

.woocommerce-MyAccount-content > p:first-child {
  margin-top: 0;
}

.woocommerce-MyAccount-content h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 24px 0 12px;
  color: var(--kmke-ink);
}

.woocommerce-MyAccount-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--kmke-ink);
}

/* Notices wrapper — strip its default top margin */
.woocommerce-MyAccount-content .woocommerce-notices-wrapper {
  margin: 0;
}

/* Address grid */
.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.woocommerce-Address {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(77, 111, 36, 0.1);
  border-radius: 20px;
  padding: 22px 24px;
}

.woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(77, 111, 36, 0.08);
}

.woocommerce-Address-title h3 {
  margin: 0;
}

.woocommerce-Address-title a {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--kmke-green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(72, 105, 34, 0.3);
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.woocommerce-Address-title a:hover {
  text-decoration-color: var(--kmke-green-dark);
}

/* Actions group: edit link + copy button in the address card header */
.woocommerce-Address-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.woocommerce-Address-actions-sep {
  color: rgba(72, 105, 34, 0.3);
  font-size: 0.83rem;
  user-select: none;
}

/* Copy-billing button */
.kmke-copy-billing-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--kmke-green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(72, 105, 34, 0.3);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: text-decoration-color 0.15s;
}

.kmke-copy-billing-btn:hover {
  text-decoration-color: var(--kmke-green-dark);
}

.kmke-copy-billing-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.woocommerce-Address address {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--kmke-muted);
  line-height: 1.6;
}

/* ── Account page outer layout ───────────────────────────────────── */
.account-layout {
  padding: 34px 0 64px;
}

/* ── Auth layout (login / register) ─────────────────────────────── */
.kmke-auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 8px;
}

.kmke-auth-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(77, 111, 36, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(18, 18, 18, 0.05);
  padding: clamp(28px, 4vw, 52px);
}

.kmke-auth-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 28px;
  color: var(--kmke-ink);
}

.kmke-auth-layout .form-row {
  margin-bottom: 20px;
}

.kmke-auth-layout .form-row label {
  display: block;
  text-align: left;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  margin-bottom: 7px;
  color: var(--kmke-ink);
}

.kmke-auth-layout .form-row label .required {
  color: #c13924;
  margin-left: 2px;
}

/* Both inputs fill the full card width consistently */
.kmke-auth-layout .form-row input.input-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Remember-me row + submit button — stacked vertically */
.kmke-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.kmke-auth-actions .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.kmke-auth-actions .woocommerce-form-login__submit {
  width: 100%;
}

/* Lost password link */
.woocommerce-account .woocommerce-LostPassword {
  margin-top: 18px;
  font-size: 0.88rem;
}

.woocommerce-account .woocommerce-LostPassword a {
  color: var(--kmke-muted);
  text-decoration: underline;
  text-decoration-color: rgba(110, 115, 104, 0.35);
  text-underline-offset: 3px;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
  color: var(--kmke-green-dark);
  text-decoration-color: var(--kmke-green-dark);
}

/* Auto-generated password note */
.kmke-auth-note {
  font-size: 0.9rem;
  color: var(--kmke-muted);
  margin-bottom: 20px;
}

/* Benefits box */
.kmke-auth-benefits {
  margin-top: 32px;
  background: var(--kmke-cream);
  border-radius: 20px;
  padding: 24px 28px;
}

.kmke-auth-benefits h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--kmke-ink);
}

.kmke-auth-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kmke-auth-benefits li {
  padding-left: 22px;
  position: relative;
  color: var(--kmke-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.kmke-auth-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--kmke-green);
  font-weight: 700;
}

/* Benefits card layout: stack benefits + CTA button */
.kmke-auth-card--benefits {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
}

.kmke-auth-register-cta {
  display: block;
  text-align: center;
}

.kmke-auth-switch {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--kmke-muted);
}

.kmke-auth-switch a {
  color: var(--kmke-green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(72, 105, 34, 0.3);
  text-underline-offset: 3px;
}

.kmke-auth-switch a:hover {
  text-decoration-color: var(--kmke-green-dark);
}

/* Registration form section (below the two-column layout) */
.kmke-register-section {
  margin-top: 28px;
  scroll-margin-top: 100px;
  max-width: 540px;
}

/* ── Password show/hide toggle ───────────────────────────────────── */

/* WooCommerce JS wraps [type=password] in <span class="password-input"> */
.password-input {
  position: relative;
  display: block;
  width: 100%;
}

.password-input input[type="password"],
.password-input input[type="text"] {
  width: 100%;
  padding-right: 48px;
}

.show-password-input {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kmke-muted);
  background: none;
  border: none;
  padding: 0;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.show-password-input:hover {
  opacity: 1;
}

/* Eye open (default) */
.show-password-input::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

/* Eye crossed out (password visible) */
.show-password-input.display-password::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.breadcrumbs {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--kmke-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.breadcrumbs a {
  color: var(--kmke-green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(77, 111, 36, 0.2);
  text-underline-offset: 3px;
}

.breadcrumbs a:hover {
  text-decoration-color: var(--kmke-green-dark);
}

.breadcrumbs .breadcrumb-sep {
  color: rgba(18, 18, 18, 0.3);
}

.breadcrumbs [aria-current="page"] {
  color: var(--kmke-ink);
  font-weight: 600;
}

.post-navigation {
  margin: 28px 0;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(77, 111, 36, 0.08);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.post-navigation .nav-previous {
  text-align: left;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-nav__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kmke-muted);
  margin-bottom: 4px;
}

.post-nav__title {
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--kmke-ink);
}

.entry-meta {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--kmke-muted);
}

.entry-meta a {
  color: var(--kmke-green-dark);
}

.entry-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(77, 111, 36, 0.1);
}

.page-links {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.page-links a,
.page-links > .post-page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(77, 111, 36, 0.18);
  color: var(--kmke-ink);
  font-weight: 700;
}

.page-links > .post-page-numbers.current {
  background: var(--kmke-green-dark);
  color: #fff;
  border-color: transparent;
}

.comments-area {
  margin-top: 36px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(77, 111, 36, 0.08);
}

.comments-title {
  margin: 0 0 18px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
}

.comment-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin-left: 28px;
  padding: 0;
}

.comment-body {
  padding: 16px 0;
  border-bottom: 1px solid rgba(77, 111, 36, 0.08);
}

.comment-author .fn {
  font-weight: 700;
}

.comment-metadata {
  font-size: 0.82rem;
  color: var(--kmke-muted);
}

.comment-form .form-row,
.comment-form p {
  margin-bottom: 14px;
}

.content-card--404 {
  text-align: center;
}

.content-card--404 .entry-header {
  margin-bottom: 24px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 22px 0;
}

.not-found-search {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1100px) {
  .hero-section__content,
  .hero-section__inner,
  .woocommerce-account .woocommerce,
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  /* Footer keeps a 2-column grid in the mid range so the four sections
     don't stretch into a tall single stack on tablets. */
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(200px, 320px));
  }

  /* Single product: undo the desktop float so gallery + summary + tabs stack. */
  .woocommerce div.product .woocommerce-product-gallery {
    float: none;
    width: 100%;
    margin: 0 !important;
  }

  .woocommerce div.product .summary,
  .woocommerce div.product .woocommerce-tabs {
    margin-left: 0 !important;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .category-grid,
  .product-grid,
  .woocommerce .products ul,
  .woocommerce ul.products,
  .woocommerce .related ul.products,
  .woocommerce .upsells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header .container {
    width: min(100vw - 20px, 100vw - 20px);
  }

  .site-header__top {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .site-branding__text,
  .desktop-only,
  .primary-navigation,
  .site-header__icons {
    display: none;
  }

  .menu-toggle,
  .mobile-actions-row {
    display: grid !important;
  }

  .mobile-actions-row {
    grid-template-columns: 56px 1fr;
    align-items: center;
    min-height: 54px;
    padding: 0 10px;
    border-top: 1px solid rgba(18, 18, 18, 0.08);
    background: #d8d6cd;
  }

  .mobile-actions-row .menu-toggle,
  .mobile-actions-row .icon-link {
    color: #111 !important;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .mobile-actions-row .menu-toggle svg,
  .mobile-actions-row .icon-link svg {
    stroke: #111 !important;
    opacity: 1;
  }

  .site-header__search {
    justify-content: stretch;
  }

  .kmke-search-form {
    width: 100%;
  }

  .hero-section__inner {
    padding: 12px 0;
  }

  .hero-section__content {
    width: var(--kmke-container);
  }

  .mobile-actions-row__icons {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }

  .hero-copy h1 {
    max-width: 16ch;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-book {
    width: clamp(110px, 28vw, 180px);
  }

  .hero-book--1 {
    left: 6%;
  }

  .hero-book--2 {
    left: 22%;
  }

  .hero-book--3 {
    left: 38%;
  }

  .hero-book--4 {
    left: 54%;
  }

  .hero-book--5 {
    left: 70%;
  }

  .hero-book--6 {
    left: 84%;
  }

  .section-heading,
  .site-footer__bottom,
  .woocommerce-result-count,
  .woocommerce-ordering {
    align-items: flex-start;
    flex-direction: column;
  }

  .page .content-layout .content-card {
    text-align: left;
  }

  .page .content-layout .entry-header,
  .page .content-layout .entry-content {
    max-width: none;
  }

  .footer-column--brand {
    text-align: left;
  }

  .footer-brand {
    justify-content: flex-start;
  }

  .kmke-auth-layout {
    grid-template-columns: 1fr;
  }

  /* Single product: trim summary top padding once the layout is stacked. */
  .woocommerce div.product .summary {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --kmke-container: min(100vw - 20px, 100vw - 20px);
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-header__top {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .custom-logo-link img,
  .fallback-logo img {
    max-height: 54px;
  }

  .hero-section {
    padding-bottom: 8px;
  }

  .hero-section__inner {
    border-radius: 0;
  }

  .hero-section__content {
    width: var(--kmke-container);
    gap: 16px;
  }

  .mobile-actions-row {
    grid-template-columns: 52px 1fr;
    padding: 0 8px;
  }

  .mobile-actions-row .menu-toggle,
  .mobile-actions-row .icon-link {
    width: 44px;
    height: 44px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .hero-text {
    font-size: 0.9rem;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-book {
    width: 124px;
  }

  .hero-book--1 {
    left: 6%;
  }

  .hero-book--2 {
    left: 30%;
  }

  .hero-book--3 {
    left: 54%;
  }

  .hero-book--4 {
    left: 78%;
  }

  .hero-book--5,
  .hero-book--6 {
    display: none;
  }

  .category-grid,
  .product-grid,
  .woocommerce .products ul,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  /* Related / upsell products: 2 columns on small screens (not 3) */
  .woocommerce .related ul.products,
  .woocommerce .upsells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .category-card {
    min-height: 250px;
  }

  .site-footer {
    padding-bottom: 88px;
  }
}
