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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: linear-gradient(135deg, #c41e3a, #ffd700, #c41e3a);
  background-size: 400% 400%;
  animation: patriotic-wave 8s ease infinite;
  color: #1a1a1a;
  min-height: 100vh;
  padding: 0;
  padding-top: 140px; /* Account for fixed header height */
}

@keyframes patriotic-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(135deg, #1a1a1a, #2d2d2d);
  color: #ffd700;
  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: 3px;
  margin-bottom: 10px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  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: #ffd700;
  margin-bottom: 15px;
}

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

.nav-link {
  color: #ffd700;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  padding: 8px 20px;
  border: 2px solid #ffd700;
  border-radius: 5px;
  transition: all 0.3s;
  position: relative;
}

.nav-link:hover {
  background: #ffd700;
  color: #1a1a1a;
  transform: scale(1.05);
}

.nav-link.active {
  background: #ffd700;
  color: #1a1a1a;
}

.cart-badge {
  background: #c41e3a;
  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: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid #ffd700;
}

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

.hero-image {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-text h2 {
  color: #c41e3a;
  font-size: 2em;
  margin-bottom: 15px;
}

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

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

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

.section-title {
  font-size: 2.5em;
  text-align: center;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: white;
  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: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid #ffd700;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

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

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #c41e3a;
  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: #1a1a1a;
  margin-bottom: 10px;
  font-weight: bold;
}

.product-description {
  color: #666;
  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: #c41e3a;
  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: #c41e3a;
  color: white;
  width: 100%;
}

.add-to-cart-btn:hover {
  background: #9a1628;
  transform: scale(1.05);
}

.view-details-btn {
  background: #ffd700;
  color: #1a1a1a;
  width: 100%;
}

.view-details-btn:hover {
  background: #ffed4e;
  transform: scale(1.05);
}

/* Featured Letter Section */
.featured-letter {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border: 3px solid #c41e3a;
}

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

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

.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 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid #ffd700;
  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: #666;
  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: #1a1a1a;
  margin-bottom: 15px;
  font-weight: bold;
}

.featured-product-description {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333;
  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: #c41e3a;
  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: #c41e3a;
  font-weight: bold;
  font-size: 1.3em;
}

.featured-add-to-cart-btn {
  background: #c41e3a;
  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: #9a1628;
  transform: scale(1.02);
}

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

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

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

.testimonial {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid #c41e3a;
}

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

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

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  color: #ffd700;
  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: #ffd700;
  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;
  }

  .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;
  }
}
