/* Christmas Bakery Theme - Professional Design */
:root {
  --primary: #b22424;
  --primary-dark: #8b1a1a;
  --primary-light: #d63c3c;
  --secondary: #005a3c;
  --secondary-light: #1a7d5c;
  --accent: #d4af37;
  --accent-light: #e8c547;
  --dark: #1a1a1a;
  --dark-medium: #333333;
  --light: #fefdf8;
  --white: #ffffff;
  --border: #e8e5d3;
  --border-light: #f0ede0;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --success: #228b22;
  --warning: #ff8c00;
  --danger: #dc3545;
  --shadow-light: 0 2px 8px rgba(178, 36, 36, 0.08);
  --shadow-medium: 0 4px 16px rgba(178, 36, 36, 0.12);
  --shadow-heavy: 0 8px 24px rgba(178, 36, 36, 0.16);
  --border-radius: 12px;
  --border-radius-large: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--light) 0%, #fff5f0 100%);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Christmas Snow Effect Removed - Using Individual Snowflakes Instead */

/* Ensure white text on red backgrounds */
.header,
.header *,
.cart-count,
.offer-badge,
.discount,
.cta-button.primary,
.cta-button.primary *,
[style*="background: var(--primary)"],
[style*="background-color: var(--primary)"],
[style*="background: #b22424"],
[style*="background-color: #ffffff"] {
  color: white !important;
}

/* Specific red background elements */
.message-banner.error,
.message-banner.error *,
.error-message,
.error-message * {
  color: white !important;
}

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

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--primary);
  box-shadow: var(--shadow-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo h1 {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.nav-logo span {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;

}

/* Desktop Navigation Cart Icon */
.cart-icon {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--white) !important;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(178, 36, 36, 0.3);
  font-size: 20px;
  min-width: 55px;
  min-height: 45px;
  border: 2px solid var(--primary);
}

.cart-icon i {
  color: var(--primary) !important;
  font-weight: 900;
}

.cart-icon:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(178, 36, 36, 0.4);
  color: var(--white) !important;
  border-color: var(--primary-dark);
}

.cart-icon:hover i {
  color: var(--white) !important;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Message Banner */
.message-banner {
  padding: 15px 0;
  text-align: center;
  font-weight: 500;
}

.message-banner.success {
  background: #d4edda;
  color: #155724;
}

.message-banner.error {
  background: #f8d7da;
  color: #721c24;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-width: 100%;
  min-height: 100%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.feature-icon {
  font-size: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button.primary {
  background: var(--primary);
  color: white;
}

.cta-button.primary:hover {
  background: var(--primary-dark);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.cta-button.secondary {
  background: var(--accent);
  color: var(--dark);
}

.cta-button.secondary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  font-size: 2rem;
}

.trust-text {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Products Section */
.products-section {
  padding: 80px 0;
  background: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

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

.product-card {
  background: white;
  border-radius: var(--border-radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy), 0 0 20px rgba(212, 175, 55, 0.3);
  border: 2px solid var(--accent);
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f5f5f5;
}

.product-image img,
.product-image .product-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-video {
  border-radius: 0;
}

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

.offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.video-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 8px;
  border-radius: 50%;
  font-size: 12px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(178, 36, 36, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 2px 8px rgba(178, 36, 36, 0.3);
  }

  50% {
    box-shadow: 0 2px 8px rgba(178, 36, 36, 0.6);
  }

  100% {
    box-shadow: 0 2px 8px rgba(178, 36, 36, 0.3);
  }
}

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

.product-info h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 15px;
  flex-grow: 1;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.original-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.add-to-cart-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-to-cart-btn:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: white;
  text-align: center;
}

.about-section h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: 700;
}

.about-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: var(--light);
}

.contact-section h2 {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 15px;
  font-weight: 700;
}

.contact-section>.container>p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius-large);
  text-align: center;
  box-shadow: var(--shadow-light);
}

.contact-item h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.contact-item p {
  color: var(--text-secondary);
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.footer-left p {
  margin: 2px 0;
  color: white;
  font-size: 14px;
  text-align: center;
}

.footer-tagline {
  font-size: 12px;
  opacity: 0.8;
  font-style: italic;
  text-align: center;
}

.footer-right {
  text-align: center;
}

.footer-credit {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.arkroot-link {
  color: #d4af37 !important;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.arkroot-link:hover {
  color: #e8c547 !important;
  text-decoration: underline;
}

.social {
  list-style: none;
  display: flex;
  gap: 15px;
}

.social a {
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.social a:hover {
  color: var(--accent);
  transform: scale(1.2);
}

/* Error/No Products */
.error-message, .no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
}

.setup-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
}

.setup-box h4 {
  color: #856404;
  margin-bottom: 15px;
}

.setup-btn {
  background: var(--success);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
  transition: var(--transition);
}

.setup-btn:hover {
  background: #1e7e34;
  transform: translateY(-2px);
}

/* Mobile FAB Cart */
.mobile-cart-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(178, 36, 36, 0.4);
  z-index: 1000;
  text-decoration: none;
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
  border: 3px solid white;
}

.mobile-cart-fab:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(178, 36, 36, 0.6);
  color: white;
}

.mobile-cart-fab .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid white;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-actions {
    display: none !important;
  }

  .cart-icon {
    display: none !important;
  }

  .mobile-cart-fab {
    display: flex !important;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .hero-features {
    gap: 15px;
  }

  .hero-trust {
    gap: 20px;
  }

  .footer-content {
    gap: 6px;
  }

  .footer-left p {
    font-size: 13px;
  }

  .footer-tagline {
    font-size: 11px;
  }

  .footer-credit {
    font-size: 12px;
  }
}