/* MARTIVI favorites catalogue v85.0 — standalone page styles. */

html {
  min-height: 100%;
  background: #f6f8fa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.mfw-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #f6f8fa;
  color: #172536;
  font-family: "BPG Square", Arial, sans-serif;
}

.mfw-page button,
.mfw-page input {
  font: inherit;
}

.mfw-page a {
  color: inherit;
}

.mfw-header {
  border-bottom: 1px solid #e1e8f0;
  background: #fff;
}

.mfw-header-inner,
.mfw-main {
  width: min(1200px, calc(100% - 34px));
  margin: 0 auto;
}

.mfw-header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 24px;
}

.mfw-brand {
  flex: 0 0 auto;
  color: #142d49;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.03em;
  text-decoration: none;
}

.mfw-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: auto;
}

.mfw-nav a,
.mfw-back {
  color: #42566d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.mfw-nav a:hover,
.mfw-nav a:focus-visible,
.mfw-back:hover,
.mfw-back:focus-visible {
  color: #1558b0;
  text-decoration: underline;
  outline: none;
}

.mfw-header-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.mfw-cart-slot,
.mfw-favorites-slot {
  display: flex;
  min-width: 0;
  align-items: center;
}

.mfw-main {
  padding: 27px 0 72px;
}

.mfw-back {
  display: inline-flex;
  margin-bottom: 22px;
}

.mfw-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.mfw-eyebrow {
  margin: 0 0 5px;
  color: #0b779a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.mfw-heading-row h1 {
  margin: 0;
  color: #142d49;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
}

.mfw-intro {
  max-width: 670px;
  margin: 9px 0 0;
  color: #6b7d91;
  font-size: 14px;
  line-height: 1.65;
}

.mfw-count-box {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 3px;
  padding: 12px 15px;
  border: 1px solid #dce7f0;
  border-radius: 10px;
  background: #fff;
  color: #64788e;
  text-align: right;
}

.mfw-count-box strong {
  color: #1558b0;
  font-size: 19px;
}

.mfw-count-box span {
  font-size: 11px;
}

.mfw-toolbar {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mfw-status {
  min-height: 19px;
  color: #64788e;
  font-size: 12px;
}

.mfw-clear {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #f0c5ca;
  border-radius: 7px;
  background: #fff7f8;
  color: #b33b48;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.mfw-clear:hover,
.mfw-clear:focus-visible {
  border-color: #b33b48;
  background: #fff0f1;
  outline: none;
}

.mfw-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.mfw-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce5ee;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(20, 42, 70, .06);
}

.mfw-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: #f1f4f7;
}

.mfw-card-media > a:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

.mfw-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mfw-card-media-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: #7890a7;
  font-size: 36px;
}

.mfw-card-view {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #1558b0;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(20, 42, 70, .12);
}

.mfw-card-view:hover,
.mfw-card-view:focus-visible {
  background: #fff;
  color: #0b4a9f;
  outline: none;
}

.mfw-card-body {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px 12px 13px;
}

.mfw-card-name {
  display: block;
  min-height: 38px;
  overflow: hidden;
  color: #142d49;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
}

.mfw-card-name:hover,
.mfw-card-name:focus-visible {
  color: #1558b0;
  text-decoration: underline;
  outline: none;
}

.mfw-card-price-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.mfw-card-price {
  color: #0b779a;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.mfw-card-old-price {
  color: #8492a1;
  font-size: 12px;
  text-decoration: line-through;
  white-space: nowrap;
}

.mfw-card-id {
  display: inline-flex;
  min-width: 0;
  min-height: 20px;
  align-items: center;
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid #b8dce6;
  border-radius: 6px;
  background: #e7f4f7;
  color: #006b8f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.mfw-card-sale {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 4px 7px;
  border: 1px solid #ffd5d8;
  border-radius: 7px;
  background: #fff5f5;
  color: #c62835;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.mfw-card-sizes {
  min-height: 34px;
  margin-top: 7px;
  color: #1c2733;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  overflow: visible;
  white-space: normal;
}

.mfw-card-sizes-label {
  font-size: 10px;
  white-space: nowrap;
}

.mfw-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: auto;
  padding-top: 11px;
}

.mfw-card-add,
.mfw-card-remove {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mfw-card-add {
  padding: 7px 8px;
  border: 1px solid #006b8f;
  background: #006b8f;
  color: #fff;
}

.mfw-card-add:hover,
.mfw-card-add:focus-visible {
  border-color: #004d68;
  background: #004d68;
  outline: none;
}

.mfw-card-remove {
  width: 38px;
  padding: 7px 5px;
  border: 1px solid #f0c5ca;
  background: #fff7f8;
  color: #b33b48;
}

.mfw-card-remove:hover,
.mfw-card-remove:focus-visible {
  border-color: #b33b48;
  background: #fff0f1;
  outline: none;
}

.mfw-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 74px 20px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #fff;
  color: #64788e;
  text-align: center;
}

.mfw-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #eef4fa;
  color: #5b82aa;
  font-size: 31px;
}

.mfw-empty h2 {
  margin: 3px 0 0;
  color: #1c2f45;
  font-size: 20px;
}

.mfw-empty p {
  max-width: 360px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.mfw-primary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 8px 16px;
  border-radius: 7px;
  background: #1f6feb;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.mfw-primary-link:hover,
.mfw-primary-link:focus-visible {
  background: #1558b0;
  outline: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .mfw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .mfw-header-inner,
  .mfw-main {
    width: min(100% - 24px, 620px);
  }

  .mfw-header-inner {
    min-height: 64px;
    gap: 10px;
  }

  .mfw-brand {
    font-size: 20px;
  }

  .mfw-nav {
    display: none;
  }

  .mfw-header-tools {
    margin-left: auto;
  }

  .mfw-main {
    padding-top: 20px;
  }

  .mfw-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .mfw-count-box {
    justify-items: start;
    text-align: left;
  }

  .mfw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mfw-card-body {
    padding: 10px 9px 10px;
  }

  .mfw-card-name {
    min-height: 35px;
    font-size: 13px;
  }

  .mfw-card-price {
    font-size: 15px;
  }

  .mfw-card-old-price {
    font-size: 10px;
  }

  .mfw-card-id {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 9px;
  }

  .mfw-card-sizes {
    font-size: 10px;
  }

  .mfw-card-sizes-label {
    font-size: 9px;
  }

  .mfw-card-add,
  .mfw-card-remove {
    min-height: 36px;
    font-size: 10px;
  }

  .mfw-card-remove {
    width: 35px;
  }
}

@media (max-width: 410px) {
  .mfw-grid {
    grid-template-columns: 1fr;
  }

  .mfw-card {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr);
  }

  .mfw-card-media {
    aspect-ratio: auto;
    min-height: 160px;
  }

  .mfw-card-body {
    min-width: 0;
  }
}
