:root {
  --bg: #f6f4ef;
  --panel: rgba(255,255,255,.82);
  --panel-solid: #ffffff;
  --text: #1e1e1e;
  --muted: #6f6b66;
  --line: rgba(0,0,0,.09);
  --shadow: 0 18px 50px rgba(0,0,0,.08);
  --radius: 24px;
  --radius-small: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  padding: 14px clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(246,244,239,.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.03em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.hero {
  min-height: 220px;
  display: flex;
  align-items: center;
  padding: 44px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.55));
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.hero h1,
.admin-header h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 76px);
  letter-spacing: -.07em;
  line-height: .95;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  margin: 0 0 12px;
}

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

.category-section {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.04em;
}

.section-heading span {
  color: var(--muted);
  font-size: 14px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}

.product-card,
.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-card {
  overflow: hidden;
}

.image-wrap {
  aspect-ratio: 4 / 3;
  background: #ebe7de;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  color: var(--muted);
  font-weight: 700;
}

.product-body {
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.product-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.price {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255,255,255,.6);
  color: var(--muted);
  white-space: nowrap;
}

.pill.high {
  color: #7a3f00;
}

.pill.low {
  color: #58606c;
}

.button,
.small-button {
  border: 0;
  border-radius: 999px;
  background: #1f1f1f;
  color: white;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
}

.button {
  padding: 11px 18px;
}

.small-button {
  padding: 8px 12px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.small-button.danger {
  background: #7f1d1d;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.inline-form {
  display: inline;
}

.admin-header {
  margin-bottom: 22px;
}

.admin-card {
  padding: 24px;
  margin-bottom: 22px;
}

.admin-card.narrow {
  max-width: 460px;
  margin: 40px auto;
}

.admin-card h1,
.admin-card h2 {
  margin-top: 0;
  letter-spacing: -.04em;
}

.form label {
  display: grid;
  gap: 7px;
  font-weight: 750;
  color: #2c2c2c;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

.inline-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
}

.admin-row.dragging {
  opacity: .55;
}

.row-handle {
  cursor: grab;
  color: var(--muted);
  font-weight: 900;
  user-select: none;
}

.row-thumb {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #eee8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.row-main {
  min-width: 0;
}

.row-sub {
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.row-actions form {
  display: inline;
}

.category-edit-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 150px auto;
  gap: 10px;
  width: 100%;
}

.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.message {
  border-radius: 16px;
  padding: 12px 14px;
  background: white;
  border: 1px solid var(--line);
}

.message.success {
  background: #effaf0;
}

.message.error {
  background: #fff0f0;
}

.empty {
  text-align: center;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty.compact {
  padding: 20px;
}

.preview-image img {
  max-width: 240px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.action-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 26px;
  }

  .grid-form,
  .inline-add,
  .admin-row,
  .category-edit-form {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: start;
  }
}


/* WISHLIST_METADATA_FETCH_CSS_V1 START */
.input-with-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.field-hint.ok {
  color: #166534;
}

.field-hint.error {
  color: #991b1b;
}

.field-hint.loading {
  color: #854d0e;
}

.fetch-metadata-button[disabled] {
  opacity: .65;
  cursor: wait;
}

@media (max-width: 780px) {
  .input-with-button {
    grid-template-columns: 1fr;
  }
}
/* WISHLIST_METADATA_FETCH_CSS_V1 END */


/* WISHLIST_PUBLIC_IMAGE_DISPLAY_CSS_V2 START */

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
}

.image-wrap {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.product-image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-body h3 {
  margin: 0;
  min-height: 3.5em;
}

.price {
  margin: 0;
}

.note {
  margin: 0;
}

.product-body .button {
  margin-top: auto;
  align-self: flex-start;
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* WISHLIST_PUBLIC_IMAGE_DISPLAY_CSS_V2 END */


/* WISHLIST_PUBLIC_PRODUCT_LINKS_CSS_V1 START */
.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-image-link {
  cursor: pointer;
}
/* WISHLIST_PUBLIC_PRODUCT_LINKS_CSS_V1 END */


/* WISHLIST_FIXED_PRODUCT_GRID_CSS_V1 START */

/*
  Pevny katalogovy grid:
  - stejne siroke karty
  - stejny ramec fotky
  - produkt se prizpusobi dovnitr bez orezu
*/

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 22px;
  justify-content: start;
  align-items: stretch;
}

.product-card {
  width: 300px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.image-wrap {
  width: 100%;
  height: 285px;
  aspect-ratio: auto;
  padding: 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  flex: 0 0 285px;
}

.product-image-link {
  width: 100%;
  height: 100%;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product-meta {
  min-height: 28px;
}

.product-body h3 {
  min-height: 72px;
  margin: 0;
  line-height: 1.22;
}

.price {
  min-height: 30px;
}

.note {
  min-height: 0;
}

.product-body .button {
  margin-top: auto;
}

@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    width: 100%;
    min-height: auto;
  }

  .image-wrap {
    height: 260px;
    flex-basis: 260px;
  }

  .product-body h3 {
    min-height: auto;
  }
}

/* WISHLIST_FIXED_PRODUCT_GRID_CSS_V1 END */


/* WISHLIST_PUBLIC_CATALOG_FILTERS_CSS_V1 START */

.catalog-toolbar {
  margin: 0 0 28px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toolbar-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.toolbar-main h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -.04em;
}

.catalog-count {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  white-space: nowrap;
}

.catalog-count strong {
  color: var(--text);
  font-size: 28px;
  letter-spacing: -.04em;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(130px, .8fr) minmax(130px, .8fr) auto;
  gap: 12px;
  align-items: end;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #2c2c2c;
}

.filter-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.catalog-section {
  margin-top: 24px;
}

.catalog-grid {
  justify-content: start;
}

.category-chip {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .045);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-price {
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
}

.product-card[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .filter-actions .small-button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding: 20px 0 56px;
  }

  .hero {
    min-height: auto;
    padding: 28px 22px;
    border-radius: 28px;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .catalog-toolbar {
    padding: 18px;
    border-radius: 24px;
  }

  .toolbar-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .catalog-product-card {
    width: 100%;
    min-height: auto;
    border-radius: 24px;
  }

  .catalog-product-card .image-wrap {
    height: 300px;
    flex-basis: 300px;
    padding: 24px;
  }

  .catalog-product-card .product-body {
    padding: 18px;
  }

  .catalog-product-card .product-body h3 {
    min-height: auto;
    font-size: 21px;
  }

  .catalog-product-card .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .catalog-product-card .image-wrap {
    height: 260px;
    flex-basis: 260px;
    padding: 18px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .nav {
    gap: 10px;
    font-size: 13px;
  }
}

/* WISHLIST_PUBLIC_CATALOG_FILTERS_CSS_V1 END */


/* WISHLIST_LEFT_FILTER_SIDEBAR_CSS_V1 START */

.catalog-layout-v2 {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 26px;
}

.catalog-sidebar {
  position: sticky;
  top: 88px;
  padding: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 14px 36px rgba(0,0,0,.06);
}

.sidebar-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.sidebar-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.05em;
}

.sidebar-head .eyebrow {
  margin-bottom: 0;
}

.sidebar-head .catalog-count {
  margin-top: 4px;
  justify-content: flex-start;
}

.sidebar-head .catalog-count strong {
  font-size: 24px;
}

.sidebar-filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.sidebar-filter-grid label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 850;
}

.sidebar-filter-grid input,
.sidebar-filter-grid select {
  min-height: 43px;
  border-radius: 13px;
}

.sidebar-filter-grid .filter-actions {
  justify-content: stretch;
}

.sidebar-filter-grid .filter-actions .small-button {
  width: 100%;
}

.catalog-main {
  min-width: 0;
  margin-top: 0;
}

.catalog-main .catalog-grid {
  justify-content: start;
}

.small-category-chip {
  padding: 2px 0;
  border-radius: 0;
  background: transparent;
  color: #817b72;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
  max-width: 100%;
}

.catalog-product-card .product-body {
  gap: 8px;
}

.catalog-product-card .product-meta {
  margin-bottom: 0;
}

.catalog-product-card .product-body h3 {
  margin-top: 2px;
}

@media (max-width: 980px) {
  .catalog-layout-v2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-sidebar {
    position: static;
    top: auto;
  }

  .sidebar-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .sidebar-head .eyebrow {
    grid-column: 1 / -1;
  }

  .sidebar-filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-filter-grid .filter-actions {
    align-items: end;
  }
}

@media (max-width: 700px) {
  .catalog-layout-v2 {
    margin-top: 18px;
  }

  .catalog-sidebar {
    padding: 16px;
    border-radius: 22px;
  }

  .sidebar-head {
    grid-template-columns: 1fr;
  }

  .sidebar-filter-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-head h2 {
    font-size: 24px;
  }

  .small-category-chip {
    font-size: 11px;
  }
}

/* WISHLIST_LEFT_FILTER_SIDEBAR_CSS_V1 END */


/* WISHLIST_SIDEBAR_WHOLE_CONTENT_CSS_V1 START */

/*
  Sidebar je vedle celeho verejneho obsahu:
  vlevo filtr, vpravo hero + produkty.
*/

.page:has(.wishlist-public-shell) {
  width: min(1500px, calc(100% - 32px));
}

.wishlist-public-shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.wishlist-main-content {
  min-width: 0;
}

.wishlist-hero {
  margin-bottom: 28px;
}

.shell-sidebar {
  position: sticky;
  top: 88px;
  margin-top: 0;
}

.wishlist-main-content .catalog-main {
  margin-top: 0;
}

.wishlist-main-content .catalog-grid {
  justify-content: start;
}

/* Na vetsich monitorech se daji vejit 4 karty vedle sebe. */
@media (min-width: 1380px) {
  .wishlist-public-shell {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 30px;
  }

  .wishlist-main-content .catalog-grid {
    grid-template-columns: repeat(auto-fill, 300px);
  }
}

@media (max-width: 1100px) {
  .page:has(.wishlist-public-shell) {
    width: min(100% - 24px, 1180px);
  }

  .wishlist-public-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .shell-sidebar {
    position: static;
    top: auto;
    order: 2;
  }

  .wishlist-main-content {
    order: 1;
  }

  .wishlist-main-content .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Tablet/mobil: filtr jde pod hero, nad produkty, aby neprekazel. */
@media (max-width: 980px) {
  .wishlist-public-shell {
    display: flex;
    flex-direction: column;
  }

  .wishlist-main-content {
    display: contents;
  }

  .wishlist-hero {
    order: 1;
    width: 100%;
  }

  .shell-sidebar {
    order: 2;
    width: 100%;
  }

  .catalog-main {
    order: 3;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .page:has(.wishlist-public-shell) {
    width: min(100% - 20px, 1180px);
  }

  .wishlist-hero {
    margin-bottom: 18px;
  }

  .wishlist-public-shell {
    gap: 18px;
  }
}

/* WISHLIST_SIDEBAR_WHOLE_CONTENT_CSS_V1 END */


/* WISHLIST_LEFT_MARGIN_SIDEBAR_CSS_V1 START */

/*
  Na velkem desktopu:
  - hlavni obsah zustava opticky hlavni cast stranky
  - filtr se vytahne do leveho drive prazdneho okraje
  - pravy okraj zustava vzdusny
*/

@media (min-width: 1720px) {
  .page:has(.wishlist-public-shell) {
    width: calc(230px + 30px + 1180px);
    max-width: none;

    /* 
      Hlavni obsah ma vpravo stejny opticky okraj jako puvodni 1180px centered layout.
      Sidebar se tim posune do leveho volneho prostoru.
    */
    margin-left: max(18px, calc((100vw - 1180px) / 2 - 260px));
    margin-right: max(18px, calc((100vw - 1180px) / 2));
  }

  .wishlist-public-shell {
    grid-template-columns: 230px 1180px;
    gap: 30px;
  }

  .wishlist-main-content {
    width: 1180px;
  }

  .wishlist-main-content .catalog-grid {
    grid-template-columns: repeat(3, 300px);
    gap: 22px;
  }
}

/*
  Na velmi velkem monitoru si hlavni katalog muze dovolit 4 karty,
  ale porad drzi filtr nalevo a nenecha cele rozlozeni zbytecne plavat uprostred.
*/
@media (min-width: 2050px) {
  .page:has(.wishlist-public-shell) {
    width: calc(230px + 30px + 1278px);
    margin-left: max(22px, calc((100vw - 1278px) / 2 - 260px));
    margin-right: max(22px, calc((100vw - 1278px) / 2));
  }

  .wishlist-public-shell {
    grid-template-columns: 230px 1278px;
  }

  .wishlist-main-content {
    width: 1278px;
  }

  .wishlist-main-content .catalog-grid {
    grid-template-columns: repeat(4, 300px);
    gap: 26px;
  }
}

/*
  Pod 1720px zustava predchozi responzivni chovani,
  aby filtr nezacal zbytecne ubirat misto produktum.
*/
@media (max-width: 1719px) {
  .page:has(.wishlist-public-shell) {
    width: min(1500px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
  }
}

/* WISHLIST_LEFT_MARGIN_SIDEBAR_CSS_V1 END */


/* WISHLIST_PRICE_SLIDER_CSS_V1 START */

.price-slider-field {
  gap: 10px !important;
}

.price-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.price-slider-label-row strong {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.price-slider-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

#filter-price-range {
  width: 100%;
  padding: 0;
  height: 26px;
  background: transparent;
  border: 0;
  accent-color: #1f1f1f;
  cursor: pointer;
}

#filter-price-range:focus {
  outline: none;
}

#filter-price-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}

#filter-price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: #1f1f1f;
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
}

#filter-price-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}

#filter-price-range::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 50%;
  background: #1f1f1f;
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
}

/* WISHLIST_PRICE_SLIDER_CSS_V1 END */


/* WISHLIST_DOUBLE_PRICE_SLIDER_CSS_V1 START */

.price-range-field {
  display: grid;
  gap: 11px;
  font-weight: 850;
}

.price-slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.price-slider-label-row strong {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.price-slider-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dual-range-slider {
  --range-start: 0%;
  --range-end: 100%;
  position: relative;
  height: 30px;
}

.dual-range-slider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}

.dual-range-track {
  position: absolute;
  left: var(--range-start);
  right: calc(100% - var(--range-end));
  top: 12px;
  height: 6px;
  border-radius: 999px;
  background: #1f1f1f;
}

.dual-range-slider input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 30px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.dual-range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 19px;
  height: 19px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: #1f1f1f;
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
  cursor: pointer;
}

.dual-range-slider input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 50%;
  background: #1f1f1f;
  box-shadow: 0 4px 12px rgba(0,0,0,.24);
  cursor: pointer;
}

/* WISHLIST_DOUBLE_PRICE_SLIDER_CSS_V1 END */

/* WISHLIST_DOUBLE_PRICE_SLIDER_ALIGNMENT_FIX_V1 START */

/*
  Oprava dvojiteho cenoveho slideru:
  - vetsi vlastni vyska prvku
  - thumb neni useknuty
  - thumb je zarovnany na stred linky
  - aktivni usek zustava mezi obema teckami
*/

.dual-range-slider {
  position: relative;
  height: 46px;
  margin-top: 2px;
  margin-bottom: -2px;
  overflow: visible;
}

.dual-range-slider::before {
  top: 20px;
  height: 6px;
}

.dual-range-track {
  top: 20px;
  height: 6px;
}

.dual-range-slider input[type="range"] {
  top: 0;
  height: 46px;
  overflow: visible;
  outline: none;
}

.dual-range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 999px;
  border: 0;
  background: #1f1f1f;
  box-shadow: 0 5px 14px rgba(0,0,0,.28);
  cursor: pointer;
}

.dual-range-slider input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: #1f1f1f;
  box-shadow: 0 5px 14px rgba(0,0,0,.28);
  cursor: pointer;
}

/* Aby se oba palce daly chytit i kdyz jsou blizko sebe. */
#filter-price-min-range {
  z-index: 3;
}

#filter-price-max-range {
  z-index: 4;
}

/* WISHLIST_DOUBLE_PRICE_SLIDER_ALIGNMENT_FIX_V1 END */

/* WISHLIST_GRID4_WITH_ORIGINAL_RIGHT_GAP_V1 START */

/*
  Cíl:
  - neroztahovat celý veřejný shell doprava
  - zachovat pravý vzdušný okraj
  - pouze zmenšit produktové karty tak, aby se v hlavním obsahu vešly 4 vedle sebe
*/

@media (min-width: 1500px) {
  .wishlist-main-content .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  .wishlist-main-content .catalog-product-card {
    width: auto !important;
    min-width: 0 !important;
    min-height: 500px !important;
  }

  .wishlist-main-content .catalog-product-card .image-wrap {
    height: 245px !important;
    flex-basis: 245px !important;
    padding: 18px !important;
  }

  .wishlist-main-content .catalog-product-card .product-body {
    padding: 16px !important;
  }

  .wishlist-main-content .catalog-product-card .product-body h3 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    min-height: 66px !important;
  }

  .wishlist-main-content .catalog-product-card .price {
    font-size: 21px !important;
  }

  .wishlist-main-content .catalog-product-card .button {
    padding: 12px 16px !important;
    font-size: 14px !important;
  }
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
  .wishlist-main-content .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .wishlist-main-content .catalog-product-card {
    width: auto !important;
    min-width: 0 !important;
  }
}

/* WISHLIST_GRID4_WITH_ORIGINAL_RIGHT_GAP_V1 END */

/* WISHLIST_SPACING_CATEGORY_BADGE_V1 START */

/*
  Cíl:
  - levá mezera od okraje k filtru = mezera mezi filtrem a hlavním obsahem
  - pravý vzdušný okraj zůstává
  - kategorie není samostatný text v kartě, ale barevný badge na fotce
*/

@media (min-width: 1200px) {
  .page:has(.wishlist-public-shell) {
    margin-left: 28px !important;
    margin-right: auto !important;
  }

  .wishlist-public-shell {
    gap: 28px !important;
  }
}

.image-wrap {
  position: relative !important;
  overflow: hidden !important;
}

.image-category-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 5;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border-radius: 999px;
  color: #151515;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: .94;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

.product-card:hover .image-category-badge {
  opacity: 1;
  transform: translateY(-1px);
}

/* starý textový badge kdyby někde zůstal */
.small-category-chip {
  display: none !important;
}

/* Paleta kategorií podle category_id modulo 8 */
.cat-color-0 {
  background: rgba(255, 255, 255, .86);
}

.cat-color-1 {
  background: rgba(203, 241, 213, .92);
}

.cat-color-2 {
  background: rgba(207, 229, 255, .92);
}

.cat-color-3 {
  background: rgba(255, 228, 186, .94);
}

.cat-color-4 {
  background: rgba(235, 218, 255, .93);
}

.cat-color-5 {
  background: rgba(255, 210, 219, .93);
}

.cat-color-6 {
  background: rgba(207, 247, 242, .93);
}

.cat-color-7 {
  background: rgba(236, 238, 203, .94);
}

@media (max-width: 700px) {
  .image-category-badge {
    left: 12px;
    top: 12px;
    max-width: calc(100% - 24px);
    font-size: 10px;
    padding: 6px 9px;
  }
}

/* WISHLIST_SPACING_CATEGORY_BADGE_V1 END */
