/* Custom base/desktop overrides */
.form-check-label em {
  font-size: 0.875rem;
  font-style: normal;
  color: #6c757d;
  display: block;
  margin-top: 0.25rem;
}

/* Footer bottom full-width bar */
.site-footer__bottom {
  background: #333;
  width: 100vw;
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
  padding: 16px calc((100vw - 100%) / 2);
  border: 0;
  color: #ccc;
}

.site-header__topbar.topbar {
  border: 0;
  overflow: visible;
}

/* Topbar account dropdown fallback and stacking fix */
.site-header__topbar .topbar-dropdown {
  position: relative;
}

.topbar-dropdown__btn svg {
  position: absolute;
  top: calc(50% - 2px);
}

.site-header__topbar .topbar-dropdown__body {
  z-index: 1050;
  display: none;
  pointer-events: none;
}

.site-header__topbar .topbar-dropdown--opened .topbar-dropdown__body,
.site-header__topbar .topbar-dropdown:hover .topbar-dropdown__body,
.site-header__topbar .topbar-dropdown:focus-within .topbar-dropdown__body {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: rotateX(0deg);
  transition-delay: 0s, 0s, 0s;
  pointer-events: auto;
}

.site-header__topbar .topbar-dropdown__body .menu--layout--topbar {
  background: #fff;
}

/* Homepage slideshow text contrast controls */
.block-slideshow__slide {
  position: relative;
}

.block-slideshow__slide .block-slideshow__slide-content {
  z-index: 2;
}

.block-slideshow__slide--light .block-slideshow__slide-title,
.block-slideshow__slide--light .block-slideshow__slide-text {
  color: #111;
  text-shadow: none;
}

.block-slideshow__slide--dark .block-slideshow__slide-title,
.block-slideshow__slide--dark .block-slideshow__slide-text {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.block-slideshow__slide--dark .btn {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.block-slideshow__slide--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.wishlist-container {
  border: 2px solid #f0f0f0;
  border-radius: 2px;
  background: #fff;
}

.wishlist-container-header {
  padding: 1.5rem 2rem;
  margin: 0;
  border-bottom: 2px solid #f0f0f0;
  position: relative;
  z-index: 2;
  background: #fff;
}

.wishlist-container-header h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.wishlist-container .page-content.card {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none !important;
}

.wishlist-list-container {
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.wishlist-add-to-new i {
  display: none;
}

.account-nav.flex-grow-1 {
  background-color: #ffffff;
}

.dashboard__address .addresses-list__item--new {
  display: flex;
  width: 100%;
}

.footer-contacts__contacts .company-name {
  font-weight: 600;
}

#customer-form .help-block {
  display: none;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .dashboard__address .addresses-list__item--new {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* List view overrides */
.products-list[data-layout=list] .products-list__item {
  margin: 2px 0 !important;
}

/* Make white-background product photos readable on white cards (grid listing) */
.products-list[data-layout^=grid-] .product-card .product-card__image,
.block-products-carousel[data-layout="grid-5"] .product-card .product-card__image {
  padding: 18px !important;
}

.products-list[data-layout^=grid-] .product-card .product-card__image .product-image__body,
.block-products-carousel[data-layout="grid-5"] .product-card .product-card__image .product-image__body {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(145deg, #ffffff 0%, #fdfdfd 100%) !important;
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.012),
    inset 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
}

.products-list[data-layout^=grid-] .product-card .product-card__image .product-image__body::after,
.block-products-carousel[data-layout="grid-5"] .product-card .product-card__image .product-image__body::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 3px;
  pointer-events: none;
  z-index: 3;
}

.products-list[data-layout^=grid-] .product-card .product-card__image .product-image__img,
.block-products-carousel[data-layout="grid-5"] .product-card .product-card__image .product-image__img {
  top: 4px !important;
  left: 4px !important;
  width: calc(100% - 8px) !important;
  height: calc(100% - 8px) !important;
  object-fit: contain !important;
}

.product-card .product-card__quickadd-form {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 7;
  margin: 0;
}

.product-card .product-card__quickadd {
  border: 0;
  background: transparent;
  color: #ccc;
  fill: currentColor;
  padding: 7px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.product-card .product-card__quickadd svg {
  fill: currentColor;
}

.product-card .product-card__quickadd:hover {
  background: #d9d9d9;
  color: #333;
}

.product-card:hover .product-card__quickadd:not(:disabled) {
  background: #d9d9d9 !important;
  color: #333 !important;
}

.product-card:hover .product-card__quickadd:not(:disabled):hover {
  background: #333 !important;
  color: #fff !important;
}

.product-card .product-card__quickadd:disabled {
  opacity: 1;
  cursor: not-allowed;
  background: #f0f0f0;
  color: #9a9a9a;
  border: 0;
}

.product-card .product-card__quickwishlist {
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 7;
  border: 0;
  background: transparent;
  color: #ccc;
  fill: currentColor;
  padding: 7px;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.product-card .product-card__quickwishlist svg {
  fill: currentColor;
}

.product-card .product-card__quickwishlist:hover {
  background: #d9d9d9;
  color: #333;
}

.product-card:hover .product-card__quickwishlist {
  background: #d9d9d9 !important;
  color: #333 !important;
}

.product-card:hover .product-card__quickwishlist:hover,
.product-card .product-card__quickwishlist.is-active {
  background: #333 !important;
  color: #fff !important;
}

.product-card .product-card__quickview {
  z-index: 7;
}

.product-card:hover .product-card__quickview {
  background: #d9d9d9 !important;
  color: #333 !important;
}

.product-card .product-card__quicklink {
  position: absolute;
  top: 90px;
  right: 0;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #ccc;
  fill: currentColor;
  padding: 7px;
  margin: 0;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.product-card .product-card__quicklink svg {
  fill: currentColor;
}

.product-card .product-card__quicklink:hover {
  background: #d9d9d9;
  color: #333;
}

.product-card:hover .product-card__quicklink {
  background: #d9d9d9 !important;
  color: #333 !important;
}

.product-card:hover .product-card__quicklink:hover {
  background: #333 !important;
  color: #fff !important;
}

.product-card:hover .product-card__quickview:hover {
  background: #333 !important;
  color: #fff !important;
}

.product-card .product-card__unit-price {
  display: inline;
  margin-top: 0;
  font-size: 11px;
  line-height: 1;
  color: #8a8a8a;
  white-space: nowrap;
}

.product-card .product-card__unit-price::before {
  content: "/";
  color: #b3b3b3;
  margin: 0 4px 0 6px;
}

.products-list[data-layout^=grid-] .product-card .product-card__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  margin-top: 10px !important;
}

.product-card .product-card__badge--stock-in {
  background: #e8f7ee;
  color: #1f8b4c;
}

.product-card .product-card__badge--stock-out {
  background: #f2f2f2;
  color: #8a8a8a;
}

/* Category product-card action icons: show only on hover */
@media (min-width: 992px) {
  .products-list .product-card .product-card__quickview,
  .products-list .product-card .product-card__quickadd-form,
  .products-list .product-card .product-card__quickwishlist,
  .products-list .product-card .product-card__quicklink {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .products-list .product-card:hover .product-card__quickview,
  .products-list .product-card:hover .product-card__quickadd-form,
  .products-list .product-card:hover .product-card__quickwishlist,
  .products-list .product-card:hover .product-card__quicklink {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
}

/* Keep category/listing product cards stable on hover */
.products-list[data-layout=list] .product-card--hidden-actions .product-card__buttons {
  display: flex !important;
}

.products-view__list .product-card--hidden-actions:hover {
  margin-bottom: 0 !important;
}

/* Grid cards: reveal quantity + add-to-cart controls centered on image (hover) */
@media (min-width: 992px) {
  .products-list:not([data-layout="list"]) .product-card > .product-card__actions > .product-card__buttons,
  .products-view__list.products-list--grid .product-card > .product-card__actions > .product-card__buttons {
    display: none !important;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image,
  .products-view__list.products-list--grid .product-card .product-card__image {
    position: relative;
  }

  .products-list:not([data-layout="list"]) .product-card,
  .products-view__list.products-list--grid .product-card {
    position: relative;
  }

  .products-list:not([data-layout="list"]) .product-card::after,
  .products-view__list.products-list--grid .product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.10);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 3;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product-card__buttons,
  .products-view__list.products-list--grid .product-card .product-card__image .product-card__buttons {
    display: flex !important;
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    z-index: 6;
    margin: 0 !important;
    width: auto;
    height: auto;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product-card__buttons .product-card__addtocart-form,
  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__quantity,
  .products-view__list.products-list--grid .product-card .product-card__image .product-card__buttons .product-card__addtocart-form,
  .products-view__list.products-list--grid .product-card .product-card__image .product__quantity {
    display: block !important;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__actions,
  .products-view__list.products-list--grid .product-card .product-card__image .product__actions {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 148px;
    gap: 6px;
    margin: 0 !important;
    padding: 8px !important;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    pointer-events: auto;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product-card__addtocart--list,
  .products-view__list.products-list--grid .product-card .product-card__image .product-card__addtocart--list {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center;
    align-items: center;
    height: 34px;
    border-radius: 6px;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__actions-item--addtocart,
  .products-view__list.products-list--grid .product-card .product-card__image .product__actions-item--addtocart,
  .products-list:not([data-layout="list"]) .product-card .product-card__image .product-card__buttons .product-card__addtocart-form,
  .products-view__list.products-list--grid .product-card .product-card__image .product-card__buttons .product-card__addtocart-form {
    width: auto !important;
    margin: 0 auto !important;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__quickadd-form,
  .products-view__list.products-list--grid .product-card .product-card__quickadd-form {
    width: auto;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__quantity,
  .products-view__list.products-list--grid .product-card .product-card__image .product__quantity {
    width: 100%;
    flex: 0 0 auto;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__quantity .input-number__input,
  .products-view__list.products-list--grid .product-card .product-card__image .product__quantity .input-number__input {
    height: 34px;
    line-height: 34px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__quantity .input-number__add,
  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__quantity .input-number__sub,
  .products-view__list.products-list--grid .product-card .product-card__image .product__quantity .input-number__add,
  .products-view__list.products-list--grid .product-card .product-card__image .product__quantity .input-number__sub {
    height: 34px;
    width: 30px;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__actions-item,
  .products-view__list.products-list--grid .product-card .product-card__image .product__actions-item {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product__actions,
  .products-view__list.products-list--grid .product-card .product-card__image .product__actions {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .products-list:not([data-layout="list"]) .product-card:hover .product-card__image .product-card__buttons,
  .products-list:not([data-layout="list"]) .product-card:focus-within .product-card__image .product-card__buttons,
  .products-view__list.products-list--grid .product-card:hover .product-card__image .product-card__buttons,
  .products-view__list.products-list--grid .product-card:focus-within .product-card__image .product-card__buttons {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .products-list:not([data-layout="list"]) .product-card:hover::after,
  .products-list:not([data-layout="list"]) .product-card:focus-within::after,
  .products-view__list.products-list--grid .product-card:hover::after,
  .products-view__list.products-list--grid .product-card:focus-within::after {
    opacity: 1;
  }

  .products-list:not([data-layout="list"]) .product-card .product-card__image .product-card__buttons > *:first-child,
  .products-view__list.products-list--grid .product-card .product-card__image .product-card__buttons > *:first-child {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

.products-list:not([data-layout="list"]) .product-card--hidden-actions:hover,
.products-view__list.products-list--grid .product-card--hidden-actions:hover {
  margin-bottom: 0 !important;
  z-index: auto !important;
}

.products-list[data-layout=list] .product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 0 !important;
  margin: 0 !important;
}

.products-list[data-layout=list] .product-card .product-card--hidden-actions {
  padding-right: 2px !important;
}

.products-list[data-layout=list] .product-card .product-card__image {
  width: 48px !important;
  flex: 0 0 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-right: 1px solid #e5e5e5 !important;
  box-sizing: border-box;
  background: #fff;
  overflow: hidden;
}

.products-list[data-layout=list] .product-card__image .product-image__body {
  width: 48px;
  height: 48px;
  display: block;
}

.products-list[data-layout=list] .product-card__image img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  display: block;
}

.products-list .wishlist-button,
.products-list .wishlist-button-add {
  display: none !important;
}

.products-list[data-layout=list] .product-card .product-card__info {
  flex: 1 1 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
}

.products-list[data-layout=list] .product-card .product-card__name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 350px;
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__list-meta {
  display: none;
}

.products-list[data-layout=list] .product-card .product-card__list-meta {
  display: grid !important;
  grid-template-columns: 7ch 140px !important;
  column-gap: 0 !important;
  align-items: center !important;
  white-space: nowrap;
  flex: 0 0 auto !important;
  margin-left: 12px !important;
  padding-left: 12px !important;
  border-left: 1px solid #e5e5e5;
  align-self: stretch;
}

.products-list[data-layout=list] .product-card .product-card__list-meta > * {
  display: flex;
  align-items: center;
  height: 100%;
  border-left: 0 !important;
  margin-left: 0 !important;
  padding-left: 10px !important;
}

.products-list[data-layout=list] .product-card .product-card__list-price {
  justify-self: stretch !important;
  width: 7ch !important;
  min-width: 7ch !important;
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  white-space: nowrap;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 11px;
  border-right: 1px solid #e5e5e5;
}

.products-list[data-layout=list] .product-card .product-card__list-availability {
  justify-self: start !important;
  width: 140px !important;
  text-align: left !important;
}

.products-list[data-layout=list] .product-card .product-card__availability-qty {
  margin-left: 2px;
}

.products-list[data-layout=list] .product-card__badges-list,
.products-list[data-layout=list] .product-card__variants,
.products-list[data-layout=list] .product-card__description,
.products-list[data-layout=list] .product-card .product-card__description {
  display: none !important;
}

.products-list[data-layout=list] .product-card__quickview {
  display: none;
}

.products-list[data-layout=list] .product-card .product-card__actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
  padding: 0 !important;
  border: 0 !important;
  align-self: stretch;
  flex-shrink: 0;
  width: auto !important;
  position: relative;
  height: 100%;
}

.products-list[data-layout=list] .product-card .product-card__actions .product-card__prices,
.products-list[data-layout=list] .product-card .product-card__actions .product-card__availability {
  display: none !important;
}

.products-list[data-layout=list] .product-card__buttons {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  margin: 0 !important;
  padding-left: 0px;
}

.products-list[data-layout=list] .product-card .product-card__addtocart-form {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.products-list[data-layout=list] .product-card .product-card__addtocart {
  display: inline-flex;
}

.products-list[data-layout=list] .product-card .product-card__addtocart.product-card__addtocart--list {
  padding: 0.5rem 0.5rem !important;
  border-radius: 0.25rem;
}

.products-list[data-layout=list] .product__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
  padding-left: 8px;
  margin-left: 12px;
  border-left: 0;
  height: 100% !important;
  margin: -4px -4px -4px 10px !important;
  padding: 0 0 0 0 !important;
}

.products-list[data-layout=list] .product-card .product-card__actions::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e5e5e5;
}

.products-list[data-layout=list] .product__quantity {
  width: 88px;
  flex: 0 0 88px;
}

.products-list[data-layout=list] .product__quantity .input-number__input {
  height: 32px;
  padding: 0 6px;
  font-size: 0.875rem;
}

.products-list[data-layout=list] .product__quantity .input-number__add,
.products-list[data-layout=list] .product__quantity .input-number__sub {
  width: 28px;
  height: 32px;
}

.products-list[data-layout=list] .product__actions-item {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  margin: 0 !important;
}

.products-list[data-layout=list] .product__actions-item + .product__actions-item {
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
}

.products-list[data-layout=list] .product__actions-item + .product__actions-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: #e5e5e5;
}

.products-list[data-layout=list] .product__actions-item--addtocart {
  margin-left: 0;
}

.products-list[data-layout=list] .product__actions-item.product__actions-item--addtocart {
  padding-left: 0 !important;
}

.products-list[data-layout=list] .product__actions-item.product__actions-item--addtocart::before {
  content: none !important;
}

/* Bestsellers carousel (5 cards in a row): compact title for narrow cards */
.block-products-carousel[data-layout="grid-5"] .product-card .product-card__name {
  font-size: 13px;
  line-height: 1.2;
  margin: 0 0 8px;
  min-height: 0;
  display: block;
}

.block-products-carousel[data-layout="grid-5"] .product-card .product-card__name a {
  font-size: inherit;
  line-height: inherit;
  width: 100%;
}

/* Keep Bestsellers cards visually equal height even with long names/unit prices */
.block-products-carousel[data-layout="grid-5"] .block-products-carousel__cell .product-card {
  height: 100%;
}

.block-products-carousel[data-layout="grid-5"] .owl-item,
.block-products-carousel[data-layout="grid-5"] .block-products-carousel__column,
.block-products-carousel[data-layout="grid-5"] .block-products-carousel__cell,
.block-products-carousel[data-layout="grid-5"] .product-card-wrapper,
.block-products-carousel[data-layout="grid-5"] .product-card {
  min-width: 0;
  width: 100%;
}

.block-products-carousel[data-layout="grid-5"] .product-card .product-card__name a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  max-height: calc(1.2em * 2);
}

.block-products-carousel[data-layout="grid-5"] .product-card .product-card__actions {
  margin-top: auto;
}

.block-products-carousel[data-layout="grid-5"] .product-card .product-card__info {
  padding-top: 0;
  padding-bottom: 0;
}

.block-products-carousel[data-layout="grid-5"] .product-card .product-card__rating {
  margin-top: 0;
}

.block-products-carousel[data-layout="grid-5"] .product-card .product-card__rating-stars,
.block-products-carousel[data-layout="grid-5"] .product-card .product-card__rating-legend {
  margin-top: 0;
}

.block-products-carousel[data-layout="grid-5"] .product-card .product-card__prices {
  margin-top: 5px;
}

.layout-switcher__button.layout-switcher__button--disabled:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#js-product-list .search-empty-state__search #search_widget {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

#js-product-list .search-empty-state__search {
  display: flex;
  justify-content: center;
}

#js-product-list .search-empty-state__search > * {
  width: 100%;
  max-width: 560px;
}

#js-product-list .search-empty-state__search form {
  margin: 0 auto;
}

#js-product-list .search-empty-state__search .search.search--location--indicator {
  width: 100%;
}

#js-product-list .search-empty-state__search .search.search--location--indicator .search__body {
  margin: 0 auto;
}

#js-product-list .search-empty-state__search + .d-flex {
  margin-top: 40px !important;
}

.dropcart__product {
  align-items: center;
}

.dropcart__products-list {
  padding: 14px 14px;
}

.dropcart__product + .dropcart__product {
  margin-top: 14px;
}

.dropcart__product-image {
  width: 62px;
}

.dropcart__product-image .product-image__body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  background: #fff;
  padding: 3px;
}

.dropcart__product-image .product-image__img {
  max-width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.dropcart__product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
}

[dir=ltr] .dropcart__product-info {
  padding-left: 12px;
  padding-right: 8px;
}

[dir=rtl] .dropcart__product-info {
  padding-right: 12px;
  padding-left: 8px;
}

.dropcart__product-name {
  font-size: 14px;
  line-height: 1.25;
  margin-top: 0;
}

.dropcart__product-name a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.25em * 2);
  overflow-wrap: anywhere;
}

.dropcart__product-options {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
}

.dropcart__product-meta {
  margin-top: 3px;
  font-size: 12px;
}

.dropcart__product-price {
  font-size: 13px;
}

.dropcart__product-remove {
  margin-top: 0;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
  color: #7a7a7a;
}

[dir=ltr] .dropcart__product-remove {
  margin-right: 0;
}

[dir=rtl] .dropcart__product-remove {
  margin-left: 0;
}

.dropcart__product-remove:hover {
  border-color: #c8c8c8;
  background: #ededed;
  color: #5f5f5f;
}

.i18n-debug-untranslated {
  color: #b20000 !important;
  background: rgba(255, 0, 0, 0.08) !important;
}

.i18n-debug-static {
  color: #8f0000 !important;
  background: rgba(255, 0, 0, 0.12) !important;
  border: 1px dashed #d30000 !important;
  border-radius: 2px;
  padding: 0 2px;
}

.i18n-debug-badge {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 2000;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.98);
  color: #222;
  font-size: 12px;
  line-height: 1.2;
}

.i18n-debug-badge__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.i18n-debug-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.i18n-debug-dot--u {
  background: rgba(255, 0, 0, 0.25);
}

.i18n-debug-dot--s {
  background: rgba(255, 0, 0, 0.45);
  border: 1px dashed #d30000;
}

/* Cart page: left controls in two rows (coupon first, buttons second) */
.cart.block .row.pt-2 .cart__actions,
.cart.block .row.pt-4 .cart__actions {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.cart.block .row.pt-2 .cart__actions .cart__coupon-form,
.cart.block .row.pt-4 .cart__actions .cart__coupon-form {
  width: 100%;
}

.cart.block .row.pt-2 .cart__actions .cart__buttons,
.cart.block .row.pt-4 .cart__actions .cart__buttons {
  width: 100%;
  justify-content: flex-start;
}

.cart-table__head {
  background: #e3e3e3;
  background-image: none !important;
}

.cart-table__body {
  background: #fff;
}

.cart__table.cart-table {
  border: 1px solid #b3b3b3;
  border-radius: 2px;
}

.cart__table.cart-table .cart-table__head .cart-table__column {
  border-bottom: 1px solid #b3b3b3;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.cart__table.cart-table .cart-table__head .cart-table__column--price {
  text-align: left !important;
}

.cart__table.cart-table .cart-table__body .cart-table__column--price {
  text-align: left !important;
}

@media (min-width: 768px) {
  .cart__table.cart-table .cart-table__column--total {
    width: 110px !important;
  }
}

.cart-table__column--image .product-image__body {
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
}

/* Cart table: compact row spacing */
@media (min-width: 768px) {
  .cart__table.cart-table .cart-table__body .cart-table__column {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .cart__table.cart-table .cart-table__column--image .product-image {
    width: 54px !important;
  }

  .cart__table.cart-table .cart-table__column--image {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .cart__table.cart-table .cart-table__column--product .cart-table__product-name {
    font-size: 14px;
    line-height: 1.15;
  }

  .cart__table.cart-table .cart-table__column--product .cart-table__options {
    font-size: 11px;
    line-height: 13px;
    margin-top: 1px;
  }

  .cart__table.cart-table .cart-table__column--quantity .input-number {
    width: 92px !important;
  }

  .cart__table.cart-table .cart-table__column--quantity .input-number__input {
    min-height: 30px;
    height: 30px;
    padding: 0 20px;
    font-size: 13px;
  }

  .cart__table.cart-table .cart-table__column--quantity .input-number__sub,
  .cart__table.cart-table .cart-table__column--quantity .input-number__add {
    width: 20px;
  }

  .cart-table__column {
    padding: 4px 8px !important;
  }

  .cart-table__body .cart-table__column {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .cart-table__column--image .product-image {
    width: 64px;
  }

  .cart-table__product-name {
    line-height: 1.2;
  }

  .cart-table__options {
    margin-top: 1px;
    font-size: 12px;
    line-height: 14px;
  }

  .cart-table__head .cart-table__column--quantity {
    text-align: center;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .cart-table__body .cart-table__column--quantity {
    text-align: right;
    padding-left: 0 !important;
    padding-right: 8px !important;
  }

  [dir=ltr] .cart-table__body .cart-table__column--quantity {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  [dir=rtl] .cart-table__body .cart-table__column--quantity {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .cart-table__body .cart-table__column--quantity .input-number {
    margin-left: auto;
    margin-right: 0;
    position: relative;
  }

  [dir=ltr] .cart-table__body .cart-table__column--quantity .input-number {
    right: -8px;
  }

  [dir=rtl] .cart-table__body .cart-table__column--quantity .input-number {
    left: -8px;
  }
}

@media (max-width: 767px) {
  .cart-table__row + .cart-table__row {
    margin-top: 6px;
  }

  .cart-table__column--image {
    padding: 10px 10px 6px;
  }

  .cart-table__column--product {
    padding: 0 10px 8px;
  }

  .cart-table__column--price,
  .cart-table__column--quantity,
  .cart-table__column--total {
    padding: 5px 10px;
  }
}

/* Cart table: keep price cell content on one line */
.cart-table__column--price {
  white-space: nowrap;
}

.cart-table__column--price .cart-table__product-price-old,
.cart-table__column--price .cart-table__product-price,
.cart-table__column--price .unit-price-cart {
  display: inline;
  vertical-align: baseline;
}

.cart-table__column--price .cart-table__product-price {
  font-weight: 700;
}

.cart-table__column--price .cart-table__product-price-old,
.cart-table__column--price .cart-table__product-price {
  margin-right: 6px;
}

.cart-table__column--price .unit-price-cart {
  font-size: 12px;
  color: #777;
}

.cart-table__column--price .unit-price-cart::before {
  content: "/ ";
}

.cart__table.cart-table .cart-table__body .cart-table__column--total {
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
  white-space: nowrap;
}

.checkout-sidebar-payment {
  margin-top: 16px;
}

.checkout-sidebar-payment .payment-options {
  margin-top: 0;
}

#checkout-addresses-step .address-selector {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

#checkout-addresses-step .address-selector .checkout-address-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

@media (min-width: 992px) {
  #checkout-addresses-step .address-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.product-description-block .typography h1,
.product-description-block .typography h3,
.product-description-block .typography h4,
.product-description-block .typography h5,
.product-description-block .typography h6 {
  margin-top: 0.75em;
}

.product-description-block .typography li {
  margin-bottom: 0;
}

.empty-category .empty-category__notice {
  margin-top: 0 !important;
}

.empty-category {
  padding: 16px !important;
}

@media (min-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.brands-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.brands-card:hover {
  border-color: var(--polt24-blue-dark);
  box-shadow: 0 10px 24px rgba(17, 63, 103, 0.08);
  transform: translateY(-1px);
}

.brands-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  min-width: 84px;
  height: 84px;
  padding: 10px;
  border: 1px solid #f0f0f0;
  background: #fafafa;
}

.brands-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brands-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.brands-card__title,
.brands-card__name--placeholder {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.brands-card__meta {
  display: block;
  font-size: 13px;
  color: #777;
}

.brands-page__description {
  max-width: none;
  width: 100%;
}

.checkout__totals {
  margin-bottom: 0 !important;
}

.search-page__footer-spacer {
  height: 24px;
}

.checkout-step-panel--auth .col-md-8.col-lg-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

.sitemap-page__description {
  max-width: none;
  width: 100%;
}

.sitemap-page__section {
  border: 1px solid #e0e0e0;
  box-shadow: none;
}

.sitemap-page__section-body {
  padding: 24px 26px;
}

.sitemap-page__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #222;
}

.sitemap-page__links {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 -10px -10px 0;
  padding: 0;
}

.sitemap-page__item {
  width: calc(50% - 10px);
  margin: 0 10px 10px 0;
  min-width: 0;
}

.sitemap-page__link {
  display: inline-block;
  color: #333;
  line-height: 1.35;
}

.sitemap-page__link:hover {
  color: var(--polt24-blue-dark);
}

.sitemap-page__links--nested {
  display: block;
  margin: 8px 0 0;
  padding-left: 16px;
}

.sitemap-page__links--nested .sitemap-page__item {
  width: 100%;
  margin: 0 0 8px;
}
