/* ==========================================================================
   Prodaj predmet: the six steps (redesign 2026-10-15, Prodaj.dc.html and
   ProdajMobile.dc.html). Built from tokens.css only.

   Loaded on every page by base.html.twig, before account.css and sell.css,
   which the wizard shell adds after it. So every rule that has to win over
   those two is scoped under `.sw` (the wizard root) or `body`, and the new
   markup uses its own `sw…` classes rather than the old `acc…` ones.
   ========================================================================== */

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

/* The masthead keeps the logo and shows the draft status and "Spremi i
   izađi" beside it; search and the account menu step aside. */
body:has(.sw) .masthead .searchbar,
body:has(.sw) .usernav > :not(.sellhead) { display: none !important; }
body:has(.sw) .masthead__inner { justify-content: space-between; }
body:has(.sw) .usernav { margin-left: auto; }

.sellhead { display: flex; align-items: center; gap: var(--space-6); }
.sellhead__status {
    display: inline-flex; align-items: center; gap: var(--space-2);
    margin: 0; min-height: 20px;
    font: 500 13px/1.2 var(--font-sans); color: rgba(255, 255, 255, .82);
}
.sellhead__status.is-saved::before {
    content: ""; width: 14px; height: 14px; flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FD3A3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sellhead__status.is-failed { color: var(--peach-200); }
.sellhead__exit, .sellhead__exit:visited {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-1);
    border: 0; background: none; cursor: pointer;
    font: 700 15px/1 var(--font-sans); color: #fff !important; text-decoration: none;
}
.sellhead__exit:hover { text-decoration: underline; }
.sellhead__exit:focus-visible { outline: 2px solid var(--peach-200); outline-offset: 2px; border-radius: var(--radius-sm); }

/* The phone bar replaces the masthead below 700 px (base `appbar` block). */
.sellbar { display: none; }

/* ----------------------------------------------------------------- shell */

body .sw { max-width: none; margin: var(--space-8) 0 var(--space-12); }
body .sw .sell__head { margin-bottom: 0; }
body .sw .sellsteps ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
body .sw .sell__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); }
body .sw .sellaside { top: var(--space-6); }
body .sw .sellerrors, body .sw .sellflashes { margin-bottom: var(--space-4); }
.quality__count { display: none; }

/* ------------------------------------------------------------- step card */

.swcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.swcard__head { padding: var(--space-6) var(--space-6) 0; }
.swcard__title { margin: 0; font: 800 24px/30px var(--font-sans); color: var(--ink); letter-spacing: -0.01em; }
.swcard__lede { margin: var(--space-1) 0 0; font: 500 15px/1.5 var(--font-sans); color: var(--muted); }
.swcard__body { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-5) var(--space-6) var(--space-6); }

/* The footer: "Natrag" left, "Dalje: …" right; submit buttons first in the
   markup so Enter posts "Dalje". */
.swfoot {
    display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
}
.swfoot__next { display: flex; flex-direction: row-reverse; align-items: center; gap: var(--space-3); margin-left: auto; }
.sw .swfoot .btn { min-height: 48px; border-radius: var(--radius-md); }
.sw .swfoot__back { padding: 0 var(--space-5) 0 var(--space-4); }
.swfoot__primary svg { margin-right: -2px; }

/* --------------------------------------------------------------- fields */

.swfield { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.swfield__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.swfield__labelwrap { display: inline-flex; align-items: center; gap: var(--space-2); }
.swfield__label, .sw .selllabel > label {
    padding: 0; margin: 0;
    font: 700 14px/1.3 var(--font-sans); color: var(--ink);
}
.sw legend.swfield__label { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); float: none; }
.swfield__sublabel { font: 600 13px/1.3 var(--font-sans); color: var(--ink-2); }
.swfield__optional { font-weight: 500; color: var(--muted); }
.swfield__count { font: 600 12px/1 var(--font-sans); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.swfield__hint { margin: 0; font: 500 13px/1.45 var(--font-sans); color: var(--muted); }
.swfield__hint--warn { color: var(--amber-800); }
.swfield__hint--ok { color: var(--green-700); }
.sw .selllabel { margin: 0; }

.sw .swinput {
    width: 100%; min-height: 52px; padding: 0 var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--surface); color: var(--ink);
    font: 500 17px/1.3 var(--font-sans);
    box-shadow: none;
}
.sw .swinput::placeholder { color: var(--muted); }
.sw .swinput:focus { outline: 2px solid var(--blue-700); outline-offset: 0; border-color: var(--blue-700); }
.sw .swinput--area { min-height: 240px; padding: var(--space-4); resize: vertical; font: 500 16px/1.55 var(--font-sans); }
.swfield--invalid .swinput, .sw .swinput[aria-invalid="true"] { border-color: var(--red-700); }
.sw .accform__error { margin: 0; color: var(--red-700); font: 600 13px/1.4 var(--font-sans); }

/* Money: the € inside the box, on the right. */
.swmoney { position: relative; display: block; }
.swmoney .swinput { padding-right: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
.swmoney__unit { position: absolute; right: var(--space-4); top: 50%; transform: translateY(-50%); font: 700 16px/1 var(--font-sans); color: var(--ink-2); pointer-events: none; }
.swmoney--narrow { max-width: 240px; }

/* ----------------------------------------------- option cards (radio/check) */

.swcards { display: grid; gap: var(--space-3); }
.swcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.swopt { position: relative; display: flex; }
.swopt__input, .swpill__input {
    position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none;
}
.swopt__face {
    flex: 1; display: flex; align-items: flex-start; gap: var(--space-3);
    min-height: 64px; padding: var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--surface); cursor: pointer;
    transition: border-color var(--duration-fast), background-color var(--duration-fast);
}
.swopt__face:hover { border-color: var(--ink-2); }
.swopt__mark {
    flex: none; width: 20px; height: 20px; margin-top: 1px;
    border: 1.5px solid var(--border-strong); border-radius: 999px; background: var(--surface);
}
.swopt--check .swopt__mark { border-radius: 5px; }
.swopt__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.swopt__name { font: 700 16px/1.3 var(--font-sans); color: var(--ink); }
.swopt__desc { font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
.swopt__desc--short { display: none; }
.sw .swopt__input:checked + .swopt__face {
    border-color: var(--blue-700);
    box-shadow: inset 0 0 0 1px var(--blue-700);
    background: var(--blue-100);
}
.swopt__input:checked + .swopt__face .swopt__mark {
    border-color: var(--blue-700);
    background: var(--blue-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.swopt__input:focus-visible + .swopt__face,
.swpill__input:focus-visible + .swpill__face { outline: 2px solid var(--blue-700); outline-offset: 2px; }
/* Locked (a live or announced lot): a dashed edge and the ground behind,
   never opacity, so the text keeps its own colour. */
.swopt__input:disabled + .swopt__face, .swpill__input:disabled + .swpill__face {
    border-style: dashed; background: var(--ground); cursor: not-allowed;
}
.swopt__input:disabled + .swopt__face:hover, .swpill__input:disabled + .swpill__face:hover { border-color: var(--border-strong); }
.swpill__input:disabled:checked + .swpill__face { border-style: solid; }

/* ------------------------------------------------------------- pills */

.swpills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.swpill { position: relative; display: inline-flex; }
.swpill__face {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 var(--space-5);
    border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
    background: var(--surface); color: var(--ink);
    font: 600 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap;
}
.swpill__face--lg { font-size: 16px; }
.swpill__face:hover { border-color: var(--ink-2); }
.sw .swpill__input:checked + .swpill__face { background: var(--blue-100) !important; border-color: var(--blue-700) !important; color: var(--blue-700) !important; }

/* -------------------------------------------------------------- category */

/* Kategorija-*.dc.html (2026-10-24): suggestion cards, a search, and
   "Pregledaj sve" as three columns or, below 768 px, a bottom sheet. All of
   it is drawn by `category_choice_controller.js`. */
.swcat [hidden] { display: none !important; }
.swcat__needleaf { font: 700 13px/1.3 var(--font-sans); color: var(--red-700); }
.swcat__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin-top: calc(-1 * var(--space-2)); }
.sw .swcat__back { min-height: 32px; padding: 0; font: 800 14px/1 var(--font-sans); }
.swcat__ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.swcat__cards { display: flex; flex-direction: column; gap: var(--space-2); }
.swsug {
    position: relative; display: flex; align-items: center; gap: 14px;
    min-height: 56px; padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--surface); cursor: pointer;
}
.swsug:hover { border-color: var(--ink-2); }
.swsug__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.swsug:has(.swsug__input:checked) { background: var(--blue-100); border-color: var(--blue-700); box-shadow: inset 0 0 0 1px var(--blue-700); }
.swsug:has(.swsug__input:focus-visible) { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.swsug__body { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--space-3); }
.swsug__chip {
    margin-left: auto; padding: 3px 8px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
    font: 700 12px/16px var(--font-sans); color: var(--blue-700); white-space: nowrap;
}
.swradio { flex: none; box-sizing: border-box; width: 20px; height: 20px; border: 2px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); }
.swsug__input:checked + .swradio, [aria-pressed="true"] > .swradio { border: 6px solid var(--blue-700); }

/* "Numizmatika › Kovanice › Moderni novac", the leaf bold. */
.swpath { font: 600 15px/22px var(--font-sans); color: var(--ink-2); }
.swpath b { font-weight: 800; color: var(--ink); }
.swpath__sep { color: var(--muted); }
.swpath__hit { padding: 0; border-radius: 2px; background: var(--amber-100); color: inherit; }

.swcat__or { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-1) 0; font: 700 13px/1 var(--font-sans); color: var(--muted); }
.swcat__or::before, .swcat__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.swcat__row { display: flex; align-items: center; gap: var(--space-3); }
.sw .swcat__all { gap: var(--space-2); min-height: 48px; padding: 0 var(--space-5); border-radius: var(--radius-md); font: 800 15px/1 var(--font-sans); white-space: nowrap; }
.swcat__all-long { display: none; }

/* The search box and its listbox (three of them: here, in the browser and
   in the sheet). */
.swsearch { position: relative; flex: 1; min-width: 0; }
.swsearch__ic { position: absolute; top: 50%; left: var(--space-4); transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.sw .swsearch__input {
    width: 100%; height: var(--input-height); padding: 0 var(--space-4) 0 46px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface);
    font: 500 16px/1 var(--font-sans); color: var(--ink); box-shadow: none; -webkit-appearance: none; appearance: none;
}
.sw .swsearch__input::placeholder { color: var(--muted); }
.sw .swsearch__input:focus { outline: 2px solid var(--blue-700); outline-offset: 0; border-color: var(--blue-700); }
.swsearch__input::-webkit-search-cancel-button { display: none; }
.swsearch__results {
    position: absolute; z-index: 20; top: calc(100% + var(--space-1)); left: 0; right: 0;
    max-height: 360px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-hover);
}
.swsearch__option { padding: 10px var(--space-3); border-radius: 8px; cursor: pointer; }
.swsearch__option .swpath { font-size: 14px; line-height: 20px; }
.swsearch__option:hover, .swsearch__option[aria-selected="true"] { background: var(--blue-100); }
.swsearch__empty { padding: 10px var(--space-3); font: 600 14px/20px var(--font-sans); color: var(--muted); }

/* "Pregledaj sve" on a desktop (Kategorija-pregled). */
.catbrowse { overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.catbrowse__search { padding: var(--space-3); border-bottom: 1px solid var(--border); }
.sw .catbrowse .swsearch__input { height: 44px; font-size: 15px; }
.catbrowse__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 336px; }
.catbrowse__col {
    display: flex; flex-direction: column; gap: 2px; overflow-y: auto;
    margin: 0; padding: 6px; list-style: none; border-right: 1px solid var(--border);
}
.catbrowse__col:nth-child(2) { background: color-mix(in srgb, var(--ground) 50%, var(--surface)); }
.catbrowse__col:last-child { border-right: 0; }
.catbrowse__row {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 var(--space-3);
    border: 0; border-radius: 8px; background: none; text-align: left;
    font: 600 15px/1.25 var(--font-sans); color: var(--ink-2); cursor: pointer;
}
.catbrowse__row:hover { background: var(--ground); }
.catbrowse__row:focus-visible { outline: 2px solid var(--blue-700); outline-offset: -2px; }
.catbrowse__row[aria-pressed] { min-height: 40px; }
.catbrowse__row .swradio { width: 18px; height: 18px; }
.catbrowse__row[aria-pressed="true"] .swradio { border-width: 5px; }
.catbrowse__row.is-open, .catbrowse__row[aria-pressed="true"] { background: var(--blue-100); color: var(--blue-700); font-weight: 800; }
.catbrowse__row:has(.catbrowse__ico) { padding: 0 10px; }
.catbrowse__row:has(.catbrowse__ico).is-open { background: none; color: var(--ink); }
.catbrowse__row:has(.catbrowse__ico).is-open:hover { background: var(--ground); }
.catbrowse__ico { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; }
.catbrowse__ico .icon { width: 16px; height: 16px; }
.catrow__name { min-width: 0; }
.catrow__chev { margin-left: auto; color: var(--muted); }
.catbrowse__row.is-open .catrow__chev { color: inherit; }
.catbrowse__foot { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--border); background: var(--ground); }
.catbrowse__key { font: 600 14px/20px var(--font-sans); color: var(--muted); }
.catbrowse__foot .swpath { font-size: 14px; }
.sw .catbrowse__confirm { margin-left: auto; min-height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-md); font-weight: 800; }

/* "Pregledaj sve" below 768 px (Kategorija-mobile-sheet): a modal
   `<dialog>`, one level at a time. */
.catsheet {
    position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; height: min(726px, 86dvh); max-height: none;
    margin: 0; padding: 0; border: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sheet); font-family: var(--font-sans);
}
.catsheet[open] { display: flex; flex-direction: column; }
.catsheet::backdrop { background: rgba(11, 37, 64, .45); }
.catsheet__grab { flex: none; width: 40px; height: 5px; margin: var(--space-2) auto 0; border-radius: var(--radius-pill); background: var(--border-strong); }
.catsheet__head { flex: none; display: flex; align-items: center; padding: var(--space-1) var(--space-2) 0 var(--space-4); }
.catsheet__title { margin: 0; font: 800 20px/1.2 var(--font-sans); color: var(--ink); }
.catsheet__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; color: var(--ink); cursor: pointer; }
.catsheet__search { flex: none; padding: var(--space-2) var(--space-4) var(--space-3); }
.sw .catsheet .swsearch__input { height: 48px; }
.catsheet__trail { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); padding: 0 var(--space-4) 10px var(--space-2); font: 700 14px/1.2 var(--font-sans); }
.catsheet__crumb { display: flex; align-items: center; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--blue-700); font: inherit; cursor: pointer; }
.catsheet__crumb:first-child { padding: 0 var(--space-2); }
.catsheet__here { display: flex; align-items: center; min-height: 44px; padding: 0 6px; color: var(--ink); }
.catsheet__here:first-child { padding: 0 var(--space-2); }
.catsheet__list { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.catsheet__row {
    display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 52px; padding: 0 var(--space-4);
    border: 0; border-top: 1px solid var(--border); background: none; text-align: left;
    font: 600 16px/1.25 var(--font-sans); color: var(--ink); cursor: pointer;
}
.catsheet__row[aria-pressed="true"] { background: var(--blue-100); color: var(--blue-700); font-weight: 800; }
.catsheet__row:focus-visible, .catsheet__crumb:focus-visible, .catsheet__close:focus-visible { outline: 2px solid var(--blue-700); outline-offset: -2px; }
.catsheet__foot { flex: none; padding: var(--space-3) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); }
.sw .catsheet__pick { min-height: 48px; border-radius: var(--radius-md); font-weight: 800; }

/* The chosen category on the preview card: root › leaf. */
.lotcard__cat { margin: 0 0 var(--space-1); font: 700 12px/16px var(--font-sans); color: var(--muted); }
.lotcard__cat[hidden] { display: none; }

@media (max-width: 767px) {
    .swsug:has(.swsug__chip) { align-items: flex-start; }
    .swsug:has(.swsug__chip) .swradio { margin-top: 2px; }
    .swsug__body { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
    .swsug__chip { margin-left: 0; }
    .swsug .swpath { font-size: 14px; line-height: 20px; }
    .swcat__help-more { display: none; }
    .swcat__or { display: none; }
    .swcat__row { flex-direction: column; align-items: stretch; gap: 10px; margin-top: var(--space-1); }
    .sw .swcat__all { width: 100%; }
    .swcat__all-short { display: none; }
    .swcat__all-long { display: inline; }
    .catbrowse { display: none !important; }
}

/* -------------------------------------------------------------- photos */

.swupload { margin: 0; }
.swdrop {
    display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
    padding: var(--space-8) var(--space-6);
    border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg);
    background: var(--surface); text-align: center;
}
.swdrop.is-dragover { border-color: var(--blue-700); background: var(--blue-100); }
.swdrop__icon { color: var(--blue-700); }
.swdrop__title { margin: 0; font: 700 15px/1.3 var(--font-sans); color: var(--ink); }
.swdrop__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.swdrop__pick {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-5);
    border-radius: var(--radius-md); background: var(--blue-700); color: #fff;
    font: 700 15px/1 var(--font-sans); cursor: pointer;
}
.swdrop__pick:hover { background: var(--navy-800); }
.swdrop__input:focus-visible ~ .swdrop__pick { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.swdrop__pick.is-disabled, .swdrop__big.is-disabled { opacity: .55; pointer-events: none; }
.swdrop__rules, .swdrop__note { margin: 0; font: 500 12px/1.45 var(--font-sans); color: var(--muted); }
.swdrop__phone { display: none; }
/* "Povucite fotografije ovdje" already says what the drop note would. */
.swdrop__note[data-photo-upload-target="dropnote"] { display: none; }
.swupload__submit { margin: var(--space-3) 0 0; text-align: center; }
.swupload__submit [hidden], .swupload__submit:has(> [hidden]) { display: none; }
/* JavaScript running: the upload starts on its own, so the no-script button
   would only repeat "Iz galerije" (MOBILE-FIXES B12). It returns when the
   controller restores it after a failed automatic upload. */
html.js .swupload__submit:not(:has(> .is-restored)) { display: none; }
/* No photograph yet: no empty grid and no gaps around it. */
.sw .swphotos:not(:has([data-photo-id])) { display: none; }

.lotcard__price[hidden] { display: none; }

/* The meter as a <progress> (value = checks met). */
.sw .swmeter {
    display: block; width: 100%; border: 0; color: var(--green-600);
    -webkit-appearance: none; appearance: none;
}
.sw .swmeter::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
.sw .swmeter::-webkit-progress-value { background: var(--green-600); border-radius: 999px; }
.sw .swmeter::-moz-progress-bar { background: var(--green-600); border-radius: 999px; }

.swphotos__hint { margin: 0 0 var(--space-2); font: 500 13px/1.4 var(--font-sans); color: var(--muted); }
.sw .swphotos__list {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3);
    margin: 0; padding: 0; list-style: none;
}
.swphotos__addcell { display: flex; }
/* With no photograph yet the drop zone above is the only way in. */
.sw .swphotos__list:not(:has([data-photo-id])) { display: none; }
.swphotos__addcell > .swphotos__add { flex: 1; }
.sw .swshot {
    position: relative; aspect-ratio: 1; margin: 0; padding: 0;
    border: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--tone-slate);
    box-shadow: none;
}
.sw .sellgallery--sortable .swshot { cursor: grab; }
.swshot__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw .swshot__badge {
    position: absolute; left: var(--space-2); bottom: var(--space-2); margin: 0;
    padding: 4px 8px; border-radius: var(--radius-sm);
    background: var(--navy-900); color: #fff; font: 700 12px/1 var(--font-sans);
    text-transform: none; letter-spacing: 0;
}
.sw .swshot__badge[hidden] { display: none; }
.swshot__remove, .swshot__promote { position: absolute; margin: 0; }
.swshot__remove { top: 2px; right: 2px; }
.swshot__remove button {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 0; background: none; cursor: pointer; color: var(--ink);
}
.swshot__remove button::before {
    content: ""; position: absolute; inset: 7px; border-radius: 999px; background: var(--surface);
    box-shadow: 0 1px 4px rgba(18, 26, 43, .18);
}
.swshot__remove svg { position: relative; }
.swshot__promote { left: var(--space-1); bottom: var(--space-1); }
.swshot__promote[hidden] { display: none; }
/* The design shows only × and "Naslovna": the cover pill appears when the
   tile is pointed at or holds focus, and stays for a device without hover. */
@media (hover: hover) {
    .swshot__promote { opacity: 0; transition: opacity var(--duration-fast); }
    .swshot:hover .swshot__promote, .swshot:focus-within .swshot__promote { opacity: 1; }
}
.sw .swshot__promote button {
    min-height: 44px; padding: 0 var(--space-2); border: 0; background: none; cursor: pointer;
    font: 700 12px/1 var(--font-sans); color: var(--ink) !important; text-transform: none;
}
.swshot__promote button::before {
    content: ""; position: absolute; inset: 9px 0; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .92); z-index: 0;
}
.swshot__promote button { position: relative; isolation: isolate; }
.swshot__promote button { z-index: 0; }
.swshot__promote button > * { position: relative; }
.swshot__promote svg { display: none; }
.swshot.sellshot--removing { opacity: .5; }
.swphotos__add {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
    aspect-ratio: 1; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md);
    color: var(--blue-700); font: 700 14px/1 var(--font-sans); cursor: pointer;
}
.swphotos__add:hover { border-color: var(--blue-700); background: var(--blue-100); }
.swphotos__count { display: none; margin: 0; font: 500 13px/1.4 var(--font-sans); color: var(--muted); }

.swtips { padding: var(--space-5); border-radius: var(--radius-md); background: var(--ground); }
.swtips__title { margin: 0 0 var(--space-3); font: 800 15px/1.3 var(--font-sans); color: var(--ink); }
.sw .swtips ul { margin: 0; padding-left: var(--space-5); list-style: disc outside; columns: 2; column-gap: var(--space-8); }
.sw .swtips li { display: list-item; list-style: inherit; margin: 0 0 var(--space-2); font: 500 13px/1.45 var(--font-sans); color: var(--ink-2); break-inside: avoid; }
.swtips--short { display: none; }

/* ------------------------------------------------------------ description */

.swasks[hidden] { display: none; }
.swasks { display: flex; flex-direction: column; gap: var(--space-2); }
.swasks__list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.swask {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: 44px; padding: 0 var(--space-4);
    border: 0; border-radius: var(--radius-pill); background: var(--blue-100);
    color: var(--navy-900); font: 700 14px/1 var(--font-sans); cursor: pointer;
}
.swask:hover { box-shadow: inset 0 0 0 1px var(--blue-700); }
.swask:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }

/* ----------------------------------------------------------------- price */

.swprices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
.swprice--fixed { display: none; }
.swprice--bin { display: none; }
.sw:has(#mode-auction_bin:checked) .swprice--bin { display: flex; }
.sw:has(#mode-fixed:checked) .swprice--start,
.sw:has(#mode-fixed:checked) .swprice--reserve { display: none; }
.sw:has(#mode-fixed:checked) .swprice--fixed { display: flex; }
.swdur__fixed { display: none; }
.sw:has(#mode-fixed:checked) .swdur__fixed { display: inline; }
.sw:has(#mode-fixed:checked) .swdur__auction { display: none; }
.sw:has(#mode-fixed:checked) .swends__tip { display: none; }

.swends { display: none; margin: 0; font: 500 13px/1.45 var(--font-sans); color: var(--muted); }
.swends b { color: var(--ink); font-weight: 800; white-space: nowrap; }
.sw:has(#dur-1:checked) .swends[data-days="1"],
.sw:has(#dur-3:checked) .swends[data-days="3"],
.sw:has(#dur-5:checked) .swends[data-days="5"],
.sw:has(#dur-7:checked) .swends[data-days="7"],
.sw:has(#dur-10:checked) .swends[data-days="10"] { display: block; }
/* Scheduled: the line is from the stored start, which the date boxes may
   no longer say; better none than a wrong one. */
.sw:has(#start-scheduled:checked):has(#start_date:not([value=""])) .swends { display: none; }

.swstart__when { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.swstart:has(#start-now:checked) .swstart__when { display: none; }
.swstart__pair { display: flex; flex-direction: column; gap: var(--space-1); min-width: 180px; }
.swstart__pair label { font: 600 13px/1.3 var(--font-sans); color: var(--ink-2); }

.swnote {
    margin: 0; padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md); background: var(--ground);
    font: 500 13px/1.6 var(--font-sans); color: var(--ink-2);
}
.swnote a { color: var(--blue-700); font-weight: 700; }
.sw .swlocked { margin: 0; }
.sw .swlock { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-6); }

/* -------------------------------------------------------------- shipping */

.swshipprice__amount { display: none; margin-top: var(--space-2); }
.swshipprice:has(#shipprice-fixed:checked) .swshipprice__amount,
.swshipprice.swfield--invalid .swshipprice__amount { display: flex; }
.swpair { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-4); }

/* ---------------------------------------------------------------- review */

.swsummary { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-md); }
.swsummary__row {
    display: grid; grid-template-columns: 156px minmax(0, 1fr) auto; gap: var(--space-4);
    align-items: start; padding: var(--space-2) var(--space-4);
    border-top: 1px solid var(--border);
}
.swsummary__row:first-child { border-top: 0; }
.swsummary dt { padding-top: 10px; font: 700 13px/1.3 var(--font-sans); color: var(--ink-2); }
.swsummary dd { margin: 0; padding: 10px 0; font: 600 15px/1.5 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
.swsummary__long { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 4.5em; }
.swsummary__note { font-weight: 500; color: var(--muted); }
.sw .swsummary__action { padding: 0; }
.swsummary__edit, .swsummary__edit:visited {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-1);
    font: 700 13px/1 var(--font-sans); color: var(--blue-700);
}
.sw .reviewthumbs { margin-top: var(--space-2); }

.swpublish { margin: 0; }
.swconfirm { display: flex; align-items: flex-start; gap: var(--space-3); padding: 0 var(--space-6) var(--space-5); }
.swconfirm__input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-700); }
.swconfirm label { font: 500 15px/1.45 var(--font-sans); color: var(--ink); cursor: pointer; }
.swconfirm--invalid label { color: var(--red-700); }
.sw .swconfirm__error { padding: 0 var(--space-6) var(--space-4); }

.swdiscard { display: flex; justify-content: flex-start; padding: var(--space-3) 0 0; }
.swdiscard form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; }
.sw .swdiscard__button { color: var(--red-700) !important; padding-left: 0; }
.swdiscard__hint { font: 500 13px/1.4 var(--font-sans); color: var(--muted); }

/* ======================================================== tablet */

@media (max-width: 1000px) {
    body .sw .sell__layout { grid-template-columns: minmax(0, 1fr); }
}

/* ======================================================== phone */

@media (max-width: 700px) {
    /* The phone bar: ×, the step's name and "Korak 2 od 6", the status, and
       a progress bar along the bottom. */
    .sellbar {
        position: sticky; top: 0; z-index: 30;
        display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-2);
        padding: var(--space-2) var(--space-4) 0 var(--space-2);
        background: var(--surface); border-bottom: 1px solid var(--border);
    }
    .sellbar__close {
        display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
        border: 0; background: none; color: var(--ink); cursor: pointer;
    }
    .sellbar__close:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 0; border-radius: var(--radius-sm); }
    .sellbar__titles { min-width: 0; }
    .sellbar__title { margin: 0; font: 800 17px/1.2 var(--font-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sellbar__step { margin: 2px 0 0; font: 700 12px/1.2 var(--font-sans); color: var(--muted); }
    .sellbar__status { margin: 0; font: 700 12px/1.2 var(--font-sans); color: var(--green-700); white-space: nowrap; }
    .sellbar__status.is-saving { color: var(--muted); }
    .sellbar__status.is-failed { color: var(--amber-800); }
    .sellbar__progress {
        grid-column: 1 / -1; display: block; width: calc(100% - var(--space-2)); height: 4px; margin: var(--space-2) 0 var(--space-3) var(--space-2);
        border: 0; border-radius: 999px; background: var(--border); color: var(--navy-900); overflow: hidden;
        -webkit-appearance: none; appearance: none;
    }
    .sellbar__progress::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
    .sellbar__progress::-webkit-progress-value { background: var(--navy-900); border-radius: 999px; }
    .sellbar__progress::-moz-progress-bar { background: var(--navy-900); border-radius: 999px; }

    body:has(.sw) .sitefoot { display: none; }
    body .sw { margin: var(--space-4) 0 0; padding-bottom: 96px; }
    body .sw .sell__head, body .sw .sellsteps { display: none; }
    body .sw .sellaside { display: none; }

    .swcard { border: 0; border-radius: 0; background: none; }
    .swcard__head { display: none; }
    .sw--fotografije .swcard__head { display: block; padding: 0; }
    .sw--fotografije .swcard__title { display: none; }
    .sw--fotografije .swcard__lede { margin: 0; font-size: 16px; color: var(--ink-2); }
    .swcard__body { padding: var(--space-4) 0 var(--space-4); gap: var(--space-5); }
    /* The first field starts right under the bar (ProdajMobile--osnovno). */
    .sw:not(.sw--fotografije) .swcard__body { padding-top: 0; }
    .sw .swinput { font-size: 17px; }

    /* The footer sticks to the bottom: a square ‹ and "Dalje". */
    .swfoot {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
        background: var(--surface); border-top: 1px solid var(--border);
        flex-wrap: nowrap; gap: var(--space-3);
    }
    /* The buttons become the bar's own items: ‹, then "Dalje", then (on a
       complete lot) "Spremi i na pregled" as a link on a row of its own. */
    .swfoot { flex-direction: row; flex-wrap: wrap; row-gap: 0; }
    .swfoot__next { display: contents; }
    .sw .swfoot .btn { min-height: 56px; border-radius: var(--radius-md); font-size: 17px; }
    .sw .swfoot__back { order: 1; flex: none; width: 56px; padding: 0; }
    .sw .swfoot__next > .btn:not(.swfoot__review) { order: 2; flex: 1; }
    .swfoot__primary svg { display: none; }
    .swfoot__nextname { display: none; }
    .swfoot__backlabel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sw .swfoot .swfoot__review, .sw .swfoot .swfoot__review:visited {
        order: 3; flex-basis: 100%; min-height: 44px; margin-top: var(--space-1);
        background: none !important; border-color: transparent !important; color: var(--blue-700) !important; font-size: 15px;
    }
    body .sw:has(.swfoot__review) { padding-bottom: 148px; }

    .swcards--3, .swcards--2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
    .swopt__face { min-height: 64px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); }
    .swcards--modes .swopt__desc--long { display: none; }
    .swcards--modes .swopt__desc--short { display: inline; }
    /* Stanje: three compact buttons in one row (Kategorija-mobile). */
    .swcards--3.swcards--cond { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .swcards--cond .swopt__face { min-height: 44px; padding: 0 var(--space-2); align-items: center; justify-content: center; border-radius: var(--radius-md); }
    .swcards--cond .swopt__mark, .swcards--cond .swopt__desc { display: none; }
    .swcards--cond .swopt__name { font: 800 14px/1.2 var(--font-sans); text-align: center; }
    .swprices { grid-template-columns: minmax(0, 1fr); }
    .swprice .swfield__hint { display: none; }
    .swpills--durations { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
    .swpills--durations .swpill__face { width: 100%; padding: 0 var(--space-2); border-radius: var(--radius-md); font-size: 14px; }
    .swpills--start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swpills--start .swpill__face { width: 100%; padding: 0 var(--space-2); border-radius: var(--radius-md); font-size: 14px; white-space: normal; text-align: center; }
    .swmodes__legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .swmodes__legend .hinttip, .swmodes__legend button { display: none; }
    .swends__tip { display: none; }
    .swnote { display: none; }
    .swpair { grid-template-columns: minmax(0, 1fr) 120px; }

    /* Photographs: two big buttons in place of the drop zone. */
    .swdrop { padding: 0; border: 0; background: none; }
    .swdrop__icon, .swdrop__title, .swdrop__pick, .swdrop__rules, .swdrop__note { display: none; }
    .swdrop__phone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); width: 100%; }
    .swdrop__big {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
        min-height: 96px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
        background: var(--surface); color: var(--ink); font: 800 16px/1.2 var(--font-sans); cursor: pointer;
    }
    .swdrop__big svg { color: var(--blue-700); }
    .swdrop__big--dark { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
    .swdrop__big--dark svg { color: var(--peach-200); }
    .sw .swphotos__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
    .swphotos__addcell { display: none; }
    /* The text pill does not fit a third of the screen, so the cover button
       becomes a ★ mirroring the ×; the text stays as its accessible name. */
    .swphotos__hint { display: none !important; }
    .swshot__promote { left: 2px; bottom: 2px; }
    .sw .swshot__promote button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; }
    .swshot__promote button::before { inset: 7px; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 4px rgba(18, 26, 43, .18); }
    .swshot__promote svg { display: block; }
    .swshot__promote span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .sw .swshot__badge { font-size: 12px; padding: 3px 6px; }
    .swphotos__count { display: block; }
    .swtips--long { display: none; }
    .swtips--short { display: block; background: var(--surface); border: 1px solid var(--border); }
    .sw .swtips--short ul { columns: 1; }

    /* Review: the preview and the meter side by side above the table. */
    .sw--pregled .sell__layout { display: flex; flex-direction: column; gap: var(--space-4); }
    body .sw--pregled .sellaside {
        order: -1; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: var(--space-4); align-items: start;
    }
    .sw--pregled .sellaside__label { display: none; }
    .sw--pregled .lotcard--preview .lotcard__meta, .sw--pregled .lotcard--preview .lotcard__bids,
    .sw--pregled .lotcard--preview .lotcard__photos { display: none; }
    .sw--pregled .quality { padding: 0; border: 0; background: none; }
    .sw--pregled .quality__verdict { display: none; }
    .sw--pregled .quality__count { display: block; margin: 0; font: 700 14px/1.3 var(--font-sans); color: var(--blue-700); }
    .sw--pregled .quality__bar { margin: var(--space-2) 0; }
    .sw--pregled .swmeter { color: var(--blue-700); }
    .sw--pregled .swmeter::-webkit-progress-value { background: var(--blue-700); }
    .sw--pregled .swmeter::-moz-progress-bar { background: var(--blue-700); }
    .sw--pregled .quality__item.is-ok { display: none; }
    .sw--pregled .quality__mark { display: none; }
    .sw--pregled .quality__item { display: list-item; list-style: disc outside; margin-left: var(--space-4); font-size: 12px; color: var(--muted); }
    .sw--pregled .quality__list { display: block; }
    .swsummary__row { grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); padding: var(--space-2) var(--space-3); }
    .swsummary dt { grid-column: 1; grid-row: 1; align-self: center; padding-top: 0; }
    .swsummary dd { grid-column: 1 / -1; padding: 0 0 var(--space-2); }
    .sw .swsummary__action { grid-row: 1; grid-column: 2; padding: 0; }
    .swconfirm { padding: var(--space-2) 0 var(--space-4); }
    .sw .swconfirm__error { padding: 0 0 var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
    .swopt__face, .swpill__face, .swshot__promote { transition: none; }
}
