/* Shared by the initial Liquid grid and Shoplazza's filtered and paginated cards. */
#nova-theme.cv-hat-clean.template-collection {
  --catalog-edge: clamp(16px, 4vw, 56px);
  --catalog-max: 1500px;
  --catalog-ink: #24221f;
  --catalog-rule: #e2ded7;
  --catalog-font: MFInstrument, CVBarlow, Arial, sans-serif;
}
#nova-theme.cv-hat-clean.template-collection .mf-collection-intro {
  margin: 0;
  padding: clamp(32px, 4.4vw, 66px) 0 clamp(21px, 2.8vw, 40px);
  background: transparent;
  text-align: start;
}
#nova-theme.cv-hat-clean.template-collection .mf-collection-banner-inner {
  max-width: var(--catalog-max);
  margin: auto;
  padding: 0 var(--catalog-edge);
}
#nova-theme.cv-hat-clean.template-collection .mf-collection-intro h1 {
  margin: 0;
  color: var(--catalog-ink);
  font: 400 clamp(42px, 5.3vw, 76px)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
#nova-theme.cv-hat-clean.template-collection .mf-collection-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  min-height: 48px;
  max-width: calc(var(--catalog-max) - var(--catalog-edge) * 2);
  margin: 0 max(var(--catalog-edge), calc((100% - var(--catalog-max)) / 2 + var(--catalog-edge)));
  padding: 0;
  color: var(--catalog-ink);
  border: 0;
  border-block: 1px solid var(--catalog-rule);
  background: transparent;
}
#nova-theme.cv-hat-clean.template-collection .mf-toolbar-filter,
#nova-theme.cv-hat-clean.template-collection .mf-toolbar-sort label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 500 14px/1.2 var(--catalog-font);
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
}
#nova-theme.cv-hat-clean.template-collection .mf-toolbar-count {
  display: flex;
  align-items: center;
  -webkit-margin-start: auto;
          margin-inline-start: auto;
  color: #65615a;
  font: 400 13px/1.3 var(--catalog-font);
  white-space: nowrap;
}
#nova-theme.cv-hat-clean.template-collection .mf-toolbar-sort {
  position: relative;
  min-width: 0;
  min-height: 44px;
  border: 0;
}
#nova-theme.cv-hat-clean.template-collection .mf-toolbar-sort select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
}
#nova-theme.cv-hat-clean.template-collection .mf-toolbar-sort:focus-within,
#nova-theme.cv-hat-clean.template-collection .mf-collection-card :focus-visible {
  outline: 2px solid #554e45;
  outline-offset: 2px;
}
#nova-theme.cv-hat-clean.template-collection .mf-collection-container {
  width: 100%;
  max-width: var(--catalog-max);
  margin: 16px auto 0;
  padding: 0 var(--catalog-edge);
}
#nova-theme.cv-hat-clean.template-collection #collection_list_target {
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  scroll-margin-top: 76px;
}
#nova-theme.cv-hat-clean.template-collection #collection-list {
  display: grid;
  grid-template-columns: repeat(var(--mf-desktop-columns, 4), minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin: 0;
  padding: 0;
}
#nova-theme.cv-hat-clean.template-collection #collection-list > spz-product-snippet {
  display: block;
  min-width: 0;
}
#nova-theme.cv-hat-clean.template-collection #collection-list > spz-product-snippet > div { height: 100%; }
#nova-theme.cv-hat-clean.template-collection #collection-list > [role=loadmore] { grid-column: 1 / -1; }
#nova-theme.cv-hat-clean.template-collection .mf-collection-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--catalog-ink);
}
#nova-theme.cv-hat-clean.template-collection .mf-card-figure {
  position: relative;
  isolation: isolate;
  flex: none;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background: #f6f4f0;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  isolation: isolate;
  mix-blend-mode: multiply;
  background: #fff;
}
/* Reuse the cached photo's outermost pixel row/column as a stretched border.
   The complete original sits above the extension, preserving brims and lettering. */
#nova-theme.cv-hat-clean.template-collection .mf-card-media[data-edge-axis]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid transparent;
  border-image-source: var(--photo-edge);
  border-image-repeat: stretch;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-media[data-edge-axis="y"]::before {
  border-image-slice: 1 0;
  border-image-width: 50% 0;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-media[data-edge-axis="x"]::before {
  border-image-slice: 0 1;
  border-image-width: 0 50%;
}
#nova-theme.cv-hat-clean.template-collection .cv-hat-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-media img {
  -o-object-fit: contain !important;
     object-fit: contain !important;
  -o-object-position: center !important;
     object-position: center !important;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-placeholder {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
  margin: auto;
  opacity: .24;
}
#nova-theme.cv-hat-clean.template-collection .cv-hat-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  inset-inline-start: 8px;
  padding: 4px 7px;
  background: #141414;
  color: #fff;
  border: 0;
  border-radius: 1px;
  font: 600 11px/1.2 Arial, sans-serif;
  letter-spacing: .025em;
  pointer-events: none;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 10px 0 0;
  gap: 0;
  border: 0;
  text-align: start;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-title {
  width: 100%;
  height: auto;
  min-height: 2.8em;
  max-height: 2.8em;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--catalog-ink);
  font: 500 15px/1.4 var(--catalog-font);
  letter-spacing: .005em;
  text-transform: none;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-title a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
  max-width: 100%;
  margin: 3px 0 0;
  color: var(--catalog-ink);
  line-height: 1.35;
  text-decoration: none;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-price-current {
  color: #1d1b19;
  font: 700 16px/1.35 Arial, sans-serif;
}
#nova-theme.cv-hat-clean.template-collection .mf-card-price-compare {
  color: #746f68;
  font: 400 16px/1.35 var(--catalog-font);
  text-decoration: line-through;
}
#nova-theme.cv-hat-clean.template-collection .cv-hat-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  min-height: 44px;
  margin: auto 0 0;
  padding: 0 10px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #37332e;
  font: 500 14px/1.3 var(--catalog-font);
  text-decoration: underline;
  text-decoration-color: #a69f95;
  text-underline-offset: 4px;
  cursor: pointer;
}
#nova-theme.cv-hat-clean.template-collection button.cv-hat-card-action::after {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(currentColor, currentColor) center / 8px 1px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1px 8px no-repeat;
}
@media (hover:hover) {
  #nova-theme.cv-hat-clean.template-collection .mf-card-title a:hover,
  #nova-theme.cv-hat-clean.template-collection .cv-hat-card-action:hover {
    background: transparent;
    color: #171512;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 4px;
  }
}
#nova-theme.cv-hat-clean.template-collection #filter-sidebar {
  background: white;
  color: var(--catalog-ink);
}
#nova-theme.cv-hat-clean.template-collection #filter-sidebar .filter-mobile-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
@media (min-width: 960px) {
  #nova-theme.cv-hat-clean.template-collection #filter-sidebar {
    max-width: 600px;
    margin-inline: auto;
  }
}
@media (min-width: 700px) and (max-width: 959px) {
  #nova-theme.cv-hat-clean.template-collection #collection-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
  #nova-theme.cv-hat-clean.template-collection #collection-list {
    grid-template-columns: repeat(var(--mf-collection-columns, 2), minmax(0, 1fr));
    gap: 16px 14px;
  }
}

#nova-theme.cv-hat-clean.template-collection .mf-collection-layout { display: block; }
#nova-theme.cv-hat-clean.template-collection .quick-shop-content {
  max-width: min(440px, 94vw);
  max-height: 82vh;
  max-height: 82dvh;
  overflow: auto;
  padding: 22px 18px 24px;
  background: #f8f5f0;
  border-radius: 2px;
}
#nova-theme.cv-hat-clean.template-collection .cv-hat-quick-heading {
  margin: 0 32px 14px 0;
  font: 500 22px/1.2 Georgia, serif;
  color: #141414;
  overflow-wrap: anywhere;
}
#nova-theme.cv-hat-clean.template-collection .quick-shop_atc_btn {
  min-height: 48px;
  width: 100%;
  background: #141414;
  color: #fff;
  border: 1px solid #141414;
  border-radius: 2px;
}
@media (min-width: 960px) {
  #nova-theme.cv-hat-clean.template-collection #filter-sidebar {
    height: min(75vh, 660px);
    overflow: hidden;
  }
  #nova-theme.cv-hat-clean.template-collection .filter-menu-inner-container {
    overflow: auto;
  }
  #nova-theme.cv-hat-clean.template-collection .filter-menu-inner-container spz-render {
    height: auto !important;
    position: unset !important;
  }
  #nova-theme.cv-hat-clean.template-collection .filter-mobile-header,
  #nova-theme.cv-hat-clean.template-collection .filter-item-header,
  #nova-theme.cv-hat-clean.template-collection .nest-submenu-header,
  #nova-theme.cv-hat-clean.template-collection .filter-nested-submenu,
  #nova-theme.cv-hat-clean.template-collection .filter-mobile-footer {
    padding: 16px;
    border-bottom: 1px solid var(--catalog-rule);
  }
  #nova-theme.cv-hat-clean.template-collection .filter-mobile-close {
    position: absolute;
    inset-inline-end: 12px;
  }
  #nova-theme.cv-hat-clean.template-collection .filter-nested-submenu {
    width: 100%;
    overflow-y: auto;
  }
}
