@import url('./catalog-product-photos.css');
@import url('./production-plan.css');

.catalog-products { margin-top: 24px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.catalog-card { padding: 24px; }
.catalog-card h2 { font-size: 24px; margin: 12px 0; overflow-wrap: anywhere; }
.catalog-card p { line-height: 1.5; color: #65636e; }
.catalog-art { display: grid; place-items: center; aspect-ratio: 1; background: #f4f1e9; border-radius: 18px; margin-bottom: 20px; }
.catalog-art img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.catalog-art span { color: #6a6674; font-size: 18px; }
.catalog-empty { padding: 40px; max-width: 800px; }
.catalog-empty p { max-width: 650px; line-height: 1.7; margin: 16px 0 24px; }
.catalog-detail { margin-top: 20px; padding: 32px; }
.catalog-detail-head { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.catalog-detail-head img { width: 160px; height: 160px; object-fit: contain; border-radius: 18px; background: #f4f1e9; }
.catalog-detail h2 { font-size: 30px; overflow-wrap: anywhere; }
.catalog-detail h3 { font-size: 22px; }
.catalog-detail form { display: grid; gap: 18px; max-width: 740px; }
.catalog-detail label { display: grid; gap: 8px; line-height: 1.5; }
.catalog-detail input:not([type="checkbox"]), .catalog-detail textarea, .catalog-detail select {
  box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #d9d7df; border-radius: 10px; background: #fff; color: #24212a;
}
.catalog-detail .commerce-check { display: flex; gap: 12px; align-items: flex-start; }
.catalog-detail input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; }
.catalog-detail p { line-height: 1.6; color: #66616c; }
.catalog-detail button { width: fit-content; }
.catalog-publication { border-top: 1px solid #e5e2eb; margin-top: 32px; padding-top: 24px; }
.catalog-publication [data-product-costs]:not(:empty) { margin: 24px 0; padding: 24px; background: #f7f5fb; border-radius: 16px; }
.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
/* Why an action is not available yet; empty (and hidden) once it is. */
.catalog-reason { margin: 10px 0 0; font-size: 14px; }
.catalog-reason:empty { display: none; }
@media (max-width: 600px) {
  .catalog-detail { padding: 20px; }
  .catalog-detail-head { align-items: flex-start; flex-direction: column; }
  .catalog-detail-head img { width: 100%; height: 220px; }
  .catalog-publication [data-product-costs]:not(:empty) { padding: 16px; }
  .catalog-actions { align-items: stretch; flex-direction: column; }
  .catalog-actions button, .catalog-actions a { width: 100%; text-align: center; }
}

.catalog-products a.portal-button, .catalog-products a.portal-button-secondary, .account-page-head > a.portal-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; text-decoration: none; box-sizing: border-box;
}
.catalog-art { text-decoration: none; }
