.recommendations {
  padding-block: clamp(46px, 7vw, 92px) clamp(38px, 5vw, 68px);
}

.catalog {
  border-top: 1px solid var(--line);
  padding-block: clamp(45px, 6vw, 80px);
}

.recommendations-heading,
.catalog-heading {
  align-items: end;
}

.recommendations-heading h2,
.catalog-heading h2 {
  margin-bottom: 0;
}

.recommendations-heading > p,
.catalog-heading > p {
  display: block;
  max-width: 29ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.recommendations .demo-note {
  margin: 12px 0 0;
}

.recommendation-grid,
.catalog .products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(20px, 3vw, 38px);
}

.recommendation-grid {
  margin-top: 24px;
}

.recommendation-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.store-nav a[href='#recomendados'][hidden] {
  display: none;
}

.product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.recommended-product {
  border: 1px solid #d2b59b;
  border-bottom: 6px solid var(--wood);
  background: #f5eadf;
  border-radius: 4px;
  box-shadow: 0 9px 15px -12px #4e3028b0;
}

.product .product-art {
  aspect-ratio: 1.36;
  flex: none;
  background: #efe0d2;
  border-radius: 4px 4px 0 0;
}

.product .product-art:has(img) {
  background: #f3e7da;
}

.recommended-product .product-art {
  border-bottom: 1px solid var(--brass);
  box-shadow: 0 5px 10px -7px #543823a0;
}

@media (min-width: 641px) {
  .recommendation-grid .recommended-product:only-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .recommendation-grid .recommended-product:only-child .product-info {
    justify-content: center;
  }

  .recommendation-grid .recommended-product:only-child .product-bottom {
    margin-top: 0;
  }
}

.product .product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 57%;
}

.product-gallery-nav { position: absolute; inset: auto 10px 10px auto; display: flex; align-items: center; gap: 4px; padding: 2px; border-radius: 30px; background: var(--paper); }
.product-gallery-nav button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 23px; }
.product-gallery-nav span { font-size: 12px; font-variant-numeric: tabular-nums; }

.product .badge {
  left: 16px;
  top: 16px;
  padding: 5px 12px;
  color: #40342a;
  background: var(--paper);
  font-size: 12px;
  line-height: 1.4;
}

.product .badge.sold-out {
  background: #45372f;
  color: #fff9f3;
}

.product-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  flex: 1;
  padding: 20px 2px 25px;
}

.recommended-product .product-info {
  padding-inline: clamp(18px, 3vw, 32px);
}

.product .product-category {
  min-height: 0;
  margin: 0 0 5px;
  font-size: 12px;
  color: #654c41;
}

.product .product-description {
  min-height: 0;
  margin: 8px 0 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.product .product-info h3 {
  margin: 0;
  font-size: clamp(26px, 3.1vw, 38px);
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.product .product-bottom {
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: auto;
  padding-top: 18px;
}

.product-price { font: 700 clamp(18px, 2.4vw, 22px)/1.2 var(--sans); font-variant-numeric: tabular-nums; }

.product-add {
  min-height: 46px;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.product-add:not([aria-disabled='true']):hover {
  background: #694639;
  border-color: #694639;
}

.product-add.has-quantity {
  background: transparent;
  color: var(--ink);
}

.product-add.has-quantity:not([aria-disabled='true']):hover {
  background: var(--pink);
  color: var(--ink);
}

.product-add[aria-disabled='true'] {
  cursor: default;
  border-color: #b9a69b;
  color: #5a4438;
  background: transparent;
  opacity: 1;
}

.catalog-toolbar {
  flex-wrap: wrap;
  margin-block: 26px 8px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar .filters {
  flex-wrap: wrap;
}

.catalog-toolbar .search {
  position: relative;
  width: min(100%, 270px);
  margin: 0;
}

.catalog-toolbar .search svg {
  position: absolute;
  inset: 13px auto auto 12px;
  color: var(--muted);
  pointer-events: none;
}

.catalog-toolbar .search input {
  max-width: none;
  min-height: 44px;
  padding: 10px 12px 10px 37px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 16px;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 18px;
  color: var(--muted);
}

.catalog-meta > p {
  margin: 0;
  font-size: 13px;
}

.catalog-empty:not([hidden]) {
  padding: 32px 20px;
  border: 1px solid var(--line);
  text-align: center;
}

.catalog-empty > p {
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .recommendation-grid,
  .catalog .products {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .recommendations-heading > p,
  .catalog-heading > p {
    max-width: 40ch;
    margin-top: 12px;
  }

  .catalog-toolbar .search {
    width: 100%;
    margin-top: 6px;
  }
}
