/* =============================================================
   NAINS HERBALS — cart.css
   Styles for the WooCommerce Cart page.

   HOW TO EDIT:
   - Colors     → search for #E67E22 (orange) or #1C2520 (dark green)
   - Fonts      → Cormorant Garamond for headings, Inter for body
   - Layout     → nc-layout controls the 2-column grid
   - Trust badges → .nc-trust section at the bottom of the summary
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
/* The outer page background and spacing */
.nc-page {
  background: #F5F0E8;
  min-height: 70vh;
  padding: 48px 0 80px;
  font-family: 'Inter', sans-serif;
}
.nc-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .nc-inner { padding: 0 40px; }
}

/* ── EMPTY CART STATE ───────────────────────────────────────── */
/* Shown when the cart has no items */
.nc-empty {
  text-align: center;
  padding: 80px 20px;
}
.nc-empty svg {
  margin: 0 auto 24px;
  display: block;
}
.nc-empty-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: #1C2520;
  margin: 0 0 12px;
}
.nc-empty-sub {
  font-size: 16px;
  color: #8B7D6B;
  margin-bottom: 32px;
}

/* ── CART HEADER ────────────────────────────────────────────── */
/* Title row with item count and clear cart button */
.nc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.nc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 700;
  color: #1C2520;
  margin: 0 0 6px;
}
.nc-subtitle {
  font-size: 14px;
  color: #8B7D6B;
  margin: 0;
}
.nc-clear-btn {
  font-size: 13px;
  color: #e53e3e;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #fed7d7;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nc-clear-btn:hover { background: #fff5f5; }

/* ── 2-COLUMN LAYOUT ────────────────────────────────────────── */
/* Left: cart items | Right: order summary
   EDIT: Change 380px to make the summary wider or narrower */
.nc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .nc-layout { grid-template-columns: 1fr 380px; }
}

/* ── SINGLE CART ITEM ───────────────────────────────────────── */
/* Each product row in the cart */
.nc-item {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.nc-item-img {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #F5F0E8;
}
.nc-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.nc-item-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.nc-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.nc-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.nc-item-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: #1C2520;
  text-decoration: none;
  display: block;
  line-height: 1.3;
}
.nc-item-name:hover { color: #E67E22; }

/* Remove (trash) button */
.nc-remove {
  color: #e53e3e;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nc-remove:hover { opacity: 1; }

.nc-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.nc-item-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1C2520;
}

/* ── QUANTITY INPUT ─────────────────────────────────────────── */
.nc-qty .quantity {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nc-qty input[type=number] {
  width: 52px;
  text-align: center;
  border: 1.5px solid #E5D5C3;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1C2520;
  font-family: 'Inter', sans-serif;
}
.nc-qty input:focus {
  outline: none;
  border-color: #1C2520;
}

/* ── COUPON + UPDATE ROW ────────────────────────────────────── */
.nc-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
}
.nc-coupon {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 200px;
}
.nc-coupon-input {
  flex: 1;
  border: 1.5px solid #E5D5C3;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: #fff;
  color: #1C2520;
}
.nc-coupon-input:focus { border-color: #1C2520; }

/* ── BUTTONS ────────────────────────────────────────────────── */
/* Dark filled button — used for Continue Shopping */
.nc-btn-dark {
  display: inline-block;
  background: #1C2520;
  color: #fff;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.2s;
}
.nc-btn-dark:hover { background: #E67E22; color: #fff; }

/* Outline button — used for Apply coupon and Update cart */
.nc-btn-outline {
  background: #fff;
  color: #1C2520;
  border: 1.5px solid #E5D5C3;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}
.nc-btn-outline:hover { border-color: #1C2520; }

/* ── ORDER SUMMARY PANEL ────────────────────────────────────── */
/* Sticky right side panel */
.nc-summary {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 100px;
  height: fit-content;
}
.nc-summary-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1C2520;
  margin: 0 0 20px;
}
.nc-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}
.nc-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F0E6D8;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #1C2520;
}
.nc-summary-row:last-child { border-bottom: none; }

/* Green row for discounts and free shipping */
.nc-summary-green { color: #2C7A4B; }

/* Total row — bold and larger */
.nc-summary-total {
  font-size: 18px;
  font-weight: 700;
  border-bottom: none !important;
  padding-top: 16px !important;
}

/* Orange checkout button */
.nc-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #E67E22;
  color: #fff;
  padding: 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.nc-checkout-btn:hover { background: #D4721E; color: #fff; }

/* Ghost continue shopping button */
.nc-continue-btn {
  display: block;
  text-align: center;
  border: 1.5px solid #E5D5C3;
  color: #1C2520;
  padding: 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: all 0.2s;
}
.nc-continue-btn:hover { border-color: #1C2520; }

/* ── TRUST BADGES ───────────────────────────────────────────── */
/* EDIT: Change trust badge text in cart.php under $trust_items */
.nc-trust {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #F0E6D8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nc-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #8B7D6B;
  font-family: 'Inter', sans-serif;
}
.nc-trust-check {
  width: 24px;
  height: 24px;
  background: #E8F5EE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #2C7A4B;
  flex-shrink: 0;
}

/* ── WOOCOMMERCE NOTICE OVERRIDES ───────────────────────────── */
/* Makes WooCommerce success/error messages match your design */
.nc-page .woocommerce-message,
.nc-page .woocommerce-error,
.nc-page .woocommerce-info {
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

/* Hide WooCommerce's own totals since we render our own */
.nc-page .cart_totals { display: none; }

/* Cross-sells section at bottom */
.nc-page .cross-sells { margin-top: 40px; }
.nc-page .cross-sells h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: #1C2520;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nc-item { flex-direction: column; }
  .nc-item-img { width: 100%; height: 200px; }
  .nc-title { font-size: 28px; }
}
