/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* warm beige base background for a brown theme */
  --cream: #f5f0e1;
  /* rich dark brown for text readability */
  --ink: #3e2723;
  /* medium brown secondary tone */
  --muted: #795548;
  /* soft terracotta accent for contrast */
  --accent: #a1887f;
  /* keep card backgrounds light for clarity */
  --card-bg: #ffffff;
  --border: #c8d0d4;
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(161, 136, 127, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(161, 136, 127, 0.6);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
}

/* ── Header ───────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* refined header look */
.header-inner {
  gap: 1rem;
}

.logo-img { height: 48px; }

.header-buttons { margin-left: auto; }

.logo {
  display: inline-block;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* fallback text if image doesn't load */
.logo::after {
  content: "Aeterna Studio";
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--ink);
  display: none;
}

@media (prefers-reduced-data: reduce) {
  .logo-img { display: none; }
  .logo::after { display: inline; }
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-btn:hover { background: #5d4037; }

.cart-count {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  font-weight: 500;
}

/* Header navigation buttons */
.header-buttons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.header-buttons a {
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}
.header-buttons a:hover {
  background: var(--accent);
  color: var(--cream);
  transform: translateY(-2px);
}
.header-buttons .primary {
  background: var(--ink);
  color: var(--cream);
  border: none;
}
.header-buttons .primary:hover {
  background: #5d4037;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(62,39,35,0.1);
}

/* ── Coming Soon Banner ───────────────────────────────────── */
.coming-soon-banner {
  background: linear-gradient(135deg, #795548 0%, #a1887f 100%);
  color: var(--cream);
  padding: 1.2rem 2rem;
  text-align: center;
  border-bottom: 2px solid var(--ink);
  position: relative;
  animation: slideDown 0.4s ease-out;
}

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

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.banner-content p {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 400;
}

.banner-close {
  background: transparent;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-close:hover {
  opacity: 0.8;
  transform: rotate(90deg) scale(1.2);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease-out;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  animation: glow 3s ease-in-out infinite;
  display: inline-block;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 300;
  animation: slideUp 0.8s ease-out 0.15s both;
}

/* Hero CTA */
.hero .cta {
  margin-top: 1.6rem;
  animation: slideUp 0.8s ease-out 0.3s both;
}
.cta a {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(62,39,35,0.06);
  transition: all 0.3s ease;
}

.cta a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(62,39,35,0.15);
}
.cta a:hover { background: #5d4037; }

/* ── Products ─────────────────────────────────────────────── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  animation: slideUp 0.7s ease-out;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: fadeIn 0.6s ease-out;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(62,39,35,0.12);
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.product-name a { color: var(--ink); text-decoration: none; }
.product-name a:hover { text-decoration: underline; }

.product-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex: 1;
}

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

.product-price {
  font-size: 1rem;
  font-weight: 500;
}

/* New badge */
.new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #a75f47;
  color: #fff;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  font-weight: 600;
  animation: slideInLeft 0.5s ease, glow 2s ease-in-out infinite;
}

/* Stock badges */
.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.stock-badge.out-of-stock {
  background: #d32f2f;
  color: #fff;
}

.stock-badge.low-stock {
  background: #f57c00;
  color: #fff;
  animation: pulse 2s ease-in-out infinite;
}

.product-card { position: relative; }

.add-to-cart {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 4px;
  font-weight: 500;
}

.add-to-cart:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(62,39,35,0.12);
}

.add-to-cart.added {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  animation: bounce 0.4s ease;
}

.add-to-cart:active {
  transform: translateY(0);
}

.add-to-cart:disabled {
  background: #ccc;
  border-color: #999;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
}

.add-to-cart:disabled:hover {
  background: #ccc;
  color: #666;
  transform: none;
  box-shadow: none;
}

.add-to-cart.error {
  background: #d32f2f;
  border-color: #d32f2f;
  color: white;
  animation: bounce 0.4s ease;
}

/* ── Cart Sidebar ─────────────────────────────────────────── */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.3rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.empty-cart {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 2rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.4s ease-out;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.cart-item:hover img {
  transform: scale(1.05);
}

.cart-item-info { flex: 1; }

.cart-item-name {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.qty-btn {
  background: var(--border);
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.qty-display {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
}

.remove-item {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.75rem;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
}

.remove-item:hover {
  color: #c62828;
  transform: scale(1.15);
}

/* ── Coupon Section ───────────────────────────────────────────── */
.coupon-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.coupon-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.coupon-input:focus {
  outline: none;
  border-color: var(--accent);
}

.apply-coupon-btn {
  width: 100%;
  background: var(--accent);
  color: var(--cream);
  border: none;
  padding: 0.7rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
}

.apply-coupon-btn:hover:not(:disabled) {
  background: #8d7a72;
}

.apply-coupon-btn:disabled {
  background: var(--muted);
  opacity: 0.6;
  cursor: not-allowed;
}

.coupon-message {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 3px;
  text-align: center;
  min-height: 1.2rem;
  display: none;
}

.coupon-message.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.coupon-message.error {
  display: block;
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fecaca;
}

/* ── Cart Summary ───────────────────────────────────────────── */
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fafafa;
  border-radius: 4px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.cart-line.discount-line {
  color: #10b981;
  font-weight: 600;
}

.cart-total-line {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.checkout-btn {
  width: 100%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.checkout-btn:hover {
  background: #5d4037;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(62,39,35,0.15);
}

.checkout-btn:disabled {
  background: var(--muted);
  cursor: not-allowed;
  opacity: 0.6;
  animation: pulse 1.5s ease-in-out infinite;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
}
.overlay.visible { display: block; }

/* ── Loading skeleton ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: 2px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Brand & Utility Enhancements ─────────────────────────── */

/* Container for consistent horizontal padding */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero with optional background image */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  position: relative;
  text-align: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248,245,240,0.55);
  pointer-events: none;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
}

/* Footer styling */
footer {
  background: linear-gradient(135deg, #3e2723 0%, #5d4037 100%);
  color: var(--cream);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--cream);
}

.footer-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(245,240,225,0.85);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

footer a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

footer a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245,240,225,0.65);
}

/* Utility: subtle container for main content */
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Success / Cancel pages */
.message-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70vh;
  text-align: center;
  padding: 2rem;
}

.message-page h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.message-page p {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Buttons refinement */
button,
.checkout-btn,
.cart-btn,
.add-to-cart {
  border-radius: 4px;
}

/* Accessibility: focus states */
button:focus,
a:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Utility classes */
.hidden { display: none !important; }

/* Responsive tweaks */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; gap: 0.8rem; }
  .hero { padding: 4rem 1rem 2rem; }
  .cart-sidebar { width: 100%; }
}

/* ── Authentication Styles ─────────────────────────────────── */
.auth-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--cream);
}

.auth-container {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  background: var(--accent);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  color: white;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.auth-tab.active {
  background: var(--ink);
}

.auth-form {
  display: none;
  padding: 2rem;
}

.auth-form.active {
  display: block;
}

.auth-form h2 {
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(160, 136, 127, 0.2);
}

.auth-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.auth-btn:hover {
  background: var(--muted);
}

.auth-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.auth-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.auth-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.auth-btn-header {
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}

.auth-btn-header:hover {
  background: var(--muted);
}

/* ── Orders Styles ────────────────────────────────────────── */
.orders-section {
  min-height: calc(100vh - 80px);
  padding: 2rem 1rem;
  background: var(--cream);
}

.orders-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.orders-section h1 {
  color: var(--ink);
  font-family: var(--font-display);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-required {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-required p {
  color: var(--muted);
  font-size: 1.1rem;
}

.auth-required a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-required a:hover {
  text-decoration: underline;
}

.orders-container {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.loading {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.no-orders {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}

.no-orders .cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.no-orders .cta-btn:hover {
  background: var(--muted);
}

.orders-list {
  padding: 0;
}

.order-card {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}

.order-card:last-child {
  border-bottom: none;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.order-info h3 {
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.order-date {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.order-status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.order-total {
  text-align: right;
}

.order-items {
  margin-bottom: 1rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-name {
  font-weight: 500;
  color: var(--ink);
}

.item-quantity {
  font-size: 0.9rem;
  color: var(--muted);
}

.item-price {
  font-weight: 500;
  color: var(--ink);
}

.order-shipping {
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
}

.order-shipping h4 {
  color: var(--ink);
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.order-shipping p {
  color: var(--muted);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.error {
  color: #721c24;
  text-align: center;
  padding: 2rem;
}

/* Responsive adjustments for orders */
@media (max-width: 600px) {
  .order-header {
    flex-direction: column;
    gap: 1rem;
  }

  .order-total {
    text-align: left;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
