[hidden] { display: none !important; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #a74e30;
  outline-offset: 4px;
}
.catalog-tools { display: flex; align-items: end; gap: 1rem; margin: 0 0 1.5rem; }
.catalog-tools label { flex: 1; max-width: 28rem; }
.catalog-tools p { margin: 0 0 .5rem; color: #5f5046; white-space: nowrap; }
.catalog-tools input, .order-panel select, .order-panel textarea {
  display: block; width: 100%; font: inherit; color: #26221e; background: white;
  border: 1px solid #877266; border-radius: 8px; min-height: 46px; padding: .45rem .8rem;
}
.product-link { display: block; text-decoration: none; }
.product-link:focus-visible { outline-offset: -4px; }
.product-card .product-link { height: 100%; display: flex; flex-direction: column; }
.product-card .product-info { flex: 1; display: flex; flex-direction: column; }
.product-card .price { margin-top: auto; padding-top: .3rem; }
.product-card .product-button { min-height: 46px; display: grid; place-items: center; }
.detail { padding-top: 2rem; }
.detail > a { display: inline-block; margin-bottom: 1.4rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 2rem; }
.detail-photo { display: block; background: white; border-radius: 14px; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.detail h1 { font-size: clamp(29px, 4vw, 42px); margin: 0; }
.detail h2 { font-size: 22px; margin-top: 0; }
.order-panel { background: white; border: 1px solid #ddd0c5; border-radius: 14px; padding: 1.25rem; }
.order-panel select { max-width: 10rem; margin-top: .25rem; }
.order-panel .button { width: 100%; cursor: pointer; font: inherit; font-weight: bold; }
.order-panel button.button { border: 1px solid #784631; background: white; color: #593c30; margin-top: .65rem; }
.order-panel button.primary { border: 1px solid #784631; background: #784631; color: white; margin: 0 0 .65rem; }
.order-panel .basket-link { display: block; margin-bottom: .65rem; text-align: center; color: #784631; }
.order-panel textarea { margin: .25rem 0 0; resize: vertical; }
.order-panel [role="status"], .basket-page [role="status"] { margin: .5rem 0 0; }
.order-panel [role="status"]:empty, .basket-page [role="status"]:empty { display: none; }
.basket-page { max-width: 750px; padding-top: 2rem; }
.basket-list { padding: 0; list-style: none; }
.basket-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1rem; padding: .7rem 0; border-bottom: 1px solid #ddd0c5; }
.basket-product { display: flex; align-items: center; gap: .75rem; flex: 1 1 14rem; }
.basket-product img { flex: 0 0 auto; border-radius: 8px; object-fit: contain; background: white; }
.basket-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.basket-controls label { font-weight: bold; }
.basket-controls select, .basket-controls button { min-height: 44px; font: inherit; padding: .25rem .75rem; background: white; color: #593c30; border: 1px solid #78513e; border-radius: 8px; }
.basket-controls button { cursor: pointer; }
.basket-message { margin-top: 1rem; border-top: 1px solid #ddd0c5; padding-top: .75rem; }
.basket-message summary { cursor: pointer; font-weight: bold; min-height: 44px; }
.basket-message-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .65rem; }
.order-panel .basket-message-actions .button { flex: 1 1 11rem; margin: 0; text-align: center; }
.basket-message .message-link { border: 1px solid #784631; color: #593c30; }
@media (max-width: 760px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .detail-photo { max-height: 55vh; }
  .catalog-tools { display: block; }
  .catalog-tools p { margin: .45rem 0 0; }
  .product-card .product-button { padding-inline: 4px; }
}
