@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&display=swap");

:root {
  --bg: #f4f3ef;
  --card: #ffffff;
  --text: #1c1c1c;
  --muted: #5c5c5c;
  --accent: #ff7a1a;
  --border: #e2ded8;
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  background: linear-gradient(180deg, #f4f3ef 0%, #f8f6f1 100%);
  color: var(--text);
  line-height: 1.55;
}

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

.container {
  width: min(1024px, 94%);
  margin: 0 auto;
  padding: 28px 0 40px;
}

.site-header {
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.narrow {
  max-width: 480px;
  margin: 0 auto;
}

.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
  margin-bottom: 32px;
}

.hero-card {
  padding: 20px;
  border-radius: 16px;
  background: #fff2e8;
  border: 1px solid #ffd7bd;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
}

.subtle {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

.button.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.form label.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form input,
.form select,
.form textarea {
  padding: 12px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
  min-height: 44px;
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.phone-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-group input {
  width: 90px;
  text-align: center;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.checkbox input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.consent-text {
  display: inline;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 12px;
}

.alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.alert.error {
  background: #ffe5e5;
  color: #a12020;
}

.alert.success {
  background: #e3f7e9;
  color: #1c6a38;
}

.hint {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.consent-dialog::backdrop {
  background: rgba(0, 0, 0, 0.25);
}

.consent-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(520px, 92%);
  box-shadow: var(--shadow);
}

.dialog-content {
  padding: 24px;
}

.dialog-content h2 {
  margin-top: 0;
}

.dialog-content ul {
  padding-left: 18px;
  color: var(--muted);
}

.notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff7e8;
  border: 1px solid #ffe0b8;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.detail-list {
  display: grid;
  gap: 16px;
}

.detail-list dt {
  font-weight: 600;
  color: var(--muted);
}

.detail-list dd {
  margin: 4px 0 0;
}

.admin-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}

.admin-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.admin-nav a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.stack {
  display: grid;
  gap: 16px;
}

.notice-row textarea {
  min-height: 90px;
}

.popular-row input[type='number'] {
  max-width: 160px;
}

.mobile-cta {
  display: none;
}

.has-mobile-cta main.container {
  padding-bottom: 120px;
}

@media (max-width: 640px) {
  .page-store {
    font-size: 15px;
  }

  .page-store .container {
    width: min(720px, 92%);
    padding: 20px 0 32px;
  }

  .page-store .card {
    padding: 18px;
    border-radius: 14px;
  }

  .page-store .hero {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .page-store .hero-card {
    order: 2;
  }

  .page-store .grid {
    grid-template-columns: 1fr;
  }

  .page-store .button {
    width: 100%;
    text-align: center;
  }

  .page-store .form {
    gap: 14px;
  }

  .page-store .phone-group {
    flex-wrap: wrap;
    gap: 10px 6px;
  }

  .page-store .phone-group input {
    width: 100%;
    flex: 1 1 90px;
  }

  .page-store .checkbox {
    align-items: flex-start;
  }

  .page-store .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(244, 243, 239, 0.95);
    border-top: 1px solid var(--border);
    z-index: 20;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table {
    font-size: 0.85rem;
  }
}
