:root {
  --bg1: #fbe8f6;
  --bg2: #dbe9ff;
  --accent: #ffb6c1;
  --accent-dark: #ff69b4;
  --text: #222;
  --radius: 12px;
  --glass: rgba(255, 255, 255, 0.7);
}

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }

/* Header */
.site-header { padding: .5rem 0; background: transparent; }
.logo { height: 48px; }
#mainNav a {
  margin: 0 .5rem;
  text-decoration: none;
  color: var(--text);
  padding: .4rem .6rem;
  border-radius: 8px;
}
#mainNav a:hover { background: var(--glass); }

/* Hero */
.hero {
  position: relative;
  height: 65vh;
  border-radius: 16px;
  overflow: hidden;
  margin: 1rem 0;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.35));
}
.hero-overlay h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin-bottom: .5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .3s ease;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn:hover { box-shadow: 0 0 12px var(--accent-dark); }

/* Products */
.products h2 { font-family: Georgia, serif; margin-bottom: 1rem; }
.controls { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.controls input, .controls select {
  padding: .4rem .6rem;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.product-card {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
}
.product-card img {
  width: 100%; height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform .25s ease;
}
.product-card img:hover { transform: scale(1.03); }
.card-actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-top: .5rem; }
.price { font-weight: 700; color: #333; }

/* Carousel */
.carousel { display: flex; overflow-x: auto; gap: 1rem; scroll-snap-type: x mandatory; }
.carousel img { flex: 0 0 auto; width: 300px; height: 200px; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; }

/* Cart Preview */
.cart-preview {
  position: fixed; right: 0; top: 0;
  width: 300px; height: 100%;
  background: #fff; box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 1rem; overflow-y: auto;
  z-index: 999;
}
.cart-preview.open { transform: translateX(0); }
.cart-item { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.cart-item span { font-size: .9rem; }
.cart-total { font-weight: bold; margin-top: 1rem; }

/* Artisans */
.artisan-grid { display: flex; gap: 1rem; flex-wrap: wrap; }
.artisan-card {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  flex: 1 1 200px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.artisan-card img {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .5rem;
}
.artisan-card h3 { margin-bottom: .25rem; }

/* Testimonials */
.testimonials { margin-top: 2rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.review {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.review .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-body { flex: 1; }
.review-body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: .25rem;
}
.stars {
  color: var(--accent-dark);
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

/* FAQ */
.faq details { margin-bottom: .5rem; background: #fff; padding: .5rem; border-radius: var(--radius); }

/* Newsletter */
.newsletter form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter input { flex: 1; padding: .5rem; border-radius: var(--radius); border: 1px solid #ccc; }

/* Contact */
.contact form { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.contact input, .contact textarea {
  padding: .5rem; border-radius: var(--radius); border: 1px solid #ccc;
}
.map iframe { border-radius: var(--radius); }

/* Footer */
.site-footer { text-align: center; padding: 1rem; font-size: .9rem; background: #fff; margin-top: 2rem; }

/* Social media links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .5rem;
}

.social-links a {
  color: var(--text); /* icons inherit current text color */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a svg {
  width: 28px;
  height: 28px;
  transition: transform .3s ease, color .3s ease, fill .3s ease;
  fill: currentColor; /* dynamic color */
}

.social-links a:hover svg {
  transform: scale(1.2);
  color: var(--accent-dark); /* hover color */
  fill: currentColor;
}
/* Accessibility toggles */
.high-contrast { filter: contrast(1.15) saturate(1.05); }
.large-font { font-size: 1.125rem; }

/* Responsive */
@media(max-width:900px){ .product-grid{grid-template-columns:repeat(2,1fr);} }
@media(max-width:600px){
  .product-grid{grid-template-columns:1fr;}
  #mainNav{display:none;}
  .cart-preview{width:100%;}
}
