/* Fotopoly – logo and header from the original osCommerce shop */

#header.header {
  background-color: #111;
  background-image: url("../img/header-background.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  /* Original osCommerce .modular-header: padding-top 100px + padding-bottom 80px */
  padding-bottom: 80px;
  min-height: 280px;
  position: relative;
  top: auto;
}

.header-top {
  background: transparent !important;
  border-bottom: none !important;
}

.header-bottom,
.header-nav-full-width {
  background: transparent !important;
  border-bottom: none !important;
}

/* Keep the wrapper in the DOM: the mobile offcanvas (#mobileMenu) is rendered
   here. Hiding the whole bar with display:none also broke category links on phone. */
.header-nav-full-width {
  padding: 0;
  margin: 0;
  border: 0;
  min-height: 0;
  background: transparent;
}

.header-top__menu .menu-toggle {
  padding: 0.35rem 0;
  color: #fff;
}

.header-top__menu .menu-toggle .material-icons {
  font-size: 1.75rem;
  color: #fff;
}

@media (min-width: 768px) {
  .header-top__right {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
  }

  .header-top__right > div {
    width: auto;
    flex: 0 0 auto;
  }

  .header-top__right .header-block__action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.65) !important;
    color: #fff;
    text-decoration: none;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
  }

  .header-top__right a.header-block__action-btn:hover,
  .header-top__right button.header-block__action-btn:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff;
    opacity: 1;
  }

  .header-top__right .header-block__badge {
    margin-left: 0.15rem;
    margin-right: 0.1rem;
  }
}

.header-bottom {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-bottom__logo .logo,
.header-bottom__logo img.logo {
  max-height: 72px;
  width: auto;
  height: auto;
  max-width: min(500px, 70vw);
}

/* Header "Akcie" pill — always visible next to search */
#header .fotopoly-header-akcie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

#header .fotopoly-header-akcie:hover,
#header .fotopoly-header-akcie:focus-visible {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  opacity: 1;
}

#header .fotopoly-header-akcie[aria-current="page"] {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.85);
}

@media (min-width: 768px) {
  /* Same pill height for search + Akcie + account/cart */
  #header .ps-searchbar {
    margin-block: 0;
  }

  #header .ps-searchbar__input {
    box-sizing: border-box;
    height: 2.5rem;
    min-height: 2.5rem;
    padding-block: 0;
    padding-inline: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    box-shadow: none;
    font-size: 0.95rem;
    line-height: 1;
  }

  #header .header-top__right .header-block__action-btn,
  #header .ps-customersignin .header-block__action-btn {
    box-sizing: border-box;
    height: 2.5rem;
    min-height: 2.5rem;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
  }

  #header .ps-searchbar__input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    opacity: 1;
  }

  #header .ps-searchbar__input:focus {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: none;
  }

  #header .ps-searchbar__input:-webkit-autofill,
  #header .ps-searchbar__input:-webkit-autofill:hover,
  #header .ps-searchbar__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.65) inset;
    transition: background-color 9999s ease-out;
  }

  #header .ps-searchbar__magnifier,
  #header .ps-searchbar__clear,
  #header .ps-searchbar__clear .material-icons {
    color: #fff;
  }

  #header .ps-searchbar__clear:hover,
  #header .ps-searchbar__clear:focus-visible {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
  }
}

.header-top,
.header-top a,
.header-top .header-block__action-btn,
.header-top .material-icons,
.ps-mainmenu__desktop .ps-mainmenu__tree-link,
.ps-mainmenu__tree-dropdown-toggle,
.ps-mainmenu__mobile-toggle .menu-toggle,
.ps-mainmenu__mobile-toggle .material-icons,
.header-bottom .header-block__action-btn,
.header-bottom .header-block__icon,
.header-bottom .ps_searchbar button,
.header-bottom .search-widget button {
  color: #fff;
}

.ps-mainmenu__desktop .ps-mainmenu__tree-link:hover,
.header-top a:hover:not(.header-block__action-btn) {
  color: #fff;
  opacity: 0.85;
}

.header-top .header-block__badge,
.header-bottom .header-block__badge {
  color: #3d3d3d !important;
}

@media (max-width: 767.98px) {
  #header.header {
    padding-bottom: 48px;
    min-height: 180px;
  }

  .header-bottom__row {
    flex-wrap: nowrap;
  }

  .header-bottom .navbar-brand {
    max-width: 46vw;
    max-height: none;
    padding: 0;
  }

  .header-bottom__logo .logo,
  .header-bottom__logo img.logo {
    max-height: 34px;
    max-width: 100%;
  }

  .header-bottom .header-block__action-btn,
  .ps-searchbar--mobile .header-block__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.65) !important;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
  }

  #header .fotopoly-header-akcie--icon {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
  }

  #header .fotopoly-header-akcie--icon .material-icons {
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
  }

  .header-bottom .header-block__action-btn .header-block__icon,
  .header-bottom .header-block__action-btn .material-icons,
  .ps-searchbar--mobile .header-block__action-btn .header-block__icon,
  .ps-searchbar--mobile .header-block__action-btn .material-icons {
    color: #fff;
    font-size: 1.35rem;
  }
}

/* Left category tree: pill-like box (same language as header buttons) */
.left-column .ps-categorytree {
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1.25rem;
  padding: 0.85rem 1rem 1rem;
  color: #fff;
}

.left-column .ps-categorytree .accordion,
.left-column .ps-categorytree .accordion-item,
.left-column .ps-categorytree .accordion-body,
.left-column .ps-categorytree .accordion-collapse,
.left-column .ps-categorytree .accordion-button {
  background: transparent;
  color: #fff;
  box-shadow: none;
  border-color: transparent;
}

.left-column .left-block__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.left-column .category-tree__item-header {
  min-width: 0;
}

.left-column .category-tree__item-link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.28rem 0.15rem 0.28rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.left-column .category-tree__item-link:hover {
  color: #fff;
  opacity: 0.85;
}

.left-column .category-tree__list {
  list-style: none;
  margin: 0;
  padding-left: 0.75rem;
}

.left-column .category-tree__child > .category-tree__list {
  padding-left: 0;
}

.left-column .category-tree__item-header.parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.left-column .category-tree__item-header .accordion-button {
  width: 1.75rem;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  flex: 0 0 1.75rem;
}

.left-column .category-tree__item-header .accordion-button::after {
  width: 0.85rem;
  height: 0.85rem;
  background-size: 0.85rem;
  margin: 0 auto;
  filter: invert(1);
}

.ps-contactinfo__company {
  margin-bottom: 0.5rem;
}

.ps-contactinfo__details {
  line-height: 1.45;
}

/* Stamp attributes: dropdowns like the original shop, not empty color swatches */
.product-variant {
  margin-bottom: 0.85rem;
}

.product-variant:has(select) .product-variant__selected {
  display: none;
}

.product__variants .form-select {
  display: block;
  width: 100%;
  max-width: 28rem;
}

/* Homepage slider: full width on mobile, half width on desktop */
.ps-imageslider {
  width: 100%;
  margin-top: 10px;
}

.ps-imageslider .ps-imageslider__figure {
  margin: 0;
}

.ps-imageslider .ps-imageslider__figure img {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .ps-imageslider {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
  }
}

.fotopoly-home-intro {
  margin: 1.25rem 0 1.75rem;
  font-size: 1rem;
  line-height: 1.45;
}

.fotopoly-home-intro h1 {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.65rem;
}

.fotopoly-home-intro p {
  margin: 0;
}

.fotopoly-home-intro ul,
.fotopoly-stamp-notes ul {
  list-style: disc;
  list-style-position: outside;
  margin: 0.4rem 0 0;
  padding-left: 1.5rem;
}

.fotopoly-home-intro li,
.fotopoly-stamp-notes li {
  margin: 0.15rem 0;
  list-style: disc;
  display: list-item;
}

.fotopoly-stamp-notes {
  margin-top: 0.75rem;
}

.footer-map__link {
  display: block;
}

.footer-map__image {
  max-width: 100%;
  height: auto;
}

.cms-map {
  margin-top: 1rem;
}

.cms-map__frame {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* Logged-in account menu: same pill as the cart, readable dropdown */
#header .ps-customersignin .header-block__action-btn,
#header .ps-customersignin button.header-block__action-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.95rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(0, 0, 0, 0.65) !important;
  color: #fff !important;
  text-decoration: none;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

#header .ps-customersignin .header-block__action-btn:hover,
#header .ps-customersignin .header-block__action-btn:focus,
#header .ps-customersignin .header-block__action-btn.show {
  background: rgba(0, 0, 0, 0.7) !important;
  color: #fff !important;
  opacity: 1;
}

#header .ps-customersignin .header-block__action-btn .header-block__icon,
#header .ps-customersignin .header-block__action-btn .header-block__title {
  color: #fff !important;
}

#header .ps-customersignin .dropdown-menu {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  padding: 0.35rem 0;
  z-index: 1080;
}

#header .ps-customersignin .dropdown-menu a,
#header .ps-customersignin .dropdown-item,
#header .ps-customersignin .dropdown-item .material-icons {
  color: #222 !important;
  opacity: 1;
}

#header .ps-customersignin .dropdown-item:hover,
#header .ps-customersignin .dropdown-item:focus {
  background: #f2f2f2;
  color: #111 !important;
  opacity: 1;
}

#header .ps-customersignin .dropdown-divider {
  border-top-color: #e5e5e5;
}

/* Stamp product sheet: 3 rows */
.page-product .product-stamp .product-customization__title,
.page-product .product-stamp .product-customization__action {
  display: none;
}

.product-stamp__description {
  margin-top: 1rem;
}

.product-stamp__save {
  margin-top: 1.25rem;
}

.product-stamp__form {
  display: contents;
}

.product-stamp__cart .product__add-to-cart-container {
  padding-top: 0.25rem;
}

/* Native file input uses the browser language (Choose file). Custom control is Slovak. */
.fotopoly-file {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fotopoly-file__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fotopoly-file__btn {
  margin: 0;
  cursor: pointer;
}

.fotopoly-file__name {
  color: #495057;
  font-size: 0.9rem;
}

@media (min-width: 992px) {
  .page-product .product-stamp.product__container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .product-stamp__cart {
    grid-column: 1 / -1;
  }
}

/* osCommerce-style subcategory gallery on parent categories */
.category__header .subcategory {
  margin: 1rem 0 0;
}

.category__header .subcategory__list--with-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  align-items: start;
  overflow: visible;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .category__header .subcategory__list--with-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.category__header .subcategory__link--with-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: normal;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
}

.category__header .subcategory__link--with-image:hover {
  background: transparent;
  color: var(--bs-link-hover-color, #0a58ca);
}

.category__header .subcategory__thumbnail {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 0;
}

.category__header .subcategory__name {
  line-height: 1.3;
}

.fotopoly-category-nested #search_filters,
.fotopoly-category-nested #js-product-list-top,
.fotopoly-category-nested .products__selection,
.fotopoly-category-nested #offcanvas-faceted {
  display: none !important;
}

/* Homepage: no breadcrumb text — keep the height of a single-line trail + its margin */
body#index .fotopoly-home-header-gap {
  background-color: transparent;
  min-height: calc(1.5rem + 1.3125rem); /* padding-y 0.75rem × 2 + 0.875rem × line-height 1.5 */
}

/* Full breadcrumb on mobile (theme clips it with nowrap + hidden scroll) */
@media (max-width: 767.98px) {
  .breadcrumb__wrapper .breadcrumb {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 0.15rem;
    column-gap: 0.35rem;
  }

  .breadcrumb__wrapper .breadcrumb-item {
    white-space: normal;
  }
}

.product-miniature__quickview-button,
.product-miniature__quickview-touch {
  display: none !important;
}
