/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Raleway:wght@300;400;500;600&display=swap');

/* Variables */
:root {
  --primary: #4c5c68;
  --secondary: #c9a45c;
  --dark: #2b2b2b;
  --light: #f5f5f5;
  --accent: #8a2f2f;
  --gray: #dcdcdc;
  --off-white: #fcfaf7;
}

/* Base Styles */
body {
  font-family: 'Raleway', sans-serif;
  color: var(--dark);
  background-color: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary);
  text-decoration: none;
}

p {
  margin-bottom: 1.2rem;
}

.btn {
  border-radius: 0;
  padding: 0.6rem 1.5rem;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--dark);
  border-color: var(--dark);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--light);
}

.btn-secondary:hover {
  background-color: #b89548;
  border-color: #b89548;
  color: var(--light);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: var(--light);
}

/* Navigation */
.navbar {
  background-color: var(--off-white);
  border-bottom: 1px solid var(--gray);
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary);
}

.navbar-brand span {
  color: var(--secondary);
}

.navbar-toggler {
  border: none;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--secondary);
}

/* Hero Section */
.hero {
  height: 80vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://via.placeholder.com/1920x1080?text=Vintage+Scooters');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  display: inline-block;
  padding-bottom: 0.5rem;
  font-size: 2.5rem;
}

.section-title h2:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100px;
  height: 3px;
  background-color: var(--secondary);
  transform: translateX(-50%);
}

/* About Section */
.about-img {
  position: relative;
}

.about-img:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 5px solid var(--secondary);
  top: 20px;
  left: 20px;
  z-index: -1;
}

.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Product Cards */
.product-card {
  margin-bottom: 2rem;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-card .card-img-top {
  height: 250px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-card .card-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-card .btn {
  margin-top: 1rem;
}

/* Product Detail */
.product-detail {
  padding: 3rem 0;
}

.product-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.product-description {
  margin-bottom: 2rem;
}

.feature-list {
  margin-bottom: 2rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li:before {
  content: '•';
  color: var(--secondary);
  position: absolute;
  left: 0;
}

.gallery-container {
  margin-bottom: 2rem;
}

.main-image {
  margin-bottom: 1rem;
}

.main-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.thumbnail-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
}

.thumbnail {
  flex: 0 0 auto;
  width: 100px;
  height: 80px;
  cursor: pointer;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
  border-color: var(--secondary);
}

/* Contact Form */
.contact-form {
  background-color: white;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-control {
  border-radius: 0;
  border: 1px solid var(--gray);
  padding: 0.8rem;
  margin-bottom: 1rem;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--secondary);
}

/* Spare Parts Section */
.parts-category {
  margin-bottom: 3rem;
}

.parts-category h3 {
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 0.5rem;
}

.parts-list {
  list-style-type: none;
  padding-left: 0;
}

.parts-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: white;
  padding: 3rem 0;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--secondary);
}

.footer-links {
  list-style-type: none;
  padding-left: 0;
}

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

.footer-links a {
  color: var(--gray);
}

.footer-links a:hover {
  color: var(--secondary);
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  text-align: center;
}

/* Media Queries */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .about-img:after {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
  }
  
  .product-card .card-img-top {
    height: 200px;
  }
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 80%;
  max-height: 80vh;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  padding: 10px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease-in;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 2rem;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin: 3rem auto;
  max-width: 600px;
}

.success-message .icon {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 1rem;
}
