.brand-page {
  background: #f8f6f1;
  color: #29241d;
  padding: clamp(26px, 4vw, 52px) 0 clamp(42px, 7vw, 86px);
}

.brand-hero,
.catalog-heading {
  background: #29241d;
  color: #fff;
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.brand-hero > div,
.catalog-heading {
  padding: clamp(25px, 5vw, 66px);
}

.brand-hero > div {
  align-self: center;
}

.brand-hero img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 480px;
  object-fit: contain;
  background: #fff;
}

.brand-page h1 {
  color: inherit;
  font: 500 clamp(32px, 5vw, 62px)/1.08 Georgia, serif;
  margin: 0;
  overflow-wrap: anywhere;
}

.brand-hero p,
.catalog-heading p {
  color: #f1debb;
  font-size: 17px;
  line-height: 1.5;
  margin: 14px 0 0;
}

.brand-button {
  background: #eac36d;
  border: 1px solid #eac36d;
  color: #29241d;
  display: inline-block;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 18px;
  padding: 11px 15px;
}

.brand-button:hover,
.brand-button:focus {
  background: #f6d993;
  color: #29241d;
  text-decoration: none;
}

.brand-links,
.product-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.brand-links a {
  background: #fff;
  border: 1px solid #e8e0d4;
  color: #58401c;
  padding: 8px 12px;
}

.brand-links a:hover,
.brand-links [aria-current],
.brand-links .page-num-current {
  background: #58401c;
  border-color: #58401c;
  color: #fff;
  text-decoration: none;
}

.brand-prose,
.product-summary {
  background: #fff;
  border: 1px solid #e8e0d4;
  padding: clamp(21px, 4vw, 46px);
  overflow-wrap: anywhere;
}

.brand-prose {
  font-size: 16px;
  line-height: 1.65;
}

.brand-prose h2,
.catalog-related > h2 {
  font: 500 clamp(23px, 3vw, 34px)/1.2 Georgia, serif;
  margin: 0 0 16px;
}

.brand-prose img,
.brand-prose iframe {
  max-width: 100%;
}

.brand-prose img {
  height: auto;
}

.brand-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.brand-prose a:not(.brand-button),
.product-trail a {
  color: #694519;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-card {
  background: #fff;
  border: 1px solid #e8e0d4;
  color: #29241d;
  display: block;
  height: 100%;
}

.catalog-card:hover {
  border-color: #c68c22;
  color: #694519;
  text-decoration: none;
}

.catalog-card img {
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  width: 100%;
}

.catalog-card h2,
.catalog-card h3 {
  border-top: 1px solid #ede5da;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 15px;
}

.catalog-empty {
  padding: 22px 0;
}

.catalog-pages {
  justify-content: center;
}

.product-trail {
  margin: 0 0 16px;
}

.product-layout,
.contact-layout {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-layout,
.product-description,
.catalog-related {
  margin-top: 24px;
}

.product-gallery {
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e0d4;
}

.product-gallery img {
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  width: 100%;
}

.catalog-gallery {
  margin: 0;
  padding: 0;
}

.product-gallery .bx-wrapper {
  margin-bottom: 40px;
}

.product-gallery .bx-viewport {
  border: 0;
  box-shadow: none;
  left: 0;
}

.product-summary h1 {
  font-size: clamp(24px, 3vw, 37px);
}

.product-summary dl {
  margin: 16px 0 0;
}

.product-summary dl > div {
  display: grid;
  grid-template-columns: minmax(70px, .35fr) minmax(0, 1fr);
  gap: 9px;
  border-top: 1px solid #ede5da;
  padding: 9px 0;
}

.brand-form label {
  display: block;
  margin: 0 0 5px;
}

.brand-form .form-control {
  font-size: 16px;
  margin-bottom: 13px;
}

.brand-page :is(a, button):focus-visible {
  outline: 2px solid #a86e1f;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .brand-hero,
  .contact-layout,
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-hero img {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

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

  .catalog-card h2,
  .catalog-card h3 {
    font-size: 14px;
    padding: 10px;
  }
}

.catalog-layout {
  align-items: start;
  display: grid;
  gap: clamp(16px, 3vw, 30px);
  grid-template-columns: minmax(185px, 230px) minmax(0, 1fr);
}

.catalog-sidebar {
  background: #fff;
  border: 1px solid #e8e0d4;
  border-top: 3px solid #c68c22;
  padding: 18px;
}

.catalog-sidebar h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
}

.catalog-sidebar ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
}

.catalog-sidebar a {
  color: #58401c;
  display: block;
  padding: 10px 12px;
}

.catalog-sidebar a:hover,
.catalog-sidebar [aria-current="page"] {
  background: #f2e6ce;
  color: #402b10;
  text-decoration: none;
}

.catalog-sidebar [aria-current="page"] {
  box-shadow: inset 3px 0 #a86e1f;
  font-weight: 700;
}

.catalog-results .catalog-heading {
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 30px);
}

.catalog-results h1 {
  font-size: clamp(27px, 3vw, 42px);
}

@media (min-width: 768px) and (max-width: 991px) {
  .catalog-results .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .catalog-sidebar a {
    border: 1px solid #e8e0d4;
    padding: 7px 9px;
  }
}

.product-search-form {
  display: flex;
  margin-top: 18px;
  max-width: 560px;
}

.product-search-form input {
  background: #fff;
  border: 1px solid #e8e0d4;
  color: #29241d;
  flex: 1;
  font-size: 16px;
  min-width: 0;
  padding: 10px 12px;
}

.product-search-form .brand-button {
  margin: 0;
}

.product-search-results,
.product-search-empty {
  margin-top: clamp(22px, 4vw, 40px);
}

.product-search-results > h2 {
  font: 500 clamp(21px, 2.6vw, 32px)/1.2 Georgia, serif;
  margin: 0 0 17px;
  overflow-wrap: anywhere;
}
