/* Order Page Styles\r\n   Tasks:\r\n   1) Two-column cart + summary layout\r\n   2) Quantity controls + remove actions\r\n   3) Order type, customer details, and submit actions\r\n   4) Mobile fallback for stacked layout\r\n*/

/* Styles for: .order-header */
.order-header {
  --order-header-image: url('../images/ourcafeground.jpeg');
  margin-top: 70px;
  background-image: var(--order-header-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.order-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

/* Styles for: .order-header h1 */
.order-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* Styles for: .cart-section */
.cart-section {
  padding: 60px 20px;
  background: var(--cream);
  min-height: 60vh;
}

/* Styles for: .cart-layout */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Left column: cart list and item controls */
/* Styles for: .cart-items-container */
.cart-items-container {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
}

/* Styles for: .cart-items-container h2 */
.cart-items-container h2 {
  color: var(--primary-green);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

/* Styles for: .cart-items */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Styles for: .cart-item */
.cart-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--cream);
  border-radius: 10px;
  transition: all 0.3s;
}

/* Styles for: .cart-item:hover */
.cart-item:hover {
  box-shadow: 0 5px 15px var(--shadow);
}

/* Styles for: .item-details */
.item-details {
  flex: 1;
}

/* Styles for: .item-name */
.item-name {
  color: var(--primary-green);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 5px;
}

/* Styles for: .item-category */
.item-category {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Styles for: .item-price */
.item-price {
  color: var(--wood-brown);
  font-size: 1.2rem;
  font-weight: bold;
}

/* Styles for: .item-actions */
.item-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

/* Styles for: .quantity-controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--white);
  padding: 8px 15px;
  border-radius: 25px;
  box-shadow: 0 2px 10px var(--shadow);
}

/* Styles for: .quantity-btn */
.quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--primary-green);
  background: var(--white);
  color: var(--primary-green);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Styles for: .quantity-btn:hover */
.quantity-btn:hover {
  background: var(--primary-green);
  color: var(--white);
}

/* Styles for: .quantity-display */
.quantity-display {
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 30px;
  text-align: center;
}

/* Styles for: .remove-btn */
.remove-btn {
  background: #f44336;
  color: var(--white);
  border: none;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

/* Styles for: .remove-btn:hover */
.remove-btn:hover {
  background: #d32f2f;
  transform: scale(1.05);
}

/* Empty-cart visual fallback block */
/* Styles for: .empty-cart */
.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

/* Styles for: .empty-icon */
.empty-icon {
  font-size: 5rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

/* Styles for: .empty-cart h3 */
.empty-cart h3 {
  color: var(--primary-green);
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Styles for: .empty-cart p */
.empty-cart p {
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Right column: pricing breakdown and totals */
/* Styles for: .order-summary-container */
.order-summary-container {
  position: sticky;
  top: 90px;
  height: fit-content;
}

/* Styles for: .order-summary */
.order-summary {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
}

/* Styles for: .order-summary h2 */
.order-summary h2 {
  color: var(--primary-green);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

/* Styles for: .summary-row */
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: #666;
  font-size: 1.1rem;
}

/* Styles for: .summary-row.total */
.summary-row.total {
  color: var(--primary-green);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Styles for: .summary-divider */
.summary-divider {
  height: 2px;
  background: var(--cream);
  margin: 15px 0;
}

/* Radio-style order mode selector */
/* Styles for: .order-type-section */
.order-type-section {
  margin-top: 30px;
}

/* Styles for: .order-type-section h3 */
.order-type-section h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Styles for: .order-type-options */
.order-type-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Styles for: .order-type-option */
.order-type-option {
  cursor: pointer;
}

/* Styles for: .order-type-option input[type="radio"] */
.order-type-option input[type="radio"] {
  display: none;
}

/* Styles for: .option-content */
.option-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s;
}

/* Styles for: .order-type-option input[type="radio"]:checked + .option-content */
.order-type-option input[type="radio"]:checked + .option-content {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

/* Styles for: .option-icon */
.option-icon {
  font-size: 1.5rem;
}

/* Styles for: .option-text */
.option-text {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Customer info form fields */
/* Styles for: .customer-details-section */
.customer-details-section {
  margin-top: 30px;
}

/* Styles for: .customer-details-section h3 */
.customer-details-section h3 {
  color: var(--primary-green);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Styles for: .form-group */
.form-group {
  margin-bottom: 15px;
}

.form-group input,
/* Styles for: .form-group textarea */
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--light-green);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
/* Styles for: .form-group textarea:focus */
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

/* Styles for: .form-group textarea */
.form-group textarea {
  resize: vertical;
}

/* Primary order action buttons */
/* Styles for: .order-actions */
.order-actions {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Styles for: .btn-block */
.btn-block {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
}

/* Order page responsive breakpoints */
/* Desktop-to-tablet transition (<= 1200px): reduce spacing density. */
/* At-rule block: @media (max-width: 1200px) */
@media (max-width: 1200px) {
/* Styles for: .cart-layout */
  .cart-layout {
    gap: 22px;
  }

  .cart-items-container,
/* Styles for: .order-summary */
  .order-summary {
    padding: 24px;
  }
}

/* Tablet breakpoint (<= 992px): keep summary below cart for readability. */
/* At-rule block: @media (max-width: 992px) */
@media (max-width: 992px) {
/* Styles for: .order-header */
  .order-header {
    padding: 46px 16px;
  }

/* Styles for: .cart-section */
  .cart-section {
    padding: 34px 14px;
  }

/* Styles for: .cart-layout */
  .cart-layout {
    grid-template-columns: 1fr;
  }

/* Styles for: .order-summary-container */
  .order-summary-container {
    position: static;
  }
}

/* Existing breakpoint retained for medium mobile landscape/tablet. */
/* At-rule block: @media (max-width: 968px) */
@media (max-width: 968px) {
/* Styles for: .cart-layout */
  .cart-layout {
    grid-template-columns: 1fr;
  }

/* Styles for: .order-summary-container */
  .order-summary-container {
    position: static;
  }
}

/* Mobile portrait (<= 768px). */
/* At-rule block: @media (max-width: 768px) */
@media (max-width: 768px) {
/* Styles for: .order-header h1 */
  .order-header h1 {
    font-size: 2rem;
  }

/* Styles for: .cart-items-container */
  .cart-items-container {
    padding: 20px;
  }

/* Styles for: .cart-item */
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

/* Styles for: .item-actions */
  .item-actions {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

/* Styles for: .order-summary */
  .order-summary {
    padding: 20px;
  }
}

/* Small mobile (<= 576px): compact controls and prevent horizontal squeeze. */
/* At-rule block: @media (max-width: 576px) */
@media (max-width: 576px) {
/* Styles for: .order-header */
  .order-header {
    margin-top: 64px;
    padding: 34px 12px;
  }

/* Styles for: .order-header h1 */
  .order-header h1 {
    font-size: 1.7rem;
  }

/* Styles for: .cart-section */
  .cart-section {
    padding: 22px 10px;
  }

  .cart-items-container,
/* Styles for: .order-summary */
  .order-summary {
    padding: 14px;
    border-radius: 12px;
  }

  .cart-items-container h2,
/* Styles for: .order-summary h2 */
  .order-summary h2 {
    font-size: 1.3rem;
  }

/* Styles for: .item-name */
  .item-name {
    font-size: 1.1rem;
  }

/* Styles for: .item-price */
  .item-price {
    font-size: 1rem;
  }

/* Styles for: .quantity-controls */
  .quantity-controls {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

/* Styles for: .item-actions */
  .item-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

/* Styles for: .remove-btn */
  .remove-btn {
    width: 100%;
  }

/* Styles for: .summary-row */
  .summary-row {
    font-size: 1rem;
  }

/* Styles for: .summary-row.total */
  .summary-row.total {
    font-size: 1.25rem;
  }

/* Styles for: .btn-block */
  .btn-block {
    font-size: 1rem;
    padding: 12px;
  }
}

/* Extra-small phones (<= 420px): compact text sizing. */
/* At-rule block: @media (max-width: 420px) */
@media (max-width: 420px) {
/* Styles for: .empty-cart h3 */
  .empty-cart h3 {
    font-size: 1.5rem;
  }

/* Styles for: .empty-cart p */
  .empty-cart p {
    font-size: 1rem;
  }
}



