/* ============================================================
   Lake Norman Treasures – Main Stylesheet
   ============================================================ */

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* ---- HEADER / NAV ---- */
header {
  background: #2c3e50;
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.logo { font-size: 1.4rem; font-weight: bold; white-space: nowrap; }
.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  margin-left: 1.5rem;
}
.nav-links a:hover { color: #e74c3c; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}
.menu-toggle span {
  width: 30px;
  height: 3px;
  background: #fff;
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* ---- HERO ---- */
.hero-section {
  background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/CharlotteSkyline.jpg');
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  padding: 0 1rem;
}
/* For sub-pages the hero is smaller */
.hero-section.slim {
  height: 300px;
  background-size: cover;
  background-position: center;
}
.hero-section h1 { font-size: 3rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-section p  { font-size: 1.2rem; margin-bottom: 1.5rem; max-width: 700px; }

/* ---- BUTTONS ---- */
.btn {
  background: #e74c3c;
  color: #fff;
  padding: 0.8rem 1.8rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.2s;
}
.btn:hover { background: #c0392b; }
.btn-outline {
  background: transparent;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline:hover { background: #2c3e50; color: #fff; }

/* ---- SECTIONS ---- */
.section { padding: 3rem 10%; }
.section-alt { background: #f9f9f9; }
.section h2 { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; }
.text-center { text-align: center; }

/* ---- PRODUCT GRID (main page) ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.card {
  border: 1px solid #ddd;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.card h3 { margin-bottom: 0.75rem; color: #2c3e50; }
.card img { width: 250px; max-width: 100%; border-radius: 4px; margin-bottom: 0.75rem; }
.card p { color: #666; font-size: 0.95rem; }

/* ---- E-COMMERCE PRODUCT GRID ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: #ddd;
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f9f9f9;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #e74c3c;
}

.product-card-btn {
  font-size: 0.8rem;
  font-weight: bold;
  color: #3498db;
  text-decoration: none;
}

.product-card-btn:hover {
  text-decoration: underline;
}

/* ---- SUBCATEGORY FILTERS ---- */
.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  color: #555;
  font-weight: 500;
}

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

.filter-btn.active {
  background: #e74c3c;
  color: #fff;
  border-color: #e74c3c;
}

/* ---- ITEM DETAIL PAGE (RE-DESIGN) ---- */
.product-listing {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.main-image-container img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.thumbnail-rows {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border: 3px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail.active {
  border-color: #e74c3c;
  transform: scale(1.05);
}

.thumbnail:hover {
  border-color: #2c3e50;
}

.product-info-panel {
  position: relative;
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid #eee;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.product-info-panel h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-info-panel .price-tag {
  font-size: 2rem;
  font-weight: bold;
  color: #e74c3c;
  margin: 1rem 0;
  display: block;
}

.product-info-panel .product-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.product-info-panel .product-meta p {
  margin-bottom: 0.5rem;
}

.product-info-panel .cta-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-contact {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  display: block;
}

.btn-contact:hover {
  background: #34495e;
}

.btn-secondary {
  background: transparent;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  display: block;
}

.btn-secondary:hover {
  background: #f8f9fa;
}

.product-description {
  grid-column: 1 / -1;
  margin-top: 3rem;
  padding: 2.5rem;
  background: #fcfcfc;
  border-radius: 20px;
  border: 1px solid #eee;
}

.product-description h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.product-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  max-width: 80ch;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .product-listing {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-info-panel {
    position: static;
    margin-top: 2rem;
  }
}


/* ---- FOOTER ---- */
footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}
footer a { color: #e74c3c; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
    position: relative;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2c3e50;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    margin: 0;
    font-size: 1.1rem;
  }
  .hero-section {
    height: 500px;
    padding: 0 1.5rem;
  }
  .hero-section.slim {
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  .section {
    padding: 3rem 5%;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card img {
    width: 100%;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px;
  }
  .product-card-body {
    padding: 12px;
  }
  .product-card-title {
    font-size: 0.9rem;
    height: 2.4em;
  }
  .product-card-price {
    font-size: 1.1rem;
  }
  .product-card-category {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 400px;
  }
  .hero-section h1 {
    font-size: 1.8rem;
  }
  .hero-section p {
    font-size: 0.9rem;
  }
  .section h2 {
    font-size: 1.5rem;
  }
}
