*{box-sizing:border-box}body{margin:0;color:#171838;font:17px Nunito,'Trebuchet MS',sans-serif}header,footer,main{max-width:1240px;margin:auto;padding:24px clamp(18px,4vw,54px)}header,footer,nav{display:flex;align-items:center;justify-content:space-between;gap:clamp(12px,3vw,42px)}header,footer{background:#fcf7f0}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.brand{font-size:29px;font-weight:900;letter-spacing:.15em;white-space:nowrap}main{min-height:75vh}h1,h2,h3,p{margin:0 0 .65em}h1{font-size:clamp(34px,5vw,60px);line-height:1.04;letter-spacing:-.04em}h2{font-size:clamp(24px,3vw,36px);line-height:1.1}.hero{display:grid;grid-template-columns: .85fr 1fr;align-items:center;gap:8px}.hero img,.wide{width:100%;display:block;border-radius:20px}.hero h1{margin-bottom:14px}.hero p{font-size:clamp(18px,2vw,24px)}.ages,.filters{display:flex;gap:14px;flex-wrap:wrap;margin:26px 0}.ages{justify-content:center}.pill,.card,.panel,details,input,select,textarea{background:#fffdfb;border:1px solid #ddcec4;border-radius:16px}.pill{padding:10px 26px}.button,button{display:inline-block;border:0;background:#435a9d;color:white;border-radius:15px;padding:14px 21px;font:inherit;font-weight:700;cursor:pointer}.button:hover,button:hover{background:#33477e;text-decoration:none}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.grid img{width:100%;display:block}.card{overflow:hidden}.card:hover{box-shadow:0 5px 18px #17183816}.card-body,.panel{padding:clamp(14px,3vw,30px)}.card h3{margin:0}.center{text-align:center;margin-top:32px}.split{display:grid;grid-template-columns:1.15fr 1fr;gap:24px;margin-top:24px;align-items:start}.stack{display:grid;gap:12px}details{padding:13px 16px}summary{cursor:pointer;font-weight:bold}details p{margin-top:12px}.price{font-size:24px;font-weight:bold}input,select,textarea{font:inherit;color:inherit;padding:12px;max-width:100%}label{display:grid;gap:5px;font-weight:bold}.row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.line{justify-content:space-between;display:flex;gap:10px;margin:12px 0}.cart{display:grid;grid-template-columns:110px 1fr;gap:15px}.cart img{width:100%;border-radius:8px}.narrow{max-width:620px;margin:24px auto}.space{margin-top:26px}.age1{background:#f8dac9}.age2{background:#e5d9ee}.age3{background:#dce8d5}.link{border:0;background:none;padding:0;color:inherit;text-decoration:underline}.link:hover{background:none}.notice{color:#435a9d}.qty{width:85px}@media(max-width:650px){header{flex-wrap:wrap;padding-block:14px}header nav{font-size:14px}.brand{font-size:24px}.hero,.split{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ages{justify-content:flex-start}.pill{padding:8px 13px}main{padding-top:22px}.cart{grid-template-columns:80px 1fr}}

.gallery{display:flex;gap:8px;overflow:auto;padding:4px}.thumb{flex:0 0 72px;background:#fff;padding:4px;border:1px solid #ddcec4;border-radius:10px}.thumb img{display:block;width:100%;aspect-ratio:1;object-fit:contain}.wide{max-height:570px;object-fit:contain}

/* The wallpaper extends past the storefront on every side. */
body {
  min-height: 100vh;
  padding: clamp(12px, 2.4vw, 32px) clamp(14px, 5vw, 100px);
  isolation: isolate;
  background: #f3e7da;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background: url("./toy-wallpaper.webp") center top / 310px auto repeat;
  filter: brightness(.9) contrast(1.28);
}

.store-shell {
  max-width: 1190px;
  margin-inline: auto;
  border: 1px solid #ecddd2;
  border-radius: 24px;
  background: #fcf7f0;
  box-shadow: 0 10px 32px #53402a14;
}

.store-shell > header,
.store-shell > footer {
  border-radius: inherit;
}

.hero {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(14px, 4vw, 42px);
}

.split {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.photo-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-width: 0;
  overflow: hidden;
  background: #f8ede5;
}

.photo-frame > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.card-image > .photo-frame {
  aspect-ratio: 1;
  padding: clamp(5px, .75vw, 10px);
  border-bottom: 1px solid #eedfd6;
  background: #fff;
}

.hero-frame,
.product-frame {
  padding: clamp(7px, 1.15vw, 14px);
  background: #fffdfb;
  border: 1px solid #e8d7cb;
  border-radius: 20px;
}

.hero-frame {
  aspect-ratio: 16 / 10;
}

.product-frame {
  aspect-ratio: 1;
}

.hero-frame > img,
.product-frame > img {
  max-height: none;
  border-radius: 0;
}

.gallery {
  min-width: 0;
}

.thumb img,
.cart > img {
  object-fit: contain;
  object-position: center;
}

.cart > img {
  aspect-ratio: 1;
  padding: 4px;
  background: #f8ede5;
}

@media (max-width: 650px) {
  body::before {
    background-size: 245px auto;
  }

  .store-shell {
    border-radius: 18px;
  }

  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-shell > header,
  .store-shell > main,
  .store-shell > footer {
    padding-inline: clamp(12px, 4vw, 22px);
  }

  .store-shell > header > nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 13px;
  }
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-image {
  display: block;
}
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: clamp(10px, 1.6vw, 22px);
}
.card h3 {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.card-price {
  margin: 8px 0 18px;
  font-weight: 700;
}
.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-top: auto;
}
.card-actions button {
  min-height: 44px;
  padding: 10px 7px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.25;
}
.buy-button {
  color: #435a9d;
  background: #fffdfb;
  border: 1px solid #435a9d;
}
.buy-button:hover {
  color: white;
  background: #435a9d;
}
.card-actions .buy-button {
  grid-column: 1 / -1;
}
button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.card-status {
  font-size: 13px;
  line-height: 1.35;
  margin: 10px 0 0;
}
.card-status:empty {
  display: none;
}
@media(max-width: 450px) {
  .card-actions {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-actions button {
    min-height: 42px;
    font-size: 13px;
  }
}

.card-media {
  position: relative;
}
.wishlist-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #ddd2c8;
  border-radius: 50%;
  background: #fffdfbf5;
  color: #435a9d;
  box-shadow: 0 2px 7px #17183812;
  font-size: 28px;
  line-height: 1;
}
.wishlist-icon:hover,
.wishlist-icon[aria-pressed="true"] {
  color: #994c61;
  background: #fff5f3;
  border-color: #d8b4bb;
}
.card-actions .buy-button {
  grid-column: auto;
}

#view .split details > p {
  white-space: pre-line;
}

.product-variant-picker,
.card-variant-picker {
  min-width: 0;
  gap: 8px;
  color: #171838;
}

.product-variant-picker select,
.card-variant-picker select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #a99483;
  border-radius: 12px;
  background: #fffdfb;
  color: #171838;
  font-weight: 600;
  cursor: pointer;
}

.product-variant-picker select:focus-visible,
.card-variant-picker select:focus-visible {
  outline: 3px solid #435a9d;
  outline-offset: 3px;
}

.card-variant-picker {
  margin-block: 14px 10px;
  font-size: 14px;
}

.card-variant-picker select {
  padding: 10px 8px;
  font-size: 14px;
}

#product-color-status,
.product-variant-note {
  margin: 0;
  color: #51536a;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 450px) {
  .card-variant-picker {
    gap: 6px;
    font-size: 13px;
  }

  .card-variant-picker select {
    padding-inline: 6px;
    font-size: 13px;
  }
}
