/*
Theme Name: KleinLeni Recovery
Theme URI: https://leniklein.com
Author: KleinLeni
Description: Recovered storefront theme for KleinLeni.
Version: 1.0.0
Text Domain: kleinleni
*/

:root {
  --ink: #303030;
  --muted: #6a6a66;
  --line: #e6e3dc;
  --paper: #fffdf9;
  --sage: #dfe9de;
  --green: #2e5d4e;
  --cream: #f7f3ec;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1.6rem/1.65 Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.site-shell { min-height: 100vh; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1.6rem; top: 1.6rem; z-index: 20; padding: .8rem 1.2rem; background: #fff; }

.announcement { border-bottom: 1px solid var(--line); font-size: 1.25rem; letter-spacing: .02em; text-align: center; }
.announcement p { margin: .65rem 1.6rem; }
.announcement a { display: block; padding: .7rem 1.6rem; background: var(--sage); }

.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { max-width: var(--max); margin: auto; padding: 1.8rem 2.4rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand img { width: 15.5rem; height: auto; }
.brand-text { font-size: 2.3rem; font-weight: 600; letter-spacing: .02em; }
.header-actions { display: flex; gap: 1.2rem; justify-content: flex-end; align-items: center; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; min-width: 3.6rem; min-height: 3.6rem; border: 1px solid transparent; }
.icon-link:hover { border-color: var(--line); }
.icon-link svg { width: 2rem; height: 2rem; stroke: currentColor; fill: none; stroke-width: 1.6; }
.primary-nav { border-top: 1px solid var(--line); }
.primary-nav ul { list-style: none; margin: 0; padding: 1.1rem 2.4rem; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; font-size: 1.35rem; }
.primary-nav a:hover { color: var(--green); }

.category-rail { max-width: var(--max); margin: auto; padding: 1.5rem 2.4rem 2rem; overflow-x: auto; }
.category-track { display: grid; grid-auto-flow: column; grid-auto-columns: 10.5rem; gap: 1.2rem; width: max-content; }
.category-item { text-align: center; font-size: 1.25rem; }
.category-item img { width: 10.5rem; height: 8rem; object-fit: cover; margin-bottom: .55rem; }

.hero { position: relative; min-height: 53rem; display: flex; align-items: center; overflow: hidden; }
.hero img { width: 100%; height: 53rem; object-fit: cover; }
.hero-copy { position: absolute; inset: 0; display: flex; align-items: center; max-width: var(--max); width: 100%; margin: auto; padding: 3rem 8vw; }
.hero-panel { max-width: 44rem; padding: 2.6rem; background: rgba(255,253,249,.93); }
.hero-panel h1 { margin: 0 0 1rem; font: 400 4.6rem/1.1 Georgia, serif; }
.hero-panel p { margin: 0 0 1.7rem; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 1.1rem 1.7rem; border: 1px solid var(--green); background: var(--green); color: #fff; font-size: 1.4rem; }
.button.alt { background: transparent; color: var(--green); }
.button + .button { margin-left: .7rem; }

.container { max-width: var(--max); margin: auto; padding: 5.5rem 2.4rem; }
.section-title { margin: 0 0 .8rem; font: 400 3.3rem/1.2 Georgia, serif; }
.section-subtitle { margin: 0 0 2.5rem; color: var(--muted); }
.intro { max-width: 76rem; margin: 0 auto 4rem; text-align: center; }
.intro p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4.5rem; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split-copy h2 { margin: 0 0 1.2rem; font: 400 3.1rem/1.2 Georgia, serif; }
.split-copy p { color: var(--muted); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; }
.product-card { min-width: 0; }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--cream); }
.product-card h3 { margin: 1rem 0 .5rem; font-size: 1.6rem; font-weight: 500; }
.product-card .price { color: var(--green); font-weight: 600; }
.product-card .price del { color: var(--muted); font-weight: 400; margin-right: .5rem; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
.category-card { border: 1px solid var(--line); background: #fff; }
.category-card img { aspect-ratio: 4/3; object-fit: cover; }
.category-card h3 { margin: 1rem 1.1rem 1.2rem; font-size: 1.5rem; font-weight: 500; }

.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.feature { padding: 2rem; background: var(--cream); }
.feature h3 { margin: .9rem 0 .5rem; font-size: 1.6rem; }
.feature p { margin: 0; color: var(--muted); font-size: 1.4rem; }
.newsletter { background: var(--sage); text-align: center; }
.newsletter form { display: flex; justify-content: center; max-width: 52rem; margin: 1.6rem auto 0; }
.newsletter input { flex: 1; min-width: 0; border: 1px solid var(--line); padding: 1.2rem 1.4rem; font: inherit; }
.newsletter button { border: 0; cursor: pointer; }
.price-bands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.price-band { min-height: 22rem; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem; color: #fff; background-size: cover; background-position: center; }
.price-band h3 { margin: 0 0 .3rem; font: 400 2.4rem/1.2 Georgia, serif; }
.price-band p { margin: 0 0 1rem; font-size: 1.4rem; }
.price-band .button { align-self: flex-start; border-color: #fff; background: #fff; color: var(--ink); }

.site-footer { background: #2d302c; color: #f7f3ec; }
.footer-grid { max-width: var(--max); margin: auto; padding: 4.5rem 2.4rem; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
.site-footer h2 { margin: 0 0 1rem; font-size: 1.6rem; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: 1.4rem; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { max-width: var(--max); margin: auto; padding: 1.2rem 2.4rem 2rem; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 1rem; color: rgba(247,243,236,.75); font-size: 1.2rem; }

.woocommerce .site-main { max-width: var(--max); margin: auto; padding: 4rem 2.4rem; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; margin: 0; float: none; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--cream); margin-bottom: 1rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-size: 1.55rem; font-weight: 500; line-height: 1.35; }
.woocommerce ul.products li.product .price { color: var(--green); font-size: 1.45rem; }
.woocommerce div.product div.images img { width: 100%; }
.woocommerce div.product .product_title { font: 400 3.6rem/1.15 Georgia, serif; }
.woocommerce span.onsale { background: var(--green); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { border-radius: 0; background: var(--green); color: #fff; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: #23483d; color: #fff; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1 / -1; justify-self: center; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .primary-nav ul { gap: 1.1rem; font-size: 1.2rem; }
  .hero, .hero img { min-height: 38rem; height: 38rem; }
  .hero-copy { padding: 2rem; align-items: flex-end; }
  .hero-panel { max-width: none; width: 100%; padding: 1.8rem; }
  .hero-panel h1 { font-size: 3.4rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row, .price-bands, .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  .header-inner { padding-inline: 1.5rem; }
  .category-rail { padding-inline: 1.5rem; }
  .container { padding: 4rem 1.5rem; }
  .section-title { font-size: 2.7rem; }
  .brand img { width: 13rem; }
  .primary-nav { display: none; }
  .newsletter form { flex-direction: column; gap: .7rem; }
  .newsletter .button { width: 100%; }
}
