@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/quicksand.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2013, U+2014, U+2026, U+20AC, U+2212;
}
@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/allura.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013, U+2014, U+2019, U+2026;
}
@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/great-vibes.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2026;
}
@font-face {
  font-family: "Sacramento";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/sacramento.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2026;
}
@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/dancing-script.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0100-017F, U+2013, U+2014, U+2018, U+2019, U+201C, U+201D, U+2026;
}

:root {
  --green: #3f674e;
  --green-2: #32543f;
  --sage: #7eae90;
  --cream: #e4efe6;
  --olive: var(--green);
  --olive-2: var(--green-2);
  --paper: #f6f4ef;
  --paper-2: #eef3ef;
  --card: #ffffff;
  --ink: #1c1c1c;
  --muted: #5c665f;
  --line: rgba(63, 103, 78, 0.16);
  --danger: #8f2a1c;
  --danger-bg: #f8e4df;
  --serif: "Quicksand", system-ui, sans-serif;
  --sans: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Dancing Script", "Sacramento", "Great Vibes", "Allura", cursive;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: linear-gradient(165deg, #e7efe9 0%, #f6f4ef 46%, #f7f6f3 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
}

[hidden] { display: none !important; }

h1, h2, h3, legend { font-family: var(--sans); font-weight: 650; }

h2 { margin: 0 0 6px; font-size: 1.9rem; line-height: 1.15; outline: none; }

a { color: var(--olive-2); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app { min-height: 100vh; }

.mast {
  padding: 4px 0 8px;
  background: transparent;
  color: var(--ink);
  border-bottom: 0;
}

.brand-mark {
  display: block;
  width: min(148px, 42%);
  height: auto;
  margin: 0 0 2px;
}

.mast h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.place {
  margin: 0 0 2px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.slogan {
  margin: 8px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--sage);
  color: var(--ink);
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  line-height: 1.25;
}

.mast .lede { margin: 0 0 12px; color: var(--muted); font-size: 0.95rem; }

.brand-title {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.product-card.is-open .choice {
  background: #f3f7f4;
  box-shadow: inset 0 0 0 1.5px rgba(63, 103, 78, 0.35);
}

.product-blurb {
  margin: 0 0 10px;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
}

.product-blurb .font-note { font-style: italic; }

.product-blurb.pack-included {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-style: normal;
  color: var(--ink);
}

.product-price-row {
  margin: 0 0 8px;
  font-weight: 650;
  font-size: 0.98rem;
}

.brand-lede {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 1.02rem !important;
}

.about-short {
  margin-bottom: 18px !important;
  font-size: 0.9rem !important;
  line-height: 1.55;
  max-width: 42rem;
}

.order-cta {
  display: block;
  width: min(220px, 55%);
  height: auto;
  margin: 0 0 14px auto;
}

.spec { margin: 0; }

.spec div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}

.spec dt { color: var(--muted); }

.spec dd { margin: 0; text-align: right; }

.mast-note { margin: 20px 0 0; color: var(--muted); font-size: 0.86rem; }

main {
  width: 100%;
  max-width: 760px;
  padding: 20px 20px 40px;
}

.step-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress {
  display: flex;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.progress li { flex: none; }

.progress button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.progress button.is-done { color: var(--ink); }

.progress button[aria-current="step"] {
  background: var(--olive);
  color: #ffffff;
  font-weight: 650;
}

.lede { margin: 0 0 18px; color: var(--muted); }

fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }

legend { margin: 0 0 8px; padding: 0; font-size: 1.15rem; }

.choices { display: grid; gap: 8px; }

.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(28, 28, 28, 0.04), inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--olive);
  background: #f3f7f4;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: none;
  accent-color: var(--olive);
}

.choice-copy { display: grid; flex: 1; min-width: 0; }

.choice-name {
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.35;
}

legend a,
.kolekcija h2 a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.text-banner { min-height: 120px; }

.cart-bar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

#open-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(63, 103, 78, 0.28);
  background: #ffffff;
  color: inherit;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

#cart-count {
  min-width: 1.5rem;
  height: 1.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--olive);
  color: #ffffff;
  font-size: 0.85rem;
}

.add-line-actions { margin-top: 14px; }

.added h2 { margin-bottom: 12px; }

.added p { margin: 0 0 6px; font-size: 1.05rem; }

.cart-panel {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cart-group {
  margin: 12px 0 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cart-group:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.cart-group-title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1.05rem;
}

.cart-group-note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.cart-group .cart-item:first-of-type {
  border-top: 0;
}

.cart-item .hint { margin: 2px 0 0; }

.upit-block {
  margin: 16px 0 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(63, 103, 78, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
}

.upit-block .sum-title { margin: 0 0 4px; }

.upit-block .hint { margin: 0; }

.cart-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.cart-remove,
.cart-edit {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(63, 103, 78, 0.28);
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}

#cart-total { margin: 12px 0 0; }

.slogan-banner {
  min-height: 72px;
  margin: 0 0 12px;
  font-family: var(--script);
  font-size: 1.8rem;
  line-height: 1.25;
}

.kolekcija { margin: 0 0 36px; }

.page-back { display: inline-block; margin: 0 0 18px; }

.side > a { display: block; color: inherit; }

.terms p { margin: 0 0 12px; }
.terms h3 { margin: 22px 0 10px; font-size: 1.05rem; }
.terms h4 { margin: 16px 0 8px; font-size: 0.98rem; }
.terms ul, .terms ol { margin: 0 0 12px; padding-left: 1.25rem; }
.terms li { margin: 0 0 6px; }
.terms-table {
  width: 100%;
  margin: 8px 0 14px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.terms-table th,
.terms-table td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.terms-table thead th {
  font-weight: 650;
  color: var(--ink);
}
.terms-table tbody th[scope="row"] {
  width: 34%;
  max-width: 12rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.terms-table td:last-child { font-weight: 500; }
@media (max-width: 640px) {
  .terms-table tbody th[scope="row"] { white-space: normal; width: 40%; }
}

.choice-meta { color: var(--muted); font-size: 0.86rem; }

.choice-script {
  font-family: var(--script);
  font-size: clamp(0.86rem, 1.95vw, 0.94rem);
  line-height: 1.3;
  color: var(--muted);
  font-weight: 400;
  font-variation-settings: "wght" 400;
  letter-spacing: 0.01em;
}

.choice-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--serif);
  font-size: 1.15rem;
  text-align: right;
}

.choice-price .per { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }

.price-now { display: block; }

.base-price {
  display: block;
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  white-space: normal;
}

.choice-meta .base-price,
.price-table .base-price,
.choice-price .base-price {
  text-align: right;
}

.money-with-base {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.cart-item .base-price { margin-top: 4px; }

.sum-row dd .base-price { margin-top: 4px; text-align: right; }

.inset {
  margin: -6px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6f8f6;
  box-shadow: inset 0 0 0 1px var(--line);
}

.field { display: block; margin: 14px 0 6px; font-weight: 650; font-size: 0.92rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(63, 103, 78, 0.22);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

textarea { min-height: 96px; resize: vertical; }

input:focus-visible, textarea:focus-visible, button:focus-visible, .choice:has(input:focus-visible) {
  outline: 3px solid rgba(63, 103, 78, 0.45);
  outline-offset: 2px;
}

[aria-invalid="true"] { border-color: var(--danger) !important; }

.stepper { display: flex; align-items: center; gap: 8px; }

.stepper button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(63, 103, 78, 0.28);
  background: var(--card);
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.stepper button:disabled { opacity: 0.4; cursor: default; }

.stepper input { width: 5.5rem; text-align: center; }

.family-line { margin: 10px 0 0; font-family: var(--serif); font-size: 1.15rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.chips button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(63, 103, 78, 0.22);
  background: var(--card);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.chips button[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: #ffffff; }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; }

.readonly {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 0.92rem;
}

.hint { margin: 8px 0 0; color: var(--muted); font-size: 0.88rem; }

.hint-inline { display: block; color: var(--muted); font-size: 0.85rem; }

.fine-print { margin: 12px 0 0; color: var(--muted); font-size: 0.82rem; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 3px;
  accent-color: var(--olive);
  flex: none;
}

.drop {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  border: 1.5px dashed rgba(63, 103, 78, 0.4);
  background: rgba(255, 255, 255, 0.8);
}

.drop.is-over { background: #e7f0ea; }

.drop label { font-weight: 650; }

.informativna-ponuda {
  margin: 4px 0 12px;
  font-size: 0.98rem;
  line-height: 1.45;
}

#gift-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#photo-multi-hint {
  margin: 0 0 12px;
  font-weight: 650;
}

.photo-set { margin: 18px 0 0; }

.photo-set > h3 { margin: 0 0 4px; font-size: 1.2rem; }

.photo-set .btn { margin-top: 10px; }

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

.photo-slot {
  display: grid;
  grid-template-columns: 2rem 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.photo-slot-n { font-weight: 650; text-align: center; }

.photo-slot img,
.photo-slot-empty {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-slot-empty {
  border: 1.5px dashed rgba(63, 103, 78, 0.4);
  background: rgba(255, 255, 255, 0.8);
}

.slot-add {
  justify-self: start;
  min-height: 40px;
  margin-top: 8px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(63, 103, 78, 0.28);
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}

.photo-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.photo-qty input {
  width: 4.5rem;
  min-height: 40px;
}

.thumbs {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.thumbs li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.thumbs img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--paper-2);
}

.photo-meta { display: grid; gap: 8px; min-width: 0; }

.photo-name {
  margin: 0;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.photo-qty > span { color: var(--muted); font-size: 0.88rem; }

.photo-qty .stepper input { width: 4.2rem; }

.photo-remove {
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
}

.error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--danger);
  background: var(--danger-bg);
}

.pay-note {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 0 16px 16px 0;
  border-left: 4px solid var(--green);
  background: #f3f7f4;
}

.pay-note strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 560;
}

.pay-note p { margin: 0; }

.sum { margin: 8px 0 0; }

.sum-title { margin: 8px 0 0; font-family: var(--serif); font-size: 1.4rem; }

.sum-sub { margin: 0 0 8px; color: var(--muted); }

.sum-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.sum-row dt { color: var(--muted); }

.sum-row dd { margin: 0; overflow-wrap: anywhere; }

.sum-row.is-outline dd { font-family: var(--serif); font-size: 1.2rem; }

.actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  min-height: 48px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  flex: 1;
  border: 0;
  padding: 0 18px;
  font-weight: 650;
}

.btn:disabled { opacity: 0.6; cursor: progress; }

.btn-primary { background: var(--olive); color: #ffffff; }

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

.btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(63, 103, 78, 0.35);
}

.banner {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 8px 0 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--olive);
  color: #ffffff;
  outline: none;
}

.banner h2 { margin: 0; color: inherit; font-size: 1.7rem; }

.banner-kicker {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green);
  font-size: 1.4rem;
}

#saved-note {
  padding: 12px 14px;
  border-radius: 14px;
  background: #e7f0ea;
  overflow-wrap: anywhere;
}

#done > .btn { margin-top: 8px; max-width: 280px; }

.crop-layout {
  display: grid;
  gap: 16px;
  margin: 8px 0 4px;
}

.crop-face, .crop-source {
  margin: 0;
  min-width: 0;
  position: relative;
  z-index: 0;
}

.crop-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.crop-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 14px;
}

.crop-toolbar strong {
  margin: 0;
  min-width: 2.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.crop-nav-pill {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(63, 103, 78, 0.28);
  background: #ffffff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.crop-face figcaption, .crop-source figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

#magnet-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: grab;
  touch-action: none;
  background: transparent;
  filter: drop-shadow(0 14px 28px rgba(63, 103, 78, 0.16));
}

#magnet-canvas:active { cursor: grabbing; }

.crop-source-frame {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
}

.crop-source img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #fff;
  transform-origin: center center;
}

.crop-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(63, 103, 78, 0.28);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.crop-icon-btn:hover,
.crop-nav-pill:hover {
  border-color: var(--olive);
  color: var(--olive);
}

.photo-set-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 4px;
}

.photo-set-head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.photo-set-head .cart-actions {
  margin: 0;
}

.pack-icon {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  padding: 4px;
}

.pack-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pack-mini {
  width: 34px;
  height: 34px;
  flex: none;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  background: #ffffff;
  box-shadow: 0 0 0 1.5px rgba(63, 103, 78, 0.28);
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
}

.pack-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pack-mini-empty {
  background: #f3f7f4;
}

.inset .fine-print {
  margin: 4px 0 12px;
  font-style: italic;
}

.pack-fixed:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pack-photo {
  display: block;
  width: min(420px, 100%);
  height: auto;
  margin: 8px 0 4px;
  border-radius: 16px;
}

.pack-slot {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 8px 0 4px;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px dashed rgba(63, 103, 78, 0.45);
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.pack-slot p { margin: 0; }

.crop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.crop-tools .btn { flex: 0 1 auto; min-width: 0; padding: 0 16px; }

.crop-preview {
  margin-top: 18px;
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
}

.crop-preview h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.crop-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.crop-preview-item {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
}

.crop-preview-item canvas {
  width: 100%;
  max-width: 160px;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.crop-preview-item p {
  margin: 0;
  font-size: 0.85rem;
  word-break: break-word;
}

.machine-cjenik {
  margin: 10px 0 12px;
  padding-left: 1.25rem;
}
.machine-cjenik li { margin: 0 0 6px; }

.price-table { width: 100%; margin: 10px 0 4px; border-collapse: collapse; }

.price-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.price-table td:last-child {
  text-align: right;
  font-weight: 650;
  white-space: normal;
}

.price-table td:last-child .price-now { white-space: nowrap; }

.side-hero-wrap {
  display: block;
  line-height: 0;
}

.side-hero {
  display: block;
  width: 100%;
  height: auto;
}

.side-info { padding: 16px 16px 28px; }

.side > .entrances { padding: 16px 16px 0; }

.entrances { display: grid; gap: 8px; }

.entrances button,
.entrances a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(63, 103, 78, 0.28);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.entrances button:hover,
.entrances a:hover { background: #f3f7f4; }

.entrances .entrance-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border-color: var(--olive);
  background: var(--olive);
  color: #ffffff;
  text-decoration: none;
}

.entrances .entrance-order:hover {
  background: var(--olive-2);
  color: #ffffff;
}

.rangovi { margin-top: 16px; }

.rangovi + .entrances { margin-top: 16px; }

.rangovi h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rang-name { margin: 12px 0 0; font-weight: 700; }

.rangovi .hint { margin-top: 2px; }

.rangovi .price-table { margin-top: 4px; }

.obrt { margin-top: 18px; color: var(--ink); font-size: 0.92rem; }

.obrt p { margin: 0 0 4px; }

.obrt-kicker {
  margin: 0 0 2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.obrt .slogan {
  margin: 2px 0 12px;
  padding-bottom: 10px;
  font-size: 1.7rem;
}

dialog {
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #f7f5f1;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(44, 59, 42, 0.28);
}

dialog::backdrop { background: rgba(44, 59, 42, 0.45); }

.dialog-body { padding: 22px 22px 18px; overflow: auto; max-height: calc(100vh - 36px); }

.dialog-body h2 { margin-bottom: 4px; }

.dialog-body h3 { margin: 18px 0 6px; font-size: 1.05rem; }

.dialog-body p, .dialog-body li { color: var(--ink); }

.dialog-body ol { margin: 8px 0 12px; padding-left: 1.2rem; }

.dialog-body .btn { margin-top: 16px; width: 100%; }

#potvrda {
  width: min(420px, calc(100vw - 24px));
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#potvrda form { margin: 0; }

#potvrda img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  height: auto;
  margin: 0 auto;
  border-radius: 18px;
  object-fit: contain;
}

#potvrda .btn { margin-top: 10px; width: 100%; }

.magnet-sample-body,
.crop-lightbox-body {
  width: min(560px, calc(100vw - 24px));
}

#magnet-sample {
  background: #050505;
  color: #f5f5f5;
}

#magnet-sample h2 { color: #f5f5f5; }

.magnet-sample-media {
  display: grid;
  place-items: center;
  margin-top: 18px;
  min-height: 280px;
  perspective: 1100px;
}

.magnet-hd {
  display: grid;
  place-items: center;
  width: 100%;
}

.magnet-hd-bevel {
  padding: 22px;
  background:
    linear-gradient(150deg, #f2f2f2 0%, #c8c8c8 28%, #7a7a7a 58%, #2b2b2b 100%);
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 6px rgba(0, 0, 0, 0.35);
  transform: rotateX(16deg) rotateY(-24deg) rotateZ(3deg);
  transform-style: preserve-3d;
}

.magnet-hd-bevel canvas {
  display: block;
  width: min(460px, 82vw);
  height: auto;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  image-rendering: auto;
}

.crop-lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.crop-lightbox-media {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.crop-lightbox-media canvas {
  width: min(100%, 360px);
  height: auto;
  border-radius: 12px;
  background: #111;
}

@media (min-width: 800px) {
  .crop-layout { grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr); align-items: start; }
  .crop-source img { max-height: 420px; }
}

@media (max-width: 979px) {
  .app { display: flex; flex-direction: column; }
  .side { display: contents; }
  /* Mobile first screen: poster → buttons (incl. Naruči magnet), then order column. */
  .side-hero-wrap { order: 0; }
  .side > .entrances { order: 1; padding: 14px 16px 0; }
  main { order: 2; }
  .side-info { order: 3; }

  .order-cta {
    width: min(200px, 58%);
    margin: 4px 0 12px auto;
  }

  .brand-title { font-size: 1.4rem; }
}

.pack-preview-body .pack-photo,
.pack-preview-body .pack-slot {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 12px auto 0;
  border-radius: 16px;
}

.pack-preview-body .pack-photo {
  height: auto;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pack-preview-body .pack-slot {
  min-height: 160px;
  padding: 18px;
  background: #f3f7f4;
  box-shadow: inset 0 0 0 1.5px dashed rgba(63, 103, 78, 0.35);
  text-align: center;
}

@media (min-width: 980px) {
  .app {
    display: grid;
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
    align-items: start;
  }
  main { grid-column: 2; grid-row: 1; max-width: none; padding: 28px 36px 56px; }
  .side {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow: auto;
    background: rgba(247, 245, 241, 0.72);
    border-right: 1px solid var(--line);
  }
}
