@font-face {
  font-family: 'Factop Serif';
  src: url('../fonts/instrument-serif.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Factop Sans';
  src: url('../fonts/dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --factop-ink: #242b26;
  --factop-muted: #56605a;
  --factop-accent: #29483d;
  --factop-surface: #f0f2ec;
  --factop-line: #dce1da;
  --factop-serif: 'Factop Serif', Georgia, serif;
  --factop-sans: 'Factop Sans', system-ui, sans-serif;
}

body {
  color: var(--factop-ink);
  font-family: var(--factop-sans);
}

body a { color: var(--factop-accent); }
body a:hover { color: var(--factop-ink); }

.factop-header :focus-visible,
.factop-home :focus-visible,
.factop-footer :focus-visible {
  outline: 2px solid var(--factop-accent);
  outline-offset: 3px;
}

#header {
  background: #fff;
  color: var(--factop-ink);
}

.factop-header-inner::before, .factop-header-inner::after { display: none; }

.factop-header { border-bottom: 1px solid var(--factop-line); }

.factop-header-inner {
  display: grid;
  grid-template-columns: max-content minmax(max-content, 1fr) minmax(12rem, 17rem) max-content max-content;
  grid-template-areas: 'brand nav search supplier cart';
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.5rem);
  min-height: 4.45rem;
}

.factop-brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.factop-brand img {
  width: clamp(6.7rem, 11vw, 9.25rem);
  height: auto;
  filter: brightness(0);
}

.factop-nav { grid-area: nav; }

.factop-nav,
.factop-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.25rem;
  align-items: center;
}

.factop-nav a,
.factop-supplier {
  color: var(--factop-ink);
  font-size: .87rem;
  font-weight: 650;
  white-space: nowrap;
}

.factop-nav a:hover,
.factop-supplier:hover,
.factop-footer nav a:hover {
  text-decoration: underline;
  text-underline-offset: .22em;
}

.factop-supplier { grid-area: supplier; }

.factop-search {
  grid-area: search;
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 2.75rem;
  border: 1px solid var(--factop-line);
  border-radius: .25rem;
  background: #fafbf9;
}

.factop-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: .5rem .75rem;
  color: var(--factop-ink);
  font: inherit;
  font-size: .91rem;
}

.factop-search input::placeholder { color: var(--factop-muted); }

.factop-search button {
  width: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--factop-ink);
  cursor: pointer;
}

.factop-search button .material-icons { font-size: 1.3rem; }

.factop-cart {
  grid-area: cart;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 2.85rem;
}

.factop-cart .blockcart .header { display: flex; align-items: center; }
.factop-cart .material-icons { font-size: 1.38rem; }

.factop-cart .header a,
.factop-cart .header > span:first-child {
  display: flex;
  gap: .2rem;
  align-items: center;
  min-height: 2.75rem;
  color: var(--factop-ink);
}

.factop-cart .cart-products-count { font-size: .83rem; }
.factop-cart .header .hidden-sm-down { display: none !important; }
.factop-menu { display: none; }

#wrapper {
  background: #fff;
  box-shadow: none;
}

#index #wrapper { padding-top: 1.25rem; }
.factop-home p { color: var(--factop-muted); }

.factop-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 21rem;
  background: var(--factop-surface);
  overflow: hidden;
}

.factop-hero-copy {
  align-self: center;
  padding: clamp(1.45rem, 4vw, 3.45rem);
}

.factop-hero h1,
.factop-section-head h2 {
  margin: 0;
  color: var(--factop-ink);
  font-family: var(--factop-serif);
  font-weight: 400;
  letter-spacing: -.025em;
  text-transform: none;
}

.factop-hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 5vw, 5.15rem);
  line-height: .96;
}

.factop-hero p {
  max-width: 30ch;
  margin: .9rem 0 1.35rem;
  font-size: 1rem;
  line-height: 1.44;
}

.factop-button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  padding: .6rem .9rem;
  border-radius: .18rem;
  background: var(--factop-accent);
  color: white;
  font-size: .91rem;
  font-weight: 650;
  line-height: 1.2;
}

.factop-button:hover { background: var(--factop-ink); color: white; }

.factop-hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 23rem;
  min-height: 0;
  object-fit: cover;
  object-position: 53% 54%;
}

.factop-departments,
.factop-selection { margin-top: clamp(1.5rem, 4.3vw, 3.25rem); }

.factop-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}

.factop-section-head h2 {
  font-size: clamp(2rem, 3.9vw, 3rem);
  line-height: 1;
}

.factop-text-link {
  flex-shrink: 0;
  color: var(--factop-accent);
  font-size: .84rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.factop-department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.55rem, 2vw, 1.35rem);
}

.factop-department {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f5f6f1;
  color: var(--factop-ink);
  overflow: hidden;
}

.factop-department img {
  display: block;
  width: 100%;
  height: clamp(7rem, 16vw, 12rem);
  object-fit: cover;
  object-position: 50% 54%;
}

.factop-department > span {
  display: flex;
  gap: .25rem;
  justify-content: space-between;
  align-items: baseline;
  padding: .65rem .9rem;
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.22;
}

.factop-department:hover > span { text-decoration: underline; }
.factop-department-arrow { font-size: .93em; font-weight: 400; }

.factop-selection .products,
#products .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  margin: 0;
}

.factop-selection .products > *,
#products .products > * {
  min-width: 0;
  margin: 0;
}

.factop-selection .product-miniature,
#products .product-miniature {
  width: auto;
  margin: 0;
  height: auto;
}

.factop-selection .product-miniature .thumbnail-container,
#products .product-miniature .thumbnail-container {
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--factop-line);
  box-shadow: none;
}

.factop-selection .product-thumbnail,
#products .product-thumbnail {
  display: block;
  background: #f8f9f6;
}

.factop-selection .product-miniature .thumbnail-container .product-thumbnail img,
#products .product-miniature .thumbnail-container .product-thumbnail img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  aspect-ratio: 1.25;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.factop-selection .product-miniature .product-description,
#products .product-miniature .product-description {
  position: static;
  width: auto;
  height: auto;
  min-height: 5.6rem;
  padding: .72rem .8rem .8rem;
  box-shadow: none;
  text-align: left;
}

body .product-miniature .product-title {
  padding: 0;
  margin: 0 0 .38rem;
  text-align: left;
  text-transform: none;
  line-height: 1.3;
}

body .product-miniature .product-title a {
  color: var(--factop-ink);
  font-size: .96rem;
  font-weight: 550;
  text-transform: none;
  overflow-wrap: anywhere;
}

body .product-miniature .product-price-and-shipping {
  color: var(--factop-ink);
  line-height: 1.15;
  text-align: left;
}

.product-miniature .price { font-weight: 700; }
.factop-selection .product-miniature .highlighted-informations,
#products .product-miniature .highlighted-informations { display: none !important; }

.factop-selection .product-flags,
#products .product-flags { display: none; }

#product h1,
#main .page-header h1,
#js-product-list-header h1 {
  color: var(--factop-ink);
  font-family: var(--factop-serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 400;
  text-transform: none;
}

#product .current-price { color: var(--factop-ink); }
.btn-primary, .btn-primary:focus { background: var(--factop-accent); }
.btn-primary:hover { background: var(--factop-ink); }
#footer { padding: 2rem 0; border-top: 1px solid var(--factop-line); }

.factop-footer {
  display: flex;
  gap: 1.4rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.factop-footer nav a { font-size: .9rem; }

.factop-contact-page { max-width: 43rem; }
.factop-contact-page a { text-decoration: underline; }
.factop-contact-page h2 { margin: 1.35rem 0 .55rem; }

@media (max-width: 991px) {
  .factop-header-inner {
    grid-template-columns: 2.75rem minmax(0, 1fr) 3.65rem;
    grid-template-areas:
      'menu brand cart'
      'search search search'
      'supplier supplier supplier';
    gap: 0 .65rem;
    padding-block: .25rem .7rem;
  }

  .factop-brand { justify-self: center; }
  .factop-nav { display: none; }
  .factop-supplier { justify-self: end; margin-top: .4rem; font-size: .74rem; }
  .factop-menu { display: block; grid-area: menu; position: relative; }

  .factop-menu summary {
    display: grid;
    place-items: center;
    min-height: 2.75rem;
    color: var(--factop-ink);
    list-style: none;
    cursor: pointer;
  }

  .factop-menu summary::-webkit-details-marker { display: none; }

  .factop-menu nav {
    position: absolute;
    z-index: 6;
    inset: calc(100% + .25rem) auto auto 0;
    display: grid;
    width: min(18rem, calc(100vw - 2rem));
    padding: .4rem .65rem;
    background: white;
    border: 1px solid var(--factop-line);
    box-shadow: 0 .75rem 1.5rem #242b261a;
  }

  .factop-menu nav a {
    min-height: 2.75rem;
    padding: .62rem .4rem;
    color: var(--factop-ink);
    font-size: .9rem;
  }

  .factop-search input { font-size: 1rem; }

  .factop-selection .products,
  #products .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  #index #wrapper { padding-top: .65rem; }

  .factop-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    min-height: 13.1rem;
  }

  .factop-hero-copy { padding: 1rem .48rem 1rem .83rem; }
  .factop-hero h1 { font-size: clamp(2.33rem, 7.2vw, 3rem); }
  .factop-hero p { margin: .54rem 0 .7rem; font-size: .84rem; line-height: 1.32; }
  .factop-hero-photo { object-position: 56% center; }
  .factop-button { gap: .36rem; padding-inline: .55rem; font-size: .79rem; }
  .factop-section-head { margin-bottom: .66rem; }
  .factop-section-head h2 { font-size: 1.95rem; }
  .factop-text-link { font-size: .77rem; }

  .factop-department img { height: clamp(4.4rem, 20vw, 7rem); }
  .factop-department > span { padding: .42rem .37rem .48rem; font-size: .78rem; }
  .factop-department-arrow { display: none; }

  .factop-selection .products,
  #products .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .factop-selection .product-miniature .thumbnail-container .product-thumbnail img, #products .product-miniature .thumbnail-container .product-thumbnail img { aspect-ratio: 1.48; }
  body .product-miniature .product-title a { font-size: .91rem; }

  .factop-footer { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .factop-footer .factop-brand { align-self: flex-start; }
}

#product .product-cover img {
  box-shadow: none;
  border: 1px solid var(--factop-line);
}

#product .product-flags .new {
  background: var(--factop-surface);
  color: var(--factop-ink);
}

#product .images-container .mask:has(.thumb-container:only-child) {
  display: none;
}

@media (max-width: 575px) {
  #product .product-cover img {
    max-height: 17rem;
    object-fit: contain;
  }

  #product h1 {
    font-size: 2rem;
  }
}
.factop-photo-pending {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.25;
  padding: .7rem;
  background: var(--factop-surface);
  color: var(--factop-muted);
  text-align: center;
  font-size: .85rem;
}

@media (max-width: 575px) {
  .product-thumbnail .factop-photo-pending {
    aspect-ratio: 1.48;
    font-size: .78rem;
  }

  #product .factop-photo-pending {
    max-height: 17rem;
  }
}
