:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5b6473;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --border: #d6dee8;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #e6f8f6, var(--bg) 35%);
}

a {
  color: var(--brand);
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 10;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.55rem;
  border-radius: 0.45rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-dark);
  background: #dbf4f1;
}

main {
  padding: 2rem 0 3rem;
}

.hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.4rem);
}

.hero p,
.lead {
  margin: 0;
  color: var(--muted);
  max-width: 75ch;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.button,
button,
input[type="submit"] {
  display: inline-block;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.button.ghost {
  background: transparent;
  color: var(--brand-dark);
}

.button-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

ul.clean {
  margin: 0;
  padding-left: 1.1rem;
}

.notice {
  background: #eaf8ff;
  border: 1px solid #c8e9ff;
  border-radius: 0.7rem;
  padding: 0.9rem;
}

.form {
  display: grid;
  gap: 0.8rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.6rem;
  font: inherit;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  align-items: start;
}

.radio-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.radio-group input[type="radio"] {
  width: auto;
}

.form .inline-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.form .inline-check input[type="checkbox"] {
  width: auto;
}

.summary-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.summary-row strong {
  color: var(--text);
}

.summary-row.total {
  border-top: 1px dashed var(--border);
  padding-top: 0.65rem;
  margin-top: 0.2rem;
  color: var(--text);
  font-size: 1.07rem;
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
}

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

.cart-item-meta {
  display: grid;
  gap: 0.1rem;
}

.cart-item-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.qty-input {
  width: 4.2rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  padding: 0.35rem 0.4rem;
  font: inherit;
}

.button.small {
  padding: 0.38rem 0.62rem;
  border-radius: 0.5rem;
}

.cart-empty {
  color: var(--muted);
  margin: 0;
}

.inline-note {
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.status-message {
  margin: 0.7rem 0 0;
  color: var(--brand-dark);
  font-size: 0.94rem;
  min-height: 1.2em;
}

input[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .header-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }
}
