:root {
  color-scheme: light;
  --ink: #17151f;
  --muted: #686174;
  --line: #e8e0f5;
  --accent: #8b4dff;
  --accent-dark: #5f31c8;
  --orange: #ff6f00;
  --mint: #8ee9dc;
  --paper: rgba(255, 255, 255, 0.78);
  --shadow: 0 20px 54px rgba(50, 32, 104, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(142, 233, 220, 0.55), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(169, 124, 255, 0.48), transparent 34%),
    linear-gradient(135deg, #fbfffe, #fff8f2 55%, #fbf8ff);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.locked-state {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-card {
  width: min(430px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px 28px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(18px);
}

.access-card .monica-logo {
  width: 92px;
  height: 92px;
  font-size: 50px;
}

.access-card .brand-mark-block {
  position: static;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.access-card .brand-mark-block p {
  margin: 0;
  color: var(--orange);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.access-card h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow:
    0 1px 0 #e35d00,
    0 3px 0 #b94a00,
    0 10px 18px rgba(255, 111, 0, 0.2);
}

.access-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
}

.access-card input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0 16px;
  outline: 0;
  text-align: center;
  background: #fff;
}

.access-card button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 111, 0, 0.2);
}

.access-card strong {
  min-height: 20px;
  color: #b42318;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  padding: 8px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(139, 77, 255, 0.12);
  backdrop-filter: blur(18px);
}

a {
  color: inherit;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: transparent;
  font-weight: 800;
}

nav a,
.nav-text-btn {
  font-size: 12px;
}

.nav-text-btn {
  border: 0;
  padding: 0;
  color: transparent;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.nav-text-btn:hover,
nav a:hover {
  color: rgba(255, 111, 0, 0.14);
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 14px clamp(18px, 4vw, 56px) 56px;
}

.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 38px 44px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.58)),
    linear-gradient(135deg, rgba(142, 233, 220, 0.32), rgba(139, 77, 255, 0.18));
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.brand-mark-block {
  position: static;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.monica-logo {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border: 5px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.72);
  font-size: 62px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 16px 36px rgba(255, 111, 0, 0.18);
}

.hero-copy p {
  margin: 0;
  color: var(--orange);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
}

.section-head p {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  position: relative;
  max-width: 760px;
  margin: 0;
  color: var(--orange);
  font-size: clamp(58px, 7vw, 92px);
  line-height: 1;
  text-shadow:
    0 2px 0 #cf5700,
    0 8px 18px rgba(255, 111, 0, 0.24),
    0 18px 38px rgba(70, 48, 22, 0.16);
}

.store-info {
  margin-top: 14px;
  padding: 16px 20px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(50, 32, 104, 0.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.store-address {
  display: inline-grid;
  grid-template-columns: 18px auto;
  align-items: start;
  gap: 6px;
  width: auto;
  max-width: 100%;
  line-height: 1.45;
  text-align: left;
}

.store-address svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 0.12em;
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vx-text {
  flex: 0 0 auto;
}

.search-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(50, 32, 104, 0.08);
}

.hero-search {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin: 0 auto;
}

.search-box {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(139, 77, 255, 0.1);
}

.search-box span {
  color: var(--muted);
  font-size: 28px;
}

.search-box input,
select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

select {
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 22px 2px 4px;
}

.category-strip button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.category-strip button.active {
  border-color: rgba(139, 77, 255, 0.4);
  color: #fff;
  background: var(--accent);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 30px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 34px;
}

.section-head span {
  color: var(--muted);
  font-weight: 900;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  --info-height: 82px;
  --meta-size: 12px;
  --title-size: 15px;
  --button-size: 13px;
  aspect-ratio: 1 / 1.08;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--info-height);
  overflow: hidden;
  border: 1px solid rgba(139, 77, 255, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(50, 32, 104, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
  cursor: pointer;
}

.product-card:hover {
  z-index: 2;
  border-color: rgba(242, 112, 35, 0.22);
  box-shadow: 0 20px 42px rgba(50, 32, 104, 0.16);
  transform: translateY(-3px) scale(1.025);
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  background: linear-gradient(145deg, #f8f5ff, #ffffff);
}

.product-copy {
  min-height: 0;
  display: grid;
  grid-template-rows: 22px 20px 16px;
  gap: 3px;
  padding: 9px 10px 10px;
}

.pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: var(--meta-size);
  font-weight: 900;
}

.product-copy h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--title-size);
}

.product-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: var(--meta-size);
}

.product-card button {
  display: none;
  grid-row: 5;
  align-self: end;
  width: 100%;
  height: 28px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--accent-dark);
  font-size: var(--button-size);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.empty-state {
  min-height: 260px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
  font-size: 24px;
}

dialog {
  width: min(1180px, calc(100vw - 28px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 34px 90px rgba(24, 16, 56, 0.28);
}

dialog::backdrop {
  background: rgba(25, 18, 45, 0.34);
  backdrop-filter: blur(6px);
}

dialog[open] {
  display: grid;
  grid-template-columns: 1fr;
}

.detail-image-stage {
  width: 100%;
  height: min(76vh, 780px);
  display: grid;
  place-items: center;
  overflow: auto;
  background: #f6f2ff;
  cursor: zoom-in;
}

.detail-image-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--detail-zoom, 1));
  transform-origin: center center;
  transition: transform 120ms ease;
}

.dialog-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 16px;
  padding: 18px 24px 22px;
}

.dialog-copy p {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(139, 77, 255, 0.12);
  font-weight: 900;
}

.dialog-copy h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 26px;
}

.dialog-copy strong,
.dialog-copy span {
  color: var(--muted);
  font-weight: 800;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 24px;
  cursor: pointer;
}

.password-dialog {
  width: min(420px, calc(100vw - 32px));
}

.password-dialog[open] {
  display: block;
}

.password-dialog form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 30px;
}

.password-dialog h3 {
  margin: 0;
  color: var(--orange);
  font-size: 28px;
}

.password-dialog label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.password-dialog input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: 0;
}

#passwordError,
#changePasswordMessage {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 800;
}

#changePasswordMessage.success {
  color: #087443;
}

.admin-submit {
  height: 48px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 111, 0, 0.2);
}

@media (max-width: 780px) {
  .site-header,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  dialog[open] {
    grid-template-columns: 1fr;
  }

  .detail-image-stage {
    height: min(68vh, 620px);
  }

  .dialog-copy {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 16px;
  }

  .dialog-copy h3 {
    white-space: normal;
    font-size: 22px;
  }

  .hero {
    min-height: auto;
    gap: 16px;
    padding: 18px 14px 20px;
  }

  .hero-copy p {
    font-size: clamp(22px, 7vw, 30px);
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.05;
    white-space: nowrap;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .search-panel {
    padding: 12px;
  }

  .brand-mark-block {
    position: static;
    justify-items: center;
    margin-bottom: 4px;
  }

  .monica-logo {
    width: clamp(64px, 18vw, 82px);
    height: clamp(64px, 18vw, 82px);
    border-width: 3px;
    font-size: clamp(36px, 10vw, 48px);
  }

  .store-info {
    padding: 12px;
    font-size: clamp(10px, 3vw, 12px);
  }

  .store-address {
    grid-template-columns: 16px minmax(0, 1fr);
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    --info-height: 68px;
    --meta-size: 10px;
    --title-size: 12px;
    --button-size: 11px;
    aspect-ratio: 1 / 1.06;
    border-radius: 14px;
  }

  .product-copy {
    grid-template-rows: 18px 17px 13px;
    gap: 1px;
    padding: 6px 8px 8px;
  }

  .product-card button {
    height: 26px;
  }
}

@media (min-width: 781px) and (max-width: 1080px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-card {
    --info-height: 108px;
  }
}
