/* General Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fefefe;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #1a1a1a, #444);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* Logo Styling */
.logo {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ff6347;
  text-decoration: none;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease-in-out;
}

.logo:hover {
  color: #ffdf80;
}

.logo-highlight {
  color: #ffdf80;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  transition: all 0.3s ease-in-out;
}

.nav-menu .nav-item {
  position: relative;
}

.nav-menu .nav-link {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}

.nav-menu .nav-link:hover {
  background-color: #ff6347;
  color: #fff;
  transform: scale(1.1);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #f7f7f7, #eaeaea);
  color: #333;
  list-style: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 15px 0;
  z-index: 999;
  min-width: 200px; /* Ensures a consistent width */
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown Links */
.dropdown-menu .dropdown-link {
  padding: 12px 20px;
  display: block;
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  font-weight: 600;
  border-left: 3px solid transparent; /* Decorative border effect */
  transition: all 0.3s ease-in-out;
}

.dropdown-menu .dropdown-link:hover {
  background: linear-gradient(135deg, #ff7f50, #ff6347);
  color: #fff;
  border-radius: 8px;
  border-left: 3px solid #fff;
  transform: scale(1.05); /* Subtle hover animation */
}

/* Dropdown Styling for Small Screens */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    box-shadow: none;
    padding: 10px;
    border-radius: 8px;
    opacity: 1; /* Always visible on small screens */
    transform: none;
  }
  .dropdown-menu .dropdown-link {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
}

/* Buttons */
.nav-buttons {
  display: flex;
  gap: 15px;
}

.nav-button {
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-button {
  background-color: transparent;
  border: 2px solid #ff6347;
  color: #ff6347;
}

.signup-button {
  background-color: #ff6347;
  color: #fff;
  border: 2px solid #ff6347;
}

.nav-button:hover {
  transform: scale(1.1);
  background-color: #ffdf80;
  color: #333;
  border-color: #ffdf80;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
}

@media (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
    background-color: #333;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
  }

  .nav-menu.active {
    height: auto;
    padding-bottom: 10px;
  }

  .nav-item {
    text-align: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-buttons {
    display: none;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.5rem;
  }

  .nav-menu .nav-link {
    font-size: 0.9rem;
  }
}
/* Contact Modal Styling */
.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.contact-modal-content {
  background: #ffffff;
  border-radius: 10px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

.contact-modal-content h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.contact-modal-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.contact-modal-content .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-modal-content input,
.contact-modal-content textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
}

.contact-modal-content input:focus,
.contact-modal-content textarea:focus {
  border-color: #d4af37; /* Gold */
  box-shadow: 0 0 5px rgba(212, 175, 55, 0.7);
}

.contact-modal-content button {
  background: #d4af37; /* Gold */
  color: #ffffff;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-modal-content button:hover {
  background: #b69630;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #d4af37; /* Gold */
}

/* Modal Fade-In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .contact-modal-content {
    padding: 1.5rem;
  }

  .contact-modal-content h2 {
    font-size: 1.8rem;
  }

  .contact-modal-content input,
  .contact-modal-content textarea {
    font-size: 0.9rem;
  }
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  height: 100vh;
  background-image: url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.highlight {
  color: #f9a825;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.cta-button {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1c1c1c;
  background-color: #f9a825;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #d18800;
  transform: scale(1.05);
}

/* Filters & Sorting */
.filters-sorting {
  display: flex;
  justify-content: space-between; /* Aligns child elements with space between */
  align-items: center; /* Aligns items vertically in the center */
  padding: 20px 30px; /* Adds spacing inside the element */
  margin: 20px auto; /* Centers the element and adds vertical margin */
  background: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
  border-radius: 15px; /* Rounds the corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Adds a soft shadow */
  gap: 20px; /* Creates spacing between child elements */
}


.filter-section,
.sort-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: bold;
  color: #444;
  font-size: 1rem;
}

.filter-dropdown {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-dropdown:hover,
.filter-dropdown:focus {
  border-color: #ff7f50;
  outline: none;
  box-shadow: 0 0 12px rgba(255, 127, 80, 0.5);
}

/* Hover Effects */
.filter-dropdown:hover {
  cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeIn 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .filters-sorting {
    flex-direction: column;
    gap: 15px;
  }

  .filter-section,
  .sort-section {
    justify-content: space-between;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 10px 20px;
  }

  .filters-sorting {
    padding: 15px;
  }

  .filter-label {
    font-size: 0.9rem;
  }

  .filter-dropdown {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f7fa, #e4e8ed);
}

.product-card {
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.product-info {
  padding: 20px;
  background: #fdfdfd;
}

.product-info h3 {
  font-size: 1.4rem;
  color: #333333;
  margin-bottom: 10px;
  font-weight: 700;
}

.product-info p {
  font-size: 1.2rem;
  color: #e74c3c;
  margin-bottom: 20px;
  font-weight: bold;
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #e67e22, #d35400);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-card img {
    height: 200px;
  }

  .product-info h3 {
    font-size: 1.2rem;
  }

  .product-info p {
    font-size: 1rem;
  }

  .add-to-cart-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/* Footer Styling */
.footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #f39c12;
  text-transform: uppercase;
}

.footer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ccc;
}

.footer-about p {
  text-align: justify;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #f39c12;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #e67e22;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons a {
  text-decoration: none;
  color: #f39c12;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #e67e22;
}

.footer-newsletter form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.footer-newsletter input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  outline: none;
}

.footer-newsletter button {
  padding: 10px;
  background-color: #f39c12;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.footer-newsletter button:hover {
  background-color: #e67e22;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #333;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom strong {
  color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}