/* ==========================================================================
   Food Daddy - Cart Page Styles (cart.css)
   Matches Exact Mockup Design
   ========================================================================== */

/* ---------------- Hero Banner Section ---------------- */
.cart-hero-section {
  position: relative;
  min-height: 480px;
  padding: 140px 0 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #faf5ee;
  border-bottom: 1px solid #f2e9dc;
}

.cart-hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.cart-hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.cart-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(250, 245, 238, 0.95) 0%,
    rgba(250, 245, 238, 0.82) 38%,
    rgba(250, 245, 238, 0.35) 65%,
    rgba(250, 245, 238, 0.05) 85%
  );
  pointer-events: none;
}

.cart-hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cart-hero-content {
  flex: 1;
  max-width: 580px;
  z-index: 2;
}

.cart-hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #c67c26;
  margin-bottom: 8px;
  position: relative;
}

.cart-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0 0 12px;
}

.cart-script-title {
  font-family: 'Caveat', 'Satisfy', cursive;
  font-weight: 700;
  color: #c67c26;
  font-style: italic;
  display: inline-block;
  margin-left: 6px;
}

.cart-hero-desc {
  font-size: 1.05rem;
  color: #68645e;
  line-height: 1.5;
  margin-bottom: 18px;
}

.cart-breadcrumbs {
  font-size: 0.9rem;
  color: #9c958a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-breadcrumbs a {
  color: #8c5a21;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.cart-breadcrumbs a:hover {
  color: #c67c26;
  text-decoration: underline;
}

.cart-breadcrumbs .sep {
  color: #ccc;
  font-size: 0.85rem;
}

.cart-breadcrumbs .current {
  color: #555;
  font-weight: 600;
}

.cart-hero-visual {
  flex: 1;
  max-width: 440px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.cart-hero-img {
  max-width: 100%;
  height: auto;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08));
}

/* ---------------- Main Cart Section ---------------- */
.cart-main-section {
  background-color: #fdfbf9;
  padding: 40px 0 70px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: 32px;
  align-items: start;
}

/* ---------------- Left: Cart Items Card ---------------- */
.cart-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eee7dd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.cart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid #f2ece3;
}

.cart-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}

.cart-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fdf5ea;
  color: #c67c26;
}

.btn-clear-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #d32f2f;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-clear-cart:hover {
  background: #fde8e8;
  color: #b71c1c;
}

/* ---------------- Cart Items List ---------------- */
.cart-items-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid #f5efe8;
  transition: background 0.2s ease, opacity 0.3s ease;
}

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

.cart-item-row:hover {
  background-color: #faf8f5;
}

.cart-item-img-wrap {
  width: 88px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: #f4ede3;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.cart-item-desc {
  font-size: 0.84rem;
  color: #77726b;
  line-height: 1.4;
  margin: 0 0 6px;
  white-space: normal;
}

.cart-item-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: #c67c26;
}

/* Quantity controls */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfd8cc;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: #faf7f2;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}

.qty-btn:hover {
  background: #f2e3cb;
  color: #8c5a21;
}

.qty-val {
  min-width: 34px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}

/* Item Delete Button */
.btn-item-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  color: #d32f2f;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-item-delete:hover {
  background: #fde8e8;
  color: #b71c1c;
  transform: scale(1.05);
}

/* ---------------- Cart Card Bottom Actions ---------------- */
.cart-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: #faf7f2;
  border-top: 1px solid #f0eae1;
}

.btn-cart-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #ffffff;
  border: 1px solid #dcd5c9;
  border-radius: 10px;
  color: #8c5a21;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cart-secondary:hover {
  background: #ffffff;
  border-color: #c67c26;
  color: #c67c26;
  box-shadow: 0 4px 12px rgba(198, 124, 38, 0.12);
  transform: translateY(-1px);
}

/* ---------------- Right: Order Summary Card ---------------- */
.order-summary-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eee7dd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 26px 24px;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 22px;
}

.summary-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fdf5ea;
  color: #c67c26;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.96rem;
  color: #68645e;
}

.summary-row strong {
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
}

.summary-divider {
  height: 1px;
  background: #f0eae1;
  margin: 18px 0;
}

.summary-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.summary-total-label {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
}

.summary-total-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #c67c26;
}

/* Take Away Only Notice Box */
.takeaway-notice-box {
  background-color: #f0f8f2;
  border: 1px solid #d9edd7;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.takeaway-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  color: #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #c8e6c9;
}

.takeaway-text-box {
  flex: 1;
}

.takeaway-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1b5e20;
  margin: 0 0 3px;
}

.takeaway-desc {
  font-size: 0.82rem;
  color: #436946;
  line-height: 1.38;
  margin: 0;
}

/* Proceed to Checkout CTA */
.btn-proceed-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #c67c26;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(198, 124, 38, 0.28);
}

.btn-proceed-checkout:hover {
  background: #af6a1b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 124, 38, 0.38);
}

.btn-proceed-checkout .arrow-icon {
  transition: transform 0.2s ease;
}

.btn-proceed-checkout:hover .arrow-icon {
  transform: translateX(4px);
}

/* Security Note */
.secure-checkout-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #68645e;
  font-weight: 600;
}

.secure-icon {
  color: #c67c26;
}

/* Right Sidebar Accent (Good Food Happier People + Chillies & Basil) */
.cart-sidebar-accent-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: 100%;
}

.cart-sidebar-accent-img {
  width: 100%;
  max-width: 330px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.03));
  transition: transform 0.3s ease;
}

.cart-sidebar-accent-img:hover {
  transform: scale(1.02);
}

/* Empty Cart View */
.cart-empty-state {
  text-align: center;
  padding: 50px 20px;
  display: none;
}

.cart-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 12px;
  color: #c67c26;
}

.cart-empty-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 6px;
}

.cart-empty-desc {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 20px;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 991px) {
  .cart-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .cart-hero-section {
    min-height: 400px;
    padding: 125px 0 45px;
  }

  .cart-hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(250, 245, 238, 0.94) 0%,
      rgba(250, 245, 238, 0.88) 55%,
      rgba(250, 245, 238, 0.72) 100%
    );
  }

  .cart-hero-container {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .cart-sidebar-accent-wrap {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .cart-item-row {
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .cart-item-actions-group {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px dashed #f0eae1;
  }

  .cart-card-header,
  .cart-bottom-actions {
    padding: 16px;
  }

  .cart-bottom-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-cart-secondary {
    width: 100%;
    justify-content: center;
  }
}
