/* CSS Variables - Design System */
:root {
  /* Colors */
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
  
  /* Amber colors */
  --amber-50: #fffbeb;
  --amber-200: #fcd34d;
  --amber-600: #d97706;
  --amber-900: #78350f;
  
  /* Emerald colors */
  --emerald-600: #059669;
  
  /* Font family */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.145 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.145 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.985 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.269 0 0);
  --input: oklch(0.269 0 0);
  --ring: oklch(0.439 0 0);
}

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

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 4rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

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

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Demo Banner */
.demo-banner {
  background: var(--amber-50);
  border-bottom: 1px solid var(--amber-200);
  color: var(--amber-900);
  padding: 0.625rem 0;
}

.demo-banner.hidden {
  display: none;
}

.demo-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.25rem;
  padding: 0 0.5rem;
  background: var(--amber-200);
  color: var(--amber-900);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.demo-banner-close {
  margin-left: auto;
  color: var(--amber-900);
  opacity: 0.7;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.demo-banner-close:hover {
  opacity: 1;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

@media (min-width: 768px) {
  .header-content {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .header-content {
    padding: 0 4rem;
  }
}

.logo {
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 1rem;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--foreground);
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: transparent;
  color: var(--foreground);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.cart-button:hover {
  background: var(--accent);
}

/* Page Content */
.page-content {
  min-height: 100vh;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.3) 50%, var(--background) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 72vh;
  }
}

.hero-text {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 72vh;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .hero-text {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-text {
    padding: 4rem;
  }
}

.hero-text > div {
  max-width: 32rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber-600);
}

.hero-title {
  margin-top: 1.5rem;
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-title-gradient {
  display: block;
  background: linear-gradient(to right, #0c0a09, #b45309);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.dark .hero-title-gradient {
  background: linear-gradient(to right, #f5f5f4, #fbbf24);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 36rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: -10;
  opacity: 0.2;
  background-image: url('public/lifestyle-editorial-grain.png');
  background-size: cover;
  background-position: center;
  mask-image: radial-gradient(60% 60% at 20% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 20% 40%, black, transparent);
}

.hero-image {
  position: relative;
  min-height: 64vh;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 1rem;
  max-width: 200px;
}

.hero-card-chapter {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
}

.hero-card-title {
  margin-top: 0.25rem;
  font-weight: 500;
}

.hero-card-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.4;
}

/* Chapters Section */
.chapters {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .chapters {
    padding: 6rem 0;
  }
}

.chapters-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .chapters-grid {
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }
}

.chapters-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chapters-title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .chapters-title {
    font-size: 2.25rem;
  }
}

.chapters-subtitle {
  display: block;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  font-weight: 400;
}

.chapters-description {
  color: var(--muted-foreground);
}

.chapters-features {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.sparkles-icon {
  color: var(--amber-600);
  flex-shrink: 0;
}

/* Masonry Gallery */
.masonry-gallery {
  columns: 2;
  column-gap: 1rem;
}

@media (min-width: 768px) {
  .masonry-gallery {
    columns: 3;
    column-gap: 1rem;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Stacked Images Section */
.stacked-images {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .stacked-images {
    padding: 6rem 0;
  }
}

.stacked-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .stacked-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.stacked-text {
  max-width: 36rem;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stacked-title {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .stacked-title {
    font-size: 2.25rem;
  }
}

.stacked-description {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.stacked-container {
  position: relative;
  height: 420px;
}

@media (min-width: 768px) {
  .stacked-container {
    height: 520px;
  }
}

.stacked-base {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.stacked-base img {
  width: 72%;
  aspect-ratio: 4/5;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stacked-item {
  position: absolute;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: white;
}

.stacked-top-left {
  left: -0.5rem;
  top: 1.5rem;
  width: 44vw;
  max-width: 260px;
  aspect-ratio: 3/4;
  transform: rotate(-6deg);
}

@media (min-width: 768px) {
  .stacked-top-left {
    left: 1rem;
    top: 2.5rem;
  }
}

.stacked-bottom-right {
  right: 0;
  bottom: 1.5rem;
  width: 48vw;
  max-width: 300px;
  aspect-ratio: 3/4;
  transform: rotate(7deg);
}

@media (min-width: 768px) {
  .stacked-bottom-right {
    right: 1.5rem;
    bottom: 2.5rem;
  }
}

.stacked-small {
  left: 38%;
  bottom: -0.75rem;
  width: 36vw;
  max-width: 220px;
  aspect-ratio: 4/5;
  transform: rotate(-2deg);
}

@media (min-width: 768px) {
  .stacked-small {
    left: 44%;
    bottom: -1.5rem;
  }
}

.stacked-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Featured Section */
.featured {
  padding: 2.5rem 0;
}

@media (min-width: 768px) {
  .featured {
    padding: 4rem 0;
  }
}

.featured-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.featured-title {
  font-size: 1.5rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .featured-title {
    font-size: 1.875rem;
  }
}

.featured-subtitle {
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.featured-link {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--foreground);
}

.featured-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  touch-action: pan-x;
  user-select: none;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-carousel::-webkit-scrollbar {
  display: none;
}

.featured-carousel:active {
  cursor: grabbing;
}

.product-card {
  flex-shrink: 0;
  width: 68vw;
  group: true;
}

@media (min-width: 640px) {
  .product-card {
    width: 46vw;
  }
}

@media (min-width: 768px) {
  .product-card {
    width: 36vw;
  }
}

@media (min-width: 1024px) {
  .product-card {
    width: 28vw;
  }
}

@media (min-width: 1280px) {
  .product-card {
    width: 22vw;
  }
}

.product-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-buttons {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-buttons {
  opacity: 1;
}

.product-add {
  padding: 0.375rem 0.75rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-add:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.product-name {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
}

.product-name:hover {
  text-decoration: underline;
}

.product-price {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* UGC Section */
.ugc-section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .ugc-section {
    padding: 5rem 0;
  }
}

.ugc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ugc-title {
  font-size: 1.5rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .ugc-title {
    font-size: 1.875rem;
  }
}

.ugc-hashtag {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.ugc-reel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
}

.ugc-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  animation: marquee 32s linear infinite;
}

.ugc-reel:hover .ugc-track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.ugc-item {
  flex-shrink: 0;
  width: 10rem;
}

.ugc-image {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.ugc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ugc-user {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
}

.ugc-handle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Editorial CTA Section */
.editorial-cta {
  padding-bottom: 6rem;
}

.editorial-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .editorial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.editorial-image {
  position: relative;
  min-height: 360px;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-content {
  background: rgba(248, 250, 252, 0.4);
  padding: 2rem;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .editorial-content {
    padding: 3rem;
  }
}

.editorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.editorial-title {
  font-size: 1.875rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .editorial-title {
    font-size: 2.25rem;
  }
}

.editorial-text {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  max-width: 50ch;
}

.editorial-buttons {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.editorial-link {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
.separator {
  height: 1px;
  background: var(--border);
}

.footer {
  padding: 2.5rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Cart Sheet */
.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.cart-sheet.open {
  display: block;
}

.cart-content {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  max-width: 28rem;
  background: var(--background);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.cart-sheet.open .cart-content {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.cart-sheet.open .cart-overlay {
  opacity: 1;
  z-index: 0;
}

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

.cart-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.cart-close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  transition: background-color 0.2s ease;
}

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

.cart-body {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.cart-items {
  flex: 1;
}

.cart-empty {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  padding: 2rem 0;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.cart-item-image {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-name {
  font-weight: 500;
  text-decoration: none;
}

.cart-item-name:hover {
  text-decoration: underline;
}

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

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

.cart-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--foreground);
  transition: background-color 0.2s ease;
}

.cart-qty-btn:hover {
  background: var(--accent);
}

.cart-qty {
  width: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

.cart-remove {
  margin-left: auto;
  padding: 0.5rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.cart-remove:hover {
  color: var(--destructive);
}

.cart-separator {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 1rem;
}

.cart-footer {
  margin-top: auto;
}

/* Checkout Dialog */
.checkout-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.checkout-dialog.open {
  display: flex;
}

.checkout-content {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.checkout-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkout-dialog.open .checkout-overlay {
  opacity: 1;
}

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

.checkout-title {
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.25rem;
  padding: 0 0.5rem;
  background: var(--amber-200);
  color: var(--amber-900);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.checkout-close {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--muted-foreground);
  transition: background-color 0.2s ease;
}

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

.checkout-warning {
  padding: 0 1.5rem;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.checkout-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.progress-dot {
  height: 0.5rem;
  width: 1rem;
  background: var(--muted);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: var(--foreground);
  width: 2rem;
}

.progress-dot.completed {
  background: var(--foreground);
  width: 1.5rem;
  opacity: 0.7;
}

.checkout-form {
  padding: 1.5rem;
}

.form-step {
  display: none;
}

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

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.form-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid transparent;
}

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

.demo-notice {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  color: var(--amber-900);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.checkout-success {
  display: grid;
  place-items: center;
  padding: 2.5rem;
  text-align: center;
}

.success-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--emerald-600);
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.success-text {
  color: var(--muted-foreground);
  max-width: 24rem;
  margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-text {
    order: 2;
    min-height: 50vh;
  }
  
  .hero-image {
    order: 1;
    min-height: 50vh;
  }
  
  .chapters-grid,
  .stacked-grid,
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-content {
    width: 100%;
    max-width: none;
  }
  
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Animation for demo banner close */
@keyframes fadeOut {
  from { opacity: 1; height: auto; }
  to { opacity: 0; height: 0; }
}

.demo-banner.hiding {
  animation: fadeOut 0.3s ease forwards;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}