/* ------------------------------
   Pastura Cart — Base Layout
--------------------------------*/
body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-color: #fafafa;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Container */
main.cart-container {
  max-width: 720px;
  margin: 2rem auto;
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.2s;
}

/* Title */
h1 {
  text-align: center;
  color: #2c2c2c;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.7rem;
}

h2 {
  text-align: right;
  color: #444;
  font-weight: 500;
  margin-top: 1rem;
}

/* ------------------------------
   Cart Items
--------------------------------*/
.checkout-item {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #3c8a1d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.checkout-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #2b2b2b;
}

.checkout-item p {
  margin: 0.3rem 0;
  color: #555;
  font-size: 0.95rem;
}

.checkout-item button {
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: #d9534f;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.checkout-item button:hover {
  background: #c3413e;
}

/* ------------------------------
   Cart Actions
--------------------------------*/
.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.cart-actions button,
.checkout-btn {
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: 0.25s ease-in-out;
  width: 100%;
  font-weight: 600;
}

/* Clear Cart */
.cart-actions button {
  background: #bbbbbb;
  color: #222;
}
.cart-actions button:hover {
  background: #a0a0a0;
}

/* Checkout Button */
.checkout-btn {
  background: #3c8a1d;               /* Pastura Green */
  color: white;
  box-shadow: 0 3px 8px rgba(0, 128, 0, 0.25);
}
.checkout-btn:hover {
  background: #326f18;               /* Darker */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 128, 0, 0.35);
}

/* ------------------------------
   Empty Cart Message
--------------------------------*/
.empty-cart {
  text-align: center;
  padding: 2rem;
  color: #7a5d5d;
  font-size: 1rem;
}

/* ------------------------------
   Responsive — Mobile
--------------------------------*/
@media (max-width: 480px) {
  main.cart-container {
    margin: 1rem;
    padding: 1.4rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  .checkout-item {
    padding: 0.9rem;
  }

  .checkout-item h3 {
    font-size: 1rem;
  }

  .checkout-btn,
  .cart-actions button {
    font-size: 0.95rem;
    padding: 0.8rem;
  }
}

/* ------------------------------
   Responsive — iPad (Tablets)
--------------------------------*/
@media (min-width: 600px) and (max-width: 1024px) {
  main.cart-container {
    max-width: 820px;
    padding: 2.2rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .checkout-item h3 {
    font-size: 1.15rem;
  }

  .cart-actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .cart-actions button,
  .checkout-btn {
    width: 48%;
    font-size: 1rem;
  }
}

/* ------------------------------
   Desktop Enhancements
--------------------------------*/
@media (min-width: 1025px) {
  .checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .checkout-item p {
    font-size: 1rem;
  }
}



/* ============================================================
   Pastura Checkout Button — Enhanced Version (Official)
   Adds: Spinner, Disabled State, Smooth Animations
============================================================ */

/* ✅ Spinner inside button */
.checkout-btn .spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.5);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ✅ Spinner Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ✅ Disabled State (During Checkout Processing) */
.checkout-btn.disabled {
  background: #7d7d7d !important;
  cursor: not-allowed;
  opacity: 0.75;
  transform: none !important;
  box-shadow: none !important;
}

/* ✅ Mobile refinement */
@media (max-width: 480px) {
  .checkout-btn {
    gap: 6px;
    font-size: 0.9rem;
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
  }
}

/* ✅ iPad refinement */
@media (min-width: 600px) and (max-width: 1024px) {
  .checkout-btn {
    font-size: 1rem;
    padding: 0.95rem 1.3rem;
  }
}








/* ------------------------------
   Checkout Section — Base Layout
--------------------------------*/
.checkout-section {
  margin-top: 2rem;
  background: #ffffff;
  padding: 1.8rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
}

.checkout-section h2 {
  font-size: 1.4rem;
  color: #2b2b2b;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

/* ------------------------------
   Checkout Block Sections
--------------------------------*/
.checkout-block {
  background: #f9f9f9;
  padding: 1.3rem;
  margin-bottom: 1.4rem;
  border-radius: 10px;
  border-left: 4px solid #3c8a1d;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.checkout-block h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

/* ------------------------------
   Checkout Inputs
--------------------------------*/
.checkout-block label {
  display: block;
  margin-bottom: 0.4rem;
  color: #444;
  font-size: 0.95rem;
  font-weight: 500;
}

.checkout-block input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.checkout-block input:focus {
  border-color: #3c8a1d;
  box-shadow: 0 0 0 3px rgba(60,138,29,0.15);
}

/* ------------------------------
   Payment Note
--------------------------------*/
.method-note {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
}

/* ------------------------------
   Payment Button
--------------------------------*/
.pay-btn {
  width: 100%;
  padding: 1rem;
  background: #3c8a1d;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 128, 0, 0.25);
  transition: 0.25s ease;
}

.pay-btn:hover {
  background: #326f18;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 128, 0, 0.35);
}

/* ------------------------------
   Error Message
--------------------------------*/
.checkout-error {
  background: #ffdddd;
  color: #a10000;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  border: 1px solid #e3b5b5;
  margin-top: 1rem;
}

/* ------------------------------
   Responsive — Mobile
--------------------------------*/
@media (max-width: 480px) {
  .checkout-section {
    padding: 1.4rem;
  }

  .checkout-block {
    padding: 1rem;
  }

  .checkout-section h2 {
    font-size: 1.2rem;
  }

  .pay-btn {
    font-size: 1rem;
    padding: 0.85rem;
  }
}

/* ------------------------------
   Responsive — iPad / Tablets
--------------------------------*/
@media (min-width: 600px) and (max-width: 1024px) {
  .checkout-section {
    padding: 2rem 1.8rem;
  }

  .checkout-block {
    padding: 1.5rem;
  }

  .checkout-section h2 {
    font-size: 1.6rem;
  }

  .pay-btn {
    padding: 1.1rem;
    font-size: 1.1rem;
  }
}





/* ===== Pastura Send Button ===== */
.logo {
  display: inline-block;
  padding: 1vh 3vw;
  background-color: #bb3737;
  color: white;
  font-weight: bold;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  border: none;
  border-radius: 0.6vh;
  cursor: pointer;
  margin-top: 2vh;
  transition: background-color 0.3s;
}
.logo:hover {
  background-color: #bb3737;
}
@media (max-width: 480px) {
  .logo {
    width: 100%;
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    padding: 1.5vh 3vw;
  }
}

