/* UNIQUE CART PAGE STYLE */
    .backlain-cart {
      max-width: 1100px;
      margin: 20px auto;
      font-family: 'Montserrat', sans-serif;
      color: #183544;
    }

    .backlain-cart-header {
      text-align: center;
      margin-bottom: 40px;
    }

    .backlain-cart-header h1 {
      font-size: 32px;
      margin-bottom: 8px;
    }

    .backlain-cart-header a {
      font-size: 14px;
      text-decoration: underline;
      color: #183544;
    }

    .backlain-cart-container {
      display: flex;
      justify-content: space-between;
      gap: 40px;
      align-items: flex-start;
    }

    /* Left side - cart item */
    .backlain-cart-item {
      display: flex;
      justify-content: space-between; /* LEFT vs price */
      align-items: flex-start;
      padding-bottom: 30px;
      margin-bottom: 20px;
    }

    .cart-left {
      display: flex;
      gap: 20px;
      flex: 1;
    }

    .backlain-cart-item img {
      width: 135px;
      height: 200px;
      object-fit: cover;
      border: 1px solid #ddd;
    }

    .left-details {
      display: flex;
      flex-direction: column;
      justify-content: space-between; /* pushes quantity/remove to bottom */
      flex: 1;
    }

    .left-details h3 {
      font-size: 16px;
      margin: 0 0 5px;
      font-weight: 600;
    }

    .left-details p {
      margin: 0 0 5px;
      font-size: 14px;
    }

    .bottom-left {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .backlain-quantity-control {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .backlain-quantity-control button {
      width: 30px;
      height: 30px;
      border: 1px solid #ccc;
      background: #fff;
      font-size: 18px;
      cursor: pointer;
    }

    .backlain-quantity-control span {
      display: inline-block;
      width: 40px;
      text-align: center;
      font-size: 16px;
      border-top: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
    }

    .backlain-remove-link {
      font-size: 12px;
      color: #183544;
      text-decoration: underline;
      cursor: pointer;
    }

    .backlain-cart-price {
      font-size: 16px;
      font-weight: 600;
      white-space: nowrap;
      align-self: flex-end; /* aligns with bottom-left content */
      margin-left: 20px;
    }

    /* Right side - summary */
    .backlain-cart-summary {
      flex: 1;
      background: #ecf0f3;
      padding: 25px;
      border: 1px solid #e4ecf3;
      font-size: 14px;
      min-height: 149px;
    }

    .backlain-summary-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
      font-size: 16px;
    }

    .backlain-checkout-btn {
      display: block;
      width: 100%;
      padding: 12px;
      background: transparent;
      border: 1px solid #183544;
      border-radius: 30px;
      text-align: center;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      margin-bottom: 15px;
      color: #183544;
    }

    .backlain-cart-summary p {
      font-size: 15px;
      color: #183544;
      line-height: 1.4;
      text-align: center;
    }


    /* Initial hidden state for cart items and summary */
.backlain-cart-item,
.backlain-cart-summary,
.backlain-cart-header {
  opacity: 0;
  transform: translateY(30px); /* start slightly below */
  transition: all 0.6s ease-out;
}

/* When in view */
.backlain-cart.visible .backlain-cart-item,
.backlain-cart.visible .backlain-cart-summary,
.backlain-cart.visible .backlain-cart-header {
  opacity: 1;
  transform: translateY(0); /* move to original position */
}


.cart-page .menu.show {
  max-height: 500px;
}


.empty-cart-layout {
  text-align: center;
  padding: 80px 20px;
  color: #1f3b4d;
}

.empty-cart-layout h1 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #1f3b4d;
}

.empty-cart-layout p {
  color: #444;
  font-size: 16px;
  margin-bottom: 8px;
}

.empty-cart-layout a {
  display: inline-block;
  color: #1f3b4d;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid #1f3b4d;
  transition: all 0.3s ease;
}

.empty-cart-layout a:hover {
  color: #000;
  border-color: #000;
}




    /* ================= RESPONSIVE CART ================= */
@media (max-width: 425px) {


  .left-details {
      width: 230px;
    }

  .cart-page .header {
    padding: 20px 0;
  }

  .cart-page .menu {
    max-height: 0;
    padding: 20px 30px;
  }

  .cart-page .close-btn {
    top: 28px;
    right: 24px;
  }

  .divider-mobile {
    display: block;
    height: 0.5px;
    background: #b7cedb;
    margin: 0 6%; /* wider margin for mobile */
    top: 20px;
  }

  .divider { display: none; } /* hide desktop divider */

  .backlain-cart {
   padding: 0px 6%;  
    }


  .backlain-cart-container {
    flex-direction: column;   /* stack vertically */
    gap: 20px;
  }

  .backlain-cart-item {
    flex-direction: column;   /* image & details stacked */
    align-items: center;
    text-align: center;
  }


  .backlain-remove-link {
      display: flex;
      justify-content: flex-start; /* push to the right */
    }
  

  .backlain-cart-item img {
    width: 120px;
    height: 180px;
  }



  .backlain-cart-summary {
    max-width: 100%;
    text-align: center;
    padding: 35px 10px;
    margin-top: 20px
  }

  .backlain-checkout-btn {
    font-size: 16px;
  }

  .backlain-cart-price {
     align-self: flex-end;
     font-size: 13px;
     margin-top: -42px
    }

   .left-details h3 {
      font-size: 13.5px;
      font-weight: 600;
      text-align: left;   /* or start */
    }

    .left-details p {
      margin: 0 0 5px;
      font-size: 12px;
      display: flex;
      justify-content: flex-start; /* push to the right */
    }
}


@media (max-width: 417px) {

   .left-details {
      width: 223px;
    }

  .backlain-cart-price {
     align-self: flex-end;
     font-size: 13px;
     margin-top: -42px
    }

   .left-details h3 {
      font-size: 13px;
      font-weight: 600;
    }

    .left-details p {
      margin: 0 0 5px;
      font-size: 14px;
      display: flex;
      justify-content: flex-start; /* push to the right */
    }

}


@media (max-width: 407px) {

   .left-details {
      width: 213px;
    }

  .left-details h3 {
      font-size: 12.5px;
      font-weight: 600;
    }

    .left-details p {
      font-size: 12.5px;
    }

    .backlain-cart-price {
     align-self: flex-end;
     font-size: 13px;
     margin-top: -42px
    }
  }

  @media (max-width: 390px) {

     .left-details {
      width: 195px;
    }

  .left-details h3 {
      font-size: 11.5px;
      font-weight: 600;
    }

    .left-details p {
      font-size: 11.5px;
    }

    .backlain-cart-price {
     align-self: flex-end;
     font-size: 12px;
     margin-top: -42px
    }

}

@media (max-width: 383px) {
   .left-details {
      width: 185px;
    }

  .left-details h3 {
      font-size: 11px;
      font-weight: 600;
    }

    .left-details p {
      font-size: 11px;
    }

    .backlain-cart-price {
     align-self: flex-end;
     font-size: 10.5px;
     margin-top: -42px
    }

}
