@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Enhanced Color System */
  --primary-color: #1a2834;
  --primary-light: #2a3f52;
  
  /* Rich Accent Palette */
  --accent-terracotta: #4a7c59;
  --accent-terracotta-dark: #3d6b4a;
  --accent-sage: #7cb89d;
  --accent-sage-light: #a8d5ba;
  --accent-clay: #5a9b7d;
  --accent-amber: #6db897;
  --accent-forest: #2d5a3d;
  
  /* Text Colors */
  --text-color: #2c2c2c;
  --text-light: #666666;
  --text-lighter: #888888;
  
  /* Background Colors */
  --bg-color: #fdfcfb;
  --bg-subtle: #f7f5f2;
  --bg-warm: #faf8f5;
  --bg-cream: #f9f4ed;
  --bg-dark: #1a2834;
  
  /* Border & Divider */
  --border-color: #e8e3dc;
  --border-accent: #7cb89d;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Spacing Scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.75;
  color: var(--text-color);
  background-color: var(--bg-color);
  letter-spacing: -0.01em;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6,
.site-header h1,
.site-header nav a,
.btn,
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: var(--bg-color);
  border-bottom: 2px solid var(--border-accent);
  padding: 1.5rem 0;
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
}

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

.site-header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header h1 a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 400;
}

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

.site-header nav a {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--text-color);
  text-decoration: none;
  margin-left: 0;
  transition: color 0.3s;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-header nav a:hover {
  color: var(--accent-terracotta);
}

.site-header nav .cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.site-header nav .cart-link:hover {
  background-color: var(--bg-warm);
}

.site-header nav .cart-link svg {
  display: block;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-terracotta);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: var(--shadow-sm);
}

.cart-count.active {
  display: flex;
}

/* Hero */
.hero {
  background: linear-gradient(-45deg, var(--accent-terracotta), var(--accent-sage), var(--accent-amber), var(--accent-sage-light), var(--accent-clay));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  padding: 6rem 0 5rem;
  text-align: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 40, 52, 0.6) 0%, rgba(61, 90, 79, 0.5) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 75%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 25%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: white;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  line-height: 1;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  font-family: 'Lora', Georgia, serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero .official-badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  font-family: 'Bebas Neue', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem 2rem;
  margin: 3rem 0 5rem;
}

.product-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-color);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.product-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.product-card h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.product-card h3 a:hover {
  color: var(--accent-terracotta);
}

.product-card .price {
  padding: 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-forest);
  margin-bottom: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

.product-card .btn {
  margin: 0 1.5rem 1.5rem;
  width: calc(100% - 3rem);
}

/* Product Page */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 2rem 0 3rem;
}

.product-image-main {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f9f9f9;
}

.product-image-main img {
  width: 100%;
  height: auto;
  display: block;
}

.no-image {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.2rem;
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.product-thumbnails .thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s;
  opacity: 0.7;
}

.product-thumbnails .thumbnail:hover,
.product-thumbnails .thumbnail.active {
  border-color: var(--primary-color);
  opacity: 1;
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-vendor {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.product-price {
  margin-bottom: 1.5rem;
}

.price-amount,
.price-range {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

.product-description {
  margin-top: 2rem;
  line-height: 1.8;
  color: #555;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.product-description p {
  margin-bottom: 1rem;
}

.product-description ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.product-form {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.product-form .variant-selector {
  margin-bottom: 1.5rem;
}

.product-form .quantity-selector {
  margin-bottom: 1.5rem;
}

.product-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-form select,
.product-form input[type="number"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.product-form select:focus,
.product-form input[type="number"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.product-form input[type="number"] {
  max-width: 120px;
}

.btn-add-to-cart {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.product-tags {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.product-tags .tag {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.product-details-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border-color);
}

.product-details-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.product-details-content {
  line-height: 1.8;
  color: #555;
}

.product-details-content p {
  margin-bottom: 1rem;
}

.product-details-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Bebas Neue', sans-serif;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-terracotta) 0%, var(--accent-terracotta-dark) 100%);
  color: white;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-terracotta-dark) 0%, var(--accent-forest) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
}

/* Checkout Page */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.cart-items,
.donation-section,
.order-summary {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  background: white;
  box-shadow: var(--shadow-sm);
}

.cart-items h2,
.donation-section h2,
.order-summary h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent-clay);
}

.donation-section {
  grid-column: 1 / 2;
}

.order-summary {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: start;
  position: sticky;
  top: 2rem;
}

.cart-list {
  list-style: none;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-quantity {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
}

.cart-item-price {
  font-weight: bold;
  margin: 0 1rem;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--error-color);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.empty-cart {
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Donation Options */
.donation-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.donation-option {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-warm);
}

.donation-option:hover {
  border-color: var(--accent-sage);
  background-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.donation-option.selected {
  border-color: var(--accent-terracotta);
  background: linear-gradient(135deg, rgba(216, 117, 80, 0.08) 0%, rgba(107, 142, 127, 0.08) 100%);
  box-shadow: var(--shadow-md);
}

.donation-option input[type="radio"] {
  display: none;
}

.donation-option span {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--accent-forest);
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.05em;
}

/* Order Summary */
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.donation-line {
  color: var(--secondary-color);
  font-weight: 500;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 2px solid var(--text-color);
}

.checkout-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-forest) 100%);
  color: #ffffff;
  padding: 0;
  margin-top: 6rem;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-terracotta) 0%, var(--accent-amber) 33%, var(--accent-sage) 66%, var(--accent-clay) 100%);
}

.footer-main {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: #a8d5ba;
  text-transform: uppercase;
}

.footer-about p {
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: #a8d5ba;
  transform: translateX(4px);
}

.footer-contact p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
}

.footer-contact a {
  color: #a8d5ba;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: #7cb89d;
}

.footer-legal {
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-legal .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-notice {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.legal-notice strong {
  color: #ffffff;
  font-weight: 600;
}

.legal-notice p {
  margin-bottom: 0.75rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: #a8d5ba;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  font-family: 'Bebas Neue', sans-serif;
}

/* Content Pages */
.content-page-wrapper {
  margin: 4rem auto;
  max-width: 900px;
}

.content-page {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent-terracotta);
}

.content-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}

.content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  margin: 2.5rem 0 1.25rem;
  color: var(--accent-forest);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-clay);
}

.content h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--text-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.content h4 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-color);
  font-weight: 600;
  font-style: italic;
}

.content p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
  font-size: 1.05rem;
}

.content ul,
.content ol {
  margin: 1.25rem 0 1.25rem 2rem;
  line-height: 1.85;
}

.content li {
  margin-bottom: 0.75rem;
}

.content a {
  color: var(--accent-terracotta);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-terracotta);
  transition: all 0.3s;
}

.content a:hover {
  color: var(--accent-forest);
  border-bottom-color: var(--accent-forest);
}

.content strong {
  font-weight: 600;
  color: var(--primary-color);
}

.content em {
  font-style: italic;
  color: var(--text-light);
}

.content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--bg-cream);
  border-left: 4px solid var(--accent-terracotta);
  font-style: italic;
  color: var(--text-light);
}

.artist-form-container {
  margin: 2rem 0;
  padding: 2rem;
  background: var(--bg-cream);
  border: 2px solid var(--accent-clay);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.artist-form-container h3 {
  margin-top: 0 !important;
  color: var(--accent-forest) !important;
  border-bottom: 2px solid var(--accent-clay) !important;
}

.artist-form-container p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* Responsive */
@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .site-header nav {
    gap: 1rem;
  }

  .site-header nav a {
    margin: 0;
    font-size: 1rem;
  }

  .product-page,
  .checkout-container {
    grid-template-columns: 1fr;
  }

  .order-summary {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  .donation-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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