:root {
  --ink: #16343a;
  --olive: #0e7c86;
  --olive-2: #0b6570;
  --leaf: #14919c;
  --sage: #e7f6f7;
  --cream: #f7fbfc;
  --line: #d5e7eb;
  --paper: #ffffff;
  --muted: #5a7176;
  --warn: #8a3d2f;
  --ok: #0f766e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
}
a { color: var(--olive); }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.page { padding: 28px 0 8px; }
h1, h2, h3 { line-height: 1.25; font-weight: 650; letter-spacing: -0.02em; }
h1 { font-size: 2rem; margin: 0 0 12px; }
h2 { font-size: 1.45rem; margin: 0 0 16px; }

.site-header { background: #ffffff; color: var(--ink); border-bottom: 1px solid var(--line); }
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .header-row { padding: 14px 0; }
.logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 4px 12px 4px 8px;
  line-height: 0;
}
.logo img { height: 40px; width: auto; display: block; }
.footer-logo { height: 42px; width: auto; }
.site-header .search {
  flex: 1;
  display: flex;
  max-width: 640px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 8px;
}
.site-header .search input {
  width: auto;
  flex: 1;
  border: 0;
  border-radius: 0;
  padding: 12px 18px;
  background: transparent;
}
.site-header .search button {
  border-radius: 999px;
  margin: 4px;
  padding: 8px 16px;
  background: var(--leaf);
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--olive);
  background: #f4f7f0;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  font-weight: 650;
  white-space: nowrap;
}
.cart-link svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.cart-link strong {
  min-width: 1.4em;
  text-align: center;
  background: var(--olive);
  color: #f4f7f0;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 0.85rem;
}
.cat-nav { background: #fff; border-bottom: 1px solid var(--line); }
.cat-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  padding: 0;
}
.cat-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 0;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}
.cat-nav a[aria-current="page"], .cat-nav a:hover { color: var(--olive); border-bottom-color: var(--leaf); }

.hero {
  background: linear-gradient(100deg, #0b6570 0%, #0e7c86 58%, #d7f3f5 100%);
  color: #f7fbfc;
}
.hero-copy { padding: 72px 0 64px; max-width: 760px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }
.hero p { font-size: 1.1rem; }
.hero .kicker { color: #d7f3f5; }
.slider { position: relative; background: var(--olive); color: #f4f7f0; }
.slide {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 420px;
  background: linear-gradient(100deg, #354428 0%, #4d6138 58%, #61784a 100%);
}
.slide[hidden] { display: none; }
.slide-xmas {
  background: linear-gradient(100deg, #0b6570 0%, #0e7c86 55%, #7ec8ce 100%);
}
.xmas-garland {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 28px;
  right: 28px;
  height: 16px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 212, 138, 0.85), rgba(242, 212, 138, 0.85)),
    radial-gradient(circle at 6px 8px, #f6e7b2 3.5px, transparent 4px),
    radial-gradient(circle at 26px 9px, #c45548 3.5px, transparent 4px),
    radial-gradient(circle at 46px 7px, #f4f7f0 3.5px, transparent 4px);
  background-size: 100% 1px, 60px 16px, 60px 16px, 60px 16px;
  background-position: 0 7px, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, repeat-x, repeat-x, repeat-x;
}
.slide-xmas .slide-visual::after {
  background: linear-gradient(90deg, #2c3a24 0%, rgba(44, 58, 36, 0) 30%);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.section-head h2 { margin-bottom: 0; }
.section-head a { font-weight: 700; white-space: nowrap; }
.slide-copy { padding: 64px 48px 80px 84px; display: flex; flex-direction: column; justify-content: center; }
.slide-copy h1 { font-size: clamp(2rem, 4vw, 3.1rem); color: #f7f8f4; }
.slide-copy p { max-width: 38rem; font-size: 1.08rem; }
.slide-visual { position: relative; min-height: 280px; }
.slide-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.slide-visual.photo { background: #f4f7f0; }
.slide-visual.photo img { object-fit: contain; padding: 28px; }
.slide-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #465734 0%, rgba(70, 87, 52, 0) 24%);
}
.kicker { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; font-weight: 700; color: var(--leaf); margin: 0 0 8px; }
.slide-copy .kicker { color: #d5e3c4; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--olive);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
}
.slider-arrow.prev { left: auto; right: 60px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 42px; display: flex; justify-content: center; gap: 8px; }
.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}
.slider-dots button[aria-current="true"] { background: #fff; }

.perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -28px;
  position: relative;
}
.perks article {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(36, 48, 36, 0.06);
}
.perks svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: var(--leaf); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.perks h2 { font-size: 1rem; margin: 0 0 4px; }
.perks p, .muted { color: var(--muted); }
.perks p { margin: 0; font-size: 0.92rem; }
.home-block { padding-top: 36px; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat-tile {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.cat-tile img, .cat-tile-fallback { width: 100%; aspect-ratio: 5 / 3; object-fit: contain; background: #f3f6ef; padding: 12px; }
.cat-tile-fallback { display: block; background: var(--sage); }
.cat-tile span { display: block; padding: 12px 10px 14px; font-weight: 650; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.card a { text-decoration: none; color: inherit; }
.card img, .card-fallback, .product-photo { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #f3f6ef; padding: 8px; }
.card-fallback { display: block; background: var(--sage); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; background: var(--sage); flex: 0 0 auto; }
.product-copy { margin-top: 16px; }
.product-copy img { max-width: 100%; height: auto; border-radius: 12px; }
.product-copy h3, .product-copy h4 { margin: 1.1rem 0 0.4rem; }
.specs { margin-top: 28px; }
.price { font-size: 1.15rem; font-weight: 700; color: var(--olive); }
.stock-ok { color: var(--ok); }
.stock-no { color: var(--warn); }
.product {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}
.pager { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 18px 0 8px; }
.pager a, .pager strong { padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.pager strong { background: var(--olive); color: white; }
button, .button {
  background: var(--leaf);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.button.light { background: #f4f7f0; color: var(--olive); }
button.secondary, .button.secondary { background: transparent; color: var(--olive); border: 1px solid var(--olive); }
label { display: block; margin: 12px 0; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: white;
}
.checkout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.flash { padding: 10px 12px; border-radius: 10px; background: var(--sage); }
.flash.err { background: #f6e4df; }
.site-footer {
  margin-top: 56px;
  background: #f3f5f1;
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}
.site-footer a { color: var(--olive); text-decoration: none; }
.site-footer a:hover { color: var(--leaf); }
.footer-brand { display: inline-block; margin-bottom: 28px; }
.footer-logo { height: 42px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  align-items: start;
}
.footer-grid h2 {
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-grid a, .footer-grid p { display: block; margin: 0 0 8px; font-size: 0.95rem; }
.footer-grid .button { display: inline-block; margin-top: 8px; }
.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 24px;
  align-items: center;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.socials svg { width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pay-marks span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive);
}
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
.prose ul { padding-left: 1.2rem; }
.admin-bar { background: var(--olive); color: white; }
.admin-bar a { color: white; margin-right: 14px; }
.admin-bar .header-row { padding: 12px 0; }
.qty { width: 80px; }

@media (max-width: 980px) {
  .perks, .cat-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pay-marks { justify-content: flex-start; }
}
@media (max-width: 800px) {
  .site-header .header-row { flex-wrap: wrap; }
  .logo { order: 1; }
  .cart-link { order: 2; }
  .site-header .search { order: 3; flex-basis: 100%; max-width: none; margin: 0; }
  .slide, .product, .checkout { grid-template-columns: 1fr; }
  .cat-nav .wrap { flex-wrap: nowrap; overflow-x: auto; }
  .slider { overflow: hidden; }
  .slider-arrow { top: auto; bottom: 56px; }
  .slider-arrow.prev { right: 52px; }
  .slide-copy, .slide-visual { min-width: 0; max-width: 100%; }
  .slide-copy { padding: 42px 20px 28px; }
  .slide-copy h1, .slide-copy p { overflow-wrap: break-word; }
  .slide-copy h1 { font-size: 1.85rem; }
  .slide-visual { height: 220px; min-height: 220px; overflow: hidden; }
  .slide-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .slide-visual::after { background: linear-gradient(180deg, #465734 0%, rgba(70, 87, 52, 0) 36%); }
  .perks { margin-top: 16px; }
  .cat-grid, .grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { grid-template-columns: 1fr; }
}
