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

:root {
  --bg: #f6f3f1;
  --text: #2f2f2f;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}


/* === Badge za broj artikala u kosarici (globalno) === */
.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: none;           /* cart-counter.js ga pali/gasi */
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

html {
  scroll-behavior: smooth;
}

.shop-anchor {
  scroll-margin-top: 100px; /* prilagodi visini tvog gornjeg headera */
}

/* ===============================
   O meni - povecani fontovi
   =============================== */

/* Veliki naslov sekcije */
.section-big {
  font-size: 2.4rem !important;
  font-weight: 700;
}

/* Eyebrow / mali naslov iznad */
.about-content h4 {
  font-size: 1.15rem !important;
  letter-spacing: 0.1em;
}

/* Podnaslovi u blokovima */
.about-content h3 {
  font-size: 1.55rem !important;
  font-weight: 700;
}

/* Glavni tekst */
.about-content p {
  font-size: 1.12rem !important;
  line-height: 1.8;
}

/* Tekst ispod velikog naslova na vrhu */
.about-heading p {
  font-size: 1.1rem !important;
  line-height: 1.8;
}

/* Malo razdvoji blokove na desktopu */
.about-layout {
  gap: 4rem !important;
}


.footer {
  text-align: center;
  padding: 0.8rem 0 1rem;   /* unutarnji razmak u footeru */
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 4.8rem;     /* ?? prostor za donju navigaciju */
}
 /* Centriraj naslov i info / praznu poruku na stranici favorita */
  .favorites-page h1,
  .favorites-page .favorites-info,
  .favorites-page .favorites-empty {
    text-align: center;
  }

  .page-wrapper {
  padding: 1.5rem 1rem;
}

.reklamacije-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  max-width: 900px;
  margin: 0 auto;
}

.reklamacije-box ul {
  padding-left: 1.2rem;   /* dovoljno da se vidi tockica, ali ne izlazi */
  margin-left: 0;         /* reset defaulta */
}

.reklamacije-box li {
  padding-left: 0.2rem;   /* lagano poravnanje */
  line-height: 1.55;
  color: #444;
}

.reklamacije-box ul,
.reklamacije-box ol {
  padding-left: 1.2rem;   /* uredan, moderan offset */
  margin-left: 0;         /* makni ogromni default margin */
}

/* === COOKIE BANNER - UNIKATLAROSA === */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.12);
  padding: 1rem 1.25rem;
  display: none; /* JS po potrebi postavi na block */
  font-size: 0.95rem;
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner__title {
  font-weight: 600;
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.cookie-banner__text {
  margin: 0;
  line-height: 1.45;
}

.cookie-banner__links {
  margin: 0.35rem 0 0;
}

.cookie-banner__links a {
  color: #d25a7a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Gumbi */

.cookie-btn {
  cursor: pointer;
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  border: 1px solid #d25a7a;
  background: #fff;
  color: #d25a7a;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.cookie-btn--primary {
  background: #d25a7a;
  color: #fff;
}

.cookie-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* "Upravljanje postavkama" - da izgleda kao link, ne kao ruzan button */

.cookie-banner__preferences {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
  color: #555;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.cookie-banner__preferences:hover {
  color: #d25a7a;
}

/* Layout na vecim ekranima */

@media (min-width: 720px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__content {
    max-width: 70%;
  }

  .cookie-banner__actions {
    align-items: flex-end;
  }
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* tekst da se ne razlijeva van */
p, label, input, textarea, button, .hint, .helper-text {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* === Utility klase za zamjenu inline stilova === */
.grid-span-all { grid-column: 1 / -1; }
.mt-075 { margin-top: 0.75rem; }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.ml-auto { margin-left: auto; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.maxw-600 { max-width: 600px; margin-inline: auto; }
.maxw-900 { max-width: 900px; margin-inline: auto; }
.text-muted-666 { color: #666; }
.text-muted-555 { color: #555; }
.text-error { color: #e53935; }
.fs-085 { font-size: 0.85rem; }
.fs-09 { font-size: 0.9rem; }
.fw-600 { font-weight: 600; }
.is-hidden { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #323232;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  font-size: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.intro-paragraph {
  margin: 0 1rem 1.5rem;
  color: #555;
  max-width: 720px;
}

.products-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  font-weight: 600;
  color: #a74e9b;
}

.saving-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #a74e9b;
  border-radius: 12px;
  z-index: 9999;
}

.small-muted {
  color: #777;
  display: block;
  margin-top: 6px;
}

.profile-header-block {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-avatar-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.5rem auto;
  border-radius: 50%;
  background: #f4b6c2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}

.profile-email-display {
  font-size: 0.95rem;
  color: #666;
}

.auth-logout-btn--neutral {
  margin-top: 0.75rem;
  background: #ffffff;
  color: #444;
  border: 1px solid #999;
}

.auth-logout-btn--danger {
  margin-top: 0.75rem;
  background: #fff;
  color: #c62828;
  border: 1px solid #c62828;
}

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

.pp-order-card {
  position: relative;
}

.pp-order-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: #999;
}

.pp-order-items {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0d3d3;
}

.pp-order-item-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.pp-order-item-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.pp-order-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-order-item-text {
  flex: 1 1 auto;
}

.pp-order-item-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.pp-order-item-meta {
  font-size: 0.85rem;
  color: #666;
}

.pp-review-btn {
  margin-top: 0.5rem;
  border-radius: 999px;
  border: 1px solid #d5bfdc;
  background: #fff;
  color: #5b2f73;
  font-size: 0.82rem;
  padding: 0.3rem 0.9rem;
  cursor: pointer;
}

.pp-fill-order-btn {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #d5bfdc;
  background: #fff;
  color: #5b2f73;
  cursor: pointer;
}

.pp-tracking-info {
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.pp-tracking-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.2rem;
}

.pp-status-block {
  margin-top: 0.5rem;
}
