/* ==========================================
   RAVSWAG - Stylish Swag for the Bold
   Inspired by Ravelin.com branding
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Ravelin-inspired palette - deep blues, clean neutrals */
  --deep-navy: #0A1628;
  --ravelin-blue: #0066FF;
  --ravelin-blue-dark: #0052CC;
  --ravelin-blue-light: #4D94FF;
  --cyan-accent: #00D4FF;
  --slate: #1E293B;
  --slate-light: #334155;
  --cool-gray: #64748B;
  --silver: #94A3B8;
  --off-white: #F8FAFC;
  --pure-white: #FFFFFF;
  --border-subtle: #E2E8F0;
  --success: #10B981;
  --success-dark: #059669;
  
  /* Typography */
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background: var(--off-white);
  color: var(--slate);
  line-height: 1.6;
  min-height: 100vh;
}

/* Background pattern - layered depth with geometric grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* Soft floating orbs */
    radial-gradient(ellipse 600px 600px at 15% 10%, rgba(0, 102, 255, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 70% 80%, rgba(0, 102, 255, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 20% 70%, rgba(0, 212, 255, 0.04) 0%, transparent 70%),
    /* Subtle grid pattern */
    linear-gradient(rgba(0, 102, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.015) 1px, transparent 1px),
    /* Base gradient */
    linear-gradient(180deg, var(--off-white) 0%, #F1F5F9 50%, var(--pure-white) 100%);
  background-size: 
    100% 100%, 100% 100%, 100% 100%, 100% 100%,
    60px 60px, 60px 60px,
    100% 100%;
  pointer-events: none;
  z-index: -1;
}

/* Animated floating accent shapes */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle 200px at var(--blob1-x, 20%) var(--blob1-y, 30%), rgba(0, 102, 255, 0.04) 0%, transparent 70%),
    radial-gradient(circle 150px at var(--blob2-x, 80%) var(--blob2-y, 60%), rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: floatBlobs 20s ease-in-out infinite;
}

@keyframes floatBlobs {
  0%, 100% {
    --blob1-x: 20%;
    --blob1-y: 30%;
    --blob2-x: 80%;
    --blob2-y: 60%;
  }
  25% {
    --blob1-x: 30%;
    --blob1-y: 50%;
    --blob2-x: 70%;
    --blob2-y: 40%;
  }
  50% {
    --blob1-x: 25%;
    --blob1-y: 70%;
    --blob2-x: 75%;
    --blob2-y: 25%;
  }
  75% {
    --blob1-x: 15%;
    --blob1-y: 45%;
    --blob2-x: 85%;
    --blob2-y: 55%;
  }
}

/* Additional decorative elements */
.page-wrapper::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 8s ease-in-out infinite alternate;
}

.page-wrapper::after {
  content: '';
  position: fixed;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: pulseGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-navy);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

a {
  color: var(--ravelin-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--ravelin-blue-dark);
}

/* ==========================================
   Layout
   ========================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: var(--space-xl) 0;
}

/* ==========================================
   Header
   ========================================== */

header {
  background: var(--pure-white);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep-navy);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--deep-navy);
}

.logo-icon {
  height: 32px;
  width: auto;
}

.logo-icon img {
  height: 100%;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

nav a {
  color: var(--cool-gray);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) 0;
  font-size: 0.95rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ravelin-blue);
  transition: width 0.3s var(--ease-out);
}

nav a:hover {
  color: var(--deep-navy);
}

nav a:hover::after {
  width: 100%;
}

.cart-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--ravelin-blue);
  color: white !important;
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s var(--ease-out);
}

.cart-link .cart-icon {
  filter: brightness(0) invert(1);
  font-style: normal;
}

.cart-link:hover {
  background: var(--ravelin-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

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

.cart-count {
  background: var(--pure-white);
  color: var(--ravelin-blue);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 700;
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
}

/* Hero decorative accents */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 300px;
  background: 
    radial-gradient(ellipse 50% 100% at 50% 50%, rgba(0, 102, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
  animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.2);
  }
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 em {
  color: var(--ravelin-blue);
  font-style: normal;
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.15em;
  background: linear-gradient(90deg, var(--ravelin-blue), var(--cyan-accent));
  border-radius: 2px;
  opacity: 0.3;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--cool-gray);
  max-width: 560px;
  margin: 0 auto;
  font-weight: 400;
}

/* ==========================================
   Product Grid
   ========================================== */

.products-section {
  padding: var(--space-xl) 0;
  position: relative;
}

/* Subtle section accent */
.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.15), transparent);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xl);
}

.section-header span {
  color: var(--cool-gray);
  font-size: 0.95rem;
}

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

.product-card {
  background: var(--pure-white);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s var(--ease-out);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 40px rgba(10, 22, 40, 0.08),
    0 0 60px rgba(0, 102, 255, 0.08);
  border-color: var(--ravelin-blue-light);
}

.product-image {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--border-subtle) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent);
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--ravelin-blue);
  color: white;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

.product-sock-img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.product-info {
  padding: var(--space-lg);
}

.product-name {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--deep-navy);
}

.product-desc {
  color: var(--cool-gray);
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.product-price {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--ravelin-blue);
  font-weight: 700;
}

/* ==========================================
   Product Detail Page
   ========================================== */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  padding: var(--space-xl) 0;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-gallery {
  background: linear-gradient(135deg, var(--off-white) 0%, var(--border-subtle) 100%);
  border-radius: 24px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.product-gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent);
}

.product-detail-img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.product-details {
  padding: var(--space-lg) 0;
}

.product-details h1 {
  margin-bottom: var(--space-sm);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--cool-gray);
  margin-bottom: var(--space-lg);
}

.stars {
  color: #FBBF24;
}

.product-price-large {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  color: var(--ravelin-blue);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.product-description {
  color: var(--cool-gray);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.size-selector {
  margin-bottom: var(--space-xl);
  border: none;
  padding: 0;
}

.size-selector legend {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--deep-navy);
  padding: 0;
}

/* Legacy support for label-based heading */
.size-selector label:first-of-type:not(.size-option) {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--deep-navy);
}

.size-options {
  display: flex;
  gap: var(--space-sm);
}

/* Visually hide radio buttons but keep them accessible */
.size-option-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.size-option {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  background: var(--pure-white);
  color: var(--slate);
}

.size-option:hover {
  border-color: var(--ravelin-blue);
}

/* Focus state for keyboard navigation */
.size-option-input:focus + .size-option {
  outline: 2px solid var(--ravelin-blue);
  outline-offset: 2px;
}

/* Selected state when radio is checked */
.size-option-input:checked + .size-option {
  background: var(--ravelin-blue);
  border-color: var(--ravelin-blue);
  color: white;
}

/* Legacy support for JS-based selection */
.size-option.selected {
  background: var(--ravelin-blue);
  border-color: var(--ravelin-blue);
  color: white;
}

.quantity-selector {
  margin-bottom: var(--space-xl);
}

.quantity-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--deep-navy);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--pure-white);
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  padding: var(--space-xs);
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s var(--ease-out);
  color: var(--slate);
}

.qty-btn:hover {
  background: var(--off-white);
  color: var(--ravelin-blue);
}

.qty-value {
  font-size: 1.25rem;
  font-weight: 600;
  min-width: 40px;
  text-align: center;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--ravelin-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--ravelin-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.35);
  color: white;
}

.btn-secondary {
  background: var(--pure-white);
  color: var(--slate);
  border: 2px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--ravelin-blue);
  color: var(--ravelin-blue);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* ==========================================
   Basket Page
   ========================================== */

.basket-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .basket-layout {
    grid-template-columns: 1fr;
  }
}

.basket-items {
  background: var(--pure-white);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.basket-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--off-white);
}

.basket-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}

.basket-item:last-child {
  border-bottom: none;
}

.basket-item-image {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--border-subtle) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.basket-item-img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.basket-item-details h3 {
  margin-bottom: var(--space-xs);
  color: var(--deep-navy);
}

.basket-item-meta {
  color: var(--cool-gray);
  font-size: 0.9rem;
}

.basket-item-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--off-white);
  padding: var(--space-xs);
  border-radius: 8px;
}

.basket-item-quantity button {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1rem;
}

.basket-item-quantity button:hover {
  background: var(--border-subtle);
}

.basket-item-price {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ravelin-blue);
  text-align: right;
}

.remove-item {
  color: var(--cool-gray);
  cursor: pointer;
  padding: var(--space-sm);
  transition: color 0.2s;
  font-size: 0.875rem;
}

.remove-item:hover {
  color: #EF4444;
}

/* Order Summary */
.order-summary {
  background: var(--pure-white);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl);
  position: sticky;
  top: 100px;
}

.order-summary h2 {
  margin-bottom: var(--space-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  color: var(--cool-gray);
}

.summary-row.total {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-navy);
  border-top: 2px solid var(--border-subtle);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

.promo-code {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.promo-code input {
  flex: 1;
  padding: var(--space-md);
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  font-family: var(--font-primary);
  background: var(--off-white);
}

.promo-code input:focus {
  outline: none;
  border-color: var(--ravelin-blue);
  background: var(--pure-white);
}

.promo-code button {
  padding: var(--space-md) var(--space-lg);
  background: var(--deep-navy);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.promo-code button:hover {
  background: var(--slate);
}

/* ==========================================
   Checkout Page
   ========================================== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-form {
  background: var(--pure-white);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: var(--space-xl);
}

.form-section {
  margin-bottom: var(--space-xl);
}

.form-section:last-of-type {
  margin-bottom: 0;
}

.form-section h3 {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.form-section h3 .step-number {
  background: var(--ravelin-blue);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--deep-navy);
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  font-family: var(--font-primary);
  font-size: 1rem;
  background: var(--off-white);
  transition: all 0.2s var(--ease-out);
  color: var(--slate);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--ravelin-blue);
  background: var(--pure-white);
}

.form-group input::placeholder {
  color: var(--silver);
}

.card-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-md);
}

/* ==========================================
   Done Page
   ========================================== */

.done-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.done-content {
  max-width: 500px;
}

.done-icon {
  font-size: 6rem;
  margin-bottom: var(--space-lg);
  animation: bounce 0.6s var(--ease-bounce);
}

@keyframes bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.done-content h1 {
  margin-bottom: var(--space-md);
  color: var(--success);
}

.done-content p {
  color: var(--cool-gray);
  font-size: 1.125rem;
  margin-bottom: var(--space-xl);
}

.order-number {
  background: var(--off-white);
  border: 2px dashed var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.order-number span {
  display: block;
  color: var(--cool-gray);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.order-number strong {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--deep-navy);
  font-weight: 700;
}

/* ==========================================
   Footer
   ========================================== */

footer {
  background: var(--deep-navy);
  color: var(--silver);
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-brand img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  line-height: 1.6;
}

footer h4 {
  color: white;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

footer ul {
  list-style: none;
}

footer li {
  margin-bottom: var(--space-sm);
}

footer a {
  color: var(--silver);
}

footer a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.875rem;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s var(--ease-out) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* ==========================================
   Empty State
   ========================================== */

.empty-basket {
  text-align: center;
  padding: var(--space-2xl);
}

.empty-basket-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-basket p {
  color: var(--cool-gray);
  margin-bottom: var(--space-lg);
}

/* ==========================================
   Breadcrumbs
   ========================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: var(--cool-gray);
}

.breadcrumbs a {
  color: var(--cool-gray);
}

.breadcrumbs a:hover {
  color: var(--ravelin-blue);
}

.breadcrumbs span {
  color: var(--silver);
}

/* ==========================================
   Error State (Done Page)
   ========================================== */

.error-icon {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 4rem;
  box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
}

.error-details {
  background: var(--off-white);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  text-align: left;
}

.error-ref {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.error-ref span,
.error-message-box span {
  display: block;
  color: var(--cool-gray);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.error-ref strong {
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--deep-navy);
  font-weight: 600;
  word-break: break-all;
}

.error-message-box p {
  font-size: 1rem;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
  padding: var(--space-md);
  border-radius: 8px;
  border-left: 3px solid #dc3545;
  margin: 0;
  line-height: 1.6;
}
