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

body {
  font-family: 'Lato', sans-serif;
  color: #2b2b2b;
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Fade-in for content photos as they load (hero, collections, product cards/gallery) */
.fade-img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fade-img.loaded {
  opacity: 1;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* Shared burgundy underline accent under every section heading */
.collections h2,
.best-sellers h2,
.shop-products h2,
.about-brand h2,
.testimonials h2,
.instagram-preview h2,
.contact-cta h2 {
  position: relative;
  padding-bottom: 14px;
}

.collections h2::after,
.best-sellers h2::after,
.shop-products h2::after,
.about-brand h2::after,
.testimonials h2::after,
.instagram-preview h2::after,
.contact-cta h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background-color: #7b1e3a;
}

/* ---------- Navigation bar ---------- */
.site-header {
  border-bottom: 1px solid #eee;
}

.navbar {
  padding: 20px 40px;
  position: relative;
}

.navbar-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.navbar-left {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
}

.search-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #2b2b2b;
  transition: color 0.2s ease;
}

.search-btn:hover {
  color: #b8860b;
}

.search-icon {
  width: 22px;
  height: 22px;
}

.search-input {
  display: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 14px;
  width: 160px;
}

.search-input.active {
  display: inline-block;
}

.search-suggestions {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  width: 260px;
  max-height: 320px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  z-index: 50;
}

.search-suggestions.active {
  display: block;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: #2b2b2b;
  font-size: 14px;
}

.search-suggestion-item:hover {
  background-color: #f7ede1;
}

.search-suggestion-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-suggestion-empty {
  padding: 10px 12px;
  font-size: 14px;
  color: #888;
}

.logo {
  display: flex;
  align-items: center;
  justify-self: center;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.icon-btn {
  display: flex;
  align-items: center;
  color: #2b2b2b;
  transition: color 0.2s ease;
}

.icon-btn:hover {
  color: #b8860b;
}

.nav-icon {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 32px;
  margin-top: 16px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #2b2b2b;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 1px;
  background-color: #7b1e3a;
  transition: width 0.25s ease, left 0.25s ease;
}

.nav-links a:hover {
  color: #b8860b; /* gold accent on hover */
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid #eee;
  background-color: #f7ede1;
  margin-top: 60px;
  padding: 30px 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-links a:hover {
  color: #b8860b;
}

/* ---------- Hamburger icon (mobile menu button) ---------- */
.hamburger {
  display: none; /* hidden on desktop; responsive.css shows it on small screens */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: #2b2b2b;
}

/* ---------- Hero banner ---------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  background: linear-gradient(135deg, #fdf6ec, #f7ede1);
  padding: 80px 40px;
}

.hero-content {
  flex: 1;
  max-width: 480px;
  text-align: left;
}

.hero-content h1 {
  font-size: 40px;
  margin-bottom: 16px;
  color: #2b2b2b;
}

.hero-content p {
  font-size: 18px;
  color: #555;
  margin-bottom: 28px;
}

.hero-image {
  flex: 1;
  max-width: 420px;
}

.hero-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  display: block;
}

.btn-primary {
  display: inline-block;
  background-color: #b8860b;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: #9c7209;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #b8860b;
  border: 1px solid #b8860b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 13px 32px;
  border-radius: 6px;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
  background-color: #b8860b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 134, 11, 0.35);
}

/* ---------- Featured Collections ---------- */
.collections {
  padding: 60px 40px;
  text-align: center;
}

.collections h2 {
  font-size: 28px;
  margin-bottom: 32px;
  color: #2b2b2b;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.collection-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

.collection-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.collection-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

/* ---------- Best Sellers ---------- */
.best-sellers {
  padding: 20px 40px 60px;
  text-align: center;
  background-color: #f7ede1;
}

.best-sellers h2 {
  font-size: 28px;
  margin-bottom: 32px;
  color: #2b2b2b;
}

/* ---------- Shop page (all products) ---------- */
.shop-products {
  padding: 60px 40px;
  text-align: center;
}

.shop-products h2 {
  font-size: 28px;
  margin-bottom: 32px;
  color: #2b2b2b;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2b2b2b;
}

.sort-control select {
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-family: inherit;
  font-size: 14px;
  color: #2b2b2b;
  background-color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-control select:hover {
  border-color: #b8860b;
}

.sort-control select:focus {
  outline: none;
  border-color: #7b1e3a;
}

.filter-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 14px;
  font-family: inherit;
  color: #2b2b2b;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: #b8860b;
}

.filter-btn.active {
  background-color: #7b1e3a;
  border-color: #7b1e3a;
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  display: block;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding-bottom: 16px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #f0e6d6; /* shows while the real image loads, or if it's missing */
  display: block;
  margin-bottom: 12px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image {
  transform: scale(1.06);
}

/* ---------- Loading skeleton (shown briefly while products.json loads) ---------- */
.skeleton-image,
.skeleton-line {
  background: linear-gradient(90deg, #f0e6d6 25%, #f7ede1 37%, #f0e6d6 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 4px;
}

.skeleton-image {
  width: 100%;
  height: 200px;
  margin-bottom: 12px;
  border-radius: 0;
}

.skeleton-line {
  height: 14px;
  margin: 0 16px 8px;
}

.skeleton-line.short {
  width: 40%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.product-card h3 {
  font-size: 16px;
  margin: 0 16px 6px;
  color: #2b2b2b;
}

.product-card .price {
  margin: 0 16px;
  color: #7b1e3a;
  font-weight: bold;
}

/* ---------- Product Details Page ---------- */
.product-details {
  display: flex;
  gap: 40px;
  padding: 60px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-gallery {
  flex: 1;
  min-width: 0;
}

.main-product-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  background-color: #f0e6d6;
  display: block;
}

.thumbnail-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.thumbnail-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumbnail-image:hover {
  opacity: 1;
}

.thumbnail-image.active {
  opacity: 1;
  border-color: #b8860b;
}

.product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.product-info .btn-primary {
  align-self: flex-start;
  margin-top: auto;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #2b2b2b;
}

.product-info .price {
  font-size: 22px;
  font-weight: bold;
  color: #7b1e3a;
  margin-bottom: 20px;
}

.product-details-heading {
  font-size: 18px;
  color: #2b2b2b;
  margin-bottom: 8px;
}

.product-description {
  line-height: 1.6;
  color: #555;
  margin-bottom: 24px;
}

/* ---------- About the Brand ---------- */
.about-brand {
  padding: 60px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-brand h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2b2b2b;
}

.about-brand p {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 20px 40px 60px;
  text-align: center;
  background-color: #f7ede1;
}

.testimonials h2 {
  font-size: 28px;
  margin-bottom: 32px;
  color: #2b2b2b;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.testimonial-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px 24px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: #2b2b2b;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 48px;
  color: #7b1e3a;
  opacity: 0.5;
  line-height: 1;
}

.placeholder-card {
  color: #999;
  font-style: italic;
}

/* ---------- Instagram Preview ---------- */
.instagram-preview {
  padding: 60px 40px;
  text-align: center;
}

.instagram-preview h2 {
  font-size: 28px;
  margin-bottom: 32px;
  color: #2b2b2b;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.instagram-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.instagram-grid img:hover {
  opacity: 0.8;
}

/* ---------- Contact CTA ---------- */
.contact-cta {
  padding: 60px 40px;
  text-align: center;
  background: linear-gradient(135deg, #fdf6ec, #f7ede1);
}

.contact-cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #2b2b2b;
}

.contact-cta p {
  font-size: 16px;
  color: #555;
  margin-bottom: 28px;
}

.contact-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Contact Page ---------- */
.contact-page {
  padding: 100px 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-page h1 {
  font-size: 34px;
  margin-bottom: 16px;
  color: #2b2b2b;
}

.contact-page p {
  font-size: 16px;
  color: #555;
  margin-bottom: 28px;
}

.contact-info {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #eee;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info a {
  color: #b8860b;
  text-decoration: none;
}

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