body.catalog-showroom .all-product-note { display: none !important; }
/* Catalog presentation only: keep full names, square photos and purchase rules. */
body.catalog-showroom .all-product-media { border: 1px solid var(--catalog-line) !important; border-radius: var(--catalog-radius) !important; box-sizing: border-box; }
body.catalog-showroom .all-product-body { padding-top: 8px !important; gap: 5px !important; }
body.catalog-showroom .all-product-price { padding-top: 2px; }
body.catalog-showroom .all-products-cat-grid { row-gap: 18px !important; }
body.catalog-showroom .all-product-actions { gap: 4px; margin-top: 1px; }
body.catalog-showroom .all-product-actions > [data-ap-qty-wrap] { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 6px; }
body.catalog-showroom .all-product-actions > [data-ap-qty-wrap] > .ap-qty-label { grid-column: 1; grid-row: 1; }
body.catalog-showroom .all-product-actions > [data-ap-qty-wrap] > .ap-qty-total { grid-column: 2; grid-row: 1; min-width: 0; text-align: right; }
body.catalog-showroom .all-product-actions > [data-ap-qty-wrap] > .ap-qty-quick { grid-column: 1 / -1; grid-row: 2; }
body.catalog-showroom .all-product-actions > [data-ap-qty-wrap] > .ap-qty-stock { grid-column: 1 / -1; }
@media (min-width: 360px) {
  body.catalog-showroom .all-product-actions:has(> .all-product-reason:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 4px 6px; }
  body.catalog-showroom .all-product-actions:has(> .all-product-reason:not([hidden])) > * { grid-column: 1 / -1; }
  body.catalog-showroom .all-product-actions:has(> .all-product-reason:not([hidden])) > .all-product-reason { grid-column: 1; font-size: .8rem; }
  body.catalog-showroom .all-product-actions:has(> .all-product-reason:not([hidden])) > .all-product-link--secondary { grid-column: 2; padding: 4px 0 !important; }
}
.all-product-reason {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #29491a;
  font: 700 .85rem/1.4 Vazirmatn, Arial, sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: center;
}
.all-product-reason[hidden] { display: none; }
.all-product-reason:hover { color: #172111; text-decoration-thickness: 2px; }
.all-product-reason:focus-visible,
.product-reason-close:focus-visible,
.product-reason-scroll:focus-visible { outline: 3px solid #29491a; outline-offset: 3px; }
.product-reason-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #cfc5a8;
  border-radius: 16px;
  background: #fffdf8;
  color: #243814;
  box-shadow: 0 20px 70px #17211140;
  font-family: Vazirmatn, Arial, sans-serif;
}
.product-reason-dialog::backdrop { background: #172111a6; }
.product-reason-panel { position: relative; display: flex; flex-direction: column; padding: 28px; max-height: calc(100vh - 34px); max-height: calc(100dvh - 34px); box-sizing: border-box; }
.product-reason-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #29491a; font: 28px/1 Arial, sans-serif; cursor: pointer; }
.product-reason-close:hover { background: #eee7d6; }
.product-reason-name { margin: 0 32px 8px 0; font-size: .88rem; line-height: 1.6; color: #685c40; overflow-wrap: anywhere; }
.product-reason-dialog h2 { margin: 0 0 16px; font: 700 1.7rem/1.25 'Cormorant Garamond', Georgia, serif; color: #243814; }
.product-reason-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.product-reason-scroll p { margin: 0; color: #243814; font-size: 1rem; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .product-reason-panel { padding: 24px 20px; }
  .product-reason-dialog h2 { font-size: 1.5rem; }
}
