@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #39294f;
  --muted: #766b84;
  --purple: #7653a8;
  --purple-deep: #5d3d8d;
  --lilac: #eee5fa;
  --pink: #f7e5f1;
  --line: #e6d9f0;
}

body {
  min-height: 100vh;
  padding: 32px 20px 20px;
  font-family: "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background-color: #f7f0ff;
  background-image: linear-gradient(rgba(249, 243, 249, 0.8), rgba(247, 241, 255, 0.84)), url("images/img07.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

h1 {
  text-align: center;
  margin: 0 0 28px;
  color: var(--purple-deep);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
}

header {
  position: relative;
  padding-bottom: 16px;
}

header::after {
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto;
  border-radius: 2px;
  background: linear-gradient(90deg, #b99be2, #edb4d2);
  content: "";
}

.buttons {
  text-align: center;
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

button {
  min-height: 42px;
  padding: 9px 16px;
  cursor: pointer;
  border: 1px solid #dfd0ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--purple-deep);
  font: inherit;
  box-shadow: 0 3px 10px rgba(80, 52, 112, 0.07);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-2px);
  border-color: #bda3db;
  background: #f3ebfc;
  box-shadow: 0 6px 14px rgba(80, 52, 112, 0.12);
}

button:focus-visible {
  outline: 3px solid #bd9de4;
  outline-offset: 3px;
}

#product-container {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.card {
  width: 100%;
  min-height: 330px;
  padding: 14px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, #fff 0%, #fff 72%, #fdf8ff 100%);
  text-align: center;
  box-shadow: 0 7px 20px rgba(110, 75, 145, 0.1), inset 0 0 0 3px rgba(247, 229, 241, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #c9afe9, #f1bfdc, #c9afe9);
  content: "";
}

.card::after {
  position: absolute;
  top: 18px;
  right: 24%;
  color: #d897ca;
  content: "♥";
  font-size: 19px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(217, 151, 202, 0.2);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(110, 75, 145, 0.16), inset 0 0 0 3px rgba(247, 229, 241, 0.55);
}

.card img {
  display: block;
  width: 100%;
  height: 150px;
  box-sizing: border-box;
  margin-top: 3px;
  background: transparent;
  object-fit: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140'%3E%3Cpath d='M100 29 C76 3 48 2 28 12 C8 22 2 40 4 58 C7 87 44 115 100 138 C156 115 193 87 196 58 C198 40 192 22 172 12 C152 2 124 3 100 29 Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 140'%3E%3Cpath d='M100 29 C76 3 48 2 28 12 C8 22 2 40 4 58 C7 87 44 115 100 138 C156 115 193 87 196 58 C198 40 192 22 172 12 C152 2 124 3 100 29 Z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}

.card img[src$="img05.png"]{
  height: 190px;
  object-fit: cover;
  object-position: center 20%;
}
.card img[src$="img06.png"] {
  height: 190px;
  object-fit: cover;
  object-position: center 30%;
}

.card h2 {
  font-size: 1.2em;
  margin: 10px 0;
  color: var(--ink);
}

.price {
  font-weight: bold;
  color: #9a4f91;
}

.stock {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 10px;
  border: 1px solid #e8d9f3;
  border-radius: 999px;
  background: #f7f1fc;
  color: var(--muted);
  font-size: 0.9rem;
}

footer {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  body {
    padding: 24px 14px 16px;
    background-attachment: scroll;
  }

  #product-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card {
    min-height: 310px;
    padding: 10px;
  }

  .buttons {
    gap: 8px;
  }

  button {
    padding: 8px 11px;
    font-size: 0.9rem;
  }
}