* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
}

.navbar {
  width: 100%;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
  margin-top: 3.5px;
  margin-bottom: 2px;
}
a{
  text-decoration: none;
  color:inherit;
  cursor:pointer;
}
a:visited {
  color: inherit;        
}
.logo {
  display: flex;
  gap: 1rem;
  text-align: center;
  cursor: pointer;
  margin-right: 30px;
}
.shoppingbag{
  display: flex;
  gap: 1rem;
  height: 24px;
}
.navitems {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  align-items: center;
}

.shoppingbag {
  display:flex;
}

.hamburger {
  display: none;
}

.pagehead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 5%;
}

.pagehead img {
  width: 30px;
  height: 35px;
  cursor: pointer;
}

.pagehead h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .navitems {
    display: none;
  }
  .hamburger{
    display: flex;
    align-items: center;
  }
}
@media (min-width: 481px) {
  .navitems {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 2rem;
}

.navitems a,
.navitems div {
  text-decoration: none;
  color: inherit;
}

.navlink p {
  margin: 0;
}

.navlink:hover p {
  text-decoration: underline;
  cursor: pointer;
}

  .hamburger {
    display: none;
  }
}
@media (max-width: 600px) {
  .logo h1 {
    font-size: 1.5rem;
  }
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  background-color: #fafafa;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.item-details {
  flex: 1;
}

.item-details h2 {
  font-size: 1rem;
  font-weight: 600;
}

.price {
  margin: 0.3rem 0;
  color: #555;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  background-color: #eee;
  border: none;
  font-size: 1.2rem;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 5px;
}

.qty-btn:hover {
  background-color: #ddd;
}

.quantity input {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.3rem;
}

.remove-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 0.9rem;
}

.remove-btn:hover {
  color: #e74c3c;
}
.continue-shopping {
  text-align: center;
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  background-color: #f9f9f9;
}

.continue-shopping p {
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.continue-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.continue-btn {
  text-decoration: none;
  color: #000000;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 2px solid black;
}

.continue-btn:hover {
  background-color: #2a1a12;
  color: #fff;
}

.order-summary {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  background-color: #fafafa;
  height: fit-content;
}

.order-summary h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.summary-item,
.summary-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-total {
  font-weight: 700;
  border-top: 1px solid #ccc;
  padding-top: 0.8rem;
}

.checkout-btn {
  margin-top: 1rem;
  width: 100%;
  background-color: #66422E;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.checkout-btn:hover {
  background-color: #2a1a12;
}
.cart-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #eee;
  color: #777;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .cart-container {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item img {
    width: 100%;
    height: auto;
  }

  .order-summary {
    margin-top: 2rem;
  }
}