/* cart.css — Tripzao Classic WooCommerce cart v1.3.4 (TZPM design for our template overrides) */

:root {
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-bn: 'Hind Siliguri', sans-serif;
  --font-display: 'Fraunces', serif;
  --ink-900: #0a1226; --ink-700: #1f2937; --ink-600: #374151;
  --ink-500: #6b7280; --ink-400: #9ca3af; --ink-300: #d1d5db;
  --ink-200: #e5e7eb; --ink-100: #f1f5f9;
  --blue-950: #03112b; --blue-900: #071a3d; --blue-800: #0a2452;
  --blue-700: #0f3275; --blue-600: #1040a0; --blue-50: #eff6ff; --blue-100: #dbeafe;
  --yellow-500: #f7ba17; --yellow-400: #fcd34d; --yellow-50: #fffbeb;
  --coral-500: #ef4444; --mint-500: #22c55e; --mint-100: #dcfce7;
  --bg: #f8fafc; --bg-soft: #f1f5f9;
  --shadow-sm: 0 1px 4px rgba(10,18,38,.07), 0 2px 8px rgba(10,18,38,.05);
  --shadow-md: 0 4px 16px rgba(10,18,38,.10);
  --shadow-lg: 0 8px 32px rgba(10,18,38,.13);
}

/* ════════════ PAGE & WP page title hide ════════════ */
.woocommerce-cart, body.woocommerce-cart {
  background: var(--bg); font-family: var(--font-sans); color: var(--ink-900);
}
.woocommerce-cart .site-main,
.woocommerce-cart .entry-content { padding: 0 0 60px; max-width: 100%; }
/* Hide WP page title "Cart" — our template has its own hero */
.woocommerce-cart .entry-title,
.woocommerce-cart .page-title,
.woocommerce-cart > header.entry-header,
.woocommerce-cart .post-page-title,
body.woocommerce-cart h1.entry-title { display: none !important; }

/* Hide default "Your cart is currently empty." — our template has its own empty state */
.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart > p.cart-empty,
.woocommerce-cart .return-to-shop:not(.empty-card .return-to-shop) {
  display: none !important;
}
/* But keep our template's return-to-shop visible */
.tzr-cart-empty .return-to-shop { display: block !important; }

/* ════════════ HERO (page header) ════════════ */
.tzr-cart-wrap, .tzr-cart-empty { padding: 30px 0 50px; }
.tzr-cart-wrap .container,
.tzr-cart-empty .container {
  max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.tzr-cart-hero { text-align: center; margin-bottom: 28px; padding: 0 12px; }
.tzr-cart-hero .tx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--blue-700); margin-bottom: 12px;
}
.tzr-cart-hero .tx-eyebrow .dash {
  width: 22px; height: 2.5px; background: var(--yellow-500); border-radius: 2px;
}
.tzr-cart-h1 {
  font-family: var(--font-bn); font-weight: 700; font-size: 32px;
  color: var(--ink-900); letter-spacing: -.02em; margin: 0 0 8px;
  line-height: 1.15;
}
.tzr-cart-h1 .en {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  color: var(--blue-700); font-size: .95em;
}
.tzr-cart-sub {
  font-family: var(--font-bn); font-size: 14px; color: var(--ink-500); margin: 0;
}
@media (min-width: 768px) {
  .tzr-cart-h1 { font-size: 38px; }
}

/* ════════════ LAYOUT ════════════ */
.tzr-cart-layout {
  display: grid; gap: 22px; grid-template-columns: 1fr;
}
.tzr-cart-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tzr-cart-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1024px) {
  .tzr-cart-layout { grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
  .tzr-cart-side { position: sticky; top: 22px; }
}

/* ════════════ STEP CARDS ════════════ */
.tzr-cart-wrap .step-card {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: 20px; padding: 22px;
  box-shadow: var(--shadow-sm);
}
.tzr-cart-wrap .step-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--ink-100);
}
.tzr-cart-wrap .step-num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 15px; flex-shrink: 0;
}
.tzr-cart-wrap .step-title h3 {
  font-family: var(--font-bn); font-weight: 700; font-size: 17px;
  color: var(--ink-900); margin: 0 0 2px; letter-spacing: -.01em;
}
.tzr-cart-wrap .step-title p {
  font-family: var(--font-bn); font-size: 12.5px; color: var(--ink-500); margin: 0;
}

/* ════════════ ITEM LIST ════════════ */
.item-list { display: flex; flex-direction: column; gap: 14px; }

.item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px; padding: 14px;
  background: var(--bg-soft); border-radius: 14px;
  border: 1px solid var(--ink-100);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.item:hover { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }

.item-cover {
  position: relative; width: 90px; height: 90px;
  border-radius: 12px; overflow: hidden; background: #fff; flex-shrink: 0;
}
.item-cover img,
.item-cover a img {
  width: 100% !important; height: 100% !important;
  object-fit: cover; display: block;
}
.item-tag {
  position: absolute; top: 6px; left: 6px;
  padding: 3px 7px; background: var(--blue-700); color: #fff;
  border-radius: 6px; font-family: var(--font-sans);
  font-size: 9.5px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase;
}
.item-tag.ebook { background: #8b5cf6; }
.item-tag.course { background: var(--coral-500); }
.item-tag.visa { background: var(--mint-500); }
.item-tag.free { background: var(--yellow-500); color: var(--ink-900); }

.item-body {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0; flex: 1;
}
.item-title {
  font-family: var(--font-bn); font-weight: 700; font-size: 15px;
  color: var(--ink-900); margin: 0; letter-spacing: -.005em;
  line-height: 1.3;
}
.item-title a {
  color: inherit; text-decoration: none;
}
.item-title a:hover { color: var(--blue-700); }

.item-meta {
  font-family: var(--font-sans); font-size: 12px;
  color: var(--ink-500); line-height: 1.5;
}
.item-meta dl, .item-meta dt, .item-meta dd { margin: 0; padding: 0; display: inline; }
.item-meta dt { font-weight: 600; color: var(--ink-700); }
.item-meta dt::after { content: ': '; }
.item-meta dd { margin-right: 8px; }
.item-meta dd::after { content: ' /'; margin-left: 4px; color: var(--ink-300); }
.item-meta dd:last-child::after { content: ''; }

.item-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 6px; flex-wrap: wrap;
}

/* WC quantity input — style as our stepper */
.qty-stepper, .quantity {
  display: inline-flex; align-items: center;
  background: #fff; border: 1.5px solid var(--ink-200);
  border-radius: 10px; overflow: hidden; height: 36px;
}
.qty-stepper button, .quantity button {
  width: 36px; height: 34px; border: 0; background: transparent;
  cursor: pointer; color: var(--ink-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover:not(:disabled),
.quantity button:hover:not(:disabled) {
  background: var(--blue-50); color: var(--blue-700);
}
.qty-stepper input.qty,
.quantity input.qty,
.quantity input[type="number"] {
  width: 44px !important; height: 34px !important;
  border: 0 !important; border-left: 1px solid var(--ink-200) !important;
  border-right: 1px solid var(--ink-200) !important;
  background: #fff !important; text-align: center !important;
  font-family: var(--font-sans) !important; font-weight: 700 !important;
  font-size: 14px !important; color: var(--ink-900) !important;
  padding: 0 !important; -moz-appearance: textfield !important;
  border-radius: 0 !important; outline: none !important;
  box-shadow: none !important;
}
.qty-stepper input.qty::-webkit-outer-spin-button,
.qty-stepper input.qty::-webkit-inner-spin-button,
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

.item-actions { display: inline-flex; gap: 6px; }
.item-act {
  width: 34px; height: 34px; border-radius: 9px;
  background: #fff; border: 1.5px solid var(--ink-200);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-500); cursor: pointer;
  transition: all .15s ease; text-decoration: none;
}
.item-act svg { width: 14px; height: 14px; }
.item-act.remove:hover { background: #fef2f2; border-color: var(--coral-500); color: var(--coral-500); }

.item-price {
  margin-left: auto; text-align: right; font-family: var(--font-sans);
  display: flex; flex-direction: column; gap: 2px;
}
.item-price small {
  font-size: 10.5px; font-weight: 700; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .06em;
}
.item-price b {
  font-size: 17px; font-weight: 800; color: var(--ink-900);
  letter-spacing: -.01em; line-height: 1.1;
}
.item-price b .woocommerce-Price-amount { color: inherit; font-weight: inherit; }

/* ════════════ CART ACTIONS (coupon + update cart) ════════════ */
.tzr-cart-actions {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--ink-100);
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.tzr-cart-actions .coupon {
  display: flex; gap: 6px; flex: 1; min-width: 240px;
}
.tzr-cart-actions .coupon input.input-text {
  flex: 1; height: 42px; padding: 0 12px;
  border: 1.5px solid var(--ink-200); border-radius: 10px;
  font-family: var(--font-sans); font-size: 13px; color: var(--ink-900);
  background: #fff; outline: none;
}
.tzr-cart-actions .coupon input.input-text:focus {
  border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(15,50,117,.1);
}

.tzr-cart-actions .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 18px; height: 42px;
  border: 1.5px solid var(--ink-200); background: #fff;
  border-radius: 10px; cursor: pointer; text-decoration: none;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  color: var(--ink-700); transition: all .15s ease;
}
.tzr-cart-actions .btn:hover {
  border-color: var(--blue-700); color: var(--blue-700);
  background: var(--blue-50);
}
.tzr-cart-actions .btn-update { margin-left: auto; }

/* ════════════ SUMMARY (right sidebar) ════════════ */
.cart-collaterals { display: contents; }
.tzr-summary {
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.summary-head {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-800));
  color: #fff; padding: 18px 20px;
  position: relative; overflow: hidden;
}
.summary-head::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(247,186,23,.18), transparent 70%);
}
.summary-eyebrow {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--yellow-400); margin-bottom: 4px;
}
.summary-title {
  font-family: var(--font-bn); font-weight: 700; font-size: 17px;
  color: #fff; margin: 0; letter-spacing: -.01em;
}
.summary-title .en {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  color: var(--yellow-400);
}

.breakdown { padding: 6px 0; }
.bd-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 20px;
  border-bottom: 1px solid var(--ink-100);
}
.bd-row:last-child { border-bottom: 0; }
.bd-row .lbl {
  font-family: var(--font-sans); font-size: 13px; color: var(--ink-600);
  font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
}
.bd-row .lbl svg {
  width: 14px; height: 14px; color: var(--ink-400);
}
.bd-row .amt {
  font-family: var(--font-sans); font-size: 14px;
  font-weight: 700; color: var(--ink-900);
}
.bd-row.discount .amt { color: var(--mint-500); }
.bd-row .amt .woocommerce-Price-amount { color: inherit; font-weight: inherit; }

.grand-total {
  background: linear-gradient(135deg, var(--blue-50), #fff);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 2px solid var(--blue-100);
}
.grand-total .lbl {
  font-family: var(--font-bn); font-weight: 700; font-size: 14px;
  color: var(--blue-700); display: flex; flex-direction: column; gap: 2px;
}
.grand-total .lbl small {
  font-family: var(--font-bn); font-size: 11px; font-weight: 500;
  color: var(--ink-500); text-transform: none; letter-spacing: 0;
}
.grand-total .amt {
  font-family: var(--font-sans); font-size: 22px; font-weight: 800;
  color: var(--ink-900); letter-spacing: -.02em;
}
.grand-total .amt .woocommerce-Price-amount { color: inherit; font-weight: inherit; }

.summary-cta { padding: 16px 20px 18px; }
.summary-cta .btn,
.wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout a.checkout-button {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 14px 18px;
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500));
  color: var(--ink-900) !important;
  border: 0; border-radius: 14px;
  font-family: var(--font-bn) !important; font-size: 14.5px !important;
  font-weight: 700 !important; letter-spacing: -.005em;
  cursor: pointer; text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(247,186,23,.4);
  transition: filter .15s ease;
  margin: 0 0 8px;
}
.summary-cta .btn:hover,
.wc-proceed-to-checkout a.checkout-button:hover { filter: brightness(1.05); }

.summary-cta .tzr-wa-btn,
.btn.btn-primary.tzr-wa-btn {
  background: var(--blue-700); color: #fff !important;
  box-shadow: none;
}
.summary-cta .tzr-wa-btn:hover { background: var(--blue-800); filter: none; }

.summary-cta .fine {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-bn); font-size: 11.5px; color: var(--ink-500);
  text-align: center;
}
.summary-cta .fine svg { color: var(--mint-500); flex-shrink: 0; }

/* Trust strip in summary */
.tzr-summary .trust-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--ink-100);
}
.tzr-summary .trust-card {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: var(--bg-soft);
  border-radius: 10px;
}
.tzr-summary .trust-card svg {
  width: 16px; height: 16px; color: var(--blue-700); flex-shrink: 0;
}
.tzr-summary .trust-card div {
  font-family: var(--font-sans); font-size: 11.5px;
  color: var(--ink-700); line-height: 1.3;
}
.tzr-summary .trust-card b {
  display: block; font-size: 12px; font-weight: 800;
  color: var(--ink-900);
}

/* ════════════ EMPTY STATE ════════════ */
.tzr-cart-empty {
  min-height: 50vh;
  display: flex; align-items: center; justify-content: center;
}
.tzr-cart-empty .container { width: 100%; }
.empty-card {
  max-width: 460px; margin: 0 auto;
  background: #fff; border: 1px solid var(--ink-100);
  border-radius: 22px; padding: 36px 28px;
  text-align: center; box-shadow: var(--shadow-md);
}
.empty-ic {
  width: 80px; height: 80px; margin: 0 auto 18px;
  background: var(--bg-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400);
}
.empty-ic svg {
  width: 38px !important; height: 38px !important;
}
.empty-title {
  font-family: var(--font-bn); font-weight: 700; font-size: 20px;
  color: var(--ink-900); margin: 0 0 8px; letter-spacing: -.01em;
}
.empty-title .en {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  color: var(--blue-700);
}
.empty-sub {
  font-family: var(--font-bn); font-size: 13.5px; color: var(--ink-500);
  margin: 0 0 22px; line-height: 1.55;
}
.empty-card .return-to-shop { margin: 0 0 12px !important; padding: 0 !important; }
.empty-card .return-to-shop .btn,
.empty-card .return-to-shop a.btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 13px 22px;
  background: var(--blue-700) !important; color: #fff !important;
  border: 0 !important; border-radius: 12px !important;
  font-family: var(--font-bn) !important; font-size: 14px !important;
  font-weight: 700 !important; cursor: pointer !important;
  text-decoration: none !important; transition: background .15s ease;
}
.empty-card .return-to-shop a.btn:hover { background: var(--blue-800) !important; }

.empty-wa {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-bn); font-size: 13px;
  color: var(--ink-600); text-decoration: none; font-weight: 600;
}
.empty-wa:hover { color: var(--blue-700); }
.empty-wa svg { color: #25D366; flex-shrink: 0; }

/* ════════════ MOBILE ════════════ */
@media (max-width: 640px) {
  .tzr-cart-wrap .step-card { padding: 18px; border-radius: 16px; }
  .item { grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; }
  .item-cover { width: 76px; height: 76px; }
  .item-foot { gap: 8px; }
  .item-price { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; margin-left: 0; padding-top: 6px; border-top: 1px dashed var(--ink-200); }
  .tzr-cart-actions { flex-direction: column; align-items: stretch; }
  .tzr-cart-actions .coupon { min-width: 0; }
  .tzr-cart-actions .btn-update { margin-left: 0; }
  .tzr-summary .trust-strip { grid-template-columns: 1fr; }
}

/* ════════════ PAGE TITLE & WP OUTER WRAPPER ════════════
   Targets WP page template h1 rendered before WC content.
   body.woocommerce-cart is added by WooCommerce to <body>.
════════════════════════════════════════════════════════ */
body.woocommerce-cart h1.entry-title,
body.woocommerce-cart h2.entry-title,
body.woocommerce-cart .entry-header,
body.woocommerce-cart .page-header,
body.woocommerce-cart header.entry-header,
body.woocommerce-cart .site-content > article > header,
body.woocommerce-cart .post-navigation { display: none !important; }

/* WooCommerce adds .container .tzr-woo-wrap via woo-hooks.php.
   Our template already has its own .container inside.
   This prevents double-padding from nested containers. */
body.woocommerce-cart .tzr-woo-wrap { padding: 0 !important; }
body.woocommerce-cart .tzr-woo-wrap .container { max-width: none !important; padding: 0 !important; }

/* Cross-sells below cart — minimal style */
.cross-sells { margin-top: 32px; }
.cross-sells h2 {
  font-family: var(--font-bn); font-weight: 700; font-size: 20px;
  color: var(--ink-900); margin-bottom: 18px;
}
