#catalog { padding-top:clamp(28px,5vw,72px); }
#catalog .catalog-heading { margin: 0 0 clamp(30px, 5vw, 88px); text-align: center; }
#catalog .catalog-heading :is(h1, h2) {
  margin: 0; font-size: clamp(30px, 3.2vw, 60px); font-weight: 700;
  line-height: 1.12; color: var(--ink); text-transform: uppercase;
}
#catalog .catalog-heading p {
  margin: clamp(15px, 1.6vw, 30px) 0 0; font-size: clamp(15px, 1.34vw, 25px);
  text-transform: uppercase;
}

.da-catalog {
  --olive: #4b5a00;
  max-width: 1440px;
  margin: auto;
  padding: 24px clamp(16px, 3vw, 36px) 60px;
  color: #202020;
  font: 400 16px/1.45 Rubik, Arial, sans-serif;
}
.da-catalog * { box-sizing: border-box; }
.da-catalog nav, .da-catalog-grid { display: grid; gap: clamp(14px, 2vw, 30px); }
.da-catalog nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(28px, 5vw, 70px);
}
.da-catalog button { font: inherit; color: inherit; cursor: pointer; }
.da-catalog nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid #e8e8e1;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 8px 18px #0000000d;
  font-weight: 700;
  text-align: left;
}
.da-catalog nav button[aria-pressed="true"] { border-color: var(--olive); background: #f0f3e5; }
.da-catalog-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-size: 19px;
}
.da-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.da-catalog button.da-catalog-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: 16px;
  min-height: clamp(235px, 26vw, 385px);
  padding: clamp(14px, 1.8vw, 26px);
  border: 1px solid #e7e7e2;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 1px 5px #00000013;
  text-align: left;
  transition: box-shadow .2s, transform .2s;
}
.da-catalog-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #00000016; }
.da-catalog button:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.da-catalog img { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.da-catalog-placeholder {
  display: grid;
  place-items: center;
  min-height: 140px;
  padding: 8px;
  border-radius: 14px;
  background: #f2f3ed;
  color: #55594b;
  font-size: 13px;
  text-align: center;
}
.da-catalog-name {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(16px, 1.6vw, 25px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.da-catalog-spec { display: block; font-size: 14px; }
.da-catalog-more { display: block; margin-top: 12px; color: var(--olive); font-weight: 700; }
.da-catalog-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: 90vh;
  padding: 24px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: inherit;
}
.da-catalog-dialog::backdrop { background: #0009; }
.da-catalog-dialog form { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.da-catalog-dialog button { min-height: 44px; padding: 6px 16px; border: 1px solid #ddd; border-radius: 24px; background: #fff; }
.da-catalog-details { display: grid; grid-template-columns: 2fr 3fr; align-items: center; gap: 24px; }
.da-catalog-details h2 { margin: 0 0 12px; }
.da-catalog-details ul { padding-left: 20px; }
.da-catalog-empty { grid-column: 1 / -1; margin: 0; padding: 20px 0; }
@media (max-width: 1000px) {
  .da-catalog nav, .da-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .da-catalog-grid, .da-catalog-details { grid-template-columns: 1fr; }
  .da-catalog nav button { min-height: 54px; padding: 8px; gap: 6px; font-size: 12px; overflow-wrap: anywhere; }
  .da-catalog-icon { flex-basis: 30px; height: 30px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .da-catalog button.da-catalog-card { transition: none; transform: none; }
}

.da-catalog nav {
  width: min(1100px, 100%);
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.da-catalog nav button {
  min-height: 76px;
  padding: 10px 12px;
  gap: clamp(10px, 1.15vw, 18px);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #080808;
  box-shadow: 0 12px 20px rgb(0 0 0 / 6%);
  font-size: 19px;
  line-height: 1.48;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.da-catalog nav button[aria-pressed="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--olive), 0 12px 20px rgb(0 0 0 / 6%); }
.da-catalog-icon { flex-basis: 56px; height: 56px; }
.da-catalog-icon svg { width: 30px; height: 30px; }
.da-catalog-category-label { white-space: pre-line; }
@media (max-width: 1050px) {
  .da-catalog nav { width: min(680px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .da-catalog nav { gap: 8px; }
  .da-catalog nav button { min-height: 55px; padding: 6px 8px; gap: 7px; font-size: clamp(10px, 3vw, 14px); }
  .da-catalog-icon { flex-basis: 32px; height: 32px; }
  .da-catalog-icon svg { width: 18px; height: 18px; }
}

.da-product-gallery { min-width: 0; }
.da-product-stage {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-height: min(390px, 45svh);
  overflow: hidden;
}
.da-product-stage img { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.da-product-frames {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.da-catalog .da-product-frames button {
  width: 56px;
  height: 56px;
  padding: 4px;
  border: 1px solid #deded5;
  border-radius: 8px;
}
.da-product-frames button[aria-pressed="true"] { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.da-product-frames img { width: 100%; height: 100%; object-fit: contain; }

.da-product-stage {
  width: 100%;
  height: min(390px, 42svh);
  max-height: none;
  aspect-ratio: auto;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.da-product-stage img { display: block; min-width: 0; min-height: 0; }
.da-catalog button.da-product-stage {
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}
.da-photo-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fafaf8;
  color: var(--ink);
  overflow: auto;
}
.da-photo-viewer::backdrop { background: #000; }
.da-photo-viewer > form { position: absolute; z-index: 1; top: 14px; right: 14px; margin: 0; }
.da-catalog button.da-photo-close {
  width: 44px; height: 44px; padding: 0;
  border: 1px solid #d5d5ce; border-radius: 50%; background: #fff;
  font-size: 30px; line-height: 1;
}
.da-photo-content {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 64px 14px 14px;
}
.da-photo-content .da-product-gallery { width: min(100%, 1100px); }
.da-photo-content .da-product-stage { height: max(120px, calc(100dvh - 154px)); }
.da-photo-content .da-product-stage img { width: 100%; height: 100%; object-fit: contain; }

.da-catalog-offer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e6e6db; }
.da-catalog-price { margin: 0 0 6px; color: var(--olive); font-size: 22px; font-weight: 700; }
.da-catalog-offer-note { margin: 0 0 14px; color: #46463d; }
.da-catalog-offer-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 19px; border-radius: 999px;
  background: var(--olive); color: #fff; font-weight: 700; text-decoration: none;
}
.da-catalog-offer-link:hover { background: #394500; }

.da-catalog-dialog button.da-product-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 360px) {
  .da-catalog nav { grid-template-columns: minmax(0, 1fr); }
}
