.catalog-header-main { display: flex; align-items: center; min-height: 50px; }
.catalog-logo { width: 50px; margin-right: 30px; }
.catalog-header-icons { justify-content: flex-start; margin: 0; }
.catalog-nav { margin-top: 25px; }

.catalog-body { display: flex; min-height: 100vh; flex-direction: column; }
.catalog-page { flex: 1 0 auto; padding: 0 0 28px; background: var(--page); }
.catalog-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.catalog-category-slider { padding: 9px 0 39px; }
.catalog-category-row { width: 100%; }
.catalog-category-row.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.catalog-breadcrumb { display: flex; align-items: center; gap: 11px; min-height: 28px; margin: 0 0 17px; color: #9a9a9a; font-size: 14px; font-weight: 300; }
.catalog-breadcrumb a { display: grid; place-items: center; width: 24px; height: 24px; color: #000; }
.catalog-breadcrumb svg { width: 24px; height: 24px; fill: currentColor; }
.catalog-status { margin: 42px 0; text-align: center; color: #777; font-size: 18px; font-weight: 300; }
.catalog-status[hidden] { display: none; }
.catalog-page-grid { row-gap: 40px; }
.catalog-load-more { margin-top: 45px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.modal-open { overflow: hidden; }
.product-card { cursor: pointer; }
.product-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.product-modal-backdrop { position: fixed; z-index: 60; inset: 0; overflow-y: auto; padding: 0 20px; background: #222; }
.product-modal-backdrop[hidden] { display: none; }
.product-modal-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; width: min(1240px, 100%); min-height: 100vh; margin: 0 auto; padding: 40px; background: #fff; }
.product-modal-close { position: absolute; z-index: 5; top: 12px; right: 17px; width: 38px; height: 38px; border: 0; padding: 0; color: #111; background: transparent; font-size: 36px; font-weight: 300; line-height: 1; }
.product-modal-main-image { position: relative; height: 0; overflow: hidden; padding-bottom: 133%; border-radius: 8px; background: #eee; }
.product-modal-main-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-gallery-arrow { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; padding: 0 0 4px; color: #111; background: rgba(255, 255, 255, .94); font-family: Arial, sans-serif; font-size: 34px; line-height: 1; transform: translateY(-50%); }
.product-gallery-arrow[hidden] { display: none; }
.product-gallery-prev { left: 30px; }
.product-gallery-next { right: 30px; }
.product-thumbnails { display: flex; gap: 6px; overflow-x: auto; margin-top: 4px; padding: 0 0 4px; scrollbar-width: thin; }
.product-thumbnail { flex: 0 0 61px; width: 61px; height: 61px; overflow: hidden; border: 2px solid transparent; border-radius: 4px; padding: 0; background: #eee; }
.product-thumbnail.is-active { border-color: #111; }
.product-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-modal-info { padding: 25px 0 40px; text-align: center; }
.product-modal-info h2 { margin: 0 0 8px; font-size: 28px; font-weight: 600; line-height: 1.2; }
.product-modal-brand, .product-modal-sku { margin: 0 0 9px; color: #999; font-size: 13px; font-weight: 300; }
.product-modal-price { display: flex; justify-content: center; align-items: baseline; gap: 7px; margin: 24px 0 20px; }
.product-modal-price .price { font-size: 20px; font-weight: 600; }
.product-modal-price .old-price { font-size: 18px; }
.product-modal-actions { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 28px; }
.product-modal-buy { min-width: 185px; height: 45px; border: 0; border-radius: 5px; padding: 0 25px; color: #fff; background: var(--orange); font-size: 14px; font-weight: 600; }
.product-modal-buy:hover { background: var(--orange-dark); }
.product-modal-favorite { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #dedede; border-radius: 50%; padding: 0; color: #111; background: #fff; font-size: 28px; line-height: 1; }
.product-modal-favorite.is-favorite { color: #e33; }
.product-modal-description, .product-modal-characteristics { color: #777; font-size: 14px; font-weight: 300; line-height: 1.38; }
.product-modal-description { margin: 0 auto 23px; }
.product-modal-characteristics p { margin: 0; }
.catalog-footer { flex: 0 0 auto; background: var(--page); text-align: center; }
.catalog-footer-contacts { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 14px; }
.catalog-footer-contacts h2 { margin: 0 0 45px; font-size: 48px; font-weight: 600; line-height: 1.23; }
.catalog-footer-contacts > p { margin: 0; font-size: 26px; font-weight: 300; line-height: 1.45; }
.catalog-social-links { margin: 30px 0 0; }
.catalog-policy { margin-top: 0; padding: 11px 20px 14px; background: #fff; color: #689dd3; font-size: 16px; font-weight: 300; line-height: 1.55; }
.catalog-policy a:hover { color: var(--orange-dark); }

@media (max-width: 760px) {
  .catalog-header { padding: 8px 0 10px; }
  .catalog-header-main { display: flex; width: calc(100% - 24px); min-height: 68px; }
  .catalog-logo { width: 64px; margin: 0; }
  .catalog-header-icons { margin-left: auto; }
  .catalog-nav { display: none; margin: 8px 0 -10px; }
  .catalog-header.menu-open .catalog-nav { display: grid; }
  .catalog-shell { width: calc(100% - 40px); }
  .catalog-category-slider { padding-bottom: 28px; }
  .catalog-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 8px; }
  .catalog-footer-contacts { width: calc(100% - 24px); }
  .catalog-footer-contacts h2 { margin-bottom: 25px; font-size: 38px; }
  .catalog-footer-contacts > p { font-size: 19px; }
  .desktop-break { display: none; }
  .product-modal-backdrop { padding: 0; }
  .product-modal-panel { grid-template-columns: 1fr; gap: 10px; width: 100%; padding: 52px 14px 30px; }
  .product-modal-main-image { padding-bottom: 133%; }
  .product-modal-info { padding: 10px 4px 30px; }
  .product-modal-info h2 { font-size: 24px; }
  .product-gallery-prev { left: 12px; }
  .product-gallery-next { right: 12px; }
}

@media (max-width: 380px) {
  .catalog-header-main { width: calc(100% - 16px); }
  .catalog-logo { width: 58px; }
  .catalog-shell { width: calc(100% - 24px); }
}
