/* Small project-specific adaptations. Layout and components come from the template CSS. */
:root { --pl-navy: #18294f; --pl-gold: #d9bc7a; }

body { background: #fff; }
#mt-header .pl-template-logo { width: 190px; height: 62px; overflow: hidden; }
#mt-header .pl-template-logo img { display: block; width: 142px; height: 142px; margin-top: -40px; object-fit: contain; }
#mt-header .mt-icon-list .pl-search-item { margin-top: 4px; }
#mt-header .pl-search-item label { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #d8d8d8; }
#mt-header .pl-search-item .icon-magnifier { flex: 0 0 22px; }
#mt-header .pl-search-item input { width: 110px; padding: 5px 0; color: #2e2e2e; border: 0; outline: 0; background: transparent; font: 13px/1 "Source Sans Pro", sans-serif; }
#mt-header .pl-search-item input::placeholder { color: #a5a5a5; }
#mt-header #nav > ul > li > a { font-size: 12px; letter-spacing: .08em; }

.pl-catalogue-banner { min-height: 185px; background-color: #18294f; background-position: center 32%; background-size: cover; }
.pl-catalogue-banner::before { background: rgba(24,41,79,.45); }
.pl-catalogue-banner h1 { position: relative; z-index: 1; color: #fff; letter-spacing: .12em; }
.pl-catalogue-banner .breadcrumbs { position: relative; z-index: 1; }
.pl-catalogue-container { padding-top: 50px; padding-bottom: 90px; }

#sidebar .shop-widget.filter-widget.bg-grey { min-height: 130px; }
.pl-filter-empty { margin: 0 0 10px; color: #8c8c8c; font-size: 13px; line-height: 1.5; }
.pl-filter-empty[hidden] { display: none; }
#sidebar .nice-form { max-height: 330px; overflow-y: auto; }
#sidebar .nice-form li { min-height: 22px; }
#sidebar .nice-form .fake-label { text-transform: uppercase; }
#sidebar .pl-category-checks { margin-bottom: 20px; padding-left: 5px; }
#sidebar .pl-category-checks li { margin-bottom: 10px; }
#sidebar .pl-category-checks label { cursor: pointer; }
#sidebar .pl-filter-group-title { margin: 22px 0 12px; color: #555; font-size: 13px; font-weight: 600; letter-spacing: .08em; }
#sidebar .pl-filter-group-title--brands,
#sidebar .pl-filter-group-title--other { padding-top: 18px; border-top: 1px solid #e6e6e6; }
#sidebar .category-list .name { text-transform: uppercase; }
#sidebar .pl-source-category-widget .category-list { max-height: 300px; overflow-y: auto; padding-right: 8px; }
#sidebar .pl-source-category-widget .category-list .name { display: block; overflow: hidden; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
#sidebar .pl-source-category-widget .category-list a.is-active .name { color: #18294f; font-weight: 600; }
#sidebar .pl-catalogue-contact-widget p { color: #8c8c8c; line-height: 1.5; }
#sidebar .pl-catalogue-contact-widget .btn-type2 { display: inline-block; padding: 8px 12px; color: #fff; background: #18294f; font-size: 11px; text-decoration: none; }
#sidebar .pl-catalogue-contact-widget .btn-type2:hover { background: #d9bc7a; }

.pl-filters-toggle,
.pl-filters-close,
.pl-filters-backdrop { display: none; }

.pl-filters-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 4px 0 0;
  padding: 12px 20px;
  color: #a5a5a5;
  background: transparent;
  border: 1px solid #d8d8d8;
  border-radius: 20px;
  font: 14px/1 "Source Sans Pro", sans-serif;
  cursor: pointer;
  transition: all ease .5s;
  white-space: nowrap;
}
.pl-filters-inline:hover,
.pl-filters-inline:focus-visible {
  color: #ff6060;
  background: transparent;
  border-color: #ff6060;
  outline: none;
}
.pl-filters-inline .fa { font-size: 13px; }

.mt-shoplist-header .btn-box .mt-reset-filters {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  padding: 11px;
  color: #a5a5a5;
  line-height: 1;
  font-size: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all ease .5s;
}

.mt-shoplist-header .btn-box .mt-reset-filters:hover,
.mt-shoplist-header .btn-box .mt-reset-filters:focus-visible {
  color: #ff6060;
  border-color: #ff6060;
  outline: none;
}

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

@media (min-width: 992px) {
  .mt-shoplist-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }
  .mt-shoplist-header .btn-box {
    float: none;
    margin-bottom: 0;
  }
  .mt-shoplist-header .btn-box > ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .pl-filters-inline { margin-right: 0; }
  .pl-filters-toggle {
    position: fixed;
    top: 132px;
    left: 14px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 16px;
    color: #8c8c8c;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(13, 24, 50, .18);
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, opacity .2s ease, visibility .2s ease;
  }
  .pl-filters-toggle.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
  .pl-filters-toggle:hover,
  .pl-filters-toggle:focus-visible {
    color: #18294f;
    background: #cab388;
    border-color: #cab388;
    box-shadow: 0 10px 24px rgba(13, 24, 50, .24);
    outline: none;
  }
  .pl-filters-toggle .fa { font-size: 14px; }
  .pl-filters-toggle__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }
}

.pl-import-status {
  margin: 18px 0 0;
  padding-top: 12px;
  color: #8c8c8c;
  border-top: 1px solid #e6e6e6;
  font-size: 12px;
  line-height: 1.45;
}

.mt-productlisthold .mt-product1 { display: block; }
.mt-productlisthold .mt-product1 .box { background: #f5f5f5; }
.pl-template-product__button { display: block; width: 100%; height: 235px; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: pointer; }
.pl-template-product__button img { display: block; width: 100%; height: 235px; object-fit: cover; transition: opacity .3s ease, transform .45s ease; }
.pl-template-product__button img.is-unavailable { opacity: .45; }
.pl-template-product__button:hover img, .pl-template-product__button:focus-visible img { opacity: .86; transform: scale(1.025); }
.pl-template-product__button:focus-visible { outline: 2px solid #d9bc7a; outline-offset: -2px; }
.pl-empty { display: none; padding: 50px 20px; color: #8c8c8c; border: 1px solid #e3e3e3; text-align: center; }
.pl-load-more { display: block; margin: 30px auto 0; border: 0; cursor: pointer; }
[data-live-status] { display: block; color: #8c8c8c; font-size: 12px; line-height: 1.4; }

#mt-footer .f-widget-about .logo { width: 58px; height: 58px; overflow: hidden; }
#mt-footer .f-widget-about .logo img { width: 58px; height: 58px; object-fit: contain; }
#mt-footer .address-list a { color: inherit; }

.pl-gallery[hidden] { display: none; }
.pl-gallery { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; overflow: hidden; background: rgba(13,24,50,.96); }
.pl-gallery__close, .pl-gallery__arrow { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border: 1px solid rgba(255,255,255,.5); background: rgba(24,41,79,.7); cursor: pointer; }
.pl-gallery__close { top: 16px; right: 16px; font-size: 28px; line-height: 1; }
.pl-gallery__arrow { top: 50%; transform: translateY(-50%); font-size: 29px; }
.pl-gallery__arrow--prev { left: 16px; }
.pl-gallery__arrow--next { right: 16px; }
.pl-gallery__close:hover, .pl-gallery__close:focus-visible, .pl-gallery__arrow:hover, .pl-gallery__arrow:focus-visible { color: #18294f; background: #d9bc7a; }
.pl-gallery__layout { display: grid; grid-template-columns: 76px minmax(0,1fr); align-items: center; gap: 18px; width: min(1180px, calc(100vw - 120px)); height: min(760px, calc(100dvh - 64px)); max-height: calc(100dvh - 64px); }
.pl-gallery__thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 100%; overflow-y: auto; }
.pl-gallery__thumb { width: 66px; height: 66px; padding: 0; border: 1px solid transparent; background: transparent; cursor: pointer; }
.pl-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl-gallery__thumb.is-active { border-color: #d9bc7a; }
.pl-gallery__stage { display: grid; place-items: center; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 16px 38px; }
.pl-gallery__stage img { display: block; max-width: 100%; max-height: calc(100dvh - 96px); width: auto; height: auto; object-fit: contain; }
.pl-gallery__loading { color: #fff; font: 13px/1.5 "Source Sans Pro", sans-serif; }

@media (max-width: 991px) {
  #mt-header .pl-template-logo { width: 145px; }
  #mt-header .pl-search-item input { width: 75px; }
  .pl-catalogue-container { padding-top: 35px; }
}

@media (max-width: 767px) {
  #mt-header .pl-template-logo { width: 145px; }
  #mt-header .pl-template-logo img { width: 125px; height: 125px; margin-top: -34px; }
  #mt-header .pl-search-item input { display: none; width: 0; }
  .pl-catalogue-banner { min-height: 150px; }
  .pl-catalogue-container { padding-top: 28px; padding-bottom: 60px; }
  body.pl-filters-open { overflow: hidden; }
  #sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 10001;
    width: min(86vw, 360px);
    height: 100dvh;
    margin: 0;
    padding: 66px 22px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    background: #fff;
    box-shadow: 12px 0 30px rgba(13, 24, 50, .18);
    transform: translateX(-105%);
    transition: transform .28s ease, visibility .28s ease;
    animation: none !important;
  }
  #sidebar.is-open { visibility: visible; transform: translateX(0); }
  .pl-filters-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #18294f;
    font-size: 26px;
    line-height: 1;
    background: transparent;
    border: 1px solid #d9d9d9;
    cursor: pointer;
  }
  .pl-filters-toggle {
    position: fixed;
    top: 50%;
    left: 10px;
    z-index: 999;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #18294f;
    background: #fff;
    border: 1px solid #18294f;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(13, 24, 50, .16);
    transform: translateY(-50%);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
  }
  .pl-filters-toggle:hover,
  .pl-filters-toggle:focus-visible {
    color: #fff;
    background: #18294f;
    box-shadow: 0 10px 24px rgba(13, 24, 50, .24);
    outline: none;
  }
  .pl-filters-toggle .fa { font-size: 14px; }
  .pl-filters-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(13, 24, 50, .42);
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
  }
  .pl-filters-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .pl-import-status { margin-top: 24px; }
  .mt-shoplist-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 0; }
  .mt-shoplist-header .btn-box { float: none; width: auto; margin: 0; }
  .mt-shoplist-header .btn-box > ul { display: flex; align-items: center; flex-wrap: nowrap; float: none; }
  .mt-shoplist-header .btn-box > ul > li { flex: 0 0 auto; }
  .pl-filters-inline { margin-right: 0; }
  .mt-productlisthold { width: 102%; }
  .mt-productlisthold > li { width: 49.5%; padding-bottom: 30px; }
  .pl-template-product__button, .pl-template-product__button img { height: 190px; }
  .pl-gallery { padding: 8px; }
  .pl-gallery__layout { display: flex; flex-direction: column-reverse; width: 100%; height: calc(100dvh - 86px); max-height: calc(100dvh - 86px); gap: 8px; }
  .pl-gallery__thumbs { flex: 0 0 58px; flex-direction: row; width: 100%; min-height: 58px; max-height: 58px; overflow-x: auto; overflow-y: hidden; }
  .pl-gallery__thumb { flex: 0 0 52px; width: 52px; height: 52px; }
  .pl-gallery__stage { flex: 1 1 auto; height: auto; min-height: 0; padding: 30px 20px 6px; }
  .pl-gallery__stage img { max-width: 100%; max-height: calc(100dvh - 160px); }
  .pl-gallery__arrow { width: 36px; height: 36px; }
  .pl-gallery__arrow--prev { left: 8px; }
  .pl-gallery__arrow--next { right: 8px; }
  .pl-gallery__close { top: 8px; right: 8px; }
}

/* Catalogue grid: keep the native product card components, but use the available
   content width instead of the template's single-column list rhythm. */
.mt-productlisthold[data-product-grid] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 20px;
  width: 100%;
  margin: 0;
}
.mt-productlisthold[data-product-grid] > li {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
}
.mt-productlisthold[data-product-grid] .pl-template-product__button {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.mt-productlisthold[data-product-grid] .pl-template-product__button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mt-productlisthold[data-product-grid] .box {
  height: auto;
  aspect-ratio: 1 / 1;
  margin-bottom: 0;
}
.mt-productlisthold[data-product-grid] .box .b1,
.mt-productlisthold[data-product-grid] .box .b2 {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .mt-productlisthold[data-product-grid] { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
}

@media (max-width: 767px) {
.mt-productlisthold[data-product-grid] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; width: 100%; }
  .mt-productlisthold[data-product-grid] .pl-template-product__button { background: #fff; }
  .mt-productlisthold[data-product-grid] .pl-template-product__button img {
    padding: 0;
    object-fit: contain;
    background: #fff;
  }
}
