/* =======================
   Cart Layout Styling
========================== */
/* === 1. Base Typography === */
/* TLD Card Responsive Layout */
.tld-list li {
  @apply flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 border border-primary rounded-lg p-4 shadow-sm bg-white;
}

.tld-list li .tld-name {
  @apply text-lg sm:text-xl font-semibold text-primary;
}

.tld-list li .tld-price {
  @apply text-sm sm:text-base text-gray-700;
}

.tld-list li .add-tld {
  @apply sm:ml-auto px-6 py-2 border-2 border-primary text-primary font-semibold rounded transition hover:bg-primary hover:text-white;
}


.cart-wrapper h1,
.cart-upsells h2 {
  font-size: 2rem; /* Was 1.8rem — increased for visibility */
}

.cart-item,
.tld-added-item {
  font-size: 1.1rem; /* Was 1rem — improves clarity */
}

/*.tld-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tld-price {
  font-size: 1.1rem;
}

.old-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.new-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}*/

button {
  font-size: 1.05rem;
}








/* Base Layout */
.cart-page {
  background: #f5f7ff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.cart-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.cart-wrapper h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-align: center;
  grid-column: 1 / -1;
}

.cart-wrapper > div,
.cart-wrapper > aside {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Cart Items */
.cart-item {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
  color: #333;
  position: relative;
}

.cart-item strong {
  color: var(--primary-color);
}

.cart-item select {
  margin: 10px 0;
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Buttons */
button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.remove-btn {
  background: #e74c3c;
  color: white;
  padding: 8px 14px;
  font-size: 0.9rem;
  margin-top: 10px;
}

.remove-btn:hover {
  background: #c0392b;
}

.checkout-btn {
  background: var(--primary-color);
  color: #fff;
  width: 100%;
  padding: 14px 20px;
  font-size: 1.1rem;
  margin: 20px 0;
}

.checkout-btn:hover {
  background: var(--primary-dark, #512bd4);
}

.clear-cart {
  background: #999;
  color: white;
  display: block;
  margin: 20px auto 0;
}

.clear-cart:hover {
  background: #777;
}


/*----summary header****/
.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.summary-pricing {
  text-align: right;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.final-price {
  font-size: 24px;
  color: var(--primary-color);
  font-weight: bold;
  margin-top: 4px;
}

.summary-disclaimer {
  font-size: 13px;
  color: #555;
  margin: 10px 0;
}

.summary-discount {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #2e7d32; /* success green */
}

.discount-label {
  font-weight: 500;
}

.discount-value {
  font-weight: bold;
}

.coupon-input {
  width: 100%;
  padding: 10px;
  margin: 20px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
}



/* --- Sticky Summary --- */

.cart-summary {
  position: sticky;
  top: 137px; /* Adjust if your header is taller */
  align-self: start;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  height: fit-content;
  z-index: 5; /* Make sure it stays above */
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-summary h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.cart-summary .total {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 15px 0;
}
.checkout-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: var(--primary-dark, #b3483d); /* Slightly darker than primary */
}
/* Upsells Section */
.cart-upsells {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  grid-column: 1 / -1;
}

.cart-upsells h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.upsell-block {
  background: #f1f8ff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.upsell-block h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.upsell-block p {
  margin: 8px 0;
  color: #333;
}

.upsell-block ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 15px;
}

.upsell-block ul li {
  margin-bottom: 6px;
}


.add-ons-btn,
.add-tld {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.add-ons-btn:hover,
.add-tld:hover {
  background: var(--primary-color);
  color: white;
}
/* Optional: Sharper hover feedback */
.add-ons-btn:focus,
.add-tld:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.2); /* adjust if needed */
}
/* Checkout Page */
.checkout-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.checkout-wrapper h1 {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

.checkout-summary {
  font-size: 1.1rem;
  margin-bottom: 20px;
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
}

.checkout-form {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.checkout-submit {
  background: var(--primary-color);
  color: #fff;
  padding: 14px 22px;
  font-size: 1.1rem;
}

.checkout-submit:hover {
  background: var(--primary-dark, #512bd4);
}

.checkout-total {
  font-size: 1.3rem;
  margin-top: 20px;
  text-align: right;
  font-weight: 600;
}

.confirmation-box {
  text-align: center;
  padding: 40px;
  background: #f0fdf4;
  border: 1px solid #34d399;
  border-radius: 12px;
  color: #065f46;
  font-size: 1.1rem;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.confirmation-box h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .cart-wrapper {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: relative;
    top: auto;
    margin-top: 40px;
  }
}
