
body, h1, h2, p, button,h3 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}
  body{
    background-color: aliceblue;
  }
  /* ------------------------------------------------------------------------------ */
.top-navbar {
  display: flex;
  justify-content: space-between;
  background-color: rgb(67 0 86);
  /* background-color: #333; */
  color: white;
  padding: 10px 20px;
}

.top-navbar a {
  color: white;
  margin-left: 10px;
  text-decoration: none;
}
.contact-info{
 margin-left: 10px; 
 padding-top: 2px;
}
.contact-info span {
  margin-right: 10px;
}
.social-icons{
  margin-right: 40px;
  font-size: 20px;
}

@media (max-width: 768px) {
  .contact-info{
    margin-left:10px; 
    display: inline-flex;
    flex-direction: column;
    font-size: 1rem;
    color: white;
  }
  .social-icons{
    /* margin-top: 100px; */
    margin-right:50px;
    font-size: 25px;
  }
}


header {
  background-color:#f4f3ee;
  color: black;
  /* padding:10px; */
}

.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

.navbar .logo a {
  color: black;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}


/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.menu-toggle i {
  color: black;
}

/* --------------------------------- */
.nav-links {
  display: flex;
  list-style-type: none;
  font-size: 1.2rem;
  padding-top: 1rem;
}

.nav-links li {
  margin: 0 20px;
  position: relative; /* Needed for the dropdown */
}

.nav-links a {
  font-size: 1.2rem;
  color: black;
  text-decoration: none;
  padding: 10px;
}

.nav-links a:hover {
  background-color: #f39c12;
  border-radius: 5px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background-color:black;
  list-style-type: none;
  padding: 10px 0;
  top: 100%;
  left: 0;
  width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-menu li {
  padding: 10px;
  text-align: left;
}

.dropdown-menu li a {
  color: #fff;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #f39c12;
  border-radius: 5px;
}

/* Show the dropdown when hovering */
.dropdown:hover .dropdown-menu {
  display: block;
}

.cart {
  position: relative;
}

.cart-icon {
  color: #333;
  font-size: 30px;
  text-decoration: none;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: #fff;
  border-radius: 50%;
  padding: 4px 10px;
  font-size: 12px;
}

.cart:hover {
  background-color: #f39c12;
  border-radius: 5px;
  cursor: pointer;
}
/* For small screens */
/* @media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 20px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .dropdown-menu {
    position: static;
    width: auto;
    box-shadow: none;
  }

  .cart {
    margin-top: 20px;
    text-align: center;
  }
} */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #f4f3ee;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    background-color: #f4f3ee;
    box-shadow: none;
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .navbar {
    justify-content: space-around;
    padding: 20px;
  }

  .cart {
    display: flex;
    align-items: center;
  }
  .cart-count {
    position: absolute;
    top: -5px;
    background-color: red;
    color: #fff;
    border-radius: 50%;
    padding: 4px 10px;
    font-size: 12px;
    right: 20px;
}
  
  .cart-icon {
    font-size: 24px;
    margin-left: 0px;
    margin-right: 30px;
  }
}

/* ----------------------------------------------------------------------------- */
.categories {
  /* margin-top: 30px; */
  padding: 0 50px;
  /* margin-bottom: 30px; */
  /* background-color: aliceblue; */
}

.categories h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: #3498db;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.product-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.product-card {
  background-color: #fff;
  width: 220px;
  margin: 10px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-card h3 {
  font-size: 20px;
  margin: 15px 0;
}

.product-card .rating {
  font-size: 14px;
  color: gold;
}

.product-card .price {
  font-size: 18px;
  margin: 15px 0;
}

.product-card .add-to-cart {
  padding: 8px 20px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product-card .add-to-cart:hover {
  background-color: #e67e22;
}

/* Cart Page */
.cart-page {
  margin: 30px;
  padding: 0 50px;
}

.cart-page table {
  width: 100%;
  border-collapse: collapse;
}

.cart-page th, .cart-page td {
  padding: 12px;
  text-align: center;
}

.cart-page th {
  background-color: #333;
  color: #fff;
}

.cart-page td img {
  width: 100px;
}

.cart-page .delete-btn {
  background-color: red;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.cart-page .delete-btn:hover {
  background-color: darkred;
}

.cart-page .quantity input {
  width: 40px;
  padding: 5px;
  text-align: center;
  border-radius: 5px;
}

/* Checkout Page */
.checkout-page {
  margin: 30px;
  padding: 0 50px;
}

.checkout-page h2 {
  font-size: 28px;
}

.checkout-page .total {
  font-size: 22px;
  margin-top: 20px;
  text-align: right;
}

.checkout-page button {
  padding: 10px 20px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.checkout-page button:hover {
  background-color: #2ecc71;
}

/* ------------------------------------------------------------------------------------------------------- */
footer {
  background-color:rgb(67 0 86);
  color: #fff;
  padding: 20px 20px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  padding: 10px;
}

.footer-section h3 {
 color: #ffc800;
  font-size: 18px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
}


.footer-section p,
.footer-section ul {
  font-size: 15px;
  line-height: 1.9;
  font-weight: bold;
  list-style: none;
}

.footer-section a {
  /* color: #fff;
  text-decoration: none; */
font-size: 15px;
  text-decoration: none;
  color: white;
  display: inline-block;
  line-height: 1;
  font-weight: bold;
  transition: 0.5s ease;

}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-section .social-icons a {
  font-size: 20px;
  display: inline-block;
  text-decoration: none;
  background-color: #373737;
  color: white;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  transition: 0.5s ease;
}

.footer-section .social-icons a:hover {
  color: #3498db;
}
hr{
  margin-top: 4%;
}
.footer-bottom {
 /* margin-top: 4%; */
  text-align: center;
  padding: 0px 0px;
  background-color: rgb(67 0 86);
}

.footer-bottom p {
  font-size: 15px;
  color: white;
}

#footer .credits{
  float: left;
  text-align: center;
  font-size: 13px;
}
#footer .credits a{
  color: #ffc800;
}
/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-section h3 {
    font-size: 16px;
  }

  .footer-section p, .footer-section ul {
    font-size: 13px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .footer-section h3 {
    font-size: 14px;
  }

  .footer-section p, .footer-section ul {
    font-size: 12px;
  }
}
