/* ===============================
   MAIN CART – BASE
================================ */
.loc {
  width: 100%; 
  margin-top: 8px;
  padding: 8px;
}
.prevBtn, .nextBtn {
  width: auto;
  cursor: pointer;
}
.cart-page {
  padding: 60px 0;
}

.cart-title {
  font-size: 18px;
  margin-bottom: 10px;
  color: #000;
}

.divider {
  height: 1px;
  background: #000;
  margin: 16px 0;
}

/* ===============================
   CART LAYOUT (PRODUCT STATE)
   ✅ FIRST IMAGE (product in cart)
================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
}

/* LEFT SIDE */
.cart-left {
  width: 100%;
}

/* PRODUCT ROW */
.cart-item-row {
  display: grid;
  grid-template-columns: 120px 1fr 140px 120px 40px;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}

.cart-image img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}

.cart-details p:first-child {
  font-size: 14px;
  margin-bottom: 6px;
}

.cart-details p:last-child {
  font-size: 14px;
}

.cart-qty {
  display: flex;
  border: 1px solid #000;
  width: 110px;
  justify-content: space-between;
}

.cart-qty button {
  width: 30px;
  background: #fff;
  border: none;
  cursor: pointer;
}

.cart-qty span {
  width: 40px;
  text-align: center;
  line-height: 30px;
}

.cart-line-price {
  text-align: right;
  font-size: 14px;
}

.cart-remove {
  cursor: pointer;
  text-align: right;
}

/* ===============================
   RIGHT SIDE – ORDER SUMMARY
================================ */
.cart-right h3 {
  font-size: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 10px 0;
}

.summary-location {
  font-size: 13px;
  text-decoration: underline;
  margin-bottom: 12px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  margin: 20px 0;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid #000;
  background: #fff;
  margin-bottom: 12px;
}
.checkout-btn:hover{
    background: #000;
    color: #fff;
    transition: background 0.3s ease, color 0.3s ease;
}
.paypal-btn,
.paylater-btn {
  width: 100%;
  padding: 10px;
  border: none;
  background: #ffc439;
  margin-bottom: 10px;
  position: relative;
}
.paypal-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.secure-text {
  text-align: center;
  font-size: 13px;
}

/* ===============================
   EMPTY CART STATE
   ✅ SECOND IMAGE (cart empty)
================================ */
/* =========================
   EMPTY CART STATE ONLY
   ========================= */

/* Wrapper that holds main cart */
.main-cart-wrapper {
  min-height: calc(100vh - 180px);
  position: relative;
}
.empty-inner{
    text-align: center;
    margin: 150px;
}

/* Hide right column when cart is empty */
.cart-empty .order-summary {
  display: none !important;
}

/* Center empty cart content perfectly */
.cart-empty .cart-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

/* Empty cart text block */
.cart-empty .empty-cart {
  text-align: center;
}

/* CART IS EMPTY text */
.empty-inner h3 {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: #000;
}

/* Continue browsing link */
.cart-empty .empty-cart a {
  font-size: 14px;
  text-decoration: underline;
  color: #000;
  cursor: pointer;
}

/* Keep top divider exactly same */
.cart-header {
  border-bottom: 1px solid #000;
  padding-bottom: 14px;
  margin-bottom: 0;
}

/* Bottom divider line */
.cart-footer-divider {
  border-top: 1px solid #000;
  margin-top: 60px;
}

/* ===============================
   PROMO + NOTE (UNCHANGED)
================================ */
.cart-extras {
  margin-top: 30px;
  font-size: 14px;
}

.promo-toggle,
.note-toggle {
  cursor: pointer;
  margin-bottom: 10px;
}

.promo-box,
.note-box {
  display: none;
  margin-top: 10px;
}

.promo-box input {
  width: 240px;
  padding: 10px;
  border: 1px solid #000;
}

.promo-box button {
  padding: 10px 18px;
  margin-left: 10px;
}

.promo-box.error input {
  border-color: red;
}

.promo-error {
  display: none;
  color: red;
  margin-top: 8px;
}

.promo-box.error .promo-error {
  display: block;
}

.note-box textarea {
  width: 260px;
  height: 90px;
  padding: 12px;
  border: 1px solid #000;
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9;
}

.modal-box {
  background: #fff;
  padding: 20px;
  width: 320px;
  position: relative;
}

.close {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}


#openLocation, #currentLocation {
  font-size: 15px;
}
#openLocation:hover, #currentLocation:hover{
    text-decoration: underline;
    color: var(--heading-color);
    opacity: 0.7;
}
.paypal-btn::before, .paylater-btn::before{
    content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.paypal-btn:hover::before, .paylater-btn:hover::before{
    background: rgba(0,0,0,0.1);
}