/* ? General Page Styling */
html, body {
    font-family: Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffcc; /* light yellow, matches top hub */
}

html.modal-open,
body.modal-open {
  overflow: hidden;
}

/* Hard lock the page when My Account (or another modal) is open */
body.modal-open {
  position: fixed;
  width: 100%;
  inset: 0;          /* top:0; right:0; bottom:0; left:0; */
}

/* Detail gallery */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-main-image-wrap {
  border: 1px solid #ddd;
  padding: 4px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  height: 320px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}
.detail-gallery-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.detail-gallery-thumb {
  width: 70px;
  height: 70px;
  border: 2px solid #ddd;
  padding: 2px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
}
.detail-gallery-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.detail-gallery-thumb.active {
  border-color: #0a0;
}

/* Lightbox */
.detail-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 15000;
}
.detail-lightbox.visible {
  display: flex;
}
.detail-lightbox-inner {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-lightbox-img {
  width: 80vw;
  height: 80vh;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}
.detail-lightbox-close,
.detail-lightbox-prev,
.detail-lightbox-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 18px;
}
.detail-lightbox-close {
  top: 8px;
  right: 8px;
}
.detail-lightbox-prev {
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.detail-lightbox-next {
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .detail-lightbox-inner {
    max-width: 95vw;
    max-height: 85vh;
  }
  .detail-lightbox-img {
    width: 95vw;
    height: 85vh;
    max-width: 95vw;
    max-height: 85vh;
  }
  .detail-gallery-thumb {
    width: 60px;
    height: 60px;
  }
  .detail-lightbox-close,
  .detail-lightbox-prev,
  .detail-lightbox-next {
    padding: 8px 12px;
    font-size: 20px;
  }
}

.cf-main-container {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  /* notes: main content wrapper limits max width for better readability on large screens; page still full width, content centered */
}


/* ? Top Hub */
.top-hub {
    position: relative;
    z-index: 20; /* above logo banner + topHub app_message overlay */
    display: flex;
    align-items: flex-start;
    background-color: #ffffcc; /* Light yellow */
    padding: 10px;
    border-bottom: 1px solid #ccc;
    overflow: visible;
}

.cf-central-banner {
    position: relative;
    width: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    z-index: 2;
    overflow: visible;
}
.cf-central-banner-logo {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}
.cf-central-banner-logo img {
    display: block;
    max-width: 100%;
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}
.cf-logo-panel-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 6;
}

.cf-tophub-main {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 4px;
    justify-content: flex-start;
}

.cf-tophub-guest-auth {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.top-hub .cf-tophub-main > span,
.top-hub .cf-tophub-main > a,
.top-hub .cf-tophub-main > select,
.top-hub .cf-tophub-main > form,
.top-hub .cf-tophub-main > label {
    margin-right: 0;
}

.cf-tophub-user {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cf-tophub-user-block {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.cf-tophub-logout-form {
    display: inline;
    margin: 0;
}
.cf-tophub-user-icon {
    font-size: 1.05em;
    line-height: 1;
    opacity: 0.9;
}
.cf-tophub-username {
    font-weight: 700;
}

.cf-tophub-sep {
    display: inline-block;
    margin: 0 2px;
    color: #888;
    font-weight: 400;
    user-select: none;
}

.cf-tophub-listing-icon {
    line-height: 1;
    font-size: 1em;
}
.cf-tophub-listing-mode {
    max-width: 11em;
}
.cf-tophub-ship-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    cursor: pointer;
    margin: 0;
}
.cf-tophub-ship-select {
    max-width: 100%;
    margin: 0;
}

/* TopHub app_message — overlay on logo panel (out of flow, no page jump).
   Stack: logo (1) < message (4) < panel actions (6) < top-hub bar (20). */
.app-message-container.app-message-tophub {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    width: max-content;
    max-width: 100%;
    z-index: 4;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    pointer-events: auto;
    text-align: left;
}
.app-message-container.app-message-tophub:empty {
    display: none;
}
.app-message-container.app-message-tophub .app-message {
    display: inline-block;
    width: auto;
    max-width: 100%;
    text-align: left;
}
.app-message-container.app-message-tophub .app-message-normal {
    background-color: rgba(244, 244, 235, 0.82);
    border-color: rgba(205, 205, 191, 0.75);
}
.app-message-container.app-message-tophub .app-message-important {
    background-color: rgba(255, 244, 214, 0.88);
    border-color: rgba(217, 169, 26, 0.75);
}
.top-hub .cf-tophub-main select {
    position: relative;
    z-index: 21;
}

.logout-link-button {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px; /* aby nebylo nalepené */
  font: inherit;
  color: var(--link-color, #06c);
  text-decoration: underline;
  cursor: pointer;
}

.logout-link-button:hover {
  text-decoration: none;    /* nebo underline, jak chceš */
}

.logout-link-button:focus {
  outline: none;
}

.logout-link-button { color: #06c; }
.logout-link-button:visited { color: #551a8b; } /* button nemá visited efekt... */

.logout-link-button.cf-tophub-logout-btn {
  color: #333;
  text-decoration: none;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
  margin-left: 0;
}
.logout-link-button.cf-tophub-logout-btn:hover {
  text-decoration: none;
  color: #333;
  opacity: 0.85;
}
.cf-tophub-logout-icon {
  line-height: 1;
}

/* TopHub compact icon buttons (bookmark, install) — on logo banner panel */
.cf-tophub-icon-btn,
.cf-bookmark-help-btn,
.cf-install-app-btn {
  flex-shrink: 0;
  padding: 0;
  width: 19px;
  height: 19px;
  min-width: 19px;
  line-height: 17px;
  font-size: 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  vertical-align: middle;
}
.cf-tophub-icon-btn:hover,
.cf-bookmark-help-btn:hover,
.cf-install-app-btn:hover {
  background: #fff8dc;
  border-color: #999;
}
.cf-tophub-icon-btn:focus,
.cf-bookmark-help-btn:focus,
.cf-install-app-btn:focus {
  outline: 1px solid #06c;
  outline-offset: 1px;
}
.cf-tophub-icon-btn span,
.cf-bookmark-help-btn span,
.cf-install-app-btn span {
  margin: 0;
}
.cf-install-app-btn.cf-install-app-btn--ready {
  border-color: #06c;
  box-shadow: 0 0 0 1px rgba(0, 102, 204, 0.35);
}
.cf-install-app-btn.hidden {
  display: none !important;
}

.cf-bookmark-help-modal,
.cf-install-app-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cf-bookmark-help-modal.hidden,
.cf-install-app-modal.hidden {
  display: none !important;
}
.cf-bookmark-help-backdrop,
.cf-install-app-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.cf-bookmark-help-cont,
.cf-install-app-cont {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: min(85vh, 520px);
  overflow: auto;
  background: #ffffcc;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 14px 16px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.cf-bookmark-help-cont h3,
.cf-install-app-cont h3 {
  margin: 0 0 10px;
  padding-right: 28px;
  font-size: 1.05rem;
}
.cf-bookmark-help-cont p,
.cf-install-app-cont p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.cf-bookmark-help-close,
.cf-install-app-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  padding: 2px 6px;
}
.cf-bookmark-help-close:hover,
.cf-install-app-close:hover {
  color: #000;
}
.cf-bookmark-help-dismiss,
.cf-install-app-dismiss,
.cf-install-app-native {
  margin-top: 12px;
  padding: 6px 14px;
  font: inherit;
  cursor: pointer;
  border: 1px solid #999;
  border-radius: 4px;
  background: #f4f4eb;
}
.cf-bookmark-help-dismiss:hover,
.cf-install-app-dismiss:hover,
.cf-install-app-native:hover {
  background: #ebebd8;
}
.cf-install-app-native {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  border-color: #06c;
  color: #004080;
}
.cf-install-app-native.hidden {
  display: none !important;
}


hr {
    border: 1px solid #ddd;
}

#public-menu-root {
  position: relative;
  z-index: 5000; /* above page content/search; below MyAccount panel (10000) and auth modals */
}

#public-menu-root > button {
  background: #141414;
  color: #f7f7f7;
  border: 1px solid #2a2a2a;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor:pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
#public-menu-root > button:hover {
  background: #1b1b1b;
  border-color: rgba(255, 213, 79, 0.45);
  color: #ffe38a;
  box-shadow: 0 4px 12px rgba(0,0,0,0.38);
}
#public-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  background: #121212;
  color: #f7f7f7;
  min-width: 260px;
  max-width: 340px;
  z-index: 7000; /* keep dropdown above button but below modals */
  display: none;
  padding: 0;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 2px 6px rgba(0,0,0,0.35);
  overflow: hidden;
}
#public-menu-panel.open { display: block; }
.pub-menu-body {
  padding: 2px 0 6px 0; /* notes: public menu visual polish only */
}
.pub-menu-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #2e2e2e;
  background: linear-gradient(180deg, #1a1a1a, #161616);
  font-weight: 600;
}
.pub-menu-back {
  background: rgba(255, 213, 79, 0.12);
  border: 1px solid rgba(255, 213, 79, 0.35);
  color: #f6d25f;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.pub-menu-back:hover { background: rgba(255, 213, 79, 0.18); border-color: rgba(255, 213, 79, 0.5); }
.pub-menu-title {
  flex: 1;
  min-height: 1.2em;
  opacity: 0.95;
  color: #f6d25f;
  font-weight: 600;
}
.pub-menu-level {
  list-style: none;
  margin: 0;
  padding: 2px 0;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.pub-menu-level.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Public listing items */
.catalog-item {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.catalog-item legend {
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.catalog-item .watch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Public page fieldsets (search/GP/NP/order) – exclude item cards */
.category-public fieldset:not(.catalog-item) {
  background-color: #f4f4eb;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 4px 6px;
  box-sizing: border-box;
}
.category-public fieldset legend {
  font-weight: bold;
}

/* Item detail fieldsets (contact, description) */
.detail-fieldset {
  background-color: #f4f4eb;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 4px 6px;
  box-sizing: border-box;
  margin: 10px 0;
}
.detail-fieldset legend {
  font-weight: bold;
}

/* Item detail share */
.cf-item-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 10px 0;
}
.cf-item-detail-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.cf-item-share-wrap {
  position: relative;
  flex: 0 0 auto;
}
.cf-item-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}
.cf-item-share-btn:hover {
  background: #f5f5f5;
  border-color: #999;
}
.cf-item-share-btn:focus {
  outline: 2px solid #4a90d9;
  outline-offset: 1px;
}
.cf-item-share-btn-icon {
  font-size: 11px;
  line-height: 1;
}
.cf-item-share-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  min-width: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.cf-item-share-panel.hidden {
  display: none !important;
}
.cf-item-share-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cf-item-share-list li + li {
  margin-top: 2px;
}
.cf-item-share-link,
.cf-item-share-copy {
  display: block;
  width: 100%;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  color: #222;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
}
.cf-item-share-link:hover,
.cf-item-share-copy:hover {
  background: #f0f4f8;
  text-decoration: none;
}
.cf-item-share-link:focus,
.cf-item-share-copy:focus {
  outline: 2px solid #4a90d9;
  outline-offset: 0;
}
.cf-item-share-copy-msg {
  margin: 6px 0 0;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.3;
  color: #2e7d32;
}
.cf-item-share-copy-msg.is-error {
  color: #b00;
}
.cf-item-share-close {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f8f8f8;
  color: #444;
  cursor: pointer;
}
.cf-item-share-close:hover {
  background: #eee;
}

/* Collector Card (item detail) */
.cf-collector-card-fieldset {
  position: relative;
  margin-top: 10px;
  padding-top: 2px;
}
.cf-collector-card-toolbar {
  position: absolute;
  top: 6px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
  max-width: min(100%, 420px);
  z-index: 1;
}
.cf-collector-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
  padding-right: min(42%, 220px);
}
.cf-collector-card-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
  flex-shrink: 0;
}
.cf-collector-card-meta {
  font-size: 13px;
  line-height: 1.35;
  min-width: 0;
  flex: 1;
}
.cf-collector-card-line {
  display: inline;
}
.cf-collector-card-sep {
  color: #888;
}
.cf-collector-card-username {
  font-size: 14px;
}
.cf-collector-card-section {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  display: inline;
}
.cf-collector-card-profile-title {
  font-weight: 600;
  font-size: 14px;
}
.cf-collector-card-text {
  white-space: normal;
}
.cf-collector-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.cf-collector-card-all-items {
  font-size: 13px;
  font-weight: 600;
}
.cf-collector-card-share-wrap {
  position: relative;
}

@media (max-width: 768px) {
  .cf-collector-card-fieldset {
    display: flex;
    flex-direction: column;
  }
  .cf-collector-card-fieldset > legend {
    width: 100%;
    margin-bottom: 4px;
  }
  .cf-collector-card-head {
    order: 1;
    padding-right: 0;
    margin-bottom: 0;
  }
  .cf-collector-card-toolbar {
    position: static;
    order: 2;
    top: auto;
    right: auto;
    z-index: auto;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
  }
  .cf-collector-card-all-items {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.25;
  }
  .cf-collector-card-share-wrap {
    flex: 0 0 auto;
  }
}

/* Public listing — collapsible filter panel */
html.cf-listing-filters-start-collapsed #cf-listing-filters-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  margin-top: 0;
  margin-bottom: 0;
}
html.cf-listing-filters-start-collapsed #cf-filter-toggle {
  display: inline-flex !important;
}
.cf-filter-toggle-container {
  margin: 6px 0 4px;
}
.cf-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f5f5f5;
  color: #222;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cf-filter-toggle:hover {
  background: #eee;
}
.cf-filter-toggle:focus {
  outline: 2px solid #666;
  outline-offset: 1px;
}
.cf-listing-filters-body {
  overflow: hidden;
  max-height: 5000px;
  opacity: 1;
  transition:
    max-height 0.65s ease-in-out,
    opacity 0.55s ease-in-out,
    margin 0.45s ease-in-out;
}
.cf-listing-filters-body.is-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}
.cf-listing-filters-body.is-collapsed-instant {
  transition: none !important;
}
.cf-listing-filters-body .param-panels {
  transition: transform 0.55s ease-out;
}
.cf-listing-filters-body.is-collapsed .param-panels {
  transform: translateY(-6px);
}
.cf-filter-toggle:not(.hidden) {
  animation: cf-filter-toggle-in 0.45s ease-out;
}
@keyframes cf-filter-toggle-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Collector Card header on user listing search */
.cf-user-listing-card {
  margin-bottom: 6px;
}
.cf-user-listing-card-tagline {
  font-size: 13px;
  color: #555;
}
.cf-user-listing-card-actions {
  margin-top: 0;
}

.pub-menu-item {
  position: relative;
  white-space: nowrap;
}
.pub-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 4px;
  margin: 0 6px;
  transition: background 120ms ease, color 120ms ease;
}

/* Visited items panel */
#visited-item-banner {
  width: 100%;
  overflow: hidden;
}
#visited-item-banner .visited-panel {
  background: #f4f4eb;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 8px;
  margin: 10px 0;
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
#visited-item-banner .visited-panel legend {
  font-weight: bold;
}
#visited-item-banner .visited-panel-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
#visited-item-banner .visited-track-wrap {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
}
#visited-item-banner .visited-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}
#visited-item-banner .visited-track::-webkit-scrollbar { display: none; } /* WebKit */
#visited-item-banner .visited-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
  text-align: center;
  text-decoration: none;
  color: #000;
  flex: 0 0 auto;
}
#visited-item-banner .visited-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 2px;
}
#visited-item-banner .visited-thumb-placeholder {
  width: 120px;
  height: 80px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #777;
}
#visited-item-banner .visited-arrow {
  background: #f4f4eb;
  border: 1px solid #000;
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  min-width: 28px;
  min-height: 28px;
  flex: 0 0 auto;
}
#visited-item-banner .visited-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* favourite seller checkbox */
.fav-member-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.fav-member-input {
  cursor: pointer;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  margin: 0;
}
.fav-member-label {
  font-size: 13px;
  pointer-events: auto;
  cursor: pointer;
}
.pub-menu-row:hover {
  background: #1f1a0d;
}
.pub-menu-link {
  flex: 1;
  color: #f5f5f5;
  text-decoration: none;
  transition: color 120ms ease;
}
.pub-menu-row:hover .pub-menu-link,
.pub-menu-row:focus-within .pub-menu-link {
  color: #ffe38a;
  text-decoration: underline;
}
.pub-menu-drill {
  background: rgba(255, 213, 79, 0.08);
  border: 1px solid rgba(255, 213, 79, 0.2);
  color: #ffd75b;
  font-size: 15px;
  cursor: pointer;
  padding: 6px 8px;
  min-width: 32px;
  border-radius: 4px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.pub-menu-drill:hover {
  background: rgba(255, 213, 79, 0.16);
  border-color: rgba(255, 213, 79, 0.35);
  color: #ffe38a;
}

.paging .pg-page,
.paging .pg-arrow {
  color: #06c;
  text-decoration: none;
  padding: 2px 4px;
}
.paging .pg-page.current {
  font-weight: 700;
  font-size: 1.1em;
  color: #000;
}
.paging .pg-arrow.disabled {
  color: #888;
  cursor: default;
}
.category-public a.pg-arrow {
  font-weight: bold;
}
#idle-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; }
#idle-modal .modal-cont { background: #fff; padding: 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
#idle-modal:not(.hidden) { display: flex; z-index: 9999; }
.hidden { display: none !important; }

/* Top categories grid */
.topcat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.topcat-tile {
  display: block;
  width: 180px;
  text-decoration: none;
  color: #000;
}

.topcat-image {
  border: 2px solid #000;
  overflow: hidden;
  height: 120px;
}

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

.topcat-title {
  text-align: center;
  margin-top: 6px;
  font-size: 14px;
}

/* Hover efekt */
.topcat-tile:hover .topcat-image {
  border-color: #2e7d32;
}

.topcat-tile:hover {
  transform: translateY(-2px);
}

/* Info block */
.topcat-info {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-weight: bold;
}

/* Public listing — seller short action badge (TAB5 DOM/INT) */
.cf-seller-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}

.cf-seller-action-badge {
  display: inline-block;
  margin-left: 0;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 4px;
  background: #9c2020;
  color: #fff;
  white-space: nowrap;
}

/* Public item detail — seller discount rules (informational; matches action_short badge) */
.cf-seller-discount-box {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #9c2020;
  border-radius: 6px;
  background: #9c2020;
  color: #fff;
  font-size: 13px;
}

.cf-seller-discount-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: #fff;
}

.cf-seller-discount-list {
  margin: 0;
  padding-left: 18px;
  color: #fff;
}

.cf-seller-discount-list li {
  margin: 2px 0;
}

