/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Colours */
  --bg-page: #ffffff;
  --bg-card: #fbf6ee;
  --accent: #c98a4b;
  --accent-hover: #d9a06a;
  --accent-text: #8a5420;
  --text-main: #3b2416;
  --text-muted: #6b5242;
  --border-color: #e5d9cc;
  --input-border: #765c48; /* Darker border token for form elements (meets 3:1 WCAG contrast) */
  --error-color: #b91c1c;
  --success-color: #15803d;

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --line-height-body: 1.6;
  --line-height-heading: 1.2;

  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 4rem;

  /* Shape and layout */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --content-max-width: 1200px;
}

/* ==========================================================================
   2. GLOBAL RESETS & BODY LAYOUT
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: var(--line-height-body);
  color: var(--text-main);
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Reset default link styling */
a {
  color: inherit;
  text-decoration: none;
}

main,
.main-content {
  flex: 1 0 auto;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* Prevent long strings/URLs from forcing container overflow */
p, a, span, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  word-break: normal; /* Prevents aggressive mid-word breaking on mobile */
}

/* ==========================================================================
   3. ACCESSIBILITY: SKIP LINK
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background-color: var(--text-main);
  color: var(--bg-card);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom-right-radius: var(--radius-sm);
  transition: top 0.2s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 2px solid var(--accent);
}

/* ==========================================================================
   4. ANNOUNCEMENT BAR & HEADER
   ========================================================================== */
   /* CRITICAL LAYOUT RULE: 
   Do NOT re-apply max-width or flex-basis to .header-container or its children.
   Geometric centering of primary-nav relies on 3-column CSS Grid (1fr auto 1fr)
   spanning full 100% width. */
.announcement-bar {
  background-color: #111827;
  color: #f3f4f6;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem 1rem;
  width: 100%;
}

.site-header {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

/* Spans full screen width with padding on edges */
.header-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 100%; /* Spans edge-to-edge across screen */
  padding: 0.875rem 2rem; /* Side padding so content doesn't hit raw screen pixel edge */
  position: relative;
}

/* Left side: Far-left Brand */
.header-brand-row,
.header-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  grid-column: 1;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
}

.logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.header-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); /* Fallback for legacy browsers */
  clip-path: inset(50%);   /* Modern standard replacing clip */
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   5. PRIMARY NAVIGATION & MOBILE MENU TOGGLE
   ========================================================================== */
.nav-toggle {
  display: none !important;
}

/* Middle: Geometric Center Navigation */
.primary-navigation,
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
}

.primary-navigation ul,
.primary-nav ul,
.nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-text);
}

/* Replaces default browser box with a styled, accessible focus ring */
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
  color: var(--accent-text);
}
/* ==========================================================================
   6. CART PILL BUTTON & ACTIONS
   ========================================================================== */
/* Right side: Far-right Cart Actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 3;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-main);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.cart-icon {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
  flex-shrink: 0;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  min-width: 1.25rem;
  text-align: center;
}

.cart-link:hover,
.cart-link:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent);
  color: var(--text-main);
  outline: none;
}

.cart-link:hover .cart-badge {
  background-color: var(--bg-page);
}

/* ==========================================================================
   6.1 CART POPOVER DROPDOWN
   ========================================================================== */
.cart-popover-wrapper {
  position: relative;
  display: inline-block;
}

.cart-popover {
  position: absolute;
  top: 100%;
  right: 0;
  width: 290px;
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease-in-out;
}

/* Upward pointing arrow */
.cart-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  background-color: var(--bg-page);
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.cart-popover.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.popover-items {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.popover-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.popover-item-img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.popover-item-details {
  flex: 1;
}

.popover-item-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}

.popover-item-price {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.popover-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.popover-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  text-align: center;
  flex: 1;
}
/* ==========================================================================
   7. MEDIA QUERIES (Mobile Viewports)
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  main,
  .main-content {
    padding: var(--space-md) var(--space-sm);
  }

  .section-title {
    font-size: 1.35rem;
    margin-bottom: var(--space-md);
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .header-brand-row,
  .header-brand,
  .header-actions {
    flex: initial;
    grid-column: auto;
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nav-toggle-label {
    white-space: nowrap;
  }

  .primary-navigation,
  .primary-nav {
    display: none;
    grid-column: auto;
  }

  .primary-navigation.is-open,
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
  }

  .primary-navigation ul,
  .primary-nav ul,
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .primary-navigation li,
  .primary-nav li {
    width: 100%;
  }

  .primary-navigation a,
  .primary-nav a {
    display: block;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .cart-link .cart-text {
    display: none;
  }

  .cart-link {
    padding: 0.4rem 0.6rem;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .footer-container {
    flex-direction: column !important;
    align-items: stretch;
    gap: 1.5rem;
  }

  .footer-column {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .cart-item-title, 
  .product-title, 
  .popover-item-title {
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto; /* Slightly tighter image slot for 360px */
    grid-template-areas: 
      "img details remove"
      "img controls price";
    gap: 0.4rem 0.6rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .cart-item-img {
    grid-area: img;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
  }

  .cart-item-details {
    grid-area: details;
    min-width: 0; /* Prevents flex/grid text squishing */
  }

  .cart-item-controls {
    grid-area: controls;
  }

  .cart-item-price {
    grid-area: price;
  }

  .cart-item-remove {
    grid-area: remove;
    justify-self: end;
  }
} 

/* ==========================================================================
   7.1 TABLET VIEWPORTS
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-container {
    padding: 0.875rem 1rem;
  }

  .primary-navigation ul,
  .primary-nav ul,
  .nav-list {
    gap: 1.5rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
  }
}

/* ==========================================================================
   8. SITE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 1.5rem;
  color: var(--text-main);
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

.footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 0%;
  min-width: 0;
}

.footer-column h3,
.footer-column h4 {
  color: var(--text-main);
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.footer-column p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.footer-bottom {
  max-width: var(--content-max-width);
  width: 100%;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}
/* ==========================================================================
   9. PRODUCT CATALOG GRID & CARDS
   ========================================================================== */
.catalog-section {
  width: 100%;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  width: 100%;
}

.product-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-card);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: var(--text-main);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  z-index: 2;
}

.product-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: var(--space-xs);
}

.product-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-text);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-main);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: var(--bg-page);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

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

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   10. LIGHTBOX & MODAL
   ========================================================================== */
.lightbox-dialog {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  width: 85vw;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--bg-page);
  color: var(--text-main);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  margin: auto;
}

.lightbox-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background-color: var(--accent-hover);
}

.lightbox-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xs);
}

@media (min-width: 640px) {
  .lightbox-body {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.lightbox-image-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--bg-card);
}

.lightbox-image {
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
  display: block;
}

.lightbox-image-container .product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.lightbox-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* ==========================================================================
   11. CART SUMMARY CARD & CHECKOUT STYLES
   ========================================================================== */
.cart-summary-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.cart-summary-card h2 {
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.summary-row label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row input[type="text"],
.summary-row select {
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--input-border);
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.summary-row input[type="text"] {
  width: 130px;
  text-transform: uppercase;
}

.postcode-input-group {
  display: flex;
  gap: 0.5rem;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: var(--space-md) 0;
}

.summary-total {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.summary-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ==========================================================================
   12. Checkout Page Layout Styles
   ========================================================================== */

/* Default mobile stack */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Side-by-side layout for tablets and desktops (768px and wider) */
@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: 2.5rem;
  }
}

/* Centered checkout action block */
.checkout-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1.5rem;
}

/* Make the secure payment button look prominent and centered */
.checkout-actions .btn {
  width: 100%;
  max-width: 340px;
}

/* Muted security assurance text underneath */
.checkout-security-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Align top edges of left form and right order summary in checkout grid */
.checkout-grid .cart-summary-card {
  margin-top: 0;
}

/* ==========================================================================
   13. About Page Layout
   ========================================================================== */
.about-container {
  max-width: 1050px;
}

.about-grid {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-mascot-column {
  flex: 1.2;
  min-width: 300px;
  text-align: center;
}

.about-mascot-image {
  width: 100%;
  max-width: 480px; /* Increased size to better match text height */
  height: 100%;
  max-height: 480px; /* Increased size to better match text height */
  border: none;       /* Removes the border/outline */
  background: none;   /* Removes the card background */
  padding: 0;         /* Removes the inner padding */
  box-shadow: none;   /* Removes the box shadow */
  object-fit: contain;
}

.about-text-column {
  flex: 2;
  min-width: 300px;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  line-height: 1.7;
  color: var(--text-main);
}

.about-heading {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent-text);
}

.about-text {
  margin-bottom: 1.5rem;
}

.about-text-last {
  margin-bottom: 0;
}

.about-link {
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: underline;
}

/* =================================================================fl
   14. 404 Error Page Styles
   ================================================================ */
.error-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--space-xl) var(--space-md);
}

.error-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.error-content-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 0 4px 12px rgba(59, 36, 22, 0.05);
}

.error-code {
    display: block;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent-text);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.error-content-card h1 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: var(--space-md);
}

.error-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
}

.error-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .error-actions {
        flex-direction: column;
    }
    .error-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   15. Checkout Success & Receipt Card Styles
   ========================================================================== */
.checkout-success-container {
  display: none;
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
}

.checkout-success-icon {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
  line-height: 1;
}

.checkout-success-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-size: 1.75rem;
}

.checkout-success-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.receipt-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.receipt-row {
  margin: 0 0 0.5rem 0;
  color: var(--text-main);
  font-size: 0.95rem;
}

.receipt-row:last-child {
  margin-bottom: 0;
}

.receipt-order-id {
  color: var(--accent-text);
  font-weight: 700;
}

.receipt-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (max-width: 480px) {
  .receipt-actions {
    flex-direction: column;
  }
  .receipt-actions .btn {
    width: 100%;
  }
}