/* Warrior Worms Theme - Wonka Style */
:root {
  --magma-red: #FF4040;
  /* Softer red */
  --slime-green: #70E000;
  --spartan-gold: #FFD700;
  --deep-indigo: #2D1B4E;
  /* Richer purple */
  --lighter-indigo: #432C7A;
  --black: #000000;
  --white: #ffffff;
  --shadow-color: rgba(0, 0, 0, 0.2);
}

html {
  background-color: var(--deep-indigo);
  /* Fallback to match */
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at center, var(--lighter-indigo) 0%, var(--deep-indigo) 100%);
  background-attachment: fixed;
  font-family: 'Fredoka', sans-serif;
  color: var(--deep-indigo);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Chewy', system-ui;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  color: var(--spartan-gold);
  /* Gold headings */
}

/* Headings inside cards should be dark for contrast */
.card-panel h2 {
  color: var(--deep-indigo);
}

.hero-title {
  color: var(--spartan-gold);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  /* Soft shadow instead of outline */
  font-size: 3.5rem;
  margin-top: -10px;
}

/* Layout Utilities */
.container {
  max-width: 650px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Reduced visual gap */
}

/* Dossier Layout (Split Panel) */
.dossier {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow-color);
  overflow: hidden;
  /* Clips children */
  display: flex;
  flex-direction: column;
}

.dossier-main {
  padding: 30px;
  background: #fff;
}

.dossier-sidebar {
  padding: 30px;
  background: #F8F5FF;
  /* Very light purple tint */
  border-top: 2px dashed #ddd;
}

@media (min-width: 900px) {
  .container {
    max-width: 1100px;
  }

  .dossier {
    flex-direction: row;
    align-items: stretch;
  }

  .dossier-main {
    flex: 3;
    /* 60% */
    padding: 50px;
    order: 1;
  }

  .dossier-sidebar {
    flex: 2;
    /* 40% */
    padding: 50px;
    background: #F8F5FF;
    border-top: none;
    border-left: 1px solid #eee;
    order: 2;
  }
}

/* Responsive Grid for Checkout */
.checkout-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .container {
    max-width: 1200px;
    /* Wider canvas */
  }

  .checkout-grid {
    grid-template-columns: 1fr 1.2fr;
    /* 45/55 Split */
    align-items: start;
    gap: 40px;
  }

  /* Tighter padding on desktop */
  .card-panel {
    padding: 30px;
  }
}

/* Components */
.card-panel {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  /* No border */
  box-shadow: 0 10px 25px var(--shadow-color);
  padding: 40px;
  color: var(--deep-indigo);
  border-radius: 30px;
  /* Smooth curves */
  backdrop-filter: blur(10px);
}

.product-price {
  font-size: 3rem;
  color: var(--magma-red);
  text-align: center;
  margin: 20px 0;
  font-family: 'Chewy', system-ui;
}

/* Buttons */
.btn {
  border: none;
  padding: 15px 30px;
  font-family: 'Chewy', system-ui;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  border-radius: 50px;
  /* Pill shape */
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B6B 0%, #FF2020 100%);
  /* Candy gradient */
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(135deg, #FFED4B 0%, #FFD700 100%);
  /* Gold gradient */
  color: var(--deep-indigo);
}

.btn-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  padding: 0;
  border-radius: 50%;
}

/* Quantity Control */
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  background: transparent;
  padding: 10px;
  width: fit-content;
  margin: 0 auto;
}

.quantity-display {
  font-family: 'Chewy', system-ui;
  font-size: 3.5rem;
  color: var(--deep-indigo);
  min-width: 60px;
  text-align: center;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
  color: var(--deep-indigo);
}

.form-input {
  width: 100%;
  padding: 16px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  box-sizing: border-box;
  background: #F8F9FA;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--magma-red);
  box-shadow: 0 0 0 4px rgba(255, 32, 32, 0.1);
}

.sticky-note {
  background: #fff;
  color: var(--deep-indigo);
  padding: 8px 16px;
  transform: rotate(3deg);
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: inline-block;
  font-family: 'Chewy', system-ui;
  font-size: 1.1rem;
  position: absolute;
  top: -15px;
  right: -10px;
  z-index: 10;
  border-radius: 10px;
  /* Simple rounded note */
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
    /* Bigger bounce */
  }

  60% {
    transform: translateY(-10px);
  }
}

.bounce-arrow {
  animation: bounce 2s infinite;
  display: block;
  margin: 20px auto 0 auto;
  cursor: pointer;
  height: 80px;
  /* Default larger size */
  width: auto;
}

@media (min-width: 900px) {
  .bounce-arrow {
    height: 100px;
    /* Even larger on desktop */
  }
}

/* --- Entry Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  70% {
    transform: scale(1.1);
  }

  /* Overshoot */
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-pop-in {
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  /* Bouncy bezier */
}

.animate-fade-up {
  opacity: 0;
  /* Star invisible */
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-500 {
  animation-delay: 0.5s;
}