:root {
  --sage: #9CB080;
  --moss: #618764;
  --pine: #2B5748;
  --charcoal: #273338;
  --bg: #f4f7ef;
  --surface: #ffffff;
  --surface-strong: #e9efe1;
  --ink: var(--charcoal);
  --muted: #617068;
  --line: rgba(39, 51, 56, 0.12);
  --green: var(--moss);
  --green-dark: var(--pine);
  --gold: var(--sage);
  --lavender: #72816a;
  --clay: var(--pine);
  --shadow-border: 0 0 0 1px rgba(39, 51, 56, 0.08), 0 1px 2px -1px rgba(39, 51, 56, 0.08), 0 16px 34px rgba(39, 51, 56, 0.08);
  --shadow-hover: 0 0 0 1px rgba(39, 51, 56, 0.12), 0 8px 18px -10px rgba(39, 51, 56, 0.26), 0 24px 58px rgba(39, 51, 56, 0.13);
  --radius: 6px;
  --shell: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7faf3, var(--bg) 360px);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
  outline: 1px solid rgba(0, 0, 0, 0.1);
  outline-offset: -1px;
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

p,
li,
span {
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  width: min(var(--shell), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 14px clamp(16px, 3vw, 40px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-border);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.cart-pill,
.hero-actions,
.price-row,
.purchase-row,
.rating,
.toolbar,
.payment-heading {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  background: var(--green-dark);
  color: #fffdf8;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  transform: none;
}

.main-nav {
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(47, 107, 69, 0.1);
  color: var(--green-dark);
}

.cart-pill {
  min-height: 40px;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-border);
  transition: transform 140ms ease-out, box-shadow 160ms ease-out;
}

.cart-pill:active,
.btn:active,
.price-row button:active,
.variant:active,
.payment-methods button:active {
  transform: scale(0.96);
}

.cart-pill strong {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 6px;
  background: var(--gold);
  color: #1d1604;
  font-variant-numeric: tabular-nums;
}

.screen {
  display: none;
  scroll-margin-top: 92px;
}

.screen.is-active {
  display: block;
  animation: screenIn 360ms cubic-bezier(0.2, 0, 0, 1);
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 64px));
  display: grid;
  align-items: end;
  width: min(var(--shell), calc(100% - 32px));
  margin: 20px auto 0;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 24px;
  overflow: hidden;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(0.85) contrast(1.04);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(39, 51, 56, 0.86), rgba(43, 87, 72, 0.52) 54%, rgba(43, 87, 72, 0.08)),
    linear-gradient(180deg, transparent 72%, rgba(39, 51, 56, 0.34));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(740px, 100%);
  color: white;
}

.hero-content::before {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(156, 176, 128, 0.72);
  border-radius: 8px;
  color: #dfe8d2;
  content: "otwarte: wt-sob 10:00-18:00";
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #cbd9b8;
}

.hero h1,
.page-title h1 {
  margin-top: 14px;
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  width: min(590px, 100%);
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 800;
  transition: transform 140ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out;
}

.btn.primary {
  background: var(--pine);
  color: white;
  box-shadow: 0 10px 26px rgba(23, 63, 43, 0.24);
}

.btn.primary:hover {
  background: var(--charcoal);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  box-shadow: 0 0 0 1px rgba(255, 249, 235, 0.35);
}

.btn.subtle {
  background: var(--surface);
  color: var(--green-dark);
  box-shadow: var(--shadow-border);
}

.wide {
  width: 100%;
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 64px);
  bottom: clamp(18px, 5vw, 64px);
  z-index: 1;
  width: min(220px, 42vw);
  padding: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.hero-panel::before {
  position: absolute;
  top: -10px;
  left: 18px;
  width: 54px;
  height: 18px;
  background: rgba(156, 176, 128, 0.72);
  content: "";
}

.hero-panel span,
.hero-panel small {
  color: var(--muted);
}

.hero-panel strong {
  display: block;
  margin: 4px 0;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.section,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) 0;
}

.section-heading {
  width: min(620px, 100%);
  margin: 0 auto 26px;
  text-align: center;
}

.section-heading.left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.detail-copy h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.category-grid,
.product-grid,
.account-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

.category-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.category-tile,
.product-card,
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-border);
}

.category-tile:nth-child(1) {
  transform: none;
}

.category-tile:nth-child(2) {
  margin-top: 28px;
}

.category-tile:nth-child(3) {
  transform: none;
}

.category-tile,
.product-card {
  overflow: hidden;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.category-tile:hover,
.product-card:hover,
.cart-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.category-tile img {
  width: 100%;
  height: 260px;
  filter: saturate(0.88);
}

.category-tile div,
.product-card-body {
  padding: 16px;
}

.category-tile span,
.product-card p,
.cart-item p,
.summary-note,
.detail-copy .lead,
.account-sidebar p,
.account-grid p,
.order-card p {
  color: var(--muted);
  line-height: 1.55;
}

.category-tile span,
.product-card h3 + p em {
  font-family: Inter, system-ui, sans-serif;
}

.category-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 28px;
  align-items: start;
  border-top: 1px dashed rgba(36, 33, 21, 0.25);
}

.split-band h2 {
  margin-top: 8px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.process-grid {
  grid-template-columns: repeat(2, 1fr);
}

.process-grid div {
  min-height: 126px;
  padding: 18px;
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 249, 235, 0.52), rgba(255, 249, 235, 0)),
    var(--surface-strong);
  box-shadow: inset 0 0 0 1px rgba(54, 43, 18, 0.08);
}

.process-grid strong {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

.page-title {
  width: min(720px, 100%);
  margin-bottom: 30px;
}

.page-title.compact {
  margin-bottom: 18px;
}

.page-title p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.page-title h1 {
  color: var(--green-dark);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 18px;
}

.filters {
  position: sticky;
  top: 86px;
}

.filters h2,
.summary h2,
.step h2,
.payment h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.filters label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.range-row,
.order-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.range-row {
  margin: 16px 0 8px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.toolbar {
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-field {
  flex: 1;
  min-height: 44px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-border);
}

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

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  filter: saturate(0.88) contrast(1.02);
}

.product-card {
  position: relative;
}

.product-card::before {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: white;
  content: "opis z szuflady";
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(55, 99, 59, 0.12);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.badge.muted {
  background: rgba(156, 176, 128, 0.2);
  color: var(--lavender);
}

.product-card h3 {
  font-size: 19px;
}

.product-card p {
  margin-top: 8px;
  min-height: 50px;
}

.price-row {
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.price-row strong,
.summary strong,
.total strong,
.order-card strong {
  font-variant-numeric: tabular-nums;
}

.price-row button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--green-dark);
  color: white;
  font-weight: 800;
  transition: transform 140ms ease-out, background-color 160ms ease-out;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
}

.detail-copy .lead {
  margin-top: 18px;
  font-size: 18px;
}

.rating {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.rating span {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.variant {
  min-height: 82px;
  border: 0;
  border-radius: 6px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-border);
  text-align: left;
  transition: transform 140ms ease-out, box-shadow 160ms ease-out;
}

.variant strong {
  display: block;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.variant.is-selected {
  box-shadow: 0 0 0 2px var(--green), 0 12px 28px rgba(47, 107, 69, 0.13);
}

.purchase-row {
  gap: 12px;
  margin-top: 18px;
}

.quantity {
  display: grid;
  grid-template-columns: 40px 42px 40px;
  min-height: 44px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-border);
}

.quantity button {
  border: 0;
  background: transparent;
  font-weight: 800;
}

.quantity span {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.info-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.info-list span {
  color: var(--muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}

.checkout-layout > *,
.shop-layout > *,
.account-layout > *,
.product-detail > * {
  min-width: 0;
}

.cart-list {
  display: grid;
  gap: 10px;
}

.cart-item {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cart-item img {
  width: 82px;
  height: 82px;
  border-radius: 8px;
}

.cart-item h3 {
  font-size: 17px;
}

.summary {
  display: grid;
  gap: 14px;
}

.summary div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.summary div strong {
  color: var(--ink);
}

.summary .total {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.summary .total strong {
  font-size: 28px;
}

.checkout-steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
}

.step > span,
.payment-heading > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
  font-weight: 800;
}

.step p,
.payment p {
  color: var(--muted);
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.payment-methods button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 800;
  transition: transform 140ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}

.payment-methods button.is-selected {
  background: var(--green-dark);
  color: white;
}

.mock-card {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  margin-top: 16px;
  padding: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--charcoal), var(--pine));
  color: white;
}

.mock-card strong {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.mock-card small {
  color: rgba(255, 255, 255, 0.74);
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 86px;
}

.avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 14px;
  font-size: 22px;
}

.account-sidebar h1 {
  font-size: 26px;
}

.account-sidebar p {
  margin: 8px 0 18px;
}

.order-card {
  margin-bottom: 16px;
}

.order-card h3 {
  margin-top: 4px;
}

.account-grid {
  grid-template-columns: repeat(2, 1fr);
}

.account-grid h3 {
  margin-bottom: 8px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
  width: min(var(--shell), calc(100% - 32px));
  margin: 24px auto 32px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 24px;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
}

.site-footer .brand-mark {
  background: var(--sage);
  color: var(--charcoal);
}

.site-footer p {
  max-width: 420px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.6;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: white;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.site-footer a:hover {
  color: white;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-layout,
  .product-detail,
  .checkout-layout,
  .account-layout,
  .split-band {
    grid-template-columns: 1fr;
  }

  .filters,
  .account-sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  .screen {
    scroll-margin-top: 250px;
  }

  .site-header {
    padding: 12px;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    min-height: 38px;
    padding: 8px 9px;
    font-size: 13px;
  }

  .section,
  .page-shell {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .brand {
    min-width: 0;
  }

  .cart-pill span {
    display: none;
  }

  .hero {
    min-height: 700px;
    padding: 24px 16px 150px;
    border-radius: 18px;
  }

  .page-title h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(39, 51, 56, 0.9), rgba(43, 87, 72, 0.28));
  }

  .hero-panel {
    right: 16px;
    left: 16px;
    width: auto;
  }

  .category-grid,
  .product-grid,
  .process-grid,
  .variant-grid,
  .payment-methods,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .purchase-row,
  .order-card {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-heading {
    align-items: flex-start;
  }

  .payment-heading h2 {
    overflow-wrap: anywhere;
  }

  .summary .total strong {
    font-size: 24px;
  }

  .summary-note,
  .step p,
  .payment p {
    overflow-wrap: anywhere;
  }

  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item strong {
    grid-column: 2;
  }

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
}
