/* Reset & font styling */
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: #333;
  background-color: #fefefe;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 50px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #b08d57;
}


.hero {
  position: relative;
  background: url('assets/jewerly1.jpeg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 2rem;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); 
  z-index: -1;
}


.hero-content {
  max-width: 600px;
  margin: auto;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #b08d57;
  color: white;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s;
}

.hero-btn:hover {
  background-color: #a07c4d;
}

/* Products */
.product-section {
  padding: 4rem 2rem;
  background-color: #f9f5f0;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.category {
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.category:hover {
  transform: translateY(-5px);
}

.category-icon {
  font-size: 2.5rem;
  color: #d4af37; /* gold tone */
  margin-bottom: 0.5rem;
}


.footer-section {
  background-color: #fff8f0;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid #e0d6ca;
}

.footer-container h3 {
  font-size: 1.6rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.footer-container p {
  color: #666;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.social-icons a {
  color: #b08d57;
  font-size: 1.4rem;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #a0783d;
}

.footer-bottom {
  border-top: 1px solid #e8ddd0;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #999;
}
/* Common Styling for all product pages */
.product-section {
  padding: 2rem;
  background-color: #f9f9f9;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.product-item {
  background-color: #fff;
  border-radius: 10px;
  padding: 1rem;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.product-item p {
  font-weight: bold;
  color: #444;
  margin-top: 1rem;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #333;
  color: white;
}

/* Scroll to Top Button Styles */
.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #b08d57;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: none; /* Hidden by default */
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top-btn:hover {
  background-color: #a37d4a;
  transform: scale(1.1);
}

.scroll-to-top-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(176, 141, 87, 0.5); /* Focus ring */
}
/* ===================== Responsive Media Queries ===================== */

/* Tablets and small desktops (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 2.2rem;
  }

  .categories {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .product-grid {
    gap: 1rem;
  }
}

/* Tablets and large phones (max-width: 768px) */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero-content {
    max-width: 90%;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .categories {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .product-grid {
    flex-direction: column;
    align-items: center;
  }

  .product-item {
    width: 80%;
    max-width: 300px;
  }

  .footer-container h3 {
    font-size: 1.3rem;
  }

  .footer-container p {
    font-size: 0.95rem;
  }
}

/* Phones (max-width: 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }

  .logo {
    height: 40px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .category {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .product-item {
    width: 100%;
  }

  .scroll-to-top-btn {
    padding: 12px;
    font-size: 1.2rem;
  }

  .footer-container h3 {
    font-size: 1.1rem;
  }

  .footer-container p {
    font-size: 0.9rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}
