.product-image { overflow: hidden; background: #fff; }
.product-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.product-price { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.product-price small { color: var(--muted); font-size: var(--text-xs); }
.product-gallery { --product-gallery-height: clamp(360px, 34vw, 420px); }
.product-main-image { overflow: hidden; height: var(--product-gallery-height); min-height: 0; aspect-ratio: auto; display: grid; place-items: center; background: #fff; border: 1px solid #dce3e6; border-radius: 10px; }
.product-main-image img { width: 100%; height: 100%; max-height: none; object-fit: contain; object-position: center; }
.gallery-thumbs-wrap { grid-column: 1; grid-row: 1; height: var(--product-gallery-height); display: grid; grid-template-rows: minmax(0, 1fr); gap: 7px; }
.gallery-thumbs-wrap.has-pagination { grid-template-rows: 32px minmax(0, 1fr) 32px; }
.gallery-thumbs-wrap .gallery-thumbs { grid-column: auto; grid-row: auto; min-height: 0; overflow: hidden; }
.gallery-thumbs-wrap .gallery-thumbs button { width: 100%; height: auto; min-height: 0; max-height: 105px; flex: 1 1 0; }
.gallery-page-button { width: 100%; height: 32px; padding: 0; color: var(--teal-dark); background: #fff; border: 1px solid #d6e0e4; border-radius: 8px; font-size: 18px; line-height: 1; cursor: pointer; }
.gallery-page-button:hover:not(:disabled) { color: #fff; background: var(--teal); border-color: var(--teal); }
.gallery-page-button:disabled { opacity: .35; cursor: default; }
.gallery-thumbs button { overflow: hidden; padding: 4px; background: #fff; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.price-request-box { margin: 22px 0; padding: 20px; display: grid; gap: 5px; color: var(--navy); background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 10px; }
.price-request-box span { color: var(--muted); font-size: var(--text-sm); }
.filter-text, .filter-select { width: 100%; height: 42px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.filter-submit { width: 100%; margin-top: 18px; }
.filter-header a { color: var(--teal); font-size: var(--text-sm); font-weight: 700; }
.site-pagination { margin-top: 36px; padding-top: 22px; display: flex; justify-content: center; align-items: center; gap: 22px; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.site-pagination a { color: var(--teal); font-weight: 700; }
.site-pagination span { color: #9aa5aa; }
.form-alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 8px; font-size: var(--text-sm); line-height: 1.6; }
.form-alert ul { margin: 5px 0 0; padding-left: 18px; }
.form-alert-error { color: #8b382e; background: #fff1ee; border: 1px solid #efc5bd; }
.form-alert-success { color: #1e655b; background: #ecf8f4; border: 1px solid #b9ded5; }
.quote-basket { margin: 0 0 24px; display: grid; gap: 10px; }
.quote-basket-empty { margin: 0; padding: 15px; color: var(--muted); background: var(--gray-100); border: 1px dashed var(--gray-300); border-radius: 8px; font-size: var(--text-sm); }
.quote-basket-empty a { color: var(--teal); font-weight: 700; }
.quote-basket-item { padding: 12px; display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; background: #f7f9f9; border: 1px solid #dfe6e8; border-radius: 9px; }
.quote-basket-item img { width: 60px; height: 72px; object-fit: contain; background: white; border-radius: 6px; }
.quote-basket-copy { min-width: 0; display: grid; gap: 3px; }
.quote-basket-copy strong { color: var(--navy); font-size: var(--text-sm); }
.quote-basket-copy small { color: var(--muted); font-size: var(--text-xs); }
.quote-basket-copy .quote-basket-note { color: var(--teal-dark); line-height: 1.4; }
.quote-basket-fields { display: flex; gap: 7px; align-items: center; }
.quote-basket-fields label { color: var(--muted); font-size: var(--text-xs); }
.quote-basket-fields input { width: 92px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; }
.quote-basket-remove { width: 30px; height: 30px; color: #9b5146; background: white; border: 1px solid #dfc6c1; border-radius: 50%; cursor: pointer; }
.quote-submit { width: 100%; margin-top: 18px; }
.privacy-note { margin: 10px 0 0; color: var(--muted); font-size: var(--text-xs); text-align: center; }
.thank-you-section { min-height: 58vh; display: grid; place-items: center; background: var(--gray-100); }
.thank-you-card { max-width: 760px; padding: 52px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.thank-you-card h1 { margin: 10px 0 16px; color: var(--navy); font: 600 clamp(38px, 5vw, 56px)/1.05 var(--font-primary); }
.thank-you-card p { color: var(--muted); line-height: 1.7; }
.thank-you-card .hero-actions { justify-content: center; }
.thank-you-check { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-size: 27px; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.process-grid article { padding: 30px 24px; border-right: 1px solid var(--line); }
.process-grid article:last-child { border-right: 0; }
.process-grid span { color: var(--orange); font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em; }
.process-grid h2 { margin: 12px 0 8px; color: var(--navy); font: 600 21px var(--font-primary); }
.process-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: var(--leading-body); }
.about-collage > div { background-size: cover; background-position: center; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 18px; color: white; background: var(--navy); border-radius: 8px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(15px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid article { border-bottom: 1px solid var(--line); }
}
@media (max-width: 780px) {
  .product-gallery { --product-gallery-height: clamp(300px, 72vw, 360px); }
  .gallery-thumbs-wrap { grid-column: 1; grid-row: 2; width: 100%; height: auto; display: block; }
  .gallery-thumbs-wrap .gallery-thumbs { overflow-x: auto; overflow-y: hidden; }
  .gallery-thumbs-wrap .gallery-thumbs button { width: 66px; height: 88px; max-height: none; flex: 0 0 66px; }
  .gallery-page-button { display: none; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .site-pagination { justify-content: space-between; gap: 8px; }
  .quote-basket-item { grid-template-columns: 52px 1fr auto; }
  .quote-basket-item img { width: 52px; height: 64px; }
}
@media (max-width: 520px) {
  .product-gallery { --product-gallery-height: clamp(260px, 76vw, 300px); }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { border-right: 0; }
  .quote-basket-item { grid-template-columns: 1fr auto; }
  .quote-basket-item img { display: none; }
  .quote-basket-fields { grid-column: 1 / -1; }
  .thank-you-card { padding: 34px 20px; }
}
