@import url('../vendor/fonts/fonts.css');

.rd-catalog-page {
  margin: 0;
  min-width: 320px;
  background: #faf7f2;
}

.rd-catalog,
.rd-catalog * {
  box-sizing: border-box;
}

.rd-catalog {
  width: 100%;
  max-width: 100vw;
  background: #faf7f2;
  color: #1a1a18;
  font-family: "Inter", Arial, sans-serif;
  overflow-x: hidden;
  padding: 32px 0 48px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.rd-catalog a {
  color: inherit;
  text-decoration: none;
}

.rd-catalog img,
.rd-catalog svg {
  display: block;
}

.rd-catalog__shell {
  width: calc(100vw - 32px);
  max-width: 1280px;
  margin: 0 auto;
}

.rd-catalog__title-shell {
  padding-bottom: 10px;
}

.rd-catalog__title {
  margin: 0;
  padding: 8px 20px;
  font-family: "Charis SIL", Georgia, serif;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  color: #1a1a18;
  text-transform: uppercase;
}

.rd-catalog__filters {
  padding: 24px 0 32px;
}

.pill-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.pill-outer {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 999px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 24px,
    #000 calc(100% - 24px),
    transparent 100%
  );
}

.pill-outer::-webkit-scrollbar {
  display: none;
}

.pill-track {
  position: relative;
  display: flex;
  width: 100%;
  min-width: max-content;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 9999px;
  background: #e6e1da;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.pill-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 0;
  height: calc(100% - 10px);
  pointer-events: none;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition:
    left 0.22s cubic-bezier(0.34, 1.2, 0.64, 1),
    width 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.pill-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 18px;
  white-space: nowrap;
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.pill-btn.active {
  color: #111827;
}

.pill-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
}

.filter-reset {
  display: flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.filter-reset svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.filter-reset.hidden {
  display: none;
}

.rd-catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
  padding: 10px 12px 24px;
}

.rd-catalog-card {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 32px;
  scroll-margin-top: 112px;
}

.rd-catalog-card:focus,
.rd-catalog-card:focus-visible {
  outline: 2px solid #f0cecd;
  outline-offset: 4px;
}

.rd-catalog-card__inner {
  display: flex;
  width: 100%;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.rd-catalog-card:hover .rd-catalog-card__inner {
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}

.rd-catalog-card__media-pad {
  padding: 8px;
}

.rd-catalog-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: #e8e2da;
}

.rd-catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.rd-catalog-card:hover .rd-catalog-card__media img {
  transform: scale(1.1);
}

.rd-catalog-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border-radius: 999px;
  background: #d4850a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 16px;
}

.rd-catalog-badge--red {
  background: #dc2626;
}

.rd-catalog-badge--blue {
  background: #2563eb;
}

.rd-catalog-badge--green {
  background: #16a34a;
}

.rd-catalog-card__chips {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 7px;
  justify-items: start;
}

.rd-catalog-chip {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  color: #1a1a18;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
}

.rd-catalog-chip svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: #6b7280;
}

.rd-catalog-chip--small {
  font-size: 12px;
}

.rd-catalog-chip--purple {
  color: #7c3aed;
}

.rd-catalog-chip--indigo {
  color: #4f46e5;
}

.rd-catalog-card__body {
  flex: 1;
  padding: 8px 20px 16px;
}

.rd-catalog-card__title {
  margin: 0;
  color: #1a1a18;
  font-family: "Charis SIL", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.rd-catalog-card:hover .rd-catalog-card__title {
  color: #004d30;
}

.rd-catalog-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px 24px;
}

.rd-catalog-card__price {
  margin: 0;
  color: #9ca3af;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.rd-catalog-card__price strong {
  font-weight: 800;
}

.rd-catalog-card__price sup {
  font-size: 14px;
}

.rd-catalog-card__note {
  flex: 0 0 auto;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #fff;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 12px;
  white-space: nowrap;
}

.rd-catalog-embed {
  margin-top: 8px;
  background: #faf7f2;
}

.rd-catalog-embed[aria-busy="true"] {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-catalog-embed__status {
  margin: 0;
  color: #666;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.rd-catalog-embed .rd-catalog {
  padding-top: 8px;
}

.rd-catalog-full-page .rd-catalog {
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rd-catalog-hero {
  padding-bottom: 34px;
}

.rd-catalog-addons,
.rd-catalog-addons * {
  box-sizing: border-box;
}

.rd-catalog-addons {
  --card-width: 288px;
  padding: 44px 0 8px;
  color: #1a1a18;
  font-family: "Inter", Arial, sans-serif;
}

.rd-catalog-addons__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 10px;
}

.rd-catalog-addons__title {
  margin: 0;
  color: #1a1a18;
  font-family: "Charis SIL", Georgia, serif;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
}

.rd-catalog-addons__nav {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.slider-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #1a1a18;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(58, 36, 24, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.slider-nav-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 14px 32px rgba(58, 36, 24, 0.12);
}

.slider-nav-btn svg {
  width: 24px;
  height: 24px;
}

.cards-plans {
  display: grid;
  grid-auto-columns: var(--card-width);
  grid-auto-flow: column;
  gap: 18px;
  margin: 0;
  padding: 20px 4px 32px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #4a443f #fff;
  -webkit-overflow-scrolling: touch;
}

.card-plan {
  display: flex;
  min-height: 348px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(58, 36, 24, 0.08);
  scroll-snap-align: start;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}

.card-plan:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(58, 36, 24, 0.12);
}

.card-plan img {
  display: block;
  width: 100%;
  height: 192px;
  object-fit: cover;
  background: #e6e1da;
}

.card-plan-title {
  margin: 18px 18px 0;
  color: #1a1a18;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.22;
}

.card-plan-content {
  margin: 12px 18px 22px;
  color: #5f5a54;
  font-size: 15px;
  line-height: 1.55;
}

.cards-plans::-webkit-scrollbar {
  height: 12px;
}

.cards-plans::-webkit-scrollbar-thumb,
.cards-plans::-webkit-scrollbar-track {
  border-radius: 999px;
}

.cards-plans::-webkit-scrollbar-thumb {
  background: #4a443f;
}

.cards-plans::-webkit-scrollbar-track {
  background: #fff;
}

@media (min-width: 768px) {
  .rd-catalog__shell {
    max-width: 736px;
  }

  .rd-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 12px 12px 40px;
  }

  .pill-btn {
    flex: 1;
  }

  .filter-reset {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .rd-catalog__shell {
    max-width: 1280px;
  }

  .rd-catalog__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rd-catalog {
    padding: 28px 0 40px;
  }

  .rd-catalog__shell {
    width: calc(100vw - 48px);
  }

  .rd-catalog__title {
    padding-inline: 4px;
    font-size: 40px;
  }

  .pill-track {
    width: auto;
  }

  .pill-btn {
    flex: 0 0 auto;
  }

  .rd-catalog__grid {
    justify-items: stretch;
  }

  .rd-catalog-card {
    width: 100%;
    max-width: none;
    justify-content: stretch;
  }

  .rd-catalog-card__inner {
    width: 100%;
    max-width: none;
  }

  .rd-catalog-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .rd-catalog-addons {
    --card-width: min(360px, calc(100vw - 56px));
    padding-top: 36px;
  }

  .rd-catalog-addons__head {
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .rd-catalog-addons__title {
    font-size: 30px;
  }

  .slider-nav-btn {
    width: 42px;
    height: 42px;
  }

  .cards-plans {
    gap: 18px;
    padding: 22px 20px 30px;
    scroll-padding-inline: 20px;
  }

  .card-plan {
    min-height: 0;
  }

  .card-plan img {
    height: clamp(200px, 60vw, 240px);
  }
}

@media (min-width: 560px) and (max-width: 767px) {
  .rd-catalog__shell {
    width: calc(100vw - 32px);
  }

  .rd-catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-inline: 10px;
  }

  .rd-catalog-card__inner {
    min-height: 0;
    border-radius: 24px;
  }

  .rd-catalog-card {
    border-radius: 24px;
  }

  .rd-catalog-card__media {
    border-radius: 18px;
  }

  .rd-catalog-card__body {
    padding: 8px 16px 12px;
  }

  .rd-catalog-card__title {
    font-size: 20px;
  }

  .rd-catalog-card__footer {
    padding: 8px 16px 20px;
  }

  .rd-catalog-card__price {
    font-size: 21px;
  }
}

@media (max-width: 560px) {
  .rd-catalog-full-page {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .rd-catalog-addons {
    --card-width: min(340px, calc(100vw - 48px));
  }

  .rd-catalog-addons__head {
    gap: 14px;
  }

  .rd-catalog-addons__nav {
    gap: 8px;
  }
}
