/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #f8f6f3;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Test Site Badge */
.test-badge {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Header Styles */
.site-header {
  background-color: #5d1a1a;
  color: #f5e6d3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-image {
  width: 100%;
  overflow: hidden;
  background-color: #4a1515;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.header-content {
  padding: 1.5rem 0 1rem 0;
}

.site-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #d4af37;
  margin-bottom: 1rem;
}

.main-nav {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid rgba(245, 230, 211, 0.2);
  padding-top: 1rem;
}

.main-nav a {
  color: #f5e6d3;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
}

.main-nav a:hover {
  color: #d4af37;
  border-bottom-color: #d4af37;
}

.main-nav .nav-right {
  margin-left: auto;
}

.main-nav a.iframe-demo-link {
  color: #4fc3f7;
  font-weight: 600;
  background: rgba(79, 195, 247, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a.iframe-demo-link:hover {
  color: #29b6f6;
  background: rgba(79, 195, 247, 0.2);
  border-bottom-color: #29b6f6;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #6b2424 0%, #8b3a3a 100%);
  color: #f5e6d3;
  padding: 4rem 0;
  text-align: center;
}

.hero-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 1px;
}

.hero-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.8;
}

.test-notice {
  font-size: 0.95rem;
  color: #d4af37;
  max-width: 700px;
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

/* Shop Section */
.shop-section {
  padding: 4rem 0;
  background-color: #fff;
}

.shop-section h2 {
  font-size: 2rem;
  color: #5d1a1a;
  margin-bottom: 1rem;
  text-align: center;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Vinoshipper catalog container */
[vinoshipper-product-catalog] {
  min-height: 300px;
  margin-top: 2rem;
}

/* Loyalty Section */
.loyalty-section {
  padding: 4rem 0;
  background-color: #f8f6f3;
  border-top: 3px solid #d4af37;
}

.loyalty-section h2 {
  font-size: 2rem;
  color: #5d1a1a;
  margin-bottom: 1rem;
  text-align: center;
}

.loyalty-description {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.loyalty-info-box {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 2rem auto;
  border-left: 4px solid #d4af37;
}

.loyalty-info-box p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #5d1a1a;
}

.loyalty-info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.loyalty-info-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #666;
}

.loyalty-info-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d4af37;
  font-weight: bold;
}

/* Loyalty Plugin Containers */
.loyalty-badges-container {
  margin: 2rem 0;
  min-height: 100px;
}

.loyalty-rewards-container {
  margin: 2rem 0;
  min-height: 300px;
}

.loyalty-widget-container {
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.loyalty-summary,
.loyalty-rewards {
  margin-bottom: 2rem;
}

.loyalty-summary h3,
.loyalty-rewards h3 {
  font-size: 1.5rem;
  color: #5d1a1a;
  margin-bottom: 1rem;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.5rem;
}

.loyalty-summary-placeholder,
.loyalty-rewards-placeholder {
  background-color: #f8f6f3;
  border: 2px dashed #d4af37;
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-text {
  color: #999;
  font-style: italic;
}

/* Footer */
.site-footer {
  background-color: #2c2c2c;
  color: #f5e6d3;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.winery-name {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d4af37;
}

.test-info {
  font-size: 0.85rem;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .test-badge {
    font-size: 0.8rem;
    padding: 0.4rem;
  }

  .header-image img {
    max-height: 120px;
  }

  .site-title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .site-tagline {
    font-size: 1rem;
  }

  .main-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .hero-section h2 {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .test-notice {
    font-size: 0.85rem;
  }

  .shop-section h2,
  .loyalty-section h2 {
    font-size: 1.5rem;
  }

  .loyalty-widget-container {
    padding: 1rem;
  }
}
