.card-shop {
  --shop-gold: #f0db9c;
  --shop-muted: #d9cce0;
  --shop-line: rgba(240, 219, 156, .22);
  --shop-header-offset: 0px;
  color: #f8f1f8;
}
.card-shop-inner {
  width: min(1120px, calc(100% - 52px));
  margin: 0 auto;
}
.card-shop-hero {
  background: radial-gradient(ellipse at 76% 15%, #563264 0%, #32213d 44%, #211429 78%);
  border-bottom: 1px solid var(--shop-line);
}
.card-shop-hero .card-shop-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  padding-block: clamp(38px, 6vw, 82px);
  gap: clamp(28px, 7vw, 96px);
}
.card-shop h1,
.greeting-card h2,
.card-cart h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 500;
  color: #fff7fb;
  letter-spacing: -.025em;
  margin: 0;
}
.card-shop h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6.4vw, 5.3rem);
  line-height: .99;
}
.card-shop-intro {
  margin: 22px 0 0;
  max-width: 42ch;
  color: var(--shop-muted);
  line-height: 1.65;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}
.card-shop-hero-image {
  width: min(100%, 348px);
  margin: 0 auto;
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  overflow: hidden;
  background: #e9dfe6;
  box-shadow: 0 18px 46px #170f21a3;
}
.card-shop-hero-image img,
.greeting-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}
.card-shop-catalog {
  padding: 0 0 66px;
  background: #211429;
}
.card-shop-toolbar {
  position: sticky;
  top: var(--shop-header-offset);
  z-index: 3;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  margin-bottom: 14px;
  background: #211429;
  color: var(--shop-muted);
  border-bottom: 1px solid var(--shop-line);
}
.card-shop-toolbar p {
  margin: 0;
}
.card-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 25px);
}
.greeting-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--shop-line);
  border-radius: 12px;
  background: #2c1a37;
}
.greeting-card-image {
  background: #e4dbe1;
}
.greeting-card-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 17px 17px;
}
.greeting-card h2 {
  font-size: clamp(1.02rem, 1.8vw, 1.42rem);
  line-height: 1.26;
  overflow-wrap: anywhere;
}
.greeting-card-purchase {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.greeting-card-price {
  color: var(--shop-gold);
  font-weight: 700;
  white-space: nowrap;
}
.card-shop button,
.card-checkout-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #bc9a62;
  padding: 8px 13px;
  border-radius: 8px;
  background: transparent;
  color: var(--shop-gold);
  font: 700 .86rem/1.25 Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}
.card-shop button:hover,
.card-shop button:focus-visible,
.card-checkout-fallback:hover {
  background: #472e51;
}
.card-shop button:focus-visible,
.card-shop a:focus-visible {
  outline: 2px solid var(--shop-gold);
  outline-offset: 3px;
}
.card-shop button:disabled {
  opacity: .65;
  cursor: default;
}
#show-card-cart,
.card-cart .card-checkout {
  background: var(--shop-gold);
  color: #211429;
}
#show-card-cart:hover,
.card-cart .card-checkout:hover {
  background: #fff0bb;
}
.card-shop .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.card-cart {
  box-sizing: border-box;
  width: min(510px, calc(100% - 26px));
  max-height: min(87vh, 700px);
  max-height: min(87dvh, 700px);
  margin: auto;
  overflow: auto;
  padding: clamp(17px, 4vw, 26px);
  background: #2c1a37;
  color: #f8f1f8;
  border: 1px solid #bc9a62;
  border-radius: 13px;
}
.card-cart::backdrop {
  background: #130c1bc9;
}
.card-cart-head,
.card-cart-line-name,
.card-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-cart-head h2 {
  font-size: 1.7rem;
}
#card-cart-items {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}
#card-cart-items li {
  border-top: 1px solid var(--shop-line);
  padding: 12px 0;
}
.card-cart-line-name span {
  color: var(--shop-gold);
  white-space: nowrap;
}
.card-cart-quantity {
  display: flex;
  gap: 9px;
  margin-top: 9px;
  align-items: center;
}
.card-cart-quantity button {
  min-width: 42px;
  min-height: 42px;
}
.card-cart-quantity-value {
  min-width: 2ch;
  text-align: center;
}
.card-cart-total {
  padding-top: 14px;
  border-top: 1px solid var(--shop-line);
}
.card-cart-note,
.card-cart-empty,
#card-checkout-status {
  color: var(--shop-muted);
  line-height: 1.45;
}
.card-cart-note,
#card-checkout-status {
  margin: 10px 0;
  font-size: .9rem;
}
.card-cart .card-checkout {
  width: 100%;
  margin-top: 12px;
}
.card-checkout-fallback:not([hidden]) {
  width: 100%;
  margin-top: 9px;
}
.card-checkout-fallback[hidden] {
  display: none;
}
.card-shop noscript a {
  color: var(--shop-gold);
}
@media (max-width: 815px) {
  .card-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 570px) {
  .card-shop-inner {
    width: calc(100% - 30px);
  }
  .card-shop-hero .card-shop-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 25px;
  }
  .card-shop-hero-image {
    width: min(100%, 260px);
    margin-left: 0;
  }
  .greeting-card-info {
    padding: 11px;
    gap: 10px;
  }
  .greeting-card-purchase {
    gap: 7px;
  }
  .greeting-card-add {
    width: 100%;
  }
}
@media (max-width: 335px) {
  .card-shop-grid {
    grid-template-columns: 1fr;
  }
}

