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

body {
  font-family: 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 199, 123, 0.45), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(120, 220, 255, 0.25), transparent 55%),
    linear-gradient(135deg, #050016, #1a1142 35%, #00465c 75%, #050016);
  background-size: 200% 200%;
  animation: neon-wave 20s linear infinite;
  color: #f5f5ff;
  min-height: 100vh;
  padding: 0;
  padding-top: 140px; /* Account for fixed header height */
}

@keyframes neon-wave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header Styles */
#header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
}

.site-header {
  background:
    linear-gradient(90deg, rgba(255, 168, 76, 0.45), transparent),
    linear-gradient(135deg, #05020f, #261858);
  color: #ffeec9;
  padding: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.site-header.condensed {
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.site-header.condensed .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.header-left {
  /* No transition needed */
}

.site-header.condensed .header-left {
  flex: 1;
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 10px;
  text-shadow:
    0 0 6px rgba(255, 194, 102, 0.85),
    0 0 14px rgba(154, 230, 255, 0.9),
    3px 3px 8px rgba(0, 0, 0, 0.9);
  animation: glow 2s ease-in-out infinite alternate;
}

.site-header.condensed .logo {
  font-size: 1.5em;
  margin-bottom: 0;
  letter-spacing: 2px;
}

.site-header.condensed .tagline {
  display: none;
}

.site-header.condensed .main-nav {
  margin-top: 0;
  gap: 15px;
}

.site-header.condensed .nav-link {
  font-size: 0.95em;
  padding: 6px 15px;
}

/* Ensure cart badge is visible in condensed mode */
.site-header.condensed .cart-badge {
  font-size: 0.75em;
}

@keyframes glow {
  from { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 10px #ffd700; }
  to { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px #ffd700, 0 0 30px #ffd700; }
}

.tagline {
  font-style: italic;
  font-size: 1.1em;
  color: #ffcfb3;
  margin-bottom: 15px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.nav-link {
  color: #bfefff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  padding: 8px 20px;
  border: 2px solid rgba(191, 239, 255, 0.7);
  border-radius: 999px;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  background: rgba(191, 239, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(191, 239, 255, 0.7);
  transform: translateY(-1px) scale(1.05);
}

.nav-link.active {
  background: linear-gradient(90deg, #ff9a5c, #ffd37a);
  color: #05020f;
  box-shadow: 0 0 18px rgba(255, 190, 120, 0.8);
}

.cart-badge {
  background: #ff9a5c;
  color: white;
  border-radius: 50%;
  padding: 2px 8px;
  font-size: 0.8em;
  margin-left: 5px;
  display: none;
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* Hero Banner */
.hero-banner {
  background:
    linear-gradient(135deg, rgba(255, 184, 92, 0.18), rgba(124, 211, 255, 0.12)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(5, 1, 35, 0.96);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0 40px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);
  border: 2px solid rgba(191, 239, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
}

.hero-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.hero-image {
  width: 100%;
  max-width: 640px;
  border-radius: 10px;
  box-shadow:
    0 0 20px rgba(255, 210, 140, 0.6),
    0 12px 24px rgba(0, 0, 0, 0.7);
}

.ai-image-placeholder {
  margin-top: 10px;
  padding: 12px 15px;
  border-radius: 8px;
  border: 2px dashed #c41e3a;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.9em;
  color: #333;
  line-height: 1.5;
}

.ai-image-placeholder::before {
  content: "AI IMAGE PROMPT";
  display: block;
  font-weight: bold;
  font-size: 0.8em;
  letter-spacing: 1px;
  color: #c41e3a;
  margin-bottom: 5px;
}

.hero-text h2 {
  color: #ffeec9;
  font-size: 2em;
  margin-bottom: 15px;
  text-shadow:
    0 0 10px rgba(255, 184, 92, 0.85),
    0 0 20px rgba(124, 211, 255, 0.9);
}

.hero-text h3 {
  color: #ffd7f2;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.fine-print {
  font-size: 0.8em;
  color: #d4d4ff;
  font-style: italic;
  margin-top: 10px;
}

/* Products Section */
.products-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.5em;
  text-align: center;
  color: #ffeec9;
  text-shadow:
    0 0 10px rgba(255, 184, 92, 0.7),
    0 0 22px rgba(124, 211, 255, 0.7);
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: #f0e9ff;
  font-size: 1.2em;
  margin-bottom: 30px;
  font-style: italic;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Product Card */
.product-card {
  background:
    linear-gradient(160deg, rgba(124, 211, 255, 0.12), rgba(255, 184, 92, 0.1)),
    rgba(7, 4, 42, 0.98);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid rgba(191, 239, 255, 0.35);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(255, 205, 135, 0.85);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(124, 211, 255, 0.28), rgba(255, 184, 92, 0.28));
}

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

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff9a5c, #ffeec9);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.3em;
  color: #fff7ff;
  margin-bottom: 10px;
  font-weight: bold;
}

.product-description {
  color: #d8ddff;
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
  line-height: 1.4;
}

.product-price {
  margin-bottom: 15px;
  font-size: 1.2em;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
  margin-right: 10px;
}

.current-price {
  color: #ffeec9;
  font-weight: bold;
  font-size: 1.3em;
}

.add-to-cart-btn,
.view-details-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #ff9a5c, #ffd37a);
  color: white;
  width: 100%;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #ffb37e, #ffe498);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 0 16px rgba(255, 205, 135, 0.9);
}

.view-details-btn {
  background: transparent;
  color: #bfefff;
  border: 1px solid rgba(191, 239, 255, 0.6);
  width: 100%;
}

.view-details-btn:hover {
  background: rgba(191, 239, 255, 0.18);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 10px rgba(191, 239, 255, 0.7);
}

/* Featured Letter Section */
.featured-letter {
  background:
    linear-gradient(145deg, rgba(124, 211, 255, 0.06), rgba(255, 184, 92, 0.1)),
    rgba(7, 3, 45, 0.96);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(191, 239, 255, 0.35);
}

.featured-letter-content {
  text-align: center;
}

.featured-letter-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
  align-items: start;
}

.family-story {
  background:
    linear-gradient(160deg, rgba(124, 211, 255, 0.06), rgba(255, 184, 92, 0.1)),
    rgba(10, 5, 52, 0.96);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(191, 239, 255, 0.35);
}

.family-story-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.family-era {
  background: rgba(7, 3, 45, 0.95);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #ff9a5c;
}

.family-era h3 {
  font-size: 1.3em;
  margin: 15px 0;
  color: #fff7ff;
}

.family-era p {
  font-size: 0.98em;
  color: #dde2ff;
  line-height: 1.7;
}

.featured-letter-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-letter-image {
  max-width: 100%;
  max-height: 600px;
  border-radius: 10px;
  box-shadow:
    0 0 20px rgba(255, 205, 135, 0.7),
    0 10px 24px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(191, 239, 255, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.featured-letter-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.featured-letter-caption {
  margin-top: 20px;
  font-style: italic;
  color: #e2ddff;
  font-size: 1.1em;
  max-width: 100%;
  line-height: 1.6;
  text-align: center;
}

.featured-letter-product-info {
  text-align: left;
}

.featured-product-name {
  font-size: 2em;
  color: #fff7ff;
  margin-bottom: 15px;
  font-weight: bold;
}

.featured-product-description {
  font-size: 1.1em;
  line-height: 1.8;
  color: #dde2ff;
  margin-bottom: 20px;
}

.featured-product-price {
  margin-bottom: 25px;
  font-size: 1.3em;
}

.featured-product-price .original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9em;
  margin-right: 15px;
}

.featured-product-price .current-price {
  color: #ffeec9;
  font-weight: bold;
  font-size: 1.5em;
  margin-right: 15px;
}

.featured-product-features {
  margin-bottom: 30px;
}

.featured-product-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.featured-product-features li {
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
  color: #333;
  line-height: 1.6;
}

.featured-product-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff9a5c;
  font-weight: bold;
  font-size: 1.3em;
}

.featured-add-to-cart-btn {
  background: linear-gradient(135deg, #ff9a5c, #ffd37a);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.3em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  text-align: center;
}

.featured-add-to-cart-btn:hover {
  background: linear-gradient(135deg, #ffb37e, #ffe498);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 16px rgba(255, 205, 135, 0.9);
}

.featured-add-to-cart-btn:active {
  transform: scale(0.98);
}

/* Testimonials */
.testimonials {
  background:
    linear-gradient(150deg, rgba(124, 211, 255, 0.06), rgba(255, 184, 92, 0.1)),
    rgba(8, 3, 48, 0.96);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(191, 239, 255, 0.35);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.testimonial {
  background: rgba(7, 3, 45, 0.96);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #ff9a5c;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
  color: #f0e9ff;
}

.testimonial cite {
  color: #d0d5ff;
  font-size: 0.9em;
}

/* Footer */
.site-footer {
  background:
    linear-gradient(180deg, rgba(255, 184, 92, 0.32), transparent),
    linear-gradient(135deg, #040013, #190f47);
  color: #ffeec9;
  padding: 30px 20px;
  margin-top: 50px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  color: #bfefff;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.9em;
  color: #999;
  margin-top: 20px;
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  top: 100px;
  right: 20px;
  background: #c41e3a;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s;
}

.cart-notification.show {
  transform: translateX(0);
}

/* Cart Page Styles */
.cart-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid #ffd700;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 2fr 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid #eee;
}

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

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #1a1a1a;
}

.cart-item-price {
  font-size: 1.1em;
  color: #c41e3a;
  font-weight: bold;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  background: #ffd700;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
}

.quantity-btn:hover {
  background: #ffed4e;
}

.quantity-input {
  width: 60px;
  text-align: center;
  padding: 5px;
  border: 2px solid #ffd700;
  border-radius: 5px;
  font-size: 1em;
}

.remove-item-btn {
  background: #c41e3a;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.remove-item-btn:hover {
  background: #9a1628;
}

.cart-summary {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.cart-total {
  font-size: 1.5em;
  font-weight: bold;
  color: #c41e3a;
  text-align: right;
  margin-top: 15px;
}

.checkout-btn {
  background: #c41e3a;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: all 0.3s;
}

.checkout-btn:hover {
  background: #9a1628;
  transform: scale(1.02);
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.empty-cart h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #1a1a1a;
}

/* Product Detail Page */
.product-detail {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid #ffd700;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.product-detail-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.product-detail-info h1 {
  font-size: 2.5em;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.product-detail-description {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
  margin-bottom: 30px;
}

.product-features {
  list-style: none;
  margin-bottom: 30px;
}

.product-features li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  font-size: 1.1em;
}

.product-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c41e3a;
  font-weight: bold;
  font-size: 1.3em;
}

/* Checkout Page */
.checkout-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid #ffd700;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ffd700;
  border-radius: 6px;
  font-size: 1em;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c41e3a;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-wrapper {
    align-items: center;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .featured-letter-product {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .featured-letter-product-info {
    text-align: center;
  }

  .featured-product-features {
    text-align: left;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }

  .cart-item-name {
    grid-column: 1 / -1;
  }

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

  .logo {
    font-size: 1.8em;
  }

  .site-header.condensed .logo {
    font-size: 1.2em;
  }

  .site-header.condensed .header-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .site-header.condensed .main-nav {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
  
  .logo {
    animation: none;
  }
  
  * {
    transition: none;
  }
}
