/* =========================================================
   Paradise – Sklep Spożywczy w Słubicach
   ========================================================= */

:root {
  --green: #7ed957;
  --gray: #ebebeb;
  --gray-pill: #ededed;

  --font: "Arimo", Arial, Helvetica, sans-serif;
  --font-splash: "Averia Serif Libre", "Lora", Georgia, serif;
  /* kolorowe obrazki (emoji) z systemu: iPhone, Windows, Android – bez pobierania z Google */
  --font-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

  /* Ekran powitalny: kiedy "drzwi" zaczynają się otwierać i ile to trwa */
  --doors-delay: 2100ms;
  --doors-time: 800ms;
}

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

[hidden] {
  display: none !important;
}

html {
  scrollbar-gutter: stable;
  /* przy przewijaniu do kategorii zostawia miejsce na przyklejony pasek u góry */
  scroll-padding-top: calc(var(--header-h, 95px) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-splashing {
  overflow: hidden;
}

/* po odświeżeniu strony – bez ekranu powitalnego */
html.no-splash .splash {
  display: none;
}

html.no-splash .page {
  animation: none;
}

/* animacja stoi, dopóki nie wczyta się czcionka i zdjęcie (js/main.js) */
html.splash-wait .splash,
html.splash-wait .splash *,
html.splash-wait .page {
  animation-play-state: paused;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  color: #000;
  font-family: var(--font);
}

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

button {
  cursor: pointer;
}

/* telefony: bez szarego błysku przy dotknięciu i bez opóźnienia kliknięcia */
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}


/* =========================================================
   EKRAN POWITALNY
   Pojawia się przy wejściu na stronę, a potem otwiera się
   jak drzwi. Zasłania całą stronę, więc kliknięcia go nie
   przerywają – znika dopiero, gdy animacja się skończy.
   ========================================================= */

/* Ekran powitalny używa tylko starych, pewnych poleceń CSS,
   żeby działał także na starszych telefonach. */
.splash {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: 100%;
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  /* na samym końcu całkiem chowa ekran (działa nawet bez JavaScriptu);
     pierwsza linijka to zapas dla przeglądarek bez calc() w animacji */
  animation: splash-hide 1ms 2900ms forwards;
  animation: splash-hide 1ms calc(var(--doors-delay) + var(--doors-time)) forwards;
}

.splash__door {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  animation-duration: var(--doors-time);
  animation-delay: var(--doors-delay);
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  animation-fill-mode: forwards;
}

.splash__door--brand {
  background: #7ed957;
  animation-name: door-left;
}

.splash__door--photo {
  background: #000;
  animation-name: door-right;
}

.splash__door--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  pointer-events: none;
  -webkit-user-drag: none;
  animation: photo-in 1400ms cubic-bezier(0.2, 0.7, 0.2, 1) 100ms both;
}

.splash__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding-top: 1.5vw; /* napisy liczone od szerokości ekranu (połowa ekranu = 50vw) */
  color: #fff;
  font-family: var(--font-splash);
  font-style: italic;
  font-weight: 700;
  -webkit-text-stroke: 0.03em currentColor; /* trochę grubsze litery, jak w projekcie */
  text-align: center;
}

.splash__title {
  margin: 0 -0.035em 0 0; /* wyrównuje odstęp po ostatniej literze */
  font-size: 9.5vw;
  line-height: 1.1;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.splash__title span {
  display: inline-block;
  opacity: 0;
  /* pierwsza linijka to zapas dla przeglądarek bez calc() w animacji */
  animation: letter-in 600ms cubic-bezier(0.2, 0.8, 0.2, 1) 300ms forwards;
  animation: letter-in 600ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(120ms + var(--i) * 70ms) forwards;
}

.splash__subtitle {
  margin: 3.5vw 0 0;
  font-size: 3.1vw;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  animation: fade-up 600ms ease-out 800ms forwards;
}

@keyframes letter-in {
  from { opacity: 0; transform: translateY(35%) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@keyframes photo-in {
  from { opacity: 0; transform: scale(1.12); filter: brightness(0.3); }
  to   { opacity: 1; transform: none; filter: none; }
}

@keyframes door-left  { to { transform: translateX(-100%); } }
@keyframes door-right { to { transform: translateX(100%); } }
@keyframes door-up    { to { transform: translateY(-100%); } }
@keyframes door-down  { to { transform: translateY(100%); } }
@keyframes splash-hide { to { visibility: hidden; } }

/* Telefon trzymany pionowo: zielone u góry, zdjęcie na dole */
@media (orientation: portrait) {
  .splash {
    grid-template-columns: 100%;
    grid-template-rows: 50% 50%;
  }

  .splash__door--brand { animation-name: door-up; }
  .splash__door--photo { animation-name: door-down; }

  /* zielona część ma całą szerokość ekranu (100vw) */
  .splash__brand {
    justify-content: center;
    padding-top: 0;
  }

  .splash__title {
    font-size: 19vw;
  }

  .splash__subtitle {
    margin-top: 7vw;
    font-size: 6.2vw;
  }
}


/* =========================================================
   STRONA GŁÓWNA
   ========================================================= */

.page {
  padding-bottom: 46px;
  transform-origin: 50% 50vh;
  /* strona lekko "wjeżdża", kiedy drzwi się otwierają */
  animation: page-in var(--doors-time) cubic-bezier(0.76, 0, 0.24, 1) var(--doors-delay) both;
}

@keyframes page-in {
  from { opacity: 0.35; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* ----- Nagłówek ----- */

/* pasek zostaje u góry ekranu podczas przewijania strony */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.header__inner {
  display: flex;
  align-items: center;
  min-height: 94px;
  /* max(…, env(…)) – na iPhonie w poziomie odsuwa od wycięcia w ekranie */
  padding: 4px max(20px, env(safe-area-inset-right)) 4px max(25px, env(safe-area-inset-left));
}

.menu-btn {
  flex: none;
  display: grid;
  gap: 12px;
  width: 36px;
  padding: 0;
  border: 0;
  background: none;
}

.menu-btn span {
  display: block;
  height: 4px;
  background: #000;
}

.logo {
  flex: none;
  margin-left: clamp(14px, 3.2vw, 40px);
  font-size: clamp(34px, 7.2vw, 87px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}

.header__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 12px);
  margin-left: clamp(16px, 5.4vw, 66px);
  margin-right: clamp(10px, 2vw, 25px);
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(38px, 5.4vw, 66px);
  height: clamp(38px, 5.4vw, 66px);
  padding: 0;
  border: 0;
  background: none;
  line-height: 1;
  transition: transform 0.15s ease;
}

/* powiększenie tylko z myszką – na telefonie zostawałoby po dotknięciu */
@media (hover: hover) {
  .icon-btn:hover {
    transform: scale(1.08);
  }
}

.emoji {
  font-family: var(--font-emoji);
  font-size: clamp(30px, 4.8vw, 58px);
}

.icon-heart {
  width: 94%;
  height: auto;
  fill: none;
  stroke: #000;
  stroke-width: 3;
  stroke-linejoin: round;
}

/* ----- Wyszukiwarka ----- */

.search {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 520px;
  margin: 0 0 0 auto;
}

.search__input {
  display: block;
  width: 100%;
  height: 66px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-size: 15px;
  text-align: center;
  outline: none;
  appearance: none;
}

.search__input::placeholder {
  color: #000;
  opacity: 1;
}

.search__input:focus-visible {
  box-shadow: inset 0 0 0 3px #000;
}

/* ----- Czarny pas ----- */

.band {
  height: clamp(24px, 8.2vw, 99px);
}

/* ----- Biała część z produktami ----- */

.catalog {
  padding: 13px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
  border-radius: 30px 30px 0 0;
  background: #fff;
}

/* ----- Przycisk "Kategorie" – otwiera menu z kategoriami ----- */

.categories-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(369px, 100%);
  min-height: 56px;
  margin-bottom: 22px;
  padding: 8px 18px 8px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-pill);
  font-size: 16px;
  text-align: left;
  transition: background-color 0.15s ease;
}

.categories-toggle:active {
  background: #dcdcdc;
}

@media (max-width: 600px) {
  .categories-toggle {
    width: 100%;
    margin-bottom: 18px;
  }
}

/* ----- Kategorie w menu ☰ ----- */

.categories-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-pill);
  color: #000;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.15s ease;
}

/* wybrana kategoria */
.categories-btn[aria-current="true"] {
  background: var(--green);
  font-weight: 700;
}

.categories-btn:active {
  background: #dcdcdc;
}

@media (hover: hover) {
  .categories-toggle:hover,
  .categories-btn:hover {
    background: #e2e2e2;
  }

  .categories-btn[aria-current="true"]:hover {
    background: #6fcf46;
  }
}

.categories-toggle__bars {
  display: grid;
  flex: none;
  gap: 4px;
  width: 20px;
}

.categories-toggle__bars span {
  height: 2.5px;
  background: #000;
}

.categories-toggle__label {
  flex: none;
  font-weight: 700;
}

.categories-toggle__current {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #555;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.categories-toggle svg {
  flex: none;
  width: 10px;
  height: 16px;
  fill: none;
  stroke: #000;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- Tytuł nad kartkami ("Polecane produkty" / nazwa kategorii) ----- */

.products-head {
  margin-bottom: 18px;
}

.products-head__back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 14px;
}

.products-head__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

.products-head__count {
  margin: 4px 0 0;
  color: #666;
  font-size: 14px;
}

/* ----- Kartki z towarem ----- */

.products {
  display: grid;
  /* 136px najmniej – dzięki temu nawet na małym telefonie są 2 kartki w rzędzie */
  grid-template-columns: repeat(auto-fill, minmax(clamp(136px, 20vw, 200px), 1fr));
  gap: 14px;
}

.products__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 40px 16px;
  border-radius: 26px;
  background: var(--gray);
  color: #555;
  text-align: center;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 26px;
  background: var(--gray);
  text-align: center;
}

/* znaczek "18+" na alkoholu i papierosach */
.product-card__adult {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* okienko na zdjęcie: kształt 5 : 4 wszędzie (komputer, telefon) – taki sam
   jak ramka przy kadrowaniu zdjęcia w panelu admina (js/cropper.js) */
.product-card__image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  font-family: var(--font-emoji);
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
  user-select: none;
}

/* zdjęcie produktu (dodane w panelu admina) wypełnia całe okienko.
   Pozycja "absolute" – dzięki temu Safari na iPhonie nie rozciąga okienka
   do rozmiaru zdjęcia (tak jak wcześniej, gdy zdjęcie "uciekało" z kartki). */
.product-card__image img,
.cart-item__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__name {
  margin: 12px 4px 0;
  font-size: 16px;
  line-height: 1.25;
}

/* nazwa jako przycisk "szczegóły" – klikalna jest cała kartka (oprócz "Dodaj do koszyka") */
.product-card__open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.product-card__open::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 26px;
}

.product-card__open:focus-visible {
  outline: none;
}

.product-card:has(.product-card__open:focus-visible) {
  outline: 3px solid #000;
  outline-offset: 2px;
}

@media (hover: hover) {
  .product-card:has(.product-card__open) .product-card__image img {
    transition: transform 0.25s ease;
  }

  .product-card:has(.product-card__open):hover .product-card__image img {
    transform: scale(1.04);
  }
}

/* krótki opis – najwyżej 2 linijki */
.product-card__desc {
  display: -webkit-box;
  margin: 4px 4px 0;
  overflow: hidden;
  color: #555;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-card__unit {
  margin: 3px 4px 0;
  color: #666;
  font-size: 14px;
}

.product-card__price {
  margin: 10px 4px 12px;
  font-size: 20px;
  font-weight: 700;
}

/* przycisk na dole kartki (nad klikalną kartką – z-index) */
.product-card__add {
  position: relative;
  z-index: 2;
  margin-top: auto;
  min-height: 46px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

@media (hover: hover) {
  .product-card__add:hover {
    background: #6fcf46;
  }
}

.product-card__add:active {
  transform: scale(0.97);
}

.product-card__add.is-added {
  background: #000;
  color: #fff;
}

/* "Chwilowo niedostępne" – towar się skończył: ciemniejsza kartka */
.product-card.is-unavailable {
  background: #cbcbcb;
}

.product-card.is-unavailable .product-card__image {
  filter: grayscale(1);
  opacity: 0.55;
}

.product-card.is-unavailable .product-card__name,
.product-card.is-unavailable .product-card__price {
  color: #444;
}

.product-card__add:disabled {
  background: #4a4a4a;
  color: #fff;
  cursor: not-allowed;
  transform: none;
}


/* =========================================================
   TELEFONY I TABLETY
   ========================================================= */

/* tablet: wszystko w jednym rzędzie, trochę niższy pasek */
@media (max-width: 900px) {
  .header__inner {
    min-height: 0;
    padding-block: 10px;
  }

  .search {
    flex-basis: 160px;
  }

  .search__input {
    height: 54px;
    font-size: 16px; /* 16px – iPhone nie powiększa wtedy strony przy pisaniu */
  }
}

/* telefon: wyszukiwarka w drugim rzędzie, na całą szerokość */
@media (max-width: 640px) {
  .header__inner {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  }

  .header__actions {
    margin-left: auto;
    margin-right: 0;
  }

  .search {
    order: 5;
    flex-basis: 100%;
    max-width: none;
    margin-left: 0;
  }

  .search__input {
    height: 44px;
  }

  .band {
    height: 16px;
  }
}

@media (max-width: 600px) {
  .menu-btn {
    width: 28px;
    gap: 8px;
  }

  .menu-btn span {
    height: 3px;
  }

  .catalog {
    padding: 14px max(12px, env(safe-area-inset-right)) 28px max(12px, env(safe-area-inset-left));
    border-radius: 22px 22px 0 0;
  }

  .products-head {
    margin-bottom: 14px;
  }

  .products {
    gap: 10px;
  }

  .product-card {
    padding: 8px;
    border-radius: 20px;
  }

  .product-card__image {
    border-radius: 14px;
    font-size: 52px;
  }

  .product-card__adult {
    top: 14px;
    right: 14px;
  }

  .product-card__name {
    margin-top: 10px;
    font-size: 14px;
  }

  .product-card__unit {
    font-size: 13px;
  }

  .product-card__price {
    margin: 8px 4px 10px;
    font-size: 18px;
  }

  .product-card__add {
    min-height: 44px;
    padding: 6px 8px;
    font-size: 13px;
  }
}

/* telefon trzymany poziomo: niski pasek, żeby nie zasłaniał połowy ekranu */
@media (orientation: landscape) and (max-height: 500px) {
  .header__inner {
    padding-block: 4px;
  }

  .logo {
    font-size: 38px;
  }

  .icon-btn {
    width: 42px;
    height: 42px;
  }

  .emoji {
    font-size: 30px;
  }

  .search__input {
    height: 42px;
  }

  .band {
    height: 16px;
  }
}


/* =========================================================
   OKNA (logowanie, koszyk) – wspólny wygląd
   ========================================================= */

html:has(.dialog[open]) {
  overflow: hidden;
}

.dialog {
  padding: 0;
  border: 0;
  background: #fff;
  color: #000;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.dialog[open]::backdrop     { animation: fade-in 260ms ease; }
.dialog.is-closing::backdrop { animation: fade-out 180ms ease-in forwards; }

/* zielony pasek u góry okna */
.dialog-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 24px;
  background: var(--green);
}

.dialog-top__title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.dialog-top__title:focus {
  outline: none;
}

.dialog-top__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.15s ease;
}

.dialog-top__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.dialog-top__close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #000;
  stroke-width: 2.6;
  stroke-linecap: round;
}


/* =========================================================
   LOGOWANIE I REJESTRACJA
   Okno, które otwiera się po kliknięciu ludzika w nagłówku
   ========================================================= */

/* znaczek przy ludziku, kiedy ktoś jest zalogowany */
.icon-btn__badge {
  position: absolute;
  right: 2%;
  bottom: 6%;
  display: none;
  place-items: center;
  width: clamp(16px, 1.9vw, 22px);
  height: clamp(16px, 1.9vw, 22px);
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #000;
}

.icon-btn--account.is-logged-in .icon-btn__badge {
  display: grid;
}

.icon-btn__badge svg {
  width: 75%;
  height: 75%;
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- Okno ----- */

.auth {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  border-radius: 30px;
  overflow-y: auto;
}

.auth[open]      { animation: auth-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.auth.is-closing { animation: auth-out 160ms ease-in forwards; }

@keyframes auth-in  { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes auth-out { to   { opacity: 0; transform: translateY(12px) scale(0.98); } }

.auth__body {
  padding: 22px 24px 0;
}

/* szara ramka "Podgląd: …" (logowanie i zamówienie) */
.demo-note {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f3f3f3;
  color: #444;
  font-size: 13px;
  line-height: 1.45;
}

/* zielona ramka "Zaloguj się, żeby…" – gdy o logowanie prosi koszyk */
.auth__notice {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #e5f7da;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.auth__view {
  animation: fade-in 200ms ease;
}

.auth__view > :last-child:not(.auth__switch) {
  margin-bottom: 24px;
}

.auth__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.auth__title:focus {
  outline: none;
}

.auth__lead {
  margin: 8px 0 0;
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}

/* ----- Przyciski (w stylu "Kategorie") ----- */

.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-pill);
  font-size: 16px;
  line-height: 1.2;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.pill:hover {
  background: #e2e2e2;
}

.pill:active {
  transform: scale(0.98);
}

.pill:disabled {
  cursor: progress;
}

.pill svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.pill--primary {
  background: var(--green);
  font-weight: 700;
}

.pill--primary:hover {
  background: #6fcf46;
}

/* kręciołek, kiedy coś się wysyła */
.pill.is-loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Pola formularza ----- */

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

.auth__form--first {
  margin-top: 20px;
}

/* pole hasła z przyciskiem "Pokaż" */
.password {
  position: relative;
}

.password .field {
  padding-right: 88px;
}

.password__toggle {
  position: absolute;
  top: 50%;
  right: 20px;
  font-size: 14px;
  transform: translateY(-50%);
}

.password__hint {
  color: #666;
  font-size: 13px;
}

.auth__forgot {
  justify-self: center;
  font-size: 14px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
}

.field,
.phone__prefix {
  height: 56px;
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: var(--gray-pill);
  color: #000;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field {
  width: 100%;
  min-width: 0;
  padding: 0 20px;
}

.field::placeholder {
  color: #8a8a8a;
}

.field:focus-visible,
.phone__prefix:focus-visible {
  outline: none;
}

.field:focus,
.phone__prefix:focus {
  border-color: #000;
  background-color: #fff;
}

.field[aria-invalid="true"] {
  border-color: #d32f2f;
}

.phone {
  display: flex;
  gap: 8px;
}

.phone__prefix {
  flex: none;
  width: 110px;
  padding: 0 32px 0 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  cursor: pointer;
}

/* lista do wyboru (np. miejscowość dostawy) w stylu pól formularza */
.checkout select.field {
  padding-right: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.field--code {
  padding: 0 0 0 0.55em;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.55em;
  text-align: center;
}

/* większe pole na kilka linijek (uwagi do zamówienia) */
.field--area {
  height: auto;
  min-height: 84px;
  padding: 14px 20px;
  border-radius: 22px;
  line-height: 1.4;
  resize: vertical;
}

.form-label__optional {
  color: #777;
  font-weight: 400;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #000;
  cursor: pointer;
}

.check input[aria-invalid="true"] {
  outline: 2px solid #d32f2f;
  outline-offset: 2px;
}

.form-error {
  margin: 0;
  color: #d32f2f;
  font-size: 14px;
  font-weight: 700;
}

.form-error:empty {
  display: none;
}

/* ----- Dół okna: "Nie masz konta? Zarejestruj się" ----- */

.auth__switch {
  margin: 24px -24px 0;
  padding: 18px 24px 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
  font-size: 15px;
  text-align: center;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:disabled {
  color: #888;
  text-decoration: none;
  cursor: default;
}

.auth__code-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
}

/* ----- Zalogowany ----- */

.account {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 22px;
  text-align: center;
}

.account .auth__lead {
  margin: 0;
}

/* przycisk "Panel admina" – tylko dla administratora */
.account__admin {
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
}

.account__avatar {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--green);
  font-size: 36px;
  font-weight: 700;
}

.account__avatar svg {
  width: 44px;
  height: 44px;
  fill: #000;
}

.account__avatar.has-initial svg,
.account__avatar:not(.has-initial) span {
  display: none;
}

/* telefon: logowanie wysuwa się od dołu ekranu – łatwo dosięgnąć kciukiem */
@media (max-width: 480px) {
  .auth {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .auth[open]      { animation-name: sheet-in; }
  .auth.is-closing { animation-name: sheet-out; }

  .auth__body {
    padding: 18px 18px env(safe-area-inset-bottom);
  }

  .auth__switch {
    margin-inline: -18px;
  }

  .auth__title {
    font-size: 24px;
  }
}

@keyframes sheet-in  { from { transform: translateY(100%); } }
@keyframes sheet-out { to   { transform: translateY(100%); } }


/* =========================================================
   KOSZYK
   Panel, który wysuwa się z prawej po kliknięciu wózka
   ========================================================= */

/* liczba produktów przy wózku w nagłówku */
.cart-count {
  position: absolute;
  top: 0;
  right: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.cart-count.is-bumping {
  animation: bump 400ms ease;
}

@keyframes bump {
  30% { transform: scale(1.35); }
}

.cart {
  width: min(420px, 100vw);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  border-radius: 30px 0 0 30px;
  overflow: hidden;
}

.cart[open] {
  display: flex;
  flex-direction: column;
  animation: cart-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cart.is-closing {
  animation: cart-out 200ms ease-in forwards;
}

@keyframes cart-in  { from { transform: translateX(100%); } }
@keyframes cart-out { to   { transform: translateX(100%); } }

/* kroki w oknie: koszyk / zamówienie / podziękowanie */
.cart__view {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  scrollbar-width: thin;
}

/* pusty koszyk */
.cart__empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 8px;
  text-align: center;
}

.cart__empty-icon {
  margin-bottom: 6px;
  font-family: var(--font-emoji);
  font-size: 64px;
  line-height: 1;
}

.cart__empty-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.cart__empty-text {
  margin: 0 0 14px;
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}

/* produkty w koszyku */
.cart__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  background: var(--gray);
}

.cart-item__image {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  font-family: var(--font-emoji);
  font-size: 36px;
  line-height: 1;
}

.cart-item__missing {
  margin: -4px 0 8px;
  color: #d32f2f;
  font-size: 13px;
  font-weight: 700;
}

.cart-item__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.cart-item__meta {
  margin: 3px 0 8px;
  color: #666;
  font-size: 13px;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
}

.qty__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gray-pill);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.15s ease;
}

.qty__btn:hover {
  background: #dcdcdc;
}

.qty__value {
  min-width: 26px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.cart-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item__total {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-item__remove {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.15s ease;
}

.cart-item__remove:hover {
  background: rgba(0, 0, 0, 0.08);
}

.cart-item__remove svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #000;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* dół koszyka z przyciskiem "Suma" */
.cart__footer {
  /* env(…) – miejsce na pasek na dole ekranu iPhone'a */
  padding: 14px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid #eee;
}

.cart__sum {
  justify-content: space-between;
  font-size: 18px;
}

/* "Zamawiam z obowiązkiem zapłaty" – dłuższy napis może zawinąć się do 2 linijek */
.cart__sum--order {
  font-size: 16px;
  text-align: left;
}

.cart__sum--order [data-checkout-total] {
  flex: none;
  font-size: 18px;
}

/* ----- Zamówienie: dane do dostawy ----- */

.checkout {
  display: grid;
  align-content: start;
  gap: 14px;
}

.checkout .demo-note {
  margin: 0;
}

.checkout__back {
  justify-self: start;
  font-size: 14px;
}

.checkout__title {
  margin: 8px 0 0;
  font-size: 20px;
}

/* podsumowanie: "2 × Chleb wiejski … 10,98 zł" */
.checkout__items {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--gray);
  font-size: 14px;
  list-style: none;
}

.checkout__items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout__items li span:last-child {
  white-space: nowrap;
}

.checkout__items .checkout__sum {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #d6d6d6;
  font-size: 16px;
  font-weight: 700;
}

/* ----- Podziękowanie po zamówieniu ----- */

.order-done {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding-top: 36px;
  text-align: center;
}

.order-done__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--green);
}

.order-done__icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: #000;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.order-done__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.order-done__number {
  margin: 0;
  color: #555;
  font-size: 15px;
}

.order-done__details {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 14px 0 8px;
  padding: 16px;
  border-radius: 20px;
  background: var(--gray);
  text-align: left;
}

.order-done__details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-done__details dt {
  color: #555;
}

.order-done__details dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.order-done .demo-note {
  margin: 0;
  text-align: left;
}

@media (max-width: 480px) {
  .cart {
    border-radius: 0;
  }

  .cart__body {
    padding: 14px;
  }

  .cart__footer {
    padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   MENU Z KATEGORIAMI
   Panel, który wysuwa się z lewej po kliknięciu ☰
   ========================================================= */

.menu {
  width: min(360px, 88vw);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 auto 0 0;
  border-radius: 0 30px 30px 0;
  overflow: hidden;
}

.menu[open] {
  display: flex;
  flex-direction: column;
  animation: menu-in 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu.is-closing {
  animation: menu-out 200ms ease-in forwards;
}

@keyframes menu-in  { from { transform: translateX(-100%); } }
@keyframes menu-out { to   { transform: translateX(-100%); } }

.menu__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  scrollbar-width: thin;
}

.menu__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 480px) {
  .menu {
    border-radius: 0 24px 24px 0;
  }

  .menu__body {
    padding: 14px 14px calc(20px + env(safe-area-inset-bottom));
  }
}

/* dymek "Dodano do koszyka" */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 900;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border: 2px solid var(--green);
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}


/* =========================================================
   SZCZEGÓŁY PRODUKTU: skład, alergeny, wartość odżywcza
   ========================================================= */

.product-info {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  border-radius: 30px;
  overflow: hidden;
}

.product-info[open] {
  display: flex;
  flex-direction: column;
  animation: auth-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-info.is-closing {
  animation: auth-out 160ms ease-in forwards;
}

.product-info__body {
  flex: 1;
  min-height: 0;
  padding: 18px 22px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.product-info__image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  max-height: 44vh;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--gray);
  font-family: var(--font-emoji);
  font-size: 96px;
  line-height: 1;
}

.product-info__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info__image.is-unavailable {
  filter: grayscale(1);
  opacity: 0.6;
}

.product-info__adult {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-info__name {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.product-info__unit {
  margin: 4px 0 0;
  color: #666;
  font-size: 14px;
}

.product-info__price {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 700;
}

.product-info__desc {
  margin: 10px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.5;
}

.product-info__list {
  display: grid;
  gap: 12px;
  margin: 18px 0 8px;
}

.product-info__row {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--gray);
}

.product-info__row dt {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-info__row dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-line; /* np. wartość odżywcza linijka pod linijką */
}

/* alergeny – wyraźnie */
.product-info__row--allergens {
  background: #fff3cd;
}

.product-info__row--allergens dd {
  font-weight: 700;
}

.product-info__missing {
  margin: 18px 0 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--gray);
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

.product-info__missing a {
  color: #000;
  font-weight: 700;
}

.product-info__footer {
  display: grid;
  padding: 14px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid #eee;
}

.product-info__footer .product-card__add {
  min-height: 52px;
  font-size: 16px;
}

@media (max-width: 600px) {
  .product-info {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .product-info[open]      { animation-name: sheet-in; }
  .product-info.is-closing { animation-name: sheet-out; }

  .product-info__body {
    padding: 14px 16px 8px;
  }

  .product-info__footer {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  }
}


/* =========================================================
   STOPKA: dane sprzedawcy, kontakt, regulamin i polityka
   ========================================================= */

.site-footer {
  padding: 40px max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #000;
  color: #d8d8d8;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 28px 40px;
}

.site-footer__logo {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
}

.site-footer__heading {
  margin: 0 0 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a,
.site-footer .link-btn {
  color: #fff;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.site-footer a:hover,
.site-footer .link-btn:hover {
  color: var(--green);
  text-decoration-color: currentColor;
}

.site-footer__links {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.site-footer__links .link-btn {
  font-size: 14px;
  text-align: left;
}

.site-footer__copy {
  margin-top: 30px !important;
  padding-top: 18px;
  border-top: 1px solid #262626;
  color: #8a8a8a;
  font-size: 13px;
}

/* brakujące dane sklepu – widoczne, żeby admin wiedział, co uzupełnić */
.shop-missing {
  padding: 0 4px;
  border-radius: 4px;
  background: #fff3a8;
  color: #6b5800;
  font-weight: 700;
}


/* =========================================================
   OKIENKO O PLIKACH COOKIE (js/consent.js)
   Pojawia się na dole ekranu zaraz po animacji wejścia.
   "Tylko niezbędne" i "Akceptuję wszystkie" są tak samo widoczne.
   ========================================================= */

.consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 950;
  display: flex;
  justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
}

.consent__box {
  width: min(620px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 20px 22px 16px;
  border-radius: 26px;
  background: #fff;
  color: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  overscroll-behavior: contain;
  animation: consent-in 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes consent-in {
  from { opacity: 0; transform: translateY(40px); }
}

.consent__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

.consent__title:focus {
  outline: none;
}

.consent__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
}

.consent__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #000;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.consent__icon circle {
  fill: #000;
  stroke: none;
}

.consent__text {
  margin: 0;
  color: #333;
  font-size: 14.5px;
  line-height: 1.55;
}

.consent__text a {
  color: #000;
  font-weight: 700;
  text-underline-offset: 3px;
}

.consent__settings {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.consent__option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--gray);
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.consent__option input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #000;
}

.consent__option input:disabled {
  opacity: 0.6;
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.consent__btn {
  min-height: 50px;
  font-size: 15px;
  font-weight: 700;
}

.consent__btn--reject {
  background: #000;
  color: #fff;
}

.consent__btn--reject:hover {
  background: #2b2b2b;
}

/* "Zapisz mój wybór" – na całą szerokość pod dwoma przyciskami */
.consent__btn--save {
  grid-column: 1 / -1;
  box-shadow: inset 0 0 0 2px #000;
  background: #fff;
}

.consent__more {
  display: block;
  margin: 12px auto 2px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .consent {
    padding: 0 8px calc(8px + env(safe-area-inset-bottom));
  }

  .consent__box {
    padding: 18px 16px 14px;
    border-radius: 22px;
  }

  .consent__title {
    font-size: 19px;
  }

  .consent__actions {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   ZAMÓWIENIE: informacje wymagane przy sprzedaży przez internet
   ========================================================= */

/* potwierdzenie pełnoletności, gdy w koszyku jest alkohol albo papierosy */
.checkout__adult {
  padding: 14px 16px;
  border: 2px solid #000;
  border-radius: 18px;
}

.checkout__adult strong {
  display: block;
}

/* akceptacja regulaminu i dobrowolna zgoda na zapamiętanie danych */
.checkout__consent {
  font-size: 14.5px;
}

.checkout__consent a {
  color: #000;
  font-weight: 700;
  text-underline-offset: 3px;
}

.checkout__consent--optional {
  color: #444;
  font-size: 13.5px;
}

/* krótka informacja RODO pod zgodami */
.checkout__privacy {
  margin: 0;
  color: #666;
  font-size: 12.5px;
  line-height: 1.5;
}

.checkout__privacy a {
  color: #333;
  font-weight: 700;
}

/* po zamówieniu: link do regulaminu (do zapisania) */
.order-done__docs {
  margin: 0;
  color: #555;
  font-size: 13.5px;
  line-height: 1.5;
}

.order-done__docs a {
  color: #000;
  font-weight: 700;
}

/* dostawa, płatność, regulamin, odstąpienie od umowy */
.checkout__legal {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f6f6;
  color: #444;
  font-size: 13.5px;
  line-height: 1.5;
}

.checkout__legal p {
  margin: 0;
}

.checkout__legal strong {
  color: #000;
}

.checkout__legal a {
  color: #000;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* cena za kilogram / litr pod wagą na kartce (wymóg dla sklepów spożywczych) */
.product-card__unit-price {
  display: block;
  color: #777;
  font-size: 12px;
}

/* linki w zgodzie przy zakładaniu konta */
.check a {
  color: #000;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ----- Usuwanie konta (okno konta) ----- */

.account__delete-link {
  display: block;
  margin: 18px auto 0;
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.auth__warning {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fdeaea;
  color: #7a1c1c;
  font-size: 14px;
  line-height: 1.5;
}

.pill--danger-solid {
  background: #c62828;
  color: #fff;
}

.pill--danger-solid:hover {
  background: #a82020;
}


/* =========================================================
   Osoby z wyłączonymi animacjami w systemie:
   zamiast przesuwania – samo spokojne zanikanie
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .splash__title span,
  .splash__subtitle,
  .splash__door--photo img {
    animation-name: fade-in;
  }

  .splash__door--brand,
  .splash__door--photo {
    animation-name: fade-out;
  }

  .page,
  .dialog[open],
  .dialog[open]::backdrop,
  .dialog.is-closing,
  .dialog.is-closing::backdrop,
  .auth__view,
  .cart-count.is-bumping,
  .consent__box {
    animation: none;
  }
}

@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
