.kaamna-header {
  background-color: #f9f7f0;
  padding: 1.5rem 0;
  /* Matching the subtle shadow and rounded corners from image_87c90d.jpg */
  border-radius: 15px; 
  margin: 10px 10px 20px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Standard Bootstrap container width behavior */
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand-section {
  display: flex;
  align-items: center;
  max-width: 20%;
}

.brand-icon {
  /* Matching the circular icon size in your header images */
  width: 100%;
  cursor: pointer;
}

.checkout-status h2 {
  color: #1a3a2a;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0;
  letter-spacing: -0.5px;
}

/* Responsive Adjustments using Bootstrap-style breakpoints */
@media (max-width: 768px) {
  .kaamna-header {
    padding: 1rem 0;
    margin: 5px;
  }

  .checkout-status h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
  }

  .brand-section {
    max-width: 50%;
  }
}

/* checkout grid  */

/* Kaamna Theme Variables */
:root {
  --kaamna-green: #1a3a2a;
  --kaamna-cream: #f9f7f0;
  --kaamna-accent: #2d5a42;
  --text-main: #1a3a2a;
  --white: #ffffff;
}

/* Main Grid Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 350px; /* Main content + Sidebar */
  gap: 2rem;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
}

/* Left Column: Review Section */
.order-review h2 {
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--kaamna-green);
}

.cart-item-container {
  border: 1px solid rgba(26, 58, 42, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
}

.delivery-date {
  color: #007600; /* Distinct delivery green */
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.cart-item-details-grid {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.product-image {
  width: 100%;
  border-radius: 8px;
}

.product-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1a3a2a;
}

.product-price {
  color: #1a3a2a; /* Classic price alert color */
  font-weight: 700;
  margin: 4px 0;
}

.link-primary {
  color: #1a3a2a;
  cursor: pointer;
  font-size: 0.9rem;
  margin-right: 10px;
}

.link-primary:hover {
  color: #c45500;
  text-decoration: underline;
}

/* Delivery Options */
.option-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.delivery-option {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  cursor: pointer;
}

.delivery-option input[type="radio"] {
  accent-color: var(--kaamna-green);
  margin-top: 4px;
}

.date {
  font-weight: 700;
  color: #007600;
}

/* Right Column: Payment Summary (The Sidebar) */
.payment-summary {
  background: var(--white);
  border: 1px solid rgba(26, 58, 42, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.payment-summary h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a3a2a;
  margin-top: 10px;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 15px 0;
}

/* The Brand CTA Button */
.kaamna-btn {
  width: 100%;
  background-color: #1a3a2a; /* kaamna-style green for high conversion */
  border: 1px solid #1a3a2a;
  border-radius: 8px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.2s;
  color: white;
}

.kaamna-btn:hover {
  background-color: #30aa6d;
}

/* --- Responsive Media Queries --- */

/* Tablet View */
@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr; /* Stack columns */
  }
  
  .payment-summary {
    position: static;
    order: -1; /* Move summary to top on smaller screens if desired, or keep at bottom */
  }
}

/* Mobile View */
@media (max-width: 576px) {
  .cart-item-details-grid {
    grid-template-columns: 1fr; /* Stack product info and delivery options */
    text-align: center;
  }

  .product-image {
    width: 120px;
    margin: 0 auto;
  }

  .delivery-option {
    justify-content: start;
  }

  .option-title {
    justify-self: start;
  }
}