/* ======== Base Styles - Mobile First ======== */
body {
  font-family: "Arial", sans-serif;
  background-color: #f9f9f9;
  margin: 0;
}

h1 {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

/* ======== Cart Container - Wider Layout ======== */
#cart-container {
  display: flex;
  width: 100%;
  max-width: 1100px; /* Increased width */
  margin: 20px auto;
  padding: 20px;
}

/* ======== Cart Item Styling (Image on Left, Details on Right) ======== */
.cart-item {
  display: flex;
  align-items: center;
  gap: 20px; /* More spacing between image and details */
  padding: 15px;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.cart-item:last-child {
  border-bottom: none;
}

/* Product Image */
.product-image {
  width: 120px; /* Increased size */
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
}

/* Product Info - Side by Side */
.product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-name {
  font-size: 20px;
  font-weight: bold;
  color: #222;
}

.product-price {
  font-size: 18px;
  color: #555;
}

.product-details {
  font-size: 16px;
  color: #777;
}

/* ======== Quantity Controls ======== */
.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px;
  background: #f5f5f5;
}

.quantity-controls button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 6px 12px;
  transition: 0.2s ease-in-out;
}

.quantity-controls button:hover {
  background: #ddd;
  border-radius: 5px;
}

/* Remove Button */
.remove-item {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: red;
  padding: 5px;
  transition: 0.2s ease-in-out;
}

.remove-item:hover {
  color: darkred;
  transform: scale(1.1);
}

/* ======== Total Price ======== */
.total-price {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* ======== Subtotal Section ======== */
#subtotal {
  font-size: 22px;
  font-weight: bold;
  text-align: right;
  margin-top: 20px;
  color: #333;
}

/* ======== Buttons ======== */
.button {
  padding: 10px 14px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Continue Shopping */
.continue-shopping {
  display: inline-block;
  width: 200px;
  background: #00617B;
  color:white;
  border: 1px solid #00617B;
}

.continue-shopping:hover {
  background: #d49488;
  color: white;
  transform: scale(1.05);
}

/* Checkout Button */
.checkout {
  background: #d49488;
  color: white;
  border: 1px solid #c38276;
}

.checkout:hover {
  background: #c38276;
  transform: scale(1.05);
}
.clear-cart {
  width: 100px;
  background: #e6a597;
  color: #333;
  border: 1px solid #d49488;
}
.clear-cart:hover {
  background: #d49488;
  color: white;
  transform: scale(1.05);
}
.btn-di {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.cart-table th,
.cart-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.cart-table th {
  background-color: #006175;
  color: white;
}

.cart-table img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.cart-table button {
  padding: 5px 10px;
  cursor: pointer;
  border: none;
  background-color: white;
  color: white;
  border-radius: 5px;
}

.cart-table button:hover {
  background-color: #e6a597;
}

/* ======== Responsive Design for Tablets & Desktops ======== */
@media screen and (min-width: 768px) {
  #cart-container {
    max-width: auto; /* Increased width */
    padding: 25px;
  }

  .cart-item {
    flex-wrap: nowrap; /* Ensures items stay in a row */
  }
  .carrtdisplay {
    display: flex;
  }
  .product-image {
    width: 150px;
    height: 150px;
  }

  .product-name {
    font-size: 22px;
  }

  .product-price {
    font-size: 20px;
  }

  .quantity-controls button {
    font-size: 18px;
  }

  .total-price {
    font-size: 22px;
  }

  .button {
    font-size: 18px;
    padding: 12px 18px;
  }
}

body {
  margin: 0;
  padding-bottom: 60px;
  font-family: Arial, sans-serif;
}
@media (max-width: 1024px) {
  /* Tablets and smaller screens */
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }

  .bottom-nav .nav-item {
    flex: 1;
    text-align: center;
  }

  .bottom-nav .nav-item img {
    width: 30px; /* Adjust as needed */
    height: auto;
  }
}

@media (min-width: 1025px) {
  /* Hide on larger screens */
  .bottom-nav {
    display: none;
  }
}



@media (max-width: 768px) {
  a:hover {
    color: #006175 !important;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  a:hover {
    color: #006175 !important;
  }
}

/* .wishlist-icon {
    position: relative;
    display: inline-block;
  }
  
  .wishlist-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    display: none;
  } */