/* Cart Hero/Banner Section */
.cart-hero {
  background-image: url('../images/cart-hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  position: relative;
  height: 50vh;
  min-height: 350px;
  max-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.cart-hero .container {
  position: relative;
  z-index: 2;
}

.cart-hero .hero-content {
  text-align: center;
  color: #fff;
  padding-top: 120px;
}

.cart-hero .hero-title {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--fontFamily-forum);
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cart-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-top: 15px;
}

.cart-hero .breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.cart-hero .breadcrumb a:hover {
  color: var(--gold-crayola);
}

.cart-hero .breadcrumb span:last-child {
  color: var(--gold-crayola);
  font-weight: 600;
}

.cart-hero .breadcrumb span:not(:last-child) {
  color: rgba(255, 255, 255, 0.5);
}

/* Header Cart Icon */
.cart-icon-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  margin-right: 20px;
  transition: color 0.3s ease;
}

.cart-icon-link:hover {
  color: var(--gold-crayola);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: #e74c3c;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Section */
.cart-section {
  padding: 80px 0;
  background-color: #f5f0e8;
  min-height: 60vh;
}

.cart-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* Cart Items Wrapper */
.cart-items-wrapper {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #eee;
  background-color: #faf8f5;
}

.cart-title {
  font-size: 2.5rem;
  font-family: var(--fontFamily-forum);
  color: #2b1e14;
  margin: 0;
}

.cart-item-count {
  font-size: 1.5rem;
  color: #888;
}

/* Cart Items */
.cart-items {
  padding: 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.3s ease;
}

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

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

.item-info {
  flex: 1;
}

.item-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2b1e14;
  margin: 0 0 5px 0;
}

.item-price {
  font-size: 1.5rem;
  color: #888;
  margin: 0;
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  background-color: #f5f0e8;
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background-color: transparent;
  color: #2b1e14;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background-color: var(--gold-crayola);
  color: #fff;
}

.quantity {
  width: 45px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2b1e14;
}

/* Item Total */
.item-total {
  min-width: 80px;
  text-align: right;
}

.item-total span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e74c3c;
}

/* Delete Button */
.delete-btn {
  width: 40px;
  height: 40px;
  border: none;
  background-color: #fee;
  color: #e74c3c;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-btn:hover {
  background-color: #e74c3c;
  color: #fff;
}

/* Empty Cart */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 30px;
  text-align: center;
}

.empty-cart i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 1.5rem;
  font-family: var(--fontFamily-forum);
  color: #2b1e14;
  margin-bottom: 10px;
}

.empty-cart p {
  font-size: 1rem;
  color: #888;
  margin-bottom: 30px;
}

.browse-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background-color: var(--gold-crayola);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.browse-menu-btn:hover {
  background-color: #a08060;
  color: #fff;
  transform: translateY(-2px);
}

/* Cart Summary */
.cart-summary-wrapper {
  position: sticky;
  top: 120px;
}

.cart-summary {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

.summary-title {
  font-size: 2.5rem;
  font-family: var(--fontFamily-forum);
  color: #2b1e14;
  margin: 0 0 25px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 1.5rem;
  color: #666;
}

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2b1e14;
  padding: 15px 0;
}

.summary-row.total span:last-child {
  color: #e74c3c;
}

.summary-divider {
  height: 1px;
  background-color: #eee;
  margin: 10px 0;
}

.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 30px;
  background-color: var(--gold-crayola);
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
}

.checkout-btn:hover {
  background-color: #a08060;
  color: #fff;
  transform: translateY(-2px);
}

.continue-shopping {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px;
  color: #888;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.continue-shopping:hover {
  color: var(--gold-crayola);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cart-container {
    grid-template-columns: 1fr 350px;
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .cart-hero {
    height: 45vh;
    min-height: 300px;
    max-height: 400px;
  }

  .cart-hero .hero-title {
    font-size: 3rem;
  }

  .cart-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cart-summary-wrapper {
    position: static;
  }

  .cart-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .cart-hero {
    height: 40vh;
    min-height: 280px;
    max-height: 350px;
  }

  .cart-hero .hero-title {
    font-size: 2.5rem;
  }

  .cart-hero .breadcrumb {
    font-size: 0.9rem;
  }

  .cart-section {
    padding: 50px 0;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }

  .item-controls {
    width: 100%;
    justify-content: space-between;
  }

  .cart-header {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .cart-hero {
    height: 35vh;
    min-height: 250px;
    max-height: 300px;
  }

  .cart-hero .hero-title {
    font-size: 2rem;
  }

  .cart-hero .breadcrumb {
    font-size: 0.8rem;
  }

  .cart-section {
    padding: 40px 0;
  }

  .cart-title {
    font-size: 1.3rem;
  }

  .item-controls {
    gap: 15px;
  }

  .qty-btn {
    width: 35px;
    height: 35px;
  }

  .quantity {
    width: 35px;
    font-size: 1rem;
  }

  .item-total span {
    font-size: 1.1rem;
  }

  .delete-btn {
    width: 35px;
    height: 35px;
  }

  .cart-summary {
    padding: 20px;
  }

  .checkout-btn {
    padding: 15px 25px;
    font-size: 1rem;
  }
}

/* ================================================================
   Promo Code (cart summary sidebar)
   ================================================================ */

.promo-wrapper {
  margin: 16px 0;
}

.promo-input-row {
  display: flex;
  gap: 8px;
}

.promo-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 1.5rem;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}

.promo-input:focus {
  border-color: var(--gold-crayola);
}

.promo-btn {
  padding: 10px 16px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}

.promo-btn:hover {
  background: #333;
}

.promo-msg {
  font-size: 1.2rem;
  margin: 5px 0 0;
  min-height: 16px;
}

/* ================================================================
   Checkout Modal
   ================================================================ */

/* Overlay */
.checkout-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
}

/* Modal Box */
.checkout-modal-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  margin: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Modal Header */
.checkout-modal-header {
  background: #1a1a1a;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-modal-title {
  font-family: var(--fontFamily-forum);
  color: var(--gold-crayola);
  font-size: 2rem;
  margin: 0;
}

.checkout-modal-subtitle {
  color: #888;
  font-size: 1.5rem;
  margin: 4px 0 0;
}

.checkout-modal-close {
  background: none;
  border: none;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.checkout-modal-close:hover {
  color: #fff;
}

/* Modal Body */
.checkout-modal-body {
  padding: 28px 32px;
}

/* Step Indicator */
.checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.checkout-step {
  flex: 1;
  height: 4px;
  background: #eee;
  border-radius: 4px;
}

.checkout-step.active {
  background: var(--gold-crayola);
}

/* Section Labels */
.checkout-section-label {
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-crayola);
  margin: 0 0 14px;
}

.checkout-section-label--spaced {
  margin-top: 20px;
}

/* Form Grid */
.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.checkout-field {
  margin-bottom: 14px;
}

.checkout-field--spaced {
  margin: 14px 0;
}

/* Labels */
.checkout-label {
  font-size: 1.5rem;
  color: #555;
  display: block;
  margin-bottom: 4px;
}

.checkout-label-optional {
  color: #aaa;
}

/* Inputs */
.checkout-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 1.5rem;
  box-sizing: border-box;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}

.checkout-input:focus {
  border-color: var(--gold-crayola);
}

.checkout-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 1.5rem;
  box-sizing: border-box;
  outline: none;
  resize: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}

.checkout-textarea:focus {
  border-color: var(--gold-crayola);
}

/* Error Messages */
.checkout-err {
  display: none;
  color: #e53e3e;
  font-size: 1.2rem;
  margin: 3px 0 0;
}

/* Delivery Zone Notice */
.checkout-zone-notice {
  background: #fdf3e3;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-zone-icon {
  color: var(--gold-crayola);
  font-size: 14px;
  flex-shrink: 0;
}

.checkout-zone-text {
  font-size: 1.3rem;
  color: #666;
}

/* Payment Method Grid */
.checkout-payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.payment-option {
  padding: 14px 12px;
  border: 2px solid #ddd;
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.payment-option.selected {
  border-color: var(--gold-crayola);
  background: #fdf3e3;
}

.checkout-payment-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 6px;
}

.checkout-payment-icon--card {
  color: var(--gold-crayola);
}

.checkout-payment-icon--cod {
  color: #2d6a4f;
}

.checkout-payment-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  display: block;
}

.checkout-payment-sub {
  font-size: 1.3rem;
  color: #888;
}

/* Order Summary Box */
.checkout-summary-box {
  background: #faf8f4;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.checkout-summary-heading {
  font-weight: 700;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 12px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  color: #555;
  margin-bottom: 6px;
}

.checkout-summary-row--discount {
  display: none;
  color: #2d6a4f;
}

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

.checkout-summary-total-value {
  color: var(--gold-crayola);
}

.checkout-summary-divider {
  border-top: 1px solid #e8e0d5;
  margin: 10px 0;
}

/* Form Error */
.checkout-form-error {
  display: none;
  color: #e53e3e;
  font-size: 1.5rem;
  margin: 0 0 12px;
  text-align: center;
}

/* Confirm Button */
.checkout-confirm-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold-crayola);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

.checkout-confirm-btn:hover {
  background: #b8956a;
}

/* Secure Note */
.checkout-secure-note {
  text-align: center;
  margin: 14px 0 0;
  font-size: 1.3rem;
  color: #aaa;
}

.checkout-secure-note .fa-lock {
  margin-right: 4px;
}

/* Modal Responsive */
@media (max-width: 600px) {
  .checkout-modal-header {
    padding: 20px;
  }

  .checkout-modal-body {
    padding: 20px;
  }

  .checkout-grid-2 {
    grid-template-columns: 1fr;
  }

  .checkout-payment-grid {
    grid-template-columns: 1fr;
  }

  .checkout-modal-title {
    font-size: 1.8rem;
  }
}