/* Sambal Ibu — kremowe tło, czarna typografia, akcent chili, ziemiste barwy (zgodnie z opakowaniem). */

:root {
  --cream: #f6efe2;
  --ivory: #fbf7ef;
  --beige: #e8dcc6;
  --ink: #1b1714;
  --brown: #4a3426;
  --olive: #5f6236;
  --chili: #b3261e;
  --chili-dark: #8f1d17;
  --muted: #6e6257;
  --line: #d9cbb2;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--chili); outline-offset: 3px; }

.kicker {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--olive); font-weight: 600; margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--brown); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 239, 226, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.wordmark { text-decoration: none; position: relative; isolation: isolate; }
/* papryczka chili za logo w nagłówku (dekoracja) */
.wordmark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 5.2em; height: 1.95em; right: -1.1em; top: 50%;
  transform: translateY(-58%) rotate(-10deg);
  background: url("../images/chili.svg") center / contain no-repeat;
  opacity: .45;
}
.wordmark-name {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin: 0;
}
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--brown); }
.nav a:hover { color: var(--chili); }
.nav-order { color: var(--chili) !important; font-weight: 600; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  font: 600 .75rem var(--sans); letter-spacing: .08em; border: 0; background: transparent;
  color: var(--muted); padding: 6px 11px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

@media (max-width: 820px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 13px 24px; border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--chili); color: #fff; }
.btn-primary:hover { background: var(--chili-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-wide { width: 100%; }

/* ---------- photos (placeholders until the shoot) ---------- */

.photo {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--beige);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-empty {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
  border: 1.5px dashed #c2ae8c;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.55) 0 22%, transparent 23%),
    var(--beige);
}
.photo-empty figcaption {
  font-size: .85rem; color: var(--muted); max-width: 22ch; margin-top: 40%;
}

/* ---------- sections ---------- */

.hero { padding: 64px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.values { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--olive); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.section { padding: 88px 0; }
.section-alt { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-reverse > :first-child { order: 2; }
/* zdjęcia 2 i 3 są poziome (3:2): jedno pod drugim, bez obcinania słoików */
.photo-pair { display: grid; grid-template-columns: 1fr; gap: 16px; }
.photo-pair .photo { aspect-ratio: 3 / 2; }

.choose { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }

@media (max-width: 820px) {
  .hero { padding: 36px 0 56px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse > :first-child { order: 0; }
  .section { padding: 64px 0; }
}

/* ---------- products ---------- */

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .product-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid, .product-list { grid-template-columns: 1fr; } }

.product {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s, box-shadow .15s;
}
.section-alt .product { background: var(--cream); }
.product.in-cart { border-color: var(--chili); box-shadow: 0 0 0 1px var(--chili); }
.product-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product-head h4 { font-size: 1.6rem; margin: 0; }
.product-note { color: var(--muted); font-size: .95rem; margin: 0; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }
.price { font-weight: 600; color: var(--brown); white-space: nowrap; }

.heat { display: inline-flex; gap: 4px; }
.heat span { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--chili); }
.heat span.on { background: var(--chili); }

.btn-add { padding: 8px 18px; background: var(--ink); color: var(--cream); font-size: .85rem; }
.btn-add:hover { background: var(--chili); }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer;
  font: 500 1.1rem var(--sans); color: var(--ink);
}
.stepper button:hover { background: var(--beige); }
.stepper input {
  width: 34px; height: 34px; border: 0; text-align: center; background: transparent;
  font: 600 .95rem var(--sans); color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- story & kitchen ---------- */

.section-story { background: var(--olive); color: var(--ivory); text-align: center; }
.section-story .lead { color: var(--ivory); font-family: var(--serif); font-size: 1.6rem; font-style: italic; line-height: 1.35; }
.story-mark {
  font-family: var(--serif); font-size: clamp(4rem, 12vw, 8rem); line-height: 1; margin: 0 0 .1em;
  color: rgba(251, 247, 239, .18); letter-spacing: .06em;
}
.soon { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--olive); }

/* ---------- order ---------- */

.order-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 820px) { .order-grid { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 12px; color: var(--brown); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--chili); }

.cart {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.cart-empty { color: var(--muted); }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-list li {
  display: grid; grid-template-columns: 1fr auto 72px; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.cart-name { font-size: .95rem; }
.cart-sum { text-align: right; font-weight: 600; white-space: nowrap; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; font-size: 1.1rem; }
.cart-total strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; }
.cart-free { color: var(--olive); font-size: .9rem; min-height: 1.5em; }

@media (max-width: 480px) {
  .cart { padding: 20px; }
  .cart-list li { grid-template-columns: 1fr auto; }
  .cart-sum { grid-column: 2; }
}

.field { display: block; border: 0; padding: 0; margin: 0 0 16px; }
.field > span, .field legend { display: block; font-size: .85rem; font-weight: 600; color: var(--brown); margin-bottom: 6px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--chili); outline-offset: 0; border-color: transparent; }
.radio { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; cursor: pointer; }
.radio input { accent-color: var(--chili); }

.preview { margin: 8px 0 16px; font-size: .9rem; }
.preview summary { cursor: pointer; color: var(--muted); }
.preview pre {
  white-space: pre-wrap; font: .88rem/1.5 var(--sans); background: var(--ivory);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 8px 0 0;
}
.form-error { color: var(--chili); font-weight: 600; min-height: 1.4em; margin-bottom: 8px; }
.hint { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- footer & cart bar ---------- */

.site-footer { padding: 56px 0 96px; text-align: center; }
.footer-line { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--brown); margin: 8px 0; }
.footer-small { font-size: .8rem; color: var(--muted); letter-spacing: .08em; margin: 4px 0; }

.cart-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30;
  display: flex; gap: 10px; align-items: center;
  background: var(--ink); color: var(--cream); text-decoration: none;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 8px 24px rgba(27, 23, 20, .25);
  font-size: .95rem;
}
.cart-bar strong { color: #fff; }
.product-list .product-head h4 { font-size: 1.25rem; }

/* ---------- sklep online: komunikaty, dostawa, paczkomat ---------- */

.notice {
  background: var(--ivory); border: 1px solid var(--line); border-left: 4px solid var(--olive);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; color: var(--brown);
}
.notice-down { border-left-color: var(--chili); }
.notice p { margin: 0 0 12px; }
.notice .btn { margin-top: 4px; }

.cart-delivery { display: flex; justify-content: space-between; margin-top: 12px; color: var(--brown); }
.unavailable { color: var(--muted); font-size: .9rem; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; cursor: pointer; font-size: .92rem; color: var(--brown); }
.check input { accent-color: var(--chili); margin-top: .3em; flex: none; }
.check a { color: var(--chili); }
.hint-tempeh { color: var(--olive); font-weight: 600; margin: 0 0 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-small { padding: 6px 16px; font-size: .85rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--chili); }

.locker-chosen {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.locker-chosen strong { display: block; }
.locker-chosen span { font-size: .9rem; color: var(--muted); }

.locker-dialog {
  width: min(960px, 96vw); height: min(720px, 90vh); padding: 0; border: 0; border-radius: var(--radius);
  background: var(--cream); color: var(--ink);
}
.locker-dialog[open] { display: flex; flex-direction: column; }
.locker-dialog::backdrop { background: rgba(27, 23, 20, .55); }
.locker-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.locker-dialog-head h3 { margin: 0; font-size: 1.3rem; }
.locker-close { font: 500 1.8rem/1 var(--sans); border: 0; background: transparent; cursor: pointer; width: 40px; height: 40px; color: var(--ink); }
.locker-close:hover { color: var(--chili); }
.locker-dialog-body { flex: 1; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.locker-dialog-body inpost-geowidget { display: block; flex: 1; min-height: 0; }

/* ---------- strony pomocnicze (po płatności, regulamin, prywatność) ---------- */

.page { padding: 56px 0 72px; min-height: 60vh; }
.page h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page .cart-list li { grid-template-columns: 1fr auto; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.draft {
  background: var(--ivory); border: 1.5px dashed #c2ae8c; border-radius: var(--radius);
  padding: 20px 24px; color: var(--brown); margin: 24px 0;
}
.draft strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.seller { color: var(--muted); }
.legal section + section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 1.35rem; margin-top: 28px; }
.fill { color: var(--chili-dark); background: rgba(179, 38, 30, .07); border-radius: 6px; padding: 2px 6px; }
