/* work sans */
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

/* prata */
@import url("https://fonts.googleapis.com/css2?family=Prata&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --orange-text: #dfb665;
  --dark-text: #434343;
  --dark: #2c3e50;
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  object-fit: cover;
}

/* reusable style */

.container {
  max-width: 1250px;
  margin-inline: auto;
  padding: 10px;
}

.line {
  background-color: #000;
  height: 5px;
  width: 200px;
  margin-top: 10px;
  margin-inline: auto;
}

/* reusable style end */
body {
  font-family: "Work Sans", sans-serif;
  color: var(--dark-text);
  line-height: 1.5;
  font-optical-sizing: auto;
}

body,
html {
  scroll-behavior: smooth;
}

h1 {
  font-family: "prata", "sans-serif";
}

nav {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.whatsapp-redirect {
  background-color: #25d366;
  padding: 14px;
  border-radius: 50%;
  box-shadow: 0px 0px 11px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  text-align: center;
  padding: 20px 0;
  margin-top: 50px;
}

footer a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: white;
}

nav .container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 80px;
  height: auto;
  border-radius: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 6px 12px;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #f0f0f0;
  color: #e74c3c;
}

.cart {
  position: relative;
}

.cart a {
  text-decoration: none;
  position: relative;
}

.cart img {
  width: 28px;
  height: auto;
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #ff4757;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}


/* Hamburger Menu Styles */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }

  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-container.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding: 0 20px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px;
    border-radius: 6px;
  }

  .cart {
    margin-top: 20px;
    padding: 0 20px;
    width: 100%;
  }
}

/* Add this for overlay when menu is open */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.menu-overlay.active {
  display: block;
}


@media (max-width: 768px) {
  h2 {
    margin-block: 30px;
  }

  .cart {
    top: 10px;
  }
}

@media (max-width: 500px) {
  nav ul {
    flex-wrap: wrap;
  }
}
