.crt-catalog-section {
  background: #f9f9f9;
  padding: 0 0 120px;
}

.crt-catalog-section,
.crt-catalog-section *,
.crt-catalog-section *::before,
.crt-catalog-section *::after {
  box-sizing: border-box;
}

.crt-catalog-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.crt-catalog-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 24px 0;
}

.crt-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  color: #322e4a;
  text-decoration: none;
  font-weight: 600;
}

.crt-catalog-section__inner {
  min-width: 0;
}

.crt-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.crt-catalog-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  background: #fff;
  border: 1px solid #f4f4f4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 3px rgba(0, 11, 48, 0.08);
  transition: box-shadow 0.2s ease;
}

.crt-catalog-card:hover {
  box-shadow: 0 8px 24px rgba(0, 11, 48, 0.12);
}

.crt-catalog-card__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.crt-catalog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crt-catalog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 16px 16px 14px;
}

.crt-catalog-card__title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  flex-shrink: 0;
}

.crt-catalog-card__title a {
  color: #000;
  text-decoration: none;
}

.crt-catalog-card__excerpt {
  margin: 0;
  color: #5a5a5a;
  font-size: 13px;
  line-height: 1.45;
  flex: 1 1 auto;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.crt-catalog-card__excerpt--empty {
  visibility: hidden;
}

.crt-catalog-card__footer {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  padding-top: 12px;
}

.crt-catalog-card__price {
  margin: 0 0 10px;
  color: #3f1616;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.crt-catalog-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.crt-catalog-card__actions > .crt-btn,
.crt-catalog-card__actions > .button,
.crt-catalog-card__actions > a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.crt-catalog-card__cart.button {
  color: var(--crt-primary);
  background: #fff;
  border: 1px solid var(--crt-primary);
  text-decoration: none;
}

.crt-catalog-card__cart.button:hover {
  color: #fff;
  background-color: var(--crt-primary);
}

.crt-catalog-card__request {
  color: #fff;
  background-color: var(--crt-primary);
  border: none;
  font-family: inherit;
}

.crt-catalog-card__request:hover {
  background-color: #c00a10;
}

.crt-catalog-card__actions .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.crt-request-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
}

.crt-request-modal[hidden] {
  display: none;
}

.crt-request-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
}

.crt-request-modal__dialog {
  position: relative;
  max-width: 520px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 32px;
}

.crt-request-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.crt-request-modal__header {
  text-align: center;
  margin-bottom: 20px;
}

.crt-request-modal__header h2 {
  margin: 0 0 8px;
}

.crt-request-modal__product {
  margin: 0;
  color: #475567;
}

.crt-request-modal .wpcf7-form p {
  margin-bottom: 14px;
}

.crt-request-modal input[type="text"],
.crt-request-modal input[type="tel"],
.crt-request-modal input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
}

.crt-cart-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99999;
  background: #322e4a;
  color: #fff;
  padding: 14px 18px;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.crt-cart-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.crt-modal-open {
  overflow: hidden;
}

.crt-catalog-empty {
  padding: 40px 0;
  text-align: center;
  color: #666;
}

@media (max-width: 1100px) {
  .crt-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .crt-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .crt-catalog-grid {
    grid-template-columns: 1fr;
  }

  .crt-request-modal__dialog {
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
  }
}
