.product-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.72;
  object-fit: cover;
  background: #f2f3f8;
  pointer-events: none;
}

#cards { padding-block: clamp(60px, 6vw, 92px); }
#cards .section-heading h2 { font-size: clamp(38px, 4.8vw, 68px); line-height: 1.02; letter-spacing: -.064em; }
#cards .section-heading p { max-width: 48ch; font-size: clamp(15px, 1.2vw, 17px); }
#cards .compare-button {
  min-height: 46px; padding-inline: 18px; gap: 8px; border-radius: 24px;
  border-color: #d5d5dc; color: #282a39; background: #fff; font-size: 14px;
}
#cards .compare-button:hover { border-color: #9999af; background: #f5f4fc; }
#cards .filters { gap: 6px; margin: 26px 0 20px; }
#cards .filters button { min-height: 40px; padding: 8px 15px; background: #f0efec; color: #43444c; font-size: 13px; }
#cards .filters button[aria-pressed="true"] { color: #fff; background: #282936; }
#cards .filters button:hover:not([aria-pressed="true"]) { background: #e6e5e2; }
#cards:not(:has(.product-tile)) :is(.compare-button, .filters) { display: none; }
#cards noscript ul { margin: 24px 0 18px; padding-left: 20px; line-height: 1.6; }
#cards noscript a { color: #394bf2; text-decoration: underline; }

#cards .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 22px); }
#cards .catalog-filtered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#cards .product-tile {
  --stage: #ece4cd; --halo: #faf7e9; --edge: #e5e1d7;
  position: relative; display: flex; min-width: 0; isolation: isolate; overflow: hidden;
  flex-direction: column; border: 1px solid var(--edge); border-radius: 24px; background: #fff; color: #222331;
}
#cards .catalog-orange { --stage: #ffd4a5; --halo: #fff2dd; --edge: #f1d4b9; }
#cards .catalog-ocean { --stage: #c8dfe4; --halo: #ebf5f4; --edge: #d8e3e6; }
#cards .catalog-ruby { --stage: #efd4db; --halo: #fff1ef; --edge: #ecdadc; }
#cards .catalog-featured {
  --edge: #f1d4b9;
  grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr;
  background: linear-gradient(112deg, #fff0dc 12%, #ffead0 46%, #ffd49f 78%, #ffc184 100%);
}
.catalog-scene { position: relative; display: grid; overflow: hidden; place-items: center; background: radial-gradient(ellipse at 22% 10%, var(--halo), transparent 75%), var(--stage); }
#cards .catalog-featured .catalog-scene { grid-area: 1 / 2; align-content: center; background: transparent; }
.product-stage { position: relative; width: 100%; display: block; aspect-ratio: 2.02; pointer-events: none; }
.product-stage::before {
  content: ""; position: absolute; inset: 77% 24% 1%;
  background: radial-gradient(ellipse closest-side, #27202935, #392f390f 68%, transparent);
}
.product-stage::after { content: ""; position: absolute; inset: 0; background: var(--card-face) center / 94% auto no-repeat; }
.catalog-featured .product-stage { aspect-ratio: 1.74; max-width: 650px; }
.catalog-featured .product-stage::after { background-size: 106% auto; }
.catalog-featured .product-stage::before { inset: 84% 20% 0; }

.catalog-service-link {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 11px;
  justify-self: center; min-height: 44px; margin: 1px 18px 16px; padding: 7px 12px 7px 8px;
  color: #342f32; border: 1px solid #ffffffad; border-radius: 24px; background: #fffcf4d6;
  font-size: 12px; font-weight: 570;
}
.catalog-service-link:hover { background: #fffdf8; }
.catalog-service-link .icon { width: 14px; height: 14px; }
.catalog-service-marks { display: inline-flex; padding-left: 3px; }
.catalog-service-marks img { display: block; width: 26px; height: 26px; flex: none; margin-left: -3px; border: 1.5px solid #fffaf0; border-radius: 50%; }

#cards .product-body { flex: 1; min-width: 0; padding: clamp(20px, 2vw, 30px); }
#cards .catalog-featured .product-body { grid-area: 1 / 1; padding: clamp(28px, 3.5vw, 52px); padding-right: 0; }
.catalog-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
#cards .product-country { color: #4c4b53; font-size: 12px; font-weight: 550; }
.catalog-wallets { display: inline-flex; align-items: center; gap: 5px; }
.catalog-wallets img { width: 52px; height: 29px; padding: 5px 6px; object-fit: contain; background: #fff; border: 1px solid #322b431c; border-radius: 7px; }
#cards .product-title { margin: 13px 0 6px; font-size: clamp(28px, 2.4vw, 38px); font-weight: 600; line-height: 1.05; letter-spacing: -.055em; }
#cards .catalog-featured .product-title { margin-top: 18px; font-size: clamp(44px, 4.9vw, 71px); }
#cards .product-copy { margin: 0; padding: 0; color: #4c4e59; line-height: 1.45; font-size: 15px; letter-spacing: -.025em; }
#cards .catalog-featured .product-copy { font-size: clamp(16px, 1.4vw, 20px); color: #55473f; }
.catalog-highlights { list-style: none; display: grid; gap: 8px; margin: 21px 0 22px; padding: 0; color: #41434b; letter-spacing: -.014em; }
.catalog-highlights li { position: relative; padding-left: 21px; font-size: 13px; line-height: 1.45; }
.catalog-highlights li::before {
  content: ""; position: absolute; left: 2px; top: .38em; width: 9px; height: 5px;
  transform: rotate(-45deg); border: solid #50566f; border-width: 0 0 1.65px 1.65px;
}
.catalog-featured .catalog-highlights li { font-size: 14px; }
.catalog-featured .catalog-highlights li::before { border-color: #7f5537; }
.catalog-order { display: flex; align-items: start; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--edge); }
#cards .product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
#cards .product-price strong { color: #20212d; font-size: 22px; line-height: 1.15; }
#cards .product-price small { color: #61616b; margin-top: 0; font-size: 12px; }
.catalog-featured .catalog-order { border-color: #a06d3a38; }
.catalog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.catalog-apply, .catalog-conditions { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; gap: 5px; font-size: 13px; font-weight: 580; line-height: 1.2; white-space: nowrap; }
.catalog-apply { position: relative; z-index: 2; padding-inline: 18px; border-radius: 30px; background: #efeffd; color: #383fad; }
.catalog-apply:hover { background: #e1e2fd; }
.catalog-featured .catalog-apply { color: #fff; background: #292633; }
.catalog-featured .catalog-apply:hover { background: #443c44; }
.catalog-conditions { padding: 0 3px; border: 0; background: transparent; color: #44465a; }
.catalog-conditions::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.catalog-conditions:hover { color: #27299c; }
.catalog-conditions .icon { width: 14px; height: 14px; }
#cards .catalog-filtered .product-stage { aspect-ratio: 2.1; max-height: 222px; }
#cards .catalog-filtered .product-stage::after { background-size: contain; }
#cards .catalog-filtered .product-stage::before { inset: 78% 25% 3%; }
#cards .catalog-filtered .catalog-highlights { margin: 15px 0 18px; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-stage::after { transition: transform 280ms cubic-bezier(.22, 1, .36, 1); }
  .product-tile:hover .product-stage::after { transform: translateY(-4px) rotate(.8deg); }
}

@media (min-width: 1000px) {
  .catalog-featured .catalog-order { align-items: center; flex-direction: row; gap: 20px; }
  #cards .catalog-featured .product-price { display: block; }
  #cards .catalog-featured .product-price small { margin-top: 4px; }
}

@media (min-width: 660px) and (max-width: 880px) {
  #cards .product-grid:not(.catalog-filtered) { grid-template-columns: 1fr; }
  #cards .product-grid:not(.catalog-filtered) .product-tile:not(.catalog-featured) { display: grid; grid-template-columns: .85fr 1.15fr; }
  #cards .product-grid:not(.catalog-filtered) .product-tile:not(.catalog-featured) .product-stage { aspect-ratio: 1.5; }
}

@media (max-width: 659px) {
  #cards { padding-block: 52px; }
  #cards .section-heading { align-items: flex-start; gap: 13px; }
  #cards .compare-button { min-height: 42px; }
  #cards .filters { margin: 18px 0 16px; }
  #cards .filters button { min-height: 37px; font-size: 12px; padding: 7px 12px; }
  #cards .product-grid, #cards .catalog-filtered { grid-template-columns: 1fr; gap: 16px; }
  #cards .product-tile { border-radius: 20px; }
  #cards .catalog-featured { display: flex; background: linear-gradient(146deg, #ffc793, #ffe7c9 45%, #fff1de 75%); }
  #cards .catalog-featured .product-body { padding: 20px; }
  #cards .catalog-featured .catalog-scene { width: 100%; }
  #cards .catalog-featured .product-stage { aspect-ratio: 1.98; }
  #cards .catalog-featured .product-stage::after { background-size: 97% auto; }
  #cards .catalog-featured .catalog-service-link { min-height: 36px; justify-self: end; margin: 0 15px 0; padding: 5px 11px; }
  #cards .catalog-service-marks { display: none; }
  #cards .catalog-featured .product-title { font-size: 42px; margin-top: 13px; }
  #cards .catalog-featured .product-copy { font-size: 16px; }
  .catalog-highlights { margin-block: 16px 18px; }
  .catalog-order { gap: 13px; }
}
@media (pointer: coarse) {
  #cards .filters button, #cards .compare-button, #cards .catalog-featured .catalog-service-link { min-height: 44px; }
}
