* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f0e8;
  color: #1d1a17;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shop-header {
  min-height: 82px;
  padding: 0 4vw;
  background: #171513;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.shop-logo {
  color: #d5ad69;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
}

.shop-header nav {
  display: flex;
  gap: 27px;
  align-items: center;
}

.shop-header nav a {
  color: #ded7cc;
  text-decoration: none;
  font-size: 12px;
}

.shop-header nav a.active {
  color: #d5ad69;
}

#cart-count {
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 5px;
  background: #d5ad69;
  color: #171513;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
}

.catalog-hero {
  min-height: 300px;
  padding: 60px 5vw;
  background:
    linear-gradient(
      110deg,
      #191715,
      #28221c
    );
  display: flex;
  align-items: center;
  color: white;
}

.catalog-hero > div {
  width: min(
    1380px,
    100%
  );
  margin: auto;
}

.catalog-hero span {
  color: #cfa666;
  font-size: 10px;
  letter-spacing: .2em;
  font-weight: 700;
}

.catalog-hero h1 {
  max-width: 700px;
  margin: 12px 0 13px;
  font:
    400
    clamp(
      38px,
      5vw,
      64px
    )
    Georgia,
    serif;
}

.catalog-hero p {
  margin: 0;
  color: #c4bab0;
  font-size: 14px;
}

.catalog-shell {
  width: min(
    1500px,
    94%
  );
  margin: 0 auto;
  padding: 55px 0 100px;
  display: grid;
  grid-template-columns:
    250px
    minmax(0,1fr);
  gap: 48px;
}

.catalog-filters {
  align-self: start;
  position: sticky;
  top: 25px;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-heading h2 {
  margin: 0;
  font:
    400
    26px
    Georgia,
    serif;
}

#clear-filters {
  border: 0;
  background: transparent;
  color: #896334;
  cursor: pointer;
  text-decoration: underline;
  font-size: 10px;
}

.filter-field {
  margin-top: 28px;
  display: grid;
  gap: 8px;
}

.filter-field > span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #70675d;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 45px;
  border: 1px solid #d0c8bd;
  background: white;
  padding: 0 12px;
  color: #29241f;
}

.catalog-toolbar {
  min-height: 48px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}

.catalog-toolbar strong {
  display: block;
  font:
    400
    18px
    Georgia,
    serif;
}

#catalog-status {
  display: block;
  margin-top: 4px;
  color: #81786e;
  font-size: 10px;
}

.catalog-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.catalog-toolbar label > span {
  font-size: 10px;
  color: #71685e;
}

.catalog-toolbar select {
  min-height: 40px;
  border: 1px solid #d0c8bd;
  background: white;
  padding: 0 10px;
}

.product-grid {
  display: grid;
  grid-template-columns:
    repeat(
      4,
      minmax(0,1fr)
    );
  gap: 28px 18px;
}

.product-card {
  min-width: 0;
}

.product-card a {
  color: inherit;
  text-decoration: none;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: white;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    transform
    .35s ease;
}

.product-card:hover
.product-image img {
  transform: scale(1.025);
}

.product-stock {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 7px;
  background: rgba(
    25,
    23,
    21,
    .88
  );
  color: #e4d3b5;
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-copy {
  padding: 14px 3px 0;
}

.product-brand {
  min-height: 14px;
  color: #a47640;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-name {
  margin-top: 7px;
  min-height: 44px;
  font:
    400
    16px/1.35
    Georgia,
    serif;
}

.product-category {
  margin-top: 7px;
  color: #91877c;
  font-size: 9px;
}

.product-price {
  margin-top: 12px;
  font:
    400
    18px
    Georgia,
    serif;
}

.product-vat {
  margin-top: 3px;
  color: #978e84;
  font-size: 8px;
}

.pagination {
  margin-top: 55px;
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pagination button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid #d0c8bd;
  background: transparent;
  color: #403a34;
  cursor: pointer;
}

.pagination button.active {
  background: #191715;
  border-color: #191715;
  color: white;
}

.pagination button:disabled {
  opacity: .35;
  cursor: default;
}

.mobile-filter-button {
  display: none;
}

.shop-footer {
  min-height: 100px;
  padding: 0 4vw;
  background: #11100f;
  color: #817970;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 10px;
}

.catalog-empty {
  grid-column: 1 / -1;
  min-height: 300px;
  background: #fbf8f3;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #71695f;
}


/* TABLET */

@media (
  min-width: 768px
)
and (
  max-width: 1199px
) {

  .catalog-shell {
    grid-template-columns:
      205px
      minmax(0,1fr);
    gap: 30px;
  }

  .product-grid {
    grid-template-columns:
      repeat(
        3,
        minmax(0,1fr)
      );
  }

}


/* MOBILE */

@media (
  max-width: 767px
) {

  .shop-header {
    min-height: 70px;
    padding: 0 18px;
  }

  .shop-logo {
    font-size: 12px;
  }

  .shop-header nav a {
    display: none;
  }

  .shop-header nav a:last-child {
    display: block;
  }

  .catalog-hero {
    min-height: 230px;
    padding: 40px 20px;
  }

  .catalog-hero h1 {
    font-size: 39px;
  }

  .catalog-shell {
    width: 100%;
    padding: 28px 18px 70px;
    display: block;
  }

  .catalog-filters {
    display: none;
    position: static;
    margin-bottom: 25px;
    padding: 20px;
    background: #ebe4d9;
  }

  .catalog-filters.open {
    display: block;
  }

  .mobile-filter-button {
    width: 100%;
    min-height: 48px;
    margin-bottom: 20px;
    display: block;
    border: 1px solid #b99b73;
    background: #191715;
    color: white;
  }

  .catalog-toolbar {
    align-items: flex-start;
  }

  .catalog-toolbar label {
    display: none;
  }

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

  .product-name {
    font-size: 14px;
  }

  .product-price {
    font-size: 16px;
  }

  .product-category {
    display: none;
  }

  .shop-footer {
    padding: 30px 20px;
    align-items: flex-start;
    flex-direction: column;
  }

}


/* SMALL MOBILE */

@media (
  max-width: 390px
) {

  .product-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .product-name {
    min-height: 0;
  }

}
