
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */

.site-header {
  background: #111827;
  color: #f9fafb;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}

.logo {
  font-weight: 600;
  color: #f9fafb;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 10px;
  font-size: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: #e5e7eb;
  padding: 4px 8px;
  border-radius: 999px;
}

.nav a:hover {
  background: #1f2937;
}

.cart-link {
  color: #e5e7eb;
  font-size: 14px;
}

.cart-link span {
  background: #2563eb;
  color: #fff;
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 4px;
  font-size: 12px;
}

/* Main */

.page-main {
  padding: 20px 0 32px;
}

.page-section h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
}

.page-section h2 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 18px;
}

.page-section p {
  margin-bottom: 10px;
}

.page-section ul {
  margin: 6px 0 10px 20px;
  padding: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #1d4ed8;
}

/* Cards & catalog */

.card {
  border-radius: 12px;
  background: #ffffff;
  padding: 14px 14px 16px;
  border: 1px solid #e5e7eb;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.meta {
  font-size: 13px;
  color: #6b7280;
}

.price {
  font-weight: 600;
  margin-top: 6px;
  margin-bottom: 8px;
}

.note {
  font-size: 13px;
  color: #6b7280;
}

/* Cart */

.cart-box {
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  padding: 10px;
  margin: 10px 0;
  background: #ffffff;
  font-size: 14px;
  min-height: 40px;
}

.cart-row {
  display: grid;
  grid-template-columns: 1.6fr auto auto auto;
  gap: 6px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin: 8px 0 14px;
}

/* Forms */

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

label {
  font-size: 14px;
  display: grid;
  gap: 4px;
}

input,
textarea {
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  padding: 7px 9px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 1px solid #2563eb;
  border-color: #2563eb;
}

/* Footer */

.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 16px 0 22px;
  font-size: 13px;
}

.footer-inner p {
  margin: 4px 0;
}

.footer-inner a {
  color: #93c5fd;
}

.copy {
  color: #9ca3af;
  margin-top: 6px;
}

/* Success */

#order-id {
  font-weight: 600;
}

/* Responsive */

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

  .cart-row {
    grid-template-columns: 1.6fr auto auto;
  }
}
