.leather-page { background: #f7f5f1; color: #28221e; overflow-x: clip; }
.leather-page .site-header { background: #fff; }

.goods-hero { overflow: hidden; background: #c88332; }
.goods-hero img { display: block; width: 100%; height: auto; }

.goods-breadcrumb { min-height: 136px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #ded8d1; color: #5c5047; font-size: .8125rem; }
.goods-breadcrumb a { width: 22px; height: 22px; display: grid; place-items: center; color: inherit; }
.goods-breadcrumb svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

.catalog-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 67px; padding-top: 48px; padding-bottom: 128px; }
.catalog-sidebar { min-width: 0; }
.filter-panel { border: 1px solid #ded8d1; background: #fff; padding: 0 26px; }
.filter-panel details { padding: 26px 0 28px; border-bottom: 1px solid #e2dcd6; }
.filter-panel details:last-child { border-bottom: 0; }
.filter-panel summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-size: 1rem; font-weight: 500; }
.filter-panel summary::-webkit-details-marker { display: none; }
.filter-panel summary span { position: relative; width: 18px; height: 18px; }
.filter-panel summary span::before, .filter-panel summary span::after { content: ""; position: absolute; top: 50%; left: 2px; right: 2px; height: 1px; background: currentColor; transition: transform .2s ease; }
.filter-panel summary span::after { transform: rotate(90deg); }
.filter-panel details[open] summary span::after { transform: rotate(0); }
.filter-options { display: grid; gap: 14px; padding-top: 24px; }
.category-options button { width: 100%; padding: 0; border: 0; background: none; color: #4d4641; font: inherit; font-size: .875rem; text-align: left; cursor: pointer; transition: color .2s ease; }
.category-options button:hover, .category-options button.active { color: #80685a; font-weight: 600; }
.material-options label { display: flex; align-items: center; gap: 9px; color: #4d4641; font-size: .875rem; cursor: pointer; }
.material-options input { width: 18px; height: 18px; margin: 0; accent-color: #655043; }
.color-options { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 26px; }
.swatch { width: 28px; height: 28px; padding: 0; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #ad9e92; cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.swatch:hover, .swatch.active { box-shadow: 0 0 0 2px #655043; transform: scale(1.06); }
.swatch.brown { background: #75604f; }.swatch.tan { background: #ad8566; }.swatch.black { background: #2b211b; }.swatch.grey { background: #b6ada7; }

.gift-card { margin-top: 32px; }
.gift-card img { display: block; width: 100%; aspect-ratio: 317 / 181; object-fit: cover; }
.gift-card h2 { margin: 14px 8px 3px; font-size: 1rem; font-weight: 400; }
.gift-card p { margin: 0 8px; color: #655d57; font-size: .75rem; }
.gift-card a { display: inline-block; margin: 17px 8px 0; color: #655043; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }

.catalog-main { min-width: 0; scroll-margin-top: 24px; }
.results-count { margin: 8px 0 45px; color: #665d56; font-size: .875rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 40px; row-gap: 46px; }
.product-card[hidden] { display: none; }
.product-card a { position: relative; display: block; color: #403832; text-align: center; }
.product-card.has-new a::before { content: ""; position: absolute; z-index: 1; top: 0; left: 0; width: 22%; aspect-ratio: 63 / 34; background: #fff; pointer-events: none; }
.new-badge { position: absolute; z-index: 2; top: 0; left: 0; width: 21.6%; aspect-ratio: 63 / 33; display: flex; align-items: center; justify-content: center; background: #655043; color: #fff; font-size: clamp(.625rem, .66vw, .75rem); font-weight: 400; line-height: 1; letter-spacing: .01em; pointer-events: none; }
.product-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; transition: transform .45s ease, box-shadow .45s ease; }
.product-card h2 { margin: 22px 5px 0; font-size: .875rem; font-weight: 400; line-height: 1.45; }
.product-card:hover img { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(69, 51, 40, .09); }
.product-card.has-new:hover img { transform: none; }
.product-card:hover h2 { color: #80685a; }
.no-products { min-height: 300px; display: grid; place-items: center; color: #6e655f; font-size: 1rem; text-align: center; }
.no-products[hidden] { display: none; }

.catalog-pagination { display: flex; justify-content: center; gap: 23px; padding-top: 80px; }
.catalog-pagination button { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 2px; background: transparent; color: #51443b; font: inherit; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 400; line-height: 1; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.catalog-pagination button:hover, .catalog-pagination button:focus-visible, .catalog-pagination button.active { border-color: #655043; background: #655043; color: #fff; }
.catalog-pagination .pagination-next:hover, .catalog-pagination .pagination-next:focus-visible { border-color: transparent; background: transparent; color: #80685a; }
.catalog-pagination .pagination-next { position: relative; border-color: transparent !important; background: transparent; color: #655043; }
.catalog-pagination .pagination-next::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-top: 1.5px solid #655043; border-right: 1.5px solid #655043; transform: translate(-65%, -50%) rotate(45deg); }
.catalog-pagination .pagination-next:hover::before, .catalog-pagination .pagination-next:focus-visible::before { border-color: #80685a; }

@media (max-width: 1500px) {
  .catalog-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 42px; }
  .product-grid { gap: 40px 28px; }
}

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; padding-top: 34px; }
  .catalog-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
  .filter-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .filter-panel details { padding: 22px 0; border-bottom: 0; }
  .gift-card { margin-top: 0; }
  .results-count { margin-top: 0; }
}

@media (max-width: 680px) {
  .goods-hero img { width: 150%; max-width: none; margin-left: -25%; }
  .goods-breadcrumb { min-height: 88px; }
  .catalog-sidebar { display: block; }
  .filter-panel { display: block; padding: 0 20px; }
  .filter-panel details { border-bottom: 1px solid #e2dcd6; }
  .gift-card { margin-top: 28px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
  .results-count { margin: 8px 0 28px; }
  .product-card h2 { margin-top: 14px; font-size: .8125rem; }
  .catalog-pagination { padding-top: 60px; }
  .catalog-pagination { gap: 15px; }
  .catalog-pagination button { width: 42px; height: 42px; font-size: .9375rem; }
}

@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; gap: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card img, .swatch { transition: none; }
}
