:root {
  color-scheme: light;
  --ink: #263d52;
  --muted: #647a8b;
  --blue: #70c4ec;
  --blue-dark: #237cac;
  --blue-light: #eaf7ff;
  --cream: #fffaf0;
  --yellow: #ffd466;
  --coral: #ff836e;
  --green: #88c894;
  --line: #dceaf1;
  --shadow: 0 18px 50px rgba(38, 89, 119, 0.1);
  font-family: "Segoe UI", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #e6a824;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 0.9rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(1200px, calc(100% - 3rem));
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 13px 13px 13px 5px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
  transform: rotate(-5deg);
}

.brand-name {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.brand-name span {
  margin-left: 0.12em;
  color: var(--blue-dark);
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.5rem);
}

.main-nav a,
.main-nav-button,
.header-cta {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a,
.main-nav-button {
  color: #536b7d;
  transition: color 160ms ease;
}

.main-nav-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.main-nav a:hover,
.main-nav-button:hover {
  color: var(--blue-dark);
}

.header-cta {
  padding: 0.7rem 1rem;
  border: 1px solid #cae5f1;
  border-radius: 999px;
  background: #fff;
}

.header-cta span {
  padding-left: 0.35rem;
  color: var(--blue-dark);
}

.hero {
  position: relative;
  display: grid;
  width: min(1200px, calc(100% - 3rem));
  min-height: 535px;
  margin: 0 auto;
  overflow: hidden;
  grid-template-columns: 0.93fr 1.07fr;
  align-items: center;
  border-radius: 30px;
  background: linear-gradient(115deg, #eaf7ff 3%, #d9f1ff 54%, #c9eaff 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: -110px;
  left: 42%;
  width: 360px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: rotate(-20deg);
}

.hero::after {
  right: -80px;
  bottom: -180px;
  width: 430px;
  height: 330px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4.2rem clamp(2rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #397b9d;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a7995;
  letter-spacing: 0.05em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 131, 110, 0.16);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1.2;
}

h1 span {
  color: #3188b5;
}

.hero-description {
  margin-bottom: 1.7rem;
  color: #566f82;
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.72rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 7px 0 rgba(38, 61, 82, 0.13);
}

.button-primary:hover {
  background: #345b78;
  box-shadow: 0 10px 18px rgba(38, 61, 82, 0.18);
}

.button-quiet {
  color: #45677e;
}

.button-quiet:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero-note {
  display: flex;
  margin-top: 1.8rem;
  align-items: center;
  gap: 0.55rem;
  color: #61798a;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-note-icon {
  color: #e4a126;
  font-size: 1.2rem;
}

.hero-art {
  position: relative;
  width: min(100%, 560px);
  height: 430px;
  justify-self: center;
  isolation: isolate;
}

.art-sun {
  position: absolute;
  top: 45px;
  right: 104px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffe189;
  box-shadow: 0 0 0 17px rgba(255, 225, 137, 0.22);
}

.art-cloud {
  position: absolute;
  z-index: 1;
  width: 108px;
  height: 31px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
}

.art-cloud::before,
.art-cloud::after {
  position: absolute;
  bottom: 8px;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.art-cloud::before {
  left: 16px;
  width: 39px;
  height: 39px;
}

.art-cloud::after {
  left: 44px;
  width: 52px;
  height: 52px;
}

.art-cloud-one {
  top: 92px;
  left: 46px;
}

.art-cloud-two {
  top: 164px;
  right: 20px;
  transform: scale(0.7);
}

.art-spark {
  position: absolute;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 6px rgba(80, 148, 183, 0.28);
}

.art-spark-one {
  top: 93px;
  right: 54px;
  color: #ffb84f;
  font-size: 1.8rem;
}

.art-spark-two {
  top: 198px;
  left: 72px;
  color: #fff;
  font-size: 2.5rem;
}

.art-spark-three {
  top: 61px;
  left: 217px;
  color: #ff9a79;
  font-size: 1.2rem;
}

.art-orbit {
  position: absolute;
  top: 102px;
  left: 95px;
  width: 350px;
  height: 240px;
  border: 2px dashed rgba(72, 143, 180, 0.26);
  border-radius: 50%;
  transform: rotate(-17deg);
}

.toy-capsule {
  position: absolute;
  z-index: 3;
  top: 95px;
  left: 190px;
  width: 156px;
  height: 240px;
  filter: drop-shadow(0 18px 15px rgba(62, 115, 145, 0.2));
  transform: rotate(9deg);
  transition: transform 260ms ease;
}

.hero-art:hover .toy-capsule {
  transform: rotate(5deg) translateY(-5px);
}

.capsule-cap {
  position: absolute;
  top: 0;
  left: 11px;
  width: 134px;
  height: 78px;
  border: 4px solid #2f6685;
  border-radius: 75px 75px 18px 18px;
  background: linear-gradient(140deg, #ff9c82 5%, #ff786b 85%);
}

.capsule-window {
  position: absolute;
  top: 55px;
  left: 5px;
  display: grid;
  width: 146px;
  height: 127px;
  place-items: center;
  border: 4px solid #2f6685;
  border-radius: 45% 45% 39% 39%;
  background: linear-gradient(140deg, #fffef8, #dff4ff);
}

.capsule-window span {
  position: absolute;
  width: 63px;
  height: 63px;
  border: 3px solid #5b9ec1;
  border-radius: 23px 23px 18px 18px;
  background: #ffe18d;
  transform: rotate(-8deg);
}

.capsule-window i {
  position: absolute;
  top: 26px;
  right: 34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff8a70;
}

.capsule-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 156px;
  height: 74px;
  border: 4px solid #2f6685;
  border-radius: 17px 17px 55px 55px;
  background: linear-gradient(145deg, #9cd6a5, #72bd88);
}

.toy-block {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 3px solid #2f6685;
  border-radius: 17px;
  box-shadow: 0 8px 0 rgba(38, 84, 108, 0.13);
  font-size: 1.5rem;
  font-weight: 900;
}

.block-blue {
  right: 69px;
  bottom: 102px;
  background: #83c8eb;
  transform: rotate(8deg);
}

.block-yellow {
  bottom: 61px;
  left: 105px;
  width: 59px;
  height: 59px;
  background: var(--yellow);
  transform: rotate(-10deg);
}

.block-red {
  right: 49px;
  bottom: 47px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--coral);
  transform: rotate(-8deg);
}

.block-green {
  top: 226px;
  left: 68px;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #93d4a0;
  transform: rotate(12deg);
}

.art-ground {
  position: absolute;
  z-index: 0;
  right: 5%;
  bottom: 37px;
  left: 5%;
  height: 79px;
  border-radius: 50%;
  background: rgba(117, 184, 209, 0.21);
}

.art-caption {
  position: absolute;
  right: 23%;
  bottom: 2px;
  margin: 0;
  color: #5685a0;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.benefit-strip {
  display: flex;
  width: min(1050px, calc(100% - 3rem));
  min-height: 75px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  border-bottom: 1px solid #edf2f4;
  color: #567084;
  font-size: 0.9rem;
  font-weight: 700;
}

.benefit-strip > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.benefit-icon {
  color: #df9d21;
  font-size: 1.15rem;
}

.benefit-divider {
  width: 1px;
  height: 21px;
  background: #dce8ed;
}

.section-wrap {
  width: min(1120px, calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}

.products-section {
  padding-top: 6rem;
  padding-bottom: 6.2rem;
  scroll-margin-top: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.section-heading h2,
.about-copy h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.8rem, 3.3vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.3;
}

.section-description {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.listing-note {
  max-width: 330px;
  margin-bottom: 0.25rem;
  color: #7a8e9b;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: right;
}

.product-toolbar {
  display: flex;
  min-height: 74px;
  margin-top: 1.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e8eef1;
}

.product-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #647988;
  font-size: 0.86rem;
  font-weight: 750;
}

.sort-control select {
  min-height: 38px;
  padding: 0.4rem 2rem 0.4rem 0.7rem;
  border: 1px solid #dce8ee;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-chip {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border: 1px solid #e2ebef;
  border-radius: 999px;
  background: #fff;
  color: #647988;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.filter-chip:hover {
  border-color: #9dcfe4;
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.filter-chip.is-selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.product-count {
  flex: 0 0 auto;
  margin: 0;
  color: #7b8e9a;
  font-size: 0.88rem;
}

.product-grid {
  display: grid;
  padding-top: 1.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6edf0;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(38, 89, 119, 0.045);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #c9e2ed;
  box-shadow: var(--shadow);
}

.product-visual {
  position: relative;
  display: grid;
  min-height: 222px;
  overflow: hidden;
  place-items: center;
  background: var(--visual-bg, #eaf7ff);
  isolation: isolate;
}

.product-visual::before,
.product-visual::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.product-visual::before {
  top: -43px;
  right: -24px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.45);
}

.product-visual::after {
  bottom: -57px;
  left: -20px;
  width: 160px;
  height: 115px;
  background: rgba(255, 255, 255, 0.4);
}

.product-visual[data-theme="capsule"] {
  --visual-bg: #e6f5fb;
}

.product-visual[data-theme="blindbox"] {
  --visual-bg: #fff1dc;
}

.product-visual[data-theme="plush"] {
  --visual-bg: #fce9e5;
}

.product-visual[data-theme="figure"] {
  --visual-bg: #eaf3e9;
}

.product-visual[data-theme="goods"] {
  --visual-bg: #f6f0e2;
}

.product-visual[data-theme="vintage"] {
  --visual-bg: #ecebfa;
}

.product-visual.has-photo .visual-orb,
.product-visual.has-photo .visual-shape,
.product-visual.has-photo .visual-label {
  display: none;
}

.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-orb {
  position: absolute;
  top: 28px;
  right: 43px;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(38, 61, 82, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.visual-shape {
  position: relative;
  display: grid;
  width: 103px;
  height: 116px;
  place-items: center;
  border: 3px solid rgba(38, 61, 82, 0.75);
  border-radius: 37px 37px 30px 30px;
  background: var(--shape-color, #ffcf70);
  box-shadow: 0 12px 0 rgba(38, 61, 82, 0.1);
  transform: rotate(-5deg);
  transition: transform 200ms ease;
}

.product-card:hover .visual-shape {
  transform: rotate(2deg) translateY(-3px);
}

.visual-shape::before,
.visual-shape::after {
  position: absolute;
  top: 40px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38536a;
  content: "";
}

.visual-shape::before {
  left: 27px;
}

.visual-shape::after {
  right: 27px;
}

.visual-shape span {
  position: absolute;
  bottom: 20px;
  width: 30px;
  height: 12px;
  border-bottom: 3px solid #38536a;
  border-radius: 50%;
}

.product-visual[data-theme="capsule"] .visual-shape {
  width: 108px;
  height: 114px;
  border-radius: 54px 54px 45px 45px;
  background: linear-gradient(#ff927d 0 46%, #fff8e9 46% 52%, #8bd1a0 52%);
}

.product-visual[data-theme="blindbox"] .visual-shape {
  width: 103px;
  height: 107px;
  border-radius: 21px;
  background: #ffd98a;
}

.product-visual[data-theme="plush"] .visual-shape {
  border-radius: 45% 45% 36% 36%;
  background: #f5a090;
}

.product-visual[data-theme="figure"] .visual-shape {
  width: 92px;
  height: 122px;
  border-radius: 35px 35px 24px 24px;
  background: #a4d39e;
}

.product-visual[data-theme="goods"] .visual-shape {
  width: 111px;
  height: 91px;
  border-radius: 22px 22px 35px 35px;
  background: #f1c876;
}

.product-visual[data-theme="vintage"] .visual-shape {
  width: 83px;
  height: 120px;
  border-radius: 14px;
  background: #b6b0ec;
}

.product-visual[data-theme="goods"] .visual-shape::before,
.product-visual[data-theme="goods"] .visual-shape::after,
.product-visual[data-theme="vintage"] .visual-shape::before,
.product-visual[data-theme="vintage"] .visual-shape::after {
  display: none;
}

.visual-label {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  color: rgba(38, 61, 82, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1rem;
}

.product-category {
  align-self: flex-start;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: #f0f7fa;
  color: #47758e;
  font-size: 0.8rem;
  font-weight: 800;
}

.product-title {
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.5;
}

.product-description {
  margin-bottom: 0.9rem;
  color: #718391;
  font-size: 1rem;
  line-height: 1.7;
}

.product-meta {
  display: flex;
  min-height: 35px;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: #718391;
  font-size: 0.88rem;
}

.product-price {
  display: inline-block;
  padding: 0.15rem 0.62rem 0.22rem;
  border-radius: 8px;
  background: #fff1e8;
  color: #c34f29;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  line-height: 1.4;
  white-space: nowrap;
}

.product-meta > span:last-child {
  font-size: 0.8rem;
}

.product-detail-link {
  min-height: 40px;
  margin-top: 0.75rem;
  border: 1px solid #dce8ee;
  border-radius: 10px;
  background: #fff;
  color: #426780;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.product-detail-link:hover {
  border-color: #9dcfe4;
  background: #f3faff;
  color: var(--blue-dark);
}

.product-link,
.product-link-disabled {
  display: inline-flex;
  min-height: 40px;
  margin-top: 0.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid #d5e8f0;
  border-radius: 11px;
  background: #f5fbfe;
  color: #36799e;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.product-link:hover {
  border-color: #a8d2e3;
  background: #e9f7fd;
}

.product-link-disabled {
  border-color: #edf0f1;
  background: #f7f8f8;
  color: #8b969c;
  cursor: not-allowed;
}

.product-detail-page {
  min-height: 60vh;
  padding-top: 3rem;
  padding-bottom: 6rem;
  scroll-margin-top: 1.5rem;
}

.detail-back-button {
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  border: 1px solid #dce8ee;
  border-radius: 10px;
  background: #fff;
  color: #426780;
  cursor: pointer;
  font-weight: 750;
}

.detail-back-button:hover {
  background: #f3faff;
}

.product-detail-content {
  display: grid;
  margin-top: 1.4rem;
  align-items: start;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.product-detail-visual {
  position: relative;
  display: grid;
  min-height: 460px;
  overflow: hidden;
  place-items: center;
  border-radius: 24px;
  background: var(--visual-bg, #eaf7ff);
}

.product-detail-visual[data-theme="capsule"] { --visual-bg: #e6f5fb; }
.product-detail-visual[data-theme="blindbox"] { --visual-bg: #fff1dc; }
.product-detail-visual[data-theme="plush"] { --visual-bg: #fce9e5; }
.product-detail-visual[data-theme="figure"] { --visual-bg: #eaf3e9; }
.product-detail-visual[data-theme="goods"] { --visual-bg: #f6f0e2; }
.product-detail-visual[data-theme="vintage"] { --visual-bg: #ecebfa; }

.product-detail-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-visual.is-placeholder::after {
  color: #748c9a;
  content: "培你Play 收藏選物";
  font-size: 1.05rem;
  font-weight: 800;
}

.product-detail-thumbnails {
  display: flex;
  margin-top: 0.75rem;
  gap: 0.65rem;
  overflow-x: auto;
}

.product-detail-thumbnail {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.product-detail-thumbnail.is-selected {
  border-color: var(--blue-dark);
}

.product-detail-thumbnail img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
}

.product-detail-summary {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.product-detail-summary .product-category {
  margin-bottom: 0.9rem;
}

.product-detail-price {
  margin: 0 0 0.75rem;
  color: #c34f29;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.product-detail-price.is-unavailable {
  color: #718391;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.product-detail-summary h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.product-detail-description {
  margin-bottom: 1rem;
  color: #647a8b;
  font-size: 1.08rem;
}

.product-detail-text {
  width: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid #e2edf1;
  border-radius: 14px;
  background: #f8fbfc;
  color: #526b7a;
  font-size: 0.98rem;
  line-height: 1.9;
  white-space: pre-line;
}

.product-detail-purchase {
  width: 100%;
  min-height: 50px;
  margin-top: 1.1rem;
  font-size: 1rem;
}

.load-message {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid #f1c2b9;
  border-radius: 12px;
  background: #fff5f2;
  color: #9b4437;
}

.empty-state {
  padding: 4rem 1rem;
  color: #6d8493;
  text-align: center;
}

.empty-state span {
  color: #e8b343;
  font-size: 2rem;
}

.floating-actions {
  position: fixed;
  z-index: 20;
  top: 50%;
  right: 0;
  display: grid;
  gap: 0.55rem;
  transform: translateY(-50%);
}

.floating-action {
  display: grid;
  width: 54px;
  min-height: 132px;
  padding: 0.85rem 0.55rem;
  justify-items: center;
  grid-template-rows: 24px auto;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 8px 24px rgba(24, 48, 65, 0.28);
  color: #fff;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  transition: filter 160ms ease, box-shadow 160ms ease;
}

.floating-action svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.floating-action span {
  writing-mode: vertical-rl;
}

.floating-action-notice {
  background: #134e63;
}

.floating-action-safe {
  background: #8c2f12;
}

.floating-action:hover {
  filter: brightness(1.12);
  box-shadow: 0 10px 28px rgba(24, 48, 65, 0.36);
}

.purchase-notice-dialog {
  width: min(580px, calc(100% - 1.25rem));
  max-height: min(82vh, 760px);
  margin: auto;
  padding: clamp(1rem, 3vw, 1.6rem);
  overflow-y: auto;
  border: 1px solid #e8dfce;
  border-radius: 18px;
  background: #fffaf1;
  color: var(--ink);
  box-shadow: 0 20px 70px rgba(24, 48, 65, 0.28);
  overscroll-behavior: contain;
}

.purchase-notice-dialog::backdrop {
  background: rgba(25, 43, 55, 0.48);
}

.purchase-notice-header {
  display: flex;
  margin-bottom: 0.5rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.purchase-notice-header .eyebrow {
  margin-bottom: 0.2rem;
}

.purchase-notice-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.purchase-notice-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #f1dfbd;
  border-radius: 12px;
  background: #fff1d9;
  color: #a7653f;
}

.purchase-notice-icon svg {
  width: 25px;
  height: 25px;
}

.purchase-notice-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
}

.purchase-notice-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d8e2e7;
  border-radius: 50%;
  background: #fff;
  color: #526a79;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.purchase-notice-intro {
  margin-bottom: 0.8rem;
  color: #796c57;
  font-size: 0.78rem;
}

.safe-shopping-dialog {
  background: #f7fbff;
}

.safe-shopping-card {
  display: flex;
  padding: 1rem;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid #bdd9e7;
  border-radius: 14px;
  background: linear-gradient(125deg, #eaf7ff, #fff);
}

.safe-shopping-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: #d9f1e2;
  color: #236a41;
}

.safe-shopping-icon svg {
  width: 25px;
  height: 25px;
}

.safe-shopping-card h3 {
  margin: 0 0 0.1rem;
  color: #24465b;
  font-size: 1rem;
}

.safe-shopping-card p {
  margin: 0;
  color: #526e7f;
  font-size: 0.9rem;
  line-height: 1.55;
}

.safe-shopping-card strong {
  color: #14516d;
}

.safe-shopping-warning {
  margin: 0.9rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid #edc5b2;
  border-radius: 12px;
  background: #fff4ed;
  color: #7c2d12;
  font-size: 0.9rem;
  line-height: 1.65;
}

.purchase-notice-list {
  display: grid;
  margin: 0.8rem 0 0;
  padding: 0;
  gap: 0.15rem;
  list-style: none;
}

.purchase-notice-list[hidden] {
  display: none;
}

.purchase-notice-list li {
  padding: 0.55rem 0.2rem;
  border-bottom: 1px solid rgba(226, 205, 166, 0.55);
  color: #594f41;
  font-size: 0.86rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.purchase-notice-empty {
  margin: 1rem 0 0;
  color: #796c57;
  font-size: 0.85rem;
}

.about-section {
  overflow: hidden;
  background: #fff7e7;
}

.about-inner {
  position: relative;
  display: grid;
  width: min(1120px, calc(100% - 3rem));
  min-height: 330px;
  margin: 0 auto;
  align-items: center;
  grid-template-columns: 0.65fr 1fr 0.45fr;
  gap: 2rem;
}

.about-stamp {
  display: flex;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 2px dashed #dfaa43;
  border-radius: 50%;
  background: #ffdf91;
  color: #8a6530;
  transform: rotate(-8deg);
}

.about-stamp span {
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.about-stamp strong {
  color: #e88573;
  font-size: 3.1rem;
  line-height: 1.2;
}

.about-copy h2 {
  margin-bottom: 0.8rem;
}

.about-copy > p:last-child {
  max-width: 540px;
  margin-bottom: 0;
  color: #796c57;
  line-height: 1.9;
}

.about-doodles {
  position: relative;
  min-height: 180px;
  color: #e39847;
}

.doodle-star,
.doodle-heart,
.doodle-spark {
  position: absolute;
}

.doodle-star {
  top: 17px;
  right: 31px;
  font-size: 4rem;
  transform: rotate(12deg);
}

.doodle-heart {
  top: 84px;
  left: 24px;
  color: #e88c78;
  font-size: 4.5rem;
  transform: rotate(-14deg);
}

.doodle-spark {
  right: 0;
  bottom: 6px;
  font-size: 3rem;
}

.site-footer {
  display: flex;
  width: min(1200px, calc(100% - 3rem));
  min-height: 100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #edf1f3;
}

.footer-brand .brand-mark {
  width: 33px;
  height: 33px;
  font-size: 1.05rem;
}

.footer-brand .brand-name {
  font-size: 1rem;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: #758794;
  font-size: 0.77rem;
}

@media (max-width: 860px) {
  .site-header {
    width: min(100% - 2rem, 720px);
    min-height: 72px;
    gap: 0.8rem;
  }

  .main-nav {
    gap: 1rem;
  }

  .main-nav a,
  .main-nav-button {
    font-size: 0.8rem;
  }

  .header-cta {
    padding: 0.58rem 0.75rem;
    font-size: 0.78rem;
  }

  .hero {
    width: min(100% - 2rem, 720px);
    min-height: 480px;
    grid-template-columns: 1fr 0.9fr;
  }

  .hero-copy {
    padding-left: 2rem;
  }

  .hero-art {
    right: -24px;
    transform: scale(0.76);
    transform-origin: center right;
  }

  .benefit-strip,
  .section-wrap,
  .about-inner,
  .site-footer {
    width: min(100% - 2rem, 720px);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-inner {
    grid-template-columns: 0.5fr 1fr;
  }

  .about-doodles {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 68px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.45rem;
    padding: 0.75rem 0;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.55rem;
  }

  .main-nav a,
  .main-nav-button {
    padding: 0.3rem 0;
    font-size: 0.88rem;
  }

  .header-cta {
    font-size: 0.88rem;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .hero-copy {
    padding: 2.5rem 1.35rem 0.5rem;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    gap: 0.35rem;
  }

  .button {
    min-height: 44px;
    padding: 0.62rem 0.9rem;
    font-size: 0.9rem;
  }

  .hero-note {
    margin-top: 1.1rem;
    font-size: 0.85rem;
  }

  .hero-art {
    left: 50%;
    flex: 0 0 560px;
    width: 560px;
    height: 280px;
    margin-top: -0.3rem;
    right: auto;
    transform: translateX(-50%) scale(0.64);
    transform-origin: center top;
  }

  .art-caption {
    right: 22%;
  }

  .benefit-strip {
    min-height: auto;
    padding: 1.15rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.9rem;
  }

  .benefit-divider {
    display: none;
  }

  .products-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .listing-note {
    max-width: none;
    margin: 0;
    text-align: left;
  }

  .product-toolbar {
    margin-top: 1rem;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .product-toolbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .sort-control {
    gap: 0.4rem;
    font-size: 0.78rem;
  }

  .sort-control select {
    max-width: 180px;
    min-height: 36px;
    padding-right: 1.5rem;
    font-size: 0.78rem;
  }

  .category-filters {
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 0.3rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0.4rem 0.78rem;
  }

  .product-count {
    align-self: flex-end;
  }

  .product-grid {
    padding-top: 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-card {
    display: grid;
    grid-template-columns: minmax(115px, 0.78fr) 1.22fr;
    border-radius: 16px;
  }

  .product-visual {
    min-height: 218px;
  }

  .product-info {
    padding: 0.85rem 0.8rem;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.92rem;
  }

  .product-meta {
    font-size: 0.82rem;
  }

  .product-price {
    padding-right: 0.38rem;
    padding-left: 0.38rem;
    font-size: clamp(1.05rem, 4vw, 1.35rem);
  }

  .product-meta > span:last-child {
    font-size: 0.68rem;
  }

  .product-detail-link {
    min-height: 36px;
    font-size: 0.75rem;
  }

  .product-link,
  .product-link-disabled {
    min-height: 37px;
    font-size: 0.85rem;
  }

  .product-detail-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  .product-detail-content {
    margin-top: 1rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-detail-visual {
    min-height: min(86vw, 400px);
    border-radius: 18px;
  }

  .about-inner {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-stamp {
    width: 132px;
    height: 132px;
  }

  .about-stamp strong {
    font-size: 2.2rem;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy > p:last-child {
    font-size: 0.95rem;
  }

  .floating-actions {
    top: auto;
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    transform: none;
    gap: 0.45rem;
  }

  .floating-action {
    display: flex;
    width: auto;
    min-width: 132px;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
  }

  .floating-action svg {
    width: 21px;
    height: 21px;
  }

  .floating-action span {
    writing-mode: horizontal-tb;
  }

  .purchase-notice-dialog {
    width: calc(100% - 1rem);
    max-height: min(86vh, 760px);
    border-radius: 16px;
  }

  .site-footer {
    min-height: auto;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 700px) and (min-width: 601px) {
  .hero-art {
    transform: scale(0.55);
  }
}

@media (max-width: 420px) and (min-width: 381px) {
  .hero-art {
    transform: translateX(-50%) scale(0.6);
  }
}

@media (max-width: 380px) {
  .hero-art {
    height: 220px;
    transform: translateX(-50%) scale(0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
