/* =========================================================
   SwishTech Global Variables
========================================================= */
:root {
  --swish-green: #01a200;
  --swish-green-dark: #018600;

  --black: #000000;
  --white: #ffffff;

  --bg-main: #f6fff6;
  --bg-soft: #f0fdf0;
  --bg-card: #ffffff;

  --text-main: #111111;
  --text-muted: #555555;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 14px 40px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   Base Reset
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* =========================================================
   Header / Navigation (Injected)
========================================================= */
#header {
  position: relative;
  z-index: 1000;
}

.navbar {
  background: var(--black);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.navbar .logo {
  color: var(--white);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 700;
}

.navbar .logo a {
  color: var(--white);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  background: none;
  border: none;
  color: var(--swish-green);
  cursor: pointer;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--swish-green);
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    position: absolute;
    top: 72px;
    right: 24px;
    flex-direction: column;
    background: var(--black);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
  }

  .main-nav ul.show {
    display: flex;
  }
}

/* =========================================================
   Hero Sections
========================================================= */
.hero {
  background: linear-gradient(135deg, #000000, #013f00);
  color: var(--white);
  padding: 5rem 2rem;
}

.hero.full-bleed {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 720px;
}

.hero .cta-button {
  margin-top: 1.5rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 0.4rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 520px;
}

.hero .product-variants {
  margin: 1.2rem 0;
}

.hero .hero-tagline {
  margin-bottom: 0.8rem;
}

.hero .product-price {
  margin: 0.8rem 0 1.4rem;
}

.product-hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  text-align: center;
}

.hero .variant-option {
  background: #ffffff;
  color: #111;
  min-width: 220px;
  text-align: center;
}

.hero .variant-option.selected {
  box-shadow: 0 0 0 3px rgba(1, 162, 0, 0.35);
}

/* =========================================================
   Buttons
========================================================= */
.cta-button {
  display: inline-block;
  background: var(--swish-green);
  color: var(--white);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.cta-button:hover {
  background: var(--swish-green-dark);
  transform: translateY(-1px);
}

.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================================
   Layout Containers
========================================================= */
.page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Dynamic Homepage Content
========================================================= */
#home-dynamic {
  padding: 4rem 2rem;
}

#home-dynamic:empty {
  display: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Product / Category Grids
========================================================= */
.category-overview {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  will-change: transform;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.category-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.category-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.category-card a {
  margin-top: auto;
  font-weight: 600;
  color: var(--swish-green);
  text-decoration: none;
}

.category-card a:hover {
  color: var(--swish-green-dark);
}

/* =========================================================
   Product Page (Detail)
========================================================= */
.product-page {
  max-width: 900px;
}

.product-overview {
  margin-top: 2rem;
}

.product-variants {
  margin-top: 2.5rem;
  display: none;
}

.product-cta {
  margin-top: 3rem;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.product-image {
  max-width: 520px;
  margin: 2.5rem auto;
}

.product-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* Variants */
#variant-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.variant-option {
  background: var(--bg-card);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.variant-option:hover {
  border-color: var(--swish-green);
}

.variant-option.selected {
  border-color: var(--swish-green);
  box-shadow: 0 0 0 2px rgba(1, 162, 0, 0.2);
}

/* =========================================================
   Products Page
========================================================= */
.products-page {
  max-width: 1200px;
}

.products-empty {
  display: none;
  text-align: center;
}


/* =========================================================
   Ecosystem Section
========================================================= */
.ecosystem {
  background: var(--bg-soft);
  padding: 4rem 2rem;
  text-align: center;
  padding-bottom: 5rem;
}

.ecosystem h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.ecosystem p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* =========================================================
   Footer (Injected)
========================================================= */
footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

.footer-links {
  margin-top: 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--swish-green);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--swish-green-dark);
}

/* =========================================================
   Auth Pages (Login / Register)
========================================================= */
.login-page {
  max-width: 900px;
}

.auth-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-alt {
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.auth-link {
  color: var(--swish-green);
  font-weight: 600;
  text-decoration: none;
}

.auth-link:hover {
  color: var(--swish-green-dark);
}

.auth-error {
  display: none;
  color: #d00;
  margin-top: 1rem;
  font-weight: 500;
}

.auth-form {
  max-width: 420px;
  margin: 4rem auto;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.auth-form h1 {
  margin-bottom: 1.5rem;
}

.auth-form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #ccc;
  font-size: 1rem;
}

.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-brand p {
  color: #ccc;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.footer-brand strong {
  font-size: 1.1rem;
}

.footer-legal {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #aaa;
}

/* Legal links: same style as other footer links */
.footer-legal .legal-links {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-legal .legal-links a {
  color: var(--swish-green);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-legal .legal-links a:hover {
  color: var(--swish-green-dark);
}

/* Copyright text */
.footer-legal p {
  margin: 0;
  font-size: 0.8rem;
  color: #aaa;
}

/* =========================================================
   Register Page
========================================================= */
.register-page {
  max-width: 900px;
}

/* =========================================================
   Account Page
========================================================= */
.account-page {
  max-width: 900px;
}

.account-page section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
}

.account-header {
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin-bottom: 2.5rem;
}

.account-header h1 {
  margin-bottom: 0.4rem;
}

.account-profile h2 {
  margin-bottom: 1.5rem;
}

.account-email {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.account-orders {
  margin-bottom: 3rem;
}

.orders-empty {
  display: none;
  color: var(--text-muted);
  margin-top: 1rem;
}

.orders-list > div {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.orders-list > div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.account-actions {
  text-align: center;
}

.profile-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-actions .btn-link {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: transparent;
  cursor: pointer;
}

.profile-actions .btn-link:hover {
  background: #f3f4f6;
}

.profile-grid > div {
  min-height: 72px;
}

.logout-button {
  margin-top: 1rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.profile-grid label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.profile-grid p {
  margin: 0;
  font-weight: 500;
}

.account-addresses h2 {
  margin-bottom: 1.5rem;
}

.address-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.address-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: linear-gradient(180deg, #ffffff, #f8fff8);
  font-size: 0.95rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.address-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}


.empty-state {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.address-card .address-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.address-card .address-actions .btn-link {
  background: transparent;
  border: none;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Edit button */
.address-card .address-actions .edit-address {
  color: var(--swish-green);
}

.address-card .address-actions .edit-address:hover {
  background: rgba(1, 162, 0, 0.08);
}

/* Delete button */
.address-card .address-actions .delete-address {
  color: #b91c1c;
}

.address-card .address-actions .delete-address:hover {
  background: rgba(185, 28, 28, 0.08);
}

.account-password {
  background: var(--bg-card, #ffffff);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.account-password h2 {
  margin-top: 0;
}

.password-form {
  display: grid;
  gap: 1rem;
  max-width: 420px;
}

.password-form input {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.account-profile input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  background: #ffffff;
}

.account-profile input:focus {
  outline: none;
  border-color: var(--swish-green);
  box-shadow: 0 0 0 2px rgba(1, 162, 0, 0.15);
}

.account-profile label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* =========================
   Order Cards (Account)
========================= */

.order-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Order tracking badge */
.order-tracking {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #065f46;
  background: rgba(1, 162, 0, 0.1);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}

/* Order actions (invoice / receipt) */
.order-actions {
  margin-top: 0.6rem;
}

.order-actions .btn-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--swish-green);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.order-actions .btn-link:hover {
  color: var(--swish-green-dark);
  text-decoration: underline;
}

/* =========================================================
   Account Devices
========================================================= */

.account-devices h2 {
  margin-bottom: 1.5rem;
}

.devices-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.device-card {
  background: linear-gradient(180deg, #ffffff, #f7fff7);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.device-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.device-main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.device-main strong {
  font-size: 1rem;
  font-weight: 600;
}

.device-model {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.device-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.devices-actions {
  margin-top: 0.5rem;
}

/* =========================================================
   Address Inline Form
========================================================= */

.address-form {
  background: var(--bg-soft);
  border: 1px dashed rgba(1, 162, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.address-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.address-form input,
.address-form select {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  background: var(--bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-form input:focus,
.address-form select:focus {
  outline: none;
  border-color: var(--swish-green);
  box-shadow: 0 0 0 2px rgba(1, 162, 0, 0.15);
}

.address-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

/* =========================================================
   Address Form Actions
========================================================= */

.address-form .form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.address-form .form-actions .cta-button {
  padding: 0.65rem 1.4rem;
}

.address-form .form-actions .btn-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.address-form .form-actions .btn-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}


.secondary-button {
  background: transparent;
  border: 1px solid var(--swish-green);
  color: var(--swish-green);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.secondary-button:hover {
  background: rgba(1, 162, 0, 0.08);
}

.checkout-status {
  max-width: 520px;
  margin: 4rem auto;
  text-align: center;
}

.checkout-status .status-icon {
  font-size: 3rem;
  color: #dc2626;
  margin-bottom: 1rem;
}

.checkout-status.cancelled h1 {
  color: #dc2626;
}

.checkout-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.checkout-actions .btn {
  min-width: 160px;
}

/* =========================================================
   Order View Page
========================================================= */

.order-view-page {
  max-width: 900px;
}

/* Header */
.order-header {
  margin-bottom: 2.5rem;
}

.order-header h1 {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

.order-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Back link */
.back-link {
  font-size: 0.9rem;
  color: var(--swish-green);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  color: var(--swish-green-dark);
}

/* Summary */
.order-summary {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.summary-grid label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.summary-grid p {
  margin: 0;
  font-weight: 600;
}

/* Items */
.order-items {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.order-items h2 {
  margin-bottom: 1.5rem;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Item card */
.order-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-soft);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.order-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.order-item-info strong {
  display: block;
  font-weight: 600;
}

.order-item-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.order-item-price {
  font-weight: 600;
  font-size: 1rem;
}

/* =========================================================
   Warranty Registration
========================================================= */

.warranty-page {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Stack on smaller screens */
@media (max-width: 900px) {
  .warranty-page {
    grid-template-columns: 1fr;
  }
}

.warranty-form {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.warranty-form h1 {
  margin-bottom: 0.5rem;
}

.warranty-form p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.warranty-form input,
.warranty-form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  background: var(--bg-card);
}

.warranty-form input:focus,
.warranty-form select:focus {
  outline: none;
  border-color: var(--swish-green);
  box-shadow: 0 0 0 2px rgba(1, 162, 0, 0.15);
}

.warranty-form .form-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.warranty-info {
  background: var(--bg-soft);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
}

.warranty-info h2 {
  margin-top: 0;
}

.warranty-info h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.warranty-info ul {
  padding-left: 1.2rem;
}

.warranty-info li {
  margin-bottom: 0.5rem;
}

.warranty-legal {
  grid-column: 1 / -1;
  margin-top: 2rem;
  font-size: 0.85rem;
}


/* =========================================================
   Form Messages
========================================================= */

.form-message {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-message.success {
  color: #016b00;
}

.form-message.error {
  color: #b91c1c;
}

.form-message.info {
  color: var(--text-muted);
}

/* =========================================================
   Checkout Page
========================================================= */

.checkout-page {
  max-width: 900px;
}

/* Cards */
.checkout-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.5rem;
}

.checkout-card h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* Order items */
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.checkout-item span:last-child {
  font-weight: 500;
}

/* Rows */
.checkout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.checkout-row.total {
  font-size: 1.1rem;
  margin-top: 1.25rem;
}

/* Discounts */
.checkout-row.discount {
  color: #016b00;
}

.checkout-row.discount span:last-child {
  font-weight: 600;
}

/* Divider */
.checkout-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 1.25rem 0;
}

/* Inputs */
.checkout-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.checkout-input-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.checkout-input-group input {
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.checkout-input-group input:focus {
  outline: none;
  border-color: var(--swish-green);
  box-shadow: 0 0 0 2px rgba(1, 162, 0, 0.15);
}

/* Actions */
.checkout-actions {
  text-align: center;
  margin-top: 2.5rem;
}

.checkout-actions .primary-button {
  min-width: 220px;
}

.checkout-secure-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================
   Utilities
========================================================= */
.text-center {
  text-align: center;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--swish-green);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
