/* ===== Variables (light theme) ===== */
:root {
  --bg: #f3f6f3;              /* overall page background: soft green-tinted gray */
  --bg-elevated: #ffffff;     /* header/footer background */
  --bg-card: #ffffff;         /* card / panel background */

  --accent: #16a34a;          /* primary green */
  --accent-hover: #15803d;    /* hover green */
  --accent-soft: rgba(22, 163, 74, 0.08);
  --accent-secondary: #22c55e;/* secondary light green */

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-input: rgba(15, 23, 42, 0.18);

  --text-main: #0f172a;       /* slate-900 */
  --text-muted: #6b7280;      /* gray-500 */

  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;

  --shadow-card: 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow-card-hover: 0 12px 30px rgba(15, 23, 42, 0.10);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --touch-min: 44px;
  --font-sans: 'Segoe UI Variable', 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  --logo-img-height: 5rem;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
}

h1,
h2,
h3 {
  letter-spacing: -0.01em;
  line-height: 1.35;
  font-weight: 600;
}

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

/* ===== Layout ===== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.5rem 0;
  width: 100%;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.35rem 0.5rem;
  min-width: 0;
  flex-shrink: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
}

.logo-title {
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.logo-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.logo-img {
  height: var(--logo-img-height);
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--border-input);
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.94rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.72rem;
  border-radius: var(--radius);
  color: var(--text-muted);
}

.main-nav a:hover {
  background: var(--accent-soft);
  color: var(--text-main);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.72rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
}

.nav-dropdown-trigger:hover {
  background: var(--accent-soft);
  color: var(--text-main);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  margin: 0.25rem 0 0;
  padding: 0.35rem 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.15);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--accent-soft);
  color: var(--text-main);
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 56px;
    padding: 0.4rem 0;
  }

  .logo {
    max-width: calc(100% - 3.5rem);
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;
  }

  .main-nav {
    position: fixed;
    inset: 56px 0 0 auto;
    width: 72vw;
    max-width: 280px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0.75rem 1.25rem;
    transform: translateX(100%);
    transition: transform 0.2s ease-out;
    z-index: 90;
  }

  .main-nav a {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius);
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-dropdown-trigger {
    padding: 0.6rem 0.75rem;
  }

  .nav-dropdown-menu {
    position: static;
    margin: 0 0 0 0.5rem;
    padding: 0.25rem 0 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown-menu a {
    padding: 0.45rem 0.75rem;
    font-size: 0.9em;
    color: var(--text-muted);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
    z-index: 80;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
}

/* ===== Main & Footer ===== */
.site-main {
  padding: 1.25rem 0 2rem;
}

@media (min-width: 640px) {
  .site-main {
    padding: 1.75rem 0 2.5rem;
  }
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.8);
}

/* ===== Hero ===== */
.hero {
  margin: 1rem 0 2rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.hero-text {
  max-width: 520px;
}

.hero h1 {
  font-size: 1.58rem;
  margin: 0 0 0.5rem 0;
}

.hero p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ===== Cards ===== */
.card {
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.card.center {
  text-align: center;
}

.card h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.card h2.section-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.04rem;
}

.product-image-wrap {
  margin: -1.25rem -1rem 1rem -1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg);
}

.product-image {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  object-fit: cover;
}

@media (max-width: 480px) {
  .product-image-wrap {
    margin: -1rem -0.75rem 0.75rem -0.75rem;
  }
  .product-card {
    padding: 1rem 0.75rem;
  }
  .product-card h1 {
    font-size: 1.15rem;
  }
}

@media (min-width: 640px) {
  .card {
    padding: 1.5rem 1.25rem;
  }
  .product-image-wrap {
    margin: -1.5rem -1.25rem 1.25rem -1.25rem;
  }
  .product-image {
    max-width: 860px;
    max-height: 540px;
  }
}

/* ===== Typography ===== */
.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: #0a2540;
  color: white;
}

.btn-primary:hover {
  background: #081b30;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-input);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-main);
}

.btn-pay-stripe {
  background: #0a2540;
  padding: 0 1.2rem;
  min-width: 200px;
}

.btn-pay-stripe:hover {
  background: #081b30;
}

.btn-pay-paypal {
  background: #ffc439;
  border: none;
  padding: 0 1rem;
  color: #111827;
  min-height: 36px;
  min-width: 260px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-pay-paypal:hover {
  background: #ffb21f;
}

.pay-logo {
  display: block;
  height: auto;
}

.pay-logo-paypal {
  width: 62px;
  background: transparent;
}

.pay-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.pay-prefix {
  font-size: 0.82rem;
  color: #111827;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-input);
  color: var(--text-muted);
  font-size: 0.85rem;
  min-height: 36px;
  padding: 0 0.75rem;
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: var(--danger);
}

/* ===== Forms ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 480px) {
  .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.country-field-wrap select,
.country-field-wrap input {
  width: 100%;
}

.country-switch-link {
  margin-top: 0.25rem;
}

.country-switch-link a {
  color: var(--accent);
  font-size: 0.85rem;
}

.country-switch-link a:hover {
  text-decoration: underline;
}

.payer-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .payer-info-row {
    grid-template-columns: 1fr;
  }
}

input[type='text'],
input[type='email'],
input[type='number'],
input[type='password'] {
  min-height: var(--touch-min);
  padding: 0 1rem;
  font-size: 16px; /* prevents zoom on focus on iOS */
  font-family: inherit;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border-input);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='number']:focus,
input[type='password']:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: var(--bg-card);
}

select {
  min-height: var(--touch-min);
  padding: 0 1rem;
  font-size: 16px;
  font-family: inherit;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border-input);
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

@media (min-width: 640px) {
  select {
    font-size: 0.95rem;
    min-height: 42px;
  }
}

@media (min-width: 640px) {
  input[type='text'],
  input[type='email'],
  input[type='number'],
  input[type='password'] {
    font-size: 0.95rem;
    min-height: 42px;
  }
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Amount chips */
.amount-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 0;
  padding: 0 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-input);
  font-size: 0.9rem;
  color: var(--text-muted);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.chip input[type='radio'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text-main);
}

.chip:has(input[type='radio']:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.chip input[type='radio']:checked ~ span {
  color: white;
}

@media (min-width: 480px) {
  .amount-options {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .chip {
    min-height: 42px;
    padding: 0 0.5rem;
  }
}

@media (min-width: 640px) {
  .amount-options {
    grid-template-columns: repeat(9, minmax(64px, 1fr));
    gap: 0.6rem;
  }
  .chip {
    min-width: 64px;
    padding: 0 0.6rem;
  }
}

@media (min-width: 900px) {
  .amount-options {
    gap: 0.75rem;
  }
  .chip {
    min-width: 72px;
    padding: 0 0.75rem;
  }
}

.amount-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0.5rem;
  max-width: 200px;
}

.amount-stepper .custom-amount-input {
  margin-top: 0;
  border-radius: 0;
  text-align: center;
  width: 5.5rem;
  min-width: 5.5rem;
  padding: 0 0.5rem;
  border-left: none;
  border-right: none;
  -moz-appearance: textfield;
}

.amount-stepper .custom-amount-input::-webkit-outer-spin-button,
.amount-stepper .custom-amount-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.amount-stepper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--border-input);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.amount-stepper-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.amount-stepper-btn:last-of-type {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.amount-stepper .custom-amount-input:focus {
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  margin-left: -1px;
  margin-right: -1px;
}

/* Messages */
.warning {
  color: var(--warning);
  font-size: 0.9rem;
}

.error-msg {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.success-msg {
  color: var(--success);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.required {
  color: var(--danger);
}

.readonly-field {
  margin: 0;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.small {
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* Section titles */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.25rem;
}

.subsection-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.6rem 0;
}

.detail-grid {
  display: grid;
  gap: 1.5rem;
}

.detail-list {
  margin: 0;
}

.detail-list dt {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.detail-list dt:first-child {
  margin-top: 0;
}

.detail-list dd {
  margin: 0.25rem 0 0 0;
}

@media (min-width: 640px) {
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.full-width {
  grid-column: 1 / -1;
}

/* Address options & list */
.address-options {
  margin-bottom: 1rem;
}

.address-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.address-option input {
  margin-top: 0.35rem;
}

.address-summary {
  color: var(--text-muted);
}

.shipping-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 480px) {
  .shipping-fields {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.shipping-fields.hidden {
  display: none;
}

/* Address list (account profile) */
.address-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.address-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.address-item .address-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

.inline-form {
  display: inline;
  margin: 0;
}

.inline-status-form {
  display: inline;
  margin: 0;
}

.status-select {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-input);
  background: var(--bg-card);
  cursor: pointer;
}

.btn-ghost.small {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  min-height: 28px;
}

.order-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.order-actions .inline-form {
  display: inline;
}

.btn-secondary.small,
.btn-primary.small {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  min-height: 28px;
}

.order-actions .btn-paypal-repay {
  background: #ffc439;
  border: none;
  color: #111827;
}

.order-actions .btn-paypal-repay:hover {
  background: #ffb21f;
}

.auth-form .form-field {
  max-width: 320px;
}

.auth-form .form-actions {
  margin-top: 1rem;
}

/* ===== Data tables ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.75rem;
}

.data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table th {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
  background: var(--bg);
}

.data-table tbody tr:hover {
  background: var(--accent-soft);
}

.center {
  text-align: center;
}

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.status-paid,
.status-completed {
  border-color: rgba(5, 150, 105, 0.4);
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.status-pending {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(217, 119, 6, 0.1);
  color: #b45309;
}

.status-canceled,
.status-failed {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

/* ===== Features grid (home) ===== */
.features-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }
}

.feature-card {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.feature-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Mobile optimizations ===== */
@media (max-width: 480px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    font-size: 0.95rem;
  }

  .header-inner {
    gap: 0.5rem;
    min-width: 0;
  }

  .logo-text {
    max-width: calc(100vw - 7rem);
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    row-gap: 0.35rem;
  }

  .main-nav a {
    padding: 0.45rem 0.75rem;
    min-height: 40px;
  }

  .form-grid {
    gap: 0.75rem;
  }

  .form-actions,
  .auth-form .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn,
  .auth-form .btn {
    width: 100%;
    justify-content: center;
  }

  .table-wrap {
    margin-top: 0.5rem;
  }

  .hero {
    margin: 0.75rem 0 1.5rem;
    padding: 1.25rem 1rem;
  }

  .card {
    padding: 1rem 0.9rem;
  }

  .btn-pay-stripe,
  .btn-pay-paypal {
    min-width: 0;
  }

  .address-summary {
    word-break: break-word;
  }
}

