/* Auth modals: block background scroll without position:fixed (avoids jump on close) */
/* Тригер для JS: Chrome після автозаповнення телефону (animationstart на :-webkit-autofill). */
@keyframes otto-phone-autofill-start {
  to {
    opacity: 1;
  }
}
.masked-phone:-webkit-autofill {
  animation: otto-phone-autofill-start 0.001s 1 both;
}

/* =============================================================================
   OTTO: сайт-вайд — прибираємо нативний/Chrome/Bootstrap “синій” у полях, radio,
   checkbox, select, autofill, accent (дублювати ці стилі в окремих вʼюхах не потрібно)
   ============================================================================= */
html {
  accent-color: #111;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #111;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 600000s 0s, color 600000s 0s;
}

/* Radio: у .variant-picker-values лишаються 1×1px — вища специфічність у styles.css */
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 1.5px solid #c9c9c9;
  border-radius: 50%;
  background: #fff;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input[type="radio"]:hover {
  border-color: #888;
}
input[type="radio"]:checked {
  border-color: #111;
  background: radial-gradient(circle, #111 0 32%, #fff 36% 100%);
}
input[type="radio"]:focus {
  outline: none;
}
input[type="radio"]:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1.5px solid #c9c9c9;
  border-radius: 3px;
  background: #fff;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input[type="checkbox"]:hover {
  border-color: #888;
}
input[type="checkbox"]:checked {
  background-color: #111;
  border-color: #111;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.5' d='M1 4.5l3.5 3.5L11 0.5'/%3E%3C/svg%3E");
  background-size: 10px 8px;
  background-repeat: no-repeat;
  background-position: center;
}
input[type="checkbox"]:focus {
  outline: none;
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* Bootstrap .form-check-input — нейтральні checked / focus (перебиває BS) */
.form-check-input {
  --bs-form-check-bg: #fff;
}
.form-check-input:checked {
  background-color: #111;
  border-color: #111;
  --bs-form-check-bg: #111;
}
.form-check-input[type="checkbox"]:indeterminate {
  background-color: #111;
  border-color: #111;
}
.form-check-input:focus {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
  outline: 0;
}

/* Поля + select: фокус без BS-синього (специфічність вища за input[type]:focus у styles.css) */
input.form-control:focus,
textarea.form-control:focus,
select.form-select:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: #111 !important;
  box-shadow: 0 0 0 1px #111 !important;
  outline: none !important;
}
.form-control,
.form-select,
textarea.form-control {
  color: #111;
}
.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5L6 6l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 10px 6px;
  padding-right: 2.25rem;
  -webkit-text-fill-color: #111;
  accent-color: #111;
}

/* NP / інші автокомпліти: кнопки списку — не системний синій (iOS Safari) */
.np-results button {
  color: #111;
  -webkit-text-fill-color: #111;
  font: inherit;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.np-results button:active {
  background: #f0f0f0 !important;
}

input[type="range"] {
  accent-color: #111;
}
input[type="file"]::file-selector-button {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  border: 1.5px solid #c9c9c9;
  background: #fff;
  color: #111;
  border-radius: 4px;
  padding: 0.4rem 0.85rem;
  margin-right: 0.65rem;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover {
  border-color: #111;
}
progress {
  accent-color: #111;
}

/* -----------------------------------------------------------------------------
   Кнопки .tf-btn на мобільних (iOS / Android WebView): без явного color
   <button> часто рендерить СИНІЙ текст; <a> — обриває fill у span-ів
   ----------------------------------------------------------------------------- */
button.tf-btn,
a.tf-btn,
input[type="submit"].tf-btn,
input[type="button"].tf-btn {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}
a.tf-btn {
  text-decoration: none;
}
.tf-btn.btn-outline:not(.text-danger) {
  color: var(--main, #000) !important;
  -webkit-text-fill-color: var(--main, #000);
  border-color: var(--main, #000);
  background-color: #fff;
}
.tf-btn.btn-outline.text-danger {
  color: #dc3545 !important;
  -webkit-text-fill-color: #dc3545;
  border-color: #dc3545;
}
.tf-btn.btn-fill,
.tf-btn.btn-fill span,
a.tf-btn.btn-fill,
button.tf-btn.btn-fill {
  color: var(--white, #fff) !important;
  -webkit-text-fill-color: #fff;
}
.tf-btn.btn-line {
  color: var(--main, #000) !important;
  -webkit-text-fill-color: var(--main, #000);
}
.tf-btn.btn-primary,
.tf-btn.btn-primary span {
  color: var(--white, #fff) !important;
  -webkit-text-fill-color: #fff;
}

html.auth-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
body.auth-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
/* Global lock while any modal/offcanvas/backdrop is visible. */
html.otto-overlay-open,
body.otto-overlay-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.otto-overlay-open #wrapper,
body.otto-overlay-open #wrapper {
  overflow: hidden !important;
}
.modal.form-sign-in .modal-dialog {
  touch-action: manipulation;
  max-height: min(90dvh, 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* reset animation */
.card-product {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -ms-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

.card-product.grid:hover .card-product-info-hover {
  display: block;
}
.card-product.grid {
  position: relative;
  padding: 15px;
}

.tf-grid-layout {
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.card-product {
  cursor: pointer;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.card-product.grid:hover {
  padding: 15px;
}
@media only screen and (max-width: 499px) {
  .card-product.grid {
    padding: 5px;
  }
  .card-product.grid:hover {
    padding: 5px;
  }
}
.card-product-info-hover {
  display: none;
  position: absolute;
  background-color: white;
  width: calc(100% + 2px);
  z-index: 100000;
  top: 99%;
  left: -1px;
  padding-bottom: 10px;
  text-align: center;
}
.quick-add {
  padding-top: 6px;
  padding-bottom: 6px;
  width: 80%;
  text-align: center;
}
.card-product-info {
  min-width: 0;
}
@media (min-width: 768px) {
  .tf-grid-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .tf-grid-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/*
.card-product .card-product-wrapper:hover .product-img .img-hover{
    transform: none!important;
}
*/

.absolute-wishlist {
  position: absolute;
  top: 0 !important;
  right: 0 !important;
  z-index: 22;
}
/* Wishlist on card: top-right; вищий z-index — картинка інакше перекриває кнопку */
.card-product .card-product-wrapper .list-product-btn.absolute-wishlist {
  left: auto;
  bottom: auto;
  justify-content: flex-end;
  z-index: 35 !important;
}

/* Вішліст: без підкладки; порожньо — контурне серце; в списку — заповнене чорне, теж без фону */
.otto-wishlist-toggle-btn.box-icon {
  background-color: transparent !important;
  box-shadow: none;
}
.otto-wishlist-toggle-btn .otto-wishlist-heart-outline,
.otto-wishlist-toggle-btn .otto-wishlist-heart-filled {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.otto-wishlist-toggle-btn .otto-wishlist-heart-filled {
  display: none;
}
.otto-wishlist-toggle-btn.active .otto-wishlist-heart-outline {
  display: none;
}
.otto-wishlist-toggle-btn.active .otto-wishlist-heart-filled {
  display: flex;
}
.otto-wishlist-toggle-btn.active .icon {
  color: #000 !important;
}
.list-product-btn .otto-wishlist-toggle-btn.box-icon:hover {
  background-color: transparent !important;
  color: var(--main);
}
.list-product-btn .otto-wishlist-toggle-btn.box-icon:hover .icon {
  color: var(--main);
}
.list-product-btn .otto-wishlist-toggle-btn.box-icon.active:hover .icon {
  color: #000 !important;
}
.tf-product-btn-wishlist.otto-wishlist-toggle-btn {
  background-color: transparent !important;
  box-shadow: none;
  border-color: transparent;
}
.tf-product-btn-wishlist.otto-wishlist-toggle-btn:hover {
  border-color: transparent;
}

/* Картка: серце завжди видиме (тема ховає .box-icon до hover на великому екрані з мишкою) */
@media (min-width: 1150px) and (pointer: fine) {
  .card-product .otto-wishlist-toggle-btn.box-icon {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }
}

/* Клік «в обране»: ~+4px scale 0.1s → переключення на заповнене → 0.1s назад */
.otto-wishlist-toggle-btn .otto-wishlist-heart-outline .icon,
.otto-wishlist-toggle-btn .otto-wishlist-heart-filled .icon {
  display: inline-block;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
}
/* +12px до візуального розміру гліфа: картка ~14px (26/14), PDP ~18px (30/18) */
.otto-wishlist-toggle-btn.otto-wishlist-adding .otto-wishlist-heart-outline .icon {
  transform: scale(1.857);
}
.tf-product-btn-wishlist.otto-wishlist-toggle-btn.otto-wishlist-adding .otto-wishlist-heart-outline .icon {
  transform: scale(1.667);
}
.otto-wishlist-toggle-btn.otto-wishlist-added-pop .otto-wishlist-heart-filled .icon {
  animation: otto-wishlist-filled-settle-card 0.1s ease-out forwards;
}
.tf-product-btn-wishlist.otto-wishlist-toggle-btn.otto-wishlist-added-pop .otto-wishlist-heart-filled .icon {
  animation: otto-wishlist-filled-settle-pdp 0.1s ease-out forwards;
}
@keyframes otto-wishlist-filled-settle-card {
  from {
    transform: scale(1.857);
  }
  to {
    transform: scale(1);
  }
}
@keyframes otto-wishlist-filled-settle-pdp {
  from {
    transform: scale(1.667);
  }
  to {
    transform: scale(1);
  }
}

@media only screen and (max-width: 767px) {
  /* Heart/compare above the image slider (wrapper is z-index 20, slider is 25). */
  .card-product .absolute-wishlist {
    z-index: 30;
  }

  .card-product .countdown-box,
  .card-product .compare {
    display: flex;
  }

  /* Відстань між картками товарів для розмірів */
  .card-product {
    margin-bottom: 15px;
  }

  /* На мобільних size-list прихований до взаємодії, але займає місце */
  .card-product .size-list {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
    min-height: 22px;
  }

  /* Показуємо size-list коли слайдер активний */
  .card-product.slider-active .size-list {
    visibility: visible;
    opacity: 1;
  }

  /* Відступ зверху для пагінації */
  .wg-pagination.tf-pagination-list {
    margin-top: 20px;
  }
}

/* Size list як посилання */
a.size-list {
  text-decoration: none;
  cursor: pointer;
}

a.size-list:hover {
  text-decoration: none;
}

/* Індикатор "+N" для додаткових розмірів */
.size-item.size-more {
  background-color: #f0f0f0;
  border-radius: 3px;
  padding: 0 4px;
  color: #666 !important;
}
.tf-top-bar_wrap {
  padding: 4px 0;
}
.top-bar-text {
  font-size: 13px;
}
.tf-top-bar .w_28 {
  width: 22px;
  height: 22px;
}

.tf-product-media-wrap {
  position: relative;
}

.product-back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 40;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-side-breadcrumb {
  margin-bottom: 12px;
  color: #333;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.product-side-breadcrumb::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.product-side-breadcrumb a.text {
  font-size: 15px;
  font-weight: 500;
  color: #000;
  margin-right: 8px;
}

.product-side-breadcrumb .icon {
  font-size: 10px;
  color: #333;
  margin-right: 8px;
  font-weight: 600;
}

.product-brand-large {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  color: #111;
}

.product-size-picker {
  position: relative;
  margin: 14px 0 12px;
}

.product-size-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.product-size-picker-label {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-bottom: 0;
}

.product-size-chart-link {
  border: 0;
  background: transparent;
  color: #111;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  padding: 0;
}
.product-size-chart-link:focus,
.product-size-chart-link:focus-visible,
.product-size-chart-link:active {
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

.product-size-trigger {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.product-add-btn {
  gap: 8px;
}

.product-dynamic-price.has-old-price .product-current-price {
  color: var(--primary) !important;
  font-weight: 600;
}

.product-dynamic-price .product-current-price {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600 !important;
}

.product-dynamic-price .product-old-price {
  font-size: 20px;
  line-height: 1.2;
}

.product-size-single-line {
  margin-top: 10px;
  font-size: 16px;
  color: #111;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.product-size-single-line .label {
  font-weight: 600;
}

.product-size-single-line .value {
  font-weight: 500;
}

.product-info-accordion {
  margin-top: 18px;
  border-top: 1px solid #ececec;
}

.product-info-accordion-item {
  border-bottom: 1px solid #ececec;
}

.product-info-accordion-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
}

.product-info-accordion-trigger .icon {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.product-info-accordion-item.active .product-info-accordion-trigger .icon {
  transform: rotate(180deg);
}

.product-info-accordion-content {
  padding: 0 0 14px 0;
}

.recommendation-ajax-section {
  /*border-top: 1px solid #ececec;*/
}

.recommendation-block + .recommendation-block {
  margin-top: 34px;
}

.recommendation-title-row,
.recommendation-title-row.flat-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 14px;
}

.recommendation-title-row .title {
  font-size: 22px;
  line-height: 1.2;
  text-align: left;
  width: auto;
  flex: 1 1 auto;
  margin: 0;
  font-weight: 600;
}

.recommendation-title-controls {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.recommendation-title-controls .nav-sw {
  position: static !important;
  transform: none !important;
  margin: 0;
  border-radius: 6px;
  width: 42px;
  height: 34px;
}

.recommendation-grid {
  display: flex;
}

.recommendation-state {
  color: #6f6f6f;
  font-size: 14px;
  margin-top: 8px;
}

.recommendation-sw-wrap .sw-dots {
  margin-top: 16px;
}

@media (max-width: 767.98px) {
  .recommendation-title-controls,
  .recommendation-title-controls .nav-sw {
    display: none !important;
  }

  .recommendation-pagination,
  .recommendation-pagination.swiper-pagination,
  .recommendation-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    display: none !important;
  }
}

.product-care-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.product-care-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-care-item-icon img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.tf-product-info-title h5 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.product-size-trigger .arrow {
  font-size: 10px;
  line-height: 1;
  transition: transform 0.35s linear;
}

.product-size-picker.is-open .product-size-trigger .arrow {
  transform: rotate(180deg);
}

.product-size-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1200;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  padding: 10px 10px 8px;
  display: none;
}

.product-size-sheet-hitbox {
  display: none;
}

.product-size-mobile-top,
.product-size-mobile-actions {
  display: none;
}

.product-size-picker.is-open .product-size-popup {
  display: block;
}

.product-size-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  padding-bottom: 6px;
  margin-bottom: 10px;
  width: 100%;
}

.product-size-popup-head .title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

.size-column-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  width: 100%;
}

.size-column-tab {
  border: 0;
  background: transparent;
  color: #666;
  border-radius: 0;
  padding: 0 0 7px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  border-bottom: 2px solid transparent;
}

.size-column-tab.active {
  color: #111;
  border-bottom-color: #111;
}

.size-options-table {
  /*border: 1px solid #ececec;*/
  border-radius: 8px;
  overflow: hidden;
}

.product-size-chart-modal .modal-dialog {
  max-width: min(960px, calc(100vw - 24px));
}

.product-size-chart-modal .modal-content {
  border-radius: 10px;
  overflow: hidden;
}

.product-size-chart-modal .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-size-chart-modal .header .demo-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  padding-left: 20px;
  padding-top: 10px;
}

.product-size-chart-modal .header .icon-close-popup {
  margin-left: auto;
  flex: 0 0 auto;
}

.product-size-chart-modal-body {
  padding: 16px 18px 18px;
}

.product-size-chart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 0;
}

.product-size-chart-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.2;
  color: #444;
  background: transparent;
}

.product-size-chart-tabs .nav-item + .nav-item .nav-link {
  border-left: 1px solid #d5d5d5;
}

.product-size-chart-tabs .nav-link.active {
  background: #ececec;
  color: #111;
  border-bottom-color: #ececec;
}

.product-size-chart-table-wrap {
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  margin-bottom: 14px;
}

.product-size-chart-table {
  margin-bottom: 0;
  min-width: 580px;
}

.product-size-chart-table th,
.product-size-chart-table td {
  font-size: 13px;
  white-space: nowrap;
}

.product-size-chart-table th {
  font-weight: 700;
  background: #f8f8f8;
}

.product-size-chart-measure-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-size-chart-measure-grid {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.product-size-chart-measure-placeholder {
  min-height: 110px;
  border: 1px dashed #bdbdbd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666;
  font-size: 13px;
  padding: 10px;
}

.product-size-chart-measure-image-wrap {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.product-size-chart-measure-image {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
}

.product-size-chart-measure-list {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.45;
}

.product-size-chart-note {
  color: #666;
  font-size: 12px;
  line-height: 1.4;
}

.product-size-chart-note-item {
  margin-top: 6px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  list-style: none;
}

.size-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 10px;
}

.size-options-body {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.size-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #efefef;
  background: #fff;
  color: #111;
  padding: 10px 12px;
  text-align: left;
}

.size-options-body .size-option:last-child {
  border-bottom: 0;
}

.size-option.is-selected {
  background: #f4f4f4;
}

.size-option.out-of-stock {
  opacity: 0.62;
}

.size-option:disabled {
  cursor: not-allowed;
}

.size-option .size-value {
  font-weight: 600;
}

.size-option .vendor-size-value {
  color: #444;
  display: none;
}

.product-size-picker.active-column-vendor .size-option .size-value {
  display: none;
}

.product-size-picker.active-column-vendor .size-option .vendor-size-value {
  display: inline;
  font-weight: 700;
}

.product-size-picker.active-column-size .size-option .size-value {
  font-weight: 600;
}

.size-main-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.size-radio {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 999px;
  border: 2px solid #9e9e9e;
  position: relative;
}

.size-option.is-selected .size-radio {
  border-color: #111;
}

.size-option.is-selected .size-radio::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #111;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.size-option .size-meta {
  font-size: 14px;
  font-weight: 600;
  justify-self: end;
  text-align: right;
}

.size-option .size-meta.is-price.is-discount {
  color: var(--primary);
}

.product-add-btn.is-disabled,
.product-add-btn:disabled {
  opacity: 0.55;
  background: #888 !important;
  border-color: #888 !important;
  pointer-events: none;
}

/* Space between header menu and product area */
.tf-main-product.section-image-zoom {
  margin-top: 24px;
}

/* Bottom sheet: phones / touch. Must match main.js isMobileSheet. */
@media (max-width: 767px), (pointer: coarse) {
  .product-side-breadcrumb {
    padding-bottom: 4px;
  }

  .product-size-picker {
    position: static;
  }

  .product-size-picker-head {
    gap: 8px;
  }

  .product-size-chart-link {
    font-size: 13px;
  }

  .product-size-trigger {
    min-height: 48px;
    font-size: 16px;
    padding: 10px 12px;
  }

  .product-size-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 10px 0 12px;
    max-height: 80dvh;
    overflow: hidden;
    overscroll-behavior: contain;
    z-index: 1201;
    display: none;
    flex-direction: column;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .product-size-popup::before {
    content: "";
    width: 44px;
    height: 4px;
    border-radius: 999px;
    background: #c7c7c7;
    display: block;
    margin: 0 auto 10px;
    flex: 0 0 auto;
  }

  .product-size-picker.is-open .product-size-sheet-hitbox {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    border: 0;
    z-index: 1200;
    padding: 0;
    margin: 0;
  }

  .product-size-mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 20px 12px;
    border-bottom: 1px solid #e8e8e8;
    flex: 0 0 auto;
  }

  .product-size-mobile-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
  }

  .product-size-mobile-price {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    line-height: 1;
  }

  .size-options-body {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
  }

  .size-column-tab {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 0 12px 0;
  }

  .product-size-popup-head {
    padding: 0 20px;
    margin-bottom: 0;
    border-bottom: 1px solid #e8e8e8;
  }

  .product-size-popup-head .title {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
  }

  .size-option {
    grid-template-columns: minmax(0, 1fr) minmax(95px, auto);
    padding: 12px 20px;
  }

  .size-main-cell {
    gap: 12px;
  }

  .size-radio {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-width: 2px;
  }

  .size-option.is-selected .size-radio::after {
    width: 8px;
    height: 8px;
  }

  .size-option .size-value,
  .size-option .vendor-size-value {
    font-size: 14px;
    line-height: 1.2;
  }

  .size-option .size-meta {
    font-size: 13px;
    line-height: 1.2;
  }

  .product-size-mobile-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 10px;
    margin-top: 12px;
    padding: 0 20px;
    flex: 0 0 auto;
  }

  .product-size-mobile-cancel,
  .product-size-mobile-add {
    min-height: 46px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #111;
  }

  .product-size-mobile-add {
    background: #111;
    border-color: #111;
    color: #fff;
  }

  .product-size-picker.is-open .product-size-popup {
    display: flex;
  }

  .size-options-table {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  .product-size-chart-modal .modal-dialog {
    max-width: calc(100vw - 16px);
    margin: 0.5rem auto;
    min-height: calc(100% - 1rem);
    align-items: center;
  }

  .product-size-chart-modal .modal-content {
    border-radius: 12px;
  }

  .product-size-chart-modal-body {
    padding: 12px;
  }

  .product-size-chart-tabs {
    gap: 0;
    margin-bottom: 10px;
  }

  .product-size-chart-tabs .nav-link {
    font-size: 12px;
    padding: 8px 10px;
  }

  .product-size-chart-modal .header .demo-title {
    font-size: 20px;
  }

  .product-size-chart-table {
    min-width: 520px;
  }

  .product-size-chart-table th,
  .product-size-chart-table td {
    font-size: 12px;
    padding: 8px 10px;
  }

  .product-size-chart-measure-grid {
    grid-template-columns: minmax(110px, 150px) minmax(0, 1fr);
  }

  html.size-picker-sheet-open,
  body.size-picker-sheet-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
}

/* Text logo (OTTO / trade) in header only */
#header .logo-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
#header .logo-header img,
#header .logo-header .logo-header-text {
  display: none;
}
#header .logo-header .logo-otto {
  font-family: "Asimovian", sans-serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 1px;
  color: #000;
  display: inline-flex;
  align-items: center;
}
#header .logo-header .logo-trade {
  font-family: "Oxanium", sans-serif;
  font-size: 14px;
  line-height: 1;
  padding: 2px 12px;
  border: 2px solid #000;
  border-radius: 999px;
  color: #000;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}

/* product card */
.product-img img {
  width: 100%;
  object-fit: cover;
  display: none !important; /* Всі зображення спочатку приховані */
}

.product-img img.active {
  display: block !important; /* Показуємо тільки активне зображення */
  opacity: 1 !important;
}

.list-color-product {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  list-style: none;
}

.list-color-item {
  position: relative;
  cursor: pointer;
}

.swatch-value {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ddd;
}

.list-color-item.active .swatch-value {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.list-color-item img {
  display: none; /* Приховуємо зображення кольорів */
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  pointer-events: none;
  margin-bottom: 5px;
}

.list-color-item:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

/* Фонові кольори для зразків */
.bg_orange-3 {
  background-color: #ff8c00;
}
.bg_dark {
  background-color: #000000;
}
.bg_white {
  background-color: #ffffff;
}

/* Стилі для слайдера */
.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  overflow: hidden !important;
}

/* Coarse pointers: reserve horizontal swipes for our JS; avoid first-tap / click quirks. */
@media (max-width: 767px), (pointer: coarse) {
  .card-product .slider-container {
    touch-action: pan-y;
  }
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.slider-item {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  background-color: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* Product media: grid on desktop, slider on mobile */
.tf-product-media-mobile {
  width: 100%;
}
.tf-product-media-mobile .swiper-slide a {
  display: block;
  aspect-ratio: var(--product-card-aspect-ratio, 3 / 4);
  overflow: hidden;
}
.tf-product-media-mobile .swiper-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#gallery-started > a.item {
  display: block;
  aspect-ratio: var(--product-card-aspect-ratio, 3 / 4);
  overflow: hidden;
}
#gallery-started > a.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-zoom-main .drift-zoom-pane,
.tf-zoom-main1 .drift-zoom-pane {
  aspect-ratio: var(--product-card-aspect-ratio, 3 / 4);
  height: auto;
  width: 100%;
  max-width: 520px;
  max-height: min(520px, 70vh);
}

@media (min-width: 768px) and (pointer: fine) {
  #gallery-started {
    grid-template-columns: repeat(6, 1fr);
  }
  #gallery-started > a {
    grid-column: span 3;
  }
  /* layout: 1 */
  #gallery-started.gallery-layout-1 > a {
    grid-column: span 6;
  }
  /* layout: 3 -> 2 on top, 1 full width */
  #gallery-started.gallery-layout-3 > a:nth-child(3) {
    grid-column: span 6;
  }
  /* layout: odd >=5 -> last 3 as 3-per-row */
  #gallery-started.gallery-layout-last3 > a:nth-last-child(-n + 3) {
    grid-column: span 2;
  }
}

@media (min-width: 768px) and (pointer: fine) {
  .tf-product-media-mobile {
    display: none;
  }
  .tf-product-media-grid {
    display: block;
  }
}

@media (max-width: 767px), (pointer: coarse) {
  .tf-product-media-grid {
    display: none;
  }
  .tf-product-media-mobile {
    display: block;
  }
}

/* PhotoSwipe white background + dark icons */
.pswp {
  --pswp-bg: #ffffff;
  --pswp-placeholder-bg: #ffffff;
  --pswp-icon-color: #111111;
  --pswp-icon-color-secondary: #111111;
  --pswp-icon-stroke-color: #111111;
}

/* Посилання всередині слайдера */
.slider-item-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

/* Кнопки навігації */
.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #ffffffb3;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 30;
  border: none;
  outline: none;
}

.slider-button-prev {
  left: 0;
  border-radius: 0 30px 30px 0;
}

.slider-button-next {
  right: 0;
  border-radius: 30px 0 0 30px;
}

/* Показуємо кнопки тільки на десктопі при наведенні */
@media (hover: hover) {
  .card-product-wrapper:hover .slider-button {
    opacity: 1;
  }
}

/* На мобільних пристроях кнопки не показуємо */
@media (max-width: 768px) {
  .slider-button {
    display: none;
  }
}

/* Індикатори слайдів */
.slider-indicators {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 30;
}

/* Always show indicators for product mobile slider */
.tf-product-media-mobile .slider-indicators {
  display: flex;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: white;
}

/* Додаткові стилі для демонстрації */
.card-product-info-hover {
  position: absolute;
  left: 0;
  right: 0;
  transition: top 0.3s ease;
  z-index: 10;
}

.btn-sm {
  display: block;
  width: 100%;
  padding: 4px 16px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-sm:hover {
  background-color: #555;
}

/* Font fixes   */
.facet-title {
  font-weight: 600;
}
@media (min-width: 1150px) {
  .tf-row-flex .tf-shop-content {
    width: calc(82% - 15px);
  }
}
@media (pointer: coarse) {
  .tf-row-flex .tf-shop-content {
    width: 100%;
  }
}

/* Mobile sidebar styles - visible but not sticky */
@media (max-width: 1149px), (pointer: coarse) {
  .tf-row-flex .tf-shop-sidebar {
    width: 100%;
    display: block;
  }
}

@media (min-width: 1150px) {
  .tf-row-flex .tf-shop-sidebar {
    width: calc(18% - 15px);
  }
}
@media (min-width: 1150px) and (pointer: coarse) {
  .tf-row-flex .tf-shop-sidebar {
    width: 100%;
    display: block;
  }
  #mobile-menu-container {
    width: 2% !important;
  }
  #right-side-container {
    width: 80.6% !important;
  }
}
.card-product .card-product-wrapper .on-sale-wrap .on-sale-item {
  background-color: #db1215;
}
.card-product .card-product-wrapper .on-sale-wrap {
  z-index: 100;
  bottom: 35px !important;
  top: unset !important;
}
/* filters */
.tf-row-flex .canvas-body {
  /*
  position: sticky;
  top: 20px;
  height: calc(100vh - 20px);
  overflow-y: hidden;
  */
}
.slider-indicators {
  display: none;
}
.card-product:hover .slider-indicators {
  display: flex !important;
}

@media only screen and (hover: none) and (pointer: coarse) {
  .slider-indicators {
    display: none;
  }
}
.card-product .card-product-info .title {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.top-banner {
  position: relative;
  background: #000;
  width: 100%;
  height: 40px;
  display: flex;
  flex-shrink: 0;
}

/* Hide top-banner on mobile and less than 1150px */
@media (max-width: 1149px) or (pointer: coarse) {
  .top-banner {
    display: none;
  }
  #header {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15) !important;
  }
}

/* Mobile / coarse pointer: document does not scroll — only #wrapper (same idea as a single #app
   column). Sticky #header then uses the wrapper’s scrollport, avoiding iOS Chrome cold-tab /
   visualViewport bugs. */
@media (max-width: 1149px), (pointer: coarse) {
  html,
  body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
  }
  #wrapper {
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }
}

.top-banner-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  height: 100%;
  white-space: nowrap;
  padding: 0 50px;
}

.banner-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

.banner-icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
}

.banner-text {
  font-size: 14px;
  font-weight: 500;
}
.banner-text-short {
  display: none;
}
@media (max-width: 1150px) {
  .banner-text {
    font-size: 12px;
  }
}
@media (max-width: 768px) {
  .banner-item {
    flex-direction: column;
  }
  .banner-icon {
    margin-right: 0;
  }
  .top-banner-content {
    padding: 0;
  }
  .top-banner {
    height: 52px;
    padding-top: 7px;
  }
}
@media (max-width: 500px) {
  .banner-icon {
    width: 22px;
    height: 22px;
  }
  .banner-text {
    display: none;
  }
  .banner-text-short {
    display: block;
  }
  .header-default .wrapper-header {
    min-height: 44px;
  }
  .tf-top-bar {
    display: none;
  }
}
@media (max-width: 1149px), (pointer: coarse) {
  .tf-top-bar {
    display: none;
  }
}
@media (max-width: 400px) {
  .banner-icon {
    width: 20px;
    height: 20px;
  }
  .banner-text-short {
    font-size: 11px;
  }
}
#header {
  /*box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);*/
}

/* Десктоп: міні-меню профілю (hover, як у боковому меню кабінету) */
.tf-header-account-dd {
  position: relative;
  /* «Міст» для hover: abs-меню не входить у висоту батька — padding ловить курсор між іконкою та списком */
  padding-bottom: 14px;
  margin-bottom: -14px;
}
.tf-header-account-dd .tf-dd-account-toggle::after {
  display: none !important;
}
.tf-header-account-dd .dropdown-menu.tf-header-account-dd-menu {
  position: absolute;
  top: 100%;
  right: -4px;
  left: auto;
  margin: 0;
  padding: 10px 0 8px;
  min-width: 200px;
  max-width: min(260px, calc(100vw - 24px));
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  transform: none !important;
  z-index: 1080;
}
/* Не задавати display:none тут — перебиває Bootstrap .dropdown-menu.show (нижча специфічність) */
.tf-header-account-dd .dropdown-menu.tf-header-account-dd-menu.show,
.tf-header-account-dd.is-hover-open .dropdown-menu.tf-header-account-dd-menu {
  display: block !important;
}
/* Стрілка під центром іконки (тригер вирівняний по правому краю дропдауна) */
.tf-header-account-dd .dropdown-menu.tf-header-account-dd-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 18px;
  width: 0;
  height: 0;
  margin-bottom: 3px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.06));
  pointer-events: none;
  transform: translateX(50%);
}
/* Невидимий «міст» між іконкою та меню, щоб не губився hover */
.tf-header-account-dd .dropdown-menu.tf-header-account-dd-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 12px;
}
.tf-header-account-dd .tf-header-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
  white-space: nowrap;
  padding-left: 5px;
}
.tf-header-account-dd .tf-header-dd-item:hover,
.tf-header-account-dd .tf-header-dd-item:focus {
  background-color: rgba(0, 0, 0, 0.04);
  color: #111;
}
.tf-header-account-dd .tf-header-dd-logout {
  justify-content: center;
  font-weight: 600;
  padding-top: 10px;
  padding-bottom: 10px;
}
.tf-header-account-dd .tf-header-dd-divider {
  margin: 6px 0;
  opacity: 1;
  border-color: rgba(0, 0, 0, 0.08);
}

/* Спільні іконки меню кабінету (шапка + sidebar + offcanvas) */
.account-nav-ico {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.account-nav-icon-svg {
  display: block;
  vertical-align: middle;
}

.my-account-nav .my-account-nav-item {
  align-items: center;
  gap: 12px;
}
.my-account-nav .my-account-nav-item .account-nav-ico {
  opacity: 0.9;
}
.my-account-nav .my-account-nav-item:hover .account-nav-ico,
.my-account-nav .my-account-nav-item.active .account-nav-ico {
  opacity: 1;
}
@media only screen and (max-width: 1149px) {
  .logo-header {
    justify-content: flex-start;
  }
}
@media only screen and (max-width: 767px) {
  #header .nav-icon .nav-account,
  #header .nav-icon .nav-wishlist {
    display: block;
  }
}
@media only screen and (max-width: 1200px) {
  .wrapper-header .nav-icon {
    gap: 25px;
  }
}
@media only screen and (max-width: 768px) {
  .wrapper-header .nav-icon {
    gap: 25px;
  }
  #logo-container {
    padding-left: 30px;
    padding-right: 0;
  }
}

@media only screen and (max-width: 400px) {
  .wrapper-header .nav-icon {
    gap: 24px;
  }
}


@media only screen and (max-width: 395px) {
  .wrapper-header .nav-icon {
    gap: 16px;
  }
}
@media only screen and (max-width: 360px) {
  #mobile-menu-container {
    padding-left: 12px;
  }
  #logo-container {
    padding-left: 22px;
    padding-right: 0;
    width: 45%;
  }
  #mobile-items {
    padding-right: 4px;
    padding-left: 0;
    width: 45%;
  }
}
@media only screen and (max-width: 340px) {
  .wrapper-header .nav-icon {
    gap: 11px;
  }
}
@media only screen and (min-width: 1150px) and (pointer: coarse) {
  #mobile-items {
    width: 80%;
  }
}
.box-nav-ul .sub-menu {
  transition: unset !important;
}

/* Після кліку по header nav: сховати mega-menu, поки курсор не зайде на інший .menu-item */
#header.header-mega-dismissed .box-nav-ul .menu-item .sub-menu,
#header.header-mega-dismissed .box-nav-ul .menu-item .mega-menu,
#header.header-mega-dismissed .box-nav-ul .menu-item:hover > .sub-menu,
#header.header-mega-dismissed .box-nav-ul .menu-item:hover > .mega-menu,
.secondary_header.header-mega-dismissed .box-nav-ul .menu-item .sub-menu,
.secondary_header.header-mega-dismissed .box-nav-ul .menu-item .mega-menu,
.secondary_header.header-mega-dismissed .box-nav-ul .menu-item:hover > .sub-menu,
.secondary_header.header-mega-dismissed .box-nav-ul .menu-item:hover > .mega-menu,
#header.header-mega-dismissed .box-nav-ul .menu-item-2 .sub-menu,
.secondary_header.header-mega-dismissed .box-nav-ul .menu-item-2 .sub-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(0) translateY(15px) !important;
  transition-delay: 0s !important;
}
#header .nav-icon .nav-icon-item {
  display: flex;
}
.breadcrumb-spacer {
  padding-left: 10px;
  padding-right: 10px;
}
.tf-shop-breadcrumb a {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}
.tf-shop-breadcrumb span.icon-arrow-right {
  opacity: 0.9;
  font-size: 12px;
}
.tf-shop-control {
  padding-top: 15px;
  border-bottom: 1px solid rgb(210, 210, 210);
  margin-bottom: 0px;
  padding-bottom: 10px;
}
.tf-category-title {
  font-size: 25px;
  font-weight: 600;
  color: #000;
  line-height: 0;
}
.tf-control-layout {
  align-items: center;
}
.tf-control-container {
  display: flex;
  justify-content: flex-end;
}
.tf-control-sorting {
  padding-left: 20px;
}

.tf-control-sorting .tf-dropdown-sort .btn-select {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.tf-control-sorting .btn-select-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-control-sorting .icon-filter {
  font-size: 14px;
  color: #666;
}

/* Mobile category header */
.mobile-category-header {
  padding: 15px 0;
  margin-bottom: 20px;
}
@media (max-width: 1149px), (pointer: coarse) {
  .mobile-category-header {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 10px;
  }
}

/* Mobile category slider */
.mobile-category-slider {
  margin-bottom: 15px;
}

.tag-slider-wrapper {
  position: relative;
  overflow: hidden;
}

.tag-slider {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  cursor: grab;
  white-space: nowrap;
  width: 100%;
  max-width: calc(100vw - 2.5rem);
  flex-wrap: nowrap;
  min-width: 0;
  flex-shrink: 0;
}

.tag-slider::-webkit-scrollbar {
  display: none;
}

.tag {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  background: #f4f4f4;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
  min-width: max-content;
  display: inline-block;
  flex-shrink: 0;
  width: auto;
}

.tag:hover {
  background: #eaeaea;
  text-decoration: none;
  color: #333;
}

.tag.active {
  background: white;
  border: 1px solid #000;
}

/* Градієнти */
.tag-fade {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tag-fade.right {
  right: 0;
  background: linear-gradient(to right, transparent 0%, white 100%);
}

.tag-fade.left {
  left: 0;
  background: linear-gradient(to left, transparent 0%, white 100%);
}

.tag-fade.hidden {
  opacity: 0;
}

/* Firefox specific fixes */
@-moz-document url-prefix() {
  .tag-slider {
    display: -moz-box;
    -moz-box-orient: horizontal;
    -moz-box-pack: start;
    overflow-x: scroll;
    overflow-y: hidden;
  }

  .tag {
    display: -moz-inline-box;
    -moz-box-flex: 0;
    -moz-box-sizing: border-box;
  }
}

/* Hide desktop breadcrumb on mobile */
@media (max-width: 990px) {
  .tf-shop-breadcrumb.d-none.d-lg-flex {
    display: none !important;
  }

  .tf-shop-control.d-none.d-lg-grid {
    display: none !important;
  }
}

.mobile-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 50%;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

.mobile-back-btn:hover {
  background: #e9ecef;
  color: #000;
  text-decoration: none;
}

.mobile-back-btn .icon {
  font-size: 18px;
}

.mobile-title {
  text-align: center;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.mobile-spacer {
  width: 40px;
  height: 40px;
}
.counter-badge {
  position: relative;
  top: -2px;
  font-size: 12px;
  background-color: rgb(244, 244, 244);
  padding: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
  margin-left: 8px;
}

/* Mini pagination in breadcrumb */
.mini-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

@media only screen and (max-width: 767px) {
  .mini-pagination {
    margin-top: 15px;
  }
  #main-logo-container {
    text-align: left !important;
    width: 64% !important;
  }
  #mobile-menu-container {
    width: 11% !important;
  }
}

.mini-pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background-color: #f5f5f5;
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mini-pagination-btn:hover {
  background-color: #e0e0e0;
  color: #333;
}

.mini-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mini-pagination-text {
  font-size: 14px;
  white-space: nowrap;
  color: #000;
  font-weight: 500;
}

/* Safari font fix - use system fonts that support all weights */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  _::-webkit-full-page-media,
  _:future,
  :root body {
    font-family:
      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      Arial, sans-serif !important;
  }
}
#desktop-filters-container {
}
@media (max-width: 1149px), (pointer: coarse) {
  #desktop-filters-container {
    display: none;
  }
}

@media (max-width: 500px) {
  .mobile-title {
    font-size: 19px;
  }
  .size-list {
    display: none !important;
  }
}
@media (max-width: 375px) {
  #main-logo-container {
    width: 42% !important;
  }
  #right-side-container {
    width: 47% !important;
  }
  #header .logo-header .logo-otto {
    font-size: 24px;
  }
  #header .logo-header {
    gap: 3px;
    padding-top: 6px;
  }
  #header .logo-header .logo-trade {
    font-size: 12px;
  }
}

/* Кабінет: центрований блок (внутрішній row у col-xl-11 / col-xxl-10) */
.tf-account-area .my-account-content {
  width: 100%;
}

/* Wishlist у кабінеті — сітка як у категорії, лише фото → товар */
/*
 * У styles.css .wrapper-shop має animation:fadeShop + transition:all і правила для
 * каталожних карток (.wrapper-shop .product-img img — position:absolute, transform).
 * Тут теж є wrapper-shop — без перевизначення браузер двічі перераховує лейаут / анімацію
 * («з’явилось і ще раз перемигнуло» на мобільному після AJAX).
 */
.tf-account-area .tf-account-wishlist-grid.wrapper-shop {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.tf-account-area .tf-account-wishlist-grid .tf-account-wishlist-card .product-img {
  display: block !important;
  overflow: hidden;
  border-radius: 10px;
}
.tf-account-area .tf-account-wishlist-grid .tf-account-wishlist-card .product-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: var(--product-card-aspect-ratio, 3 / 4);
  object-fit: cover;
  vertical-align: middle;
}
/* Один img у кабінеті; глобально .product-img img { display:none } лише для мультикарток з .active */
.tf-account-area .tf-account-wishlist-grid .product-img img.tf-account-wishlist-img,
.tf-account-area .tf-account-wishlist-grid .product-img img.tf-account-wishlist-static-img {
  display: block !important;
  opacity: 1 !important;
  /* Зняти каталожне центрування з styles.css (.wrapper-shop .product-img img … !important) */
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
}

.tf-account-wishlist-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.tf-account-wishlist-remove:hover {
  background: #fff;
  color: #000;
}
.tf-account-wishlist-remove .icon {
  font-size: 12px;
}
.tf-account-wishlist-remove .icon-close:before {
  padding: 0;
}
.tf-account-wishlist-remove:disabled {
  opacity: 0.45;
  cursor: wait;
}
.tf-account-area .tf-account-wishlist-grid .tf-account-wishlist-card .card-product-wrapper {
  margin-bottom: 0;
}

/*
  body.product-card-no-desktop-hover — product_card_desktop_hover_lift = 0 у конфігу
*/
@media (min-width: 1150px) and (pointer: fine) {
  body.product-card-no-desktop-hover .card-product .btn-quick-add,
  body.product-card-no-desktop-hover .card-product .box-icon,
  body.product-card-no-desktop-hover .card-product .size-list {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  body.product-card-no-desktop-hover .card-product .card-product-wrapper .column-left .box-icon,
  body.product-card-no-desktop-hover .card-product .card-product-wrapper .column-right .box-icon {
    transform: none !important;
  }
  body.product-card-no-desktop-hover .card-product.style-4 .column-right .box-icon {
    transform: none !important;
  }
  body.product-card-no-desktop-hover .card-product:hover .card-product-info {
    background-color: transparent !important;
    backdrop-filter: none !important;
    position: relative !important;
    z-index: auto !important;
    top: 0 !important;
    padding-top: 20px !important;
  }
  body.product-card-no-desktop-hover .card-product:hover .countdown-box {
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  body.product-card-no-desktop-hover .card-product:hover .slider-indicators {
    bottom: 10px !important;
  }
}
