* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7ff;
  color: #1a2a4a;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  color: #fff;
}

.brand {
  font-size: 22px;
  font-weight: 700;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-btn,
button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
}

.nav-btn.active {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.ghost-btn {
  background: #ffe6f2;
  color: #1d4ed8;
}

.danger-btn {
  background: #ff5f8a;
}

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

.badge {
  display: inline-block;
  border-radius: 999px;
  background: #1d4ed8;
  padding: 6px 10px;
  font-size: 13px;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 12px;
}

.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px 24px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.panel {
  background: #fff;
  border: 1px solid #f2c4e7;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(255, 79, 154, 0.12);
}

.hero-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hero-card {
  background: linear-gradient(135deg, #ffffff, #ffe6f2);
  border: 1px solid #d8e5ff;
  border-radius: 14px;
  padding: 12px;
}

.hero-card h3 {
  margin: 0 0 6px;
}

.hero-card p {
  margin: 0;
  color: #a14b6f;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}

input {
  flex: 1;
  min-width: 220px;
  border: 1px solid #e8b7dd;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
}

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

.product-card {
  background: #fff;
  border: 1px solid #f2c4e7;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(255, 79, 154, 0.12);
}

.product-card h3 {
  margin: 0 0 8px;
}

.muted {
  color: #a14b6f;
}

.muted.small {
  font-size: 0.875rem;
  line-height: 1.45;
}

.checkout-internal-hint {
  max-width: 42rem;
  padding: 10px 12px;
  border-left: 4px solid #2563eb;
  background: #fff8fc;
  border-radius: 0 8px 8px 0;
}

.cart-list {
  margin-top: 12px;
  border: 1px solid #dbe5ff;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #ffe6f2;
  align-items: center;
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-row.header {
  font-weight: 700;
  background: #eef4ff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(720px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbe5ff;
  box-shadow: 0 10px 28px rgba(255, 79, 154, 0.18);
  color: #1a2a4a;
  display: none;
}

.toast.show {
  display: block;
}

.toast-error {
  border-color: #ffb3c7;
  background: #fff0f4;
}

.floating-cart-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  box-shadow: 0 10px 28px rgba(255, 79, 154, 0.28);
  font-size: 22px;
}
