/*
 * LUBO.pl — Koszyk
 */

/* ===== WYZERUJ KADENCE BOXED CONTENT NA STRONIE KOSZYKA ===== */
body.woocommerce-cart .entry-content-wrap { padding: 0 !important; }
body.woocommerce-cart article.single-entry { box-shadow: none !important; }
body.woocommerce-cart .entry-content { max-width: none !important; }

/* ===== UKRYJ KADENCE CART WRAPPER ELEMENTY ===== */
body.woocommerce-cart .cart-summary { display: none !important; }
body.woocommerce-cart .kadence-woo-cart-form-wrap { display: contents; }

/* ===== UKRYJ KADENCE BANNER ===== */
body.woocommerce-cart .entry-hero,
body.woocommerce-cart .kadence-page-title-wrap,
body.woocommerce-cart .wp-block-post-title,
body.woocommerce-cart h1.entry-title,
body.woocommerce-cart .page-title { display: none !important; }

/* ===== NAGŁÓWEK ===== */
.lubo-page-hero {
  background: var(--ink);
  padding: 20px 0 22px;
}
.lubo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.lubo-breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.lubo-breadcrumb a:hover { color: var(--orange); }
.lubo-page-hero-row { display: flex; align-items: center; gap: 12px; }
.lubo-page-hero-title { font-size: 22px; font-weight: 700; color: #fff; margin: 0; letter-spacing: -0.02em; }
.lubo-page-hero-badge {
  background: rgba(232,93,31,0.18);
  border: 1px solid rgba(232,93,31,0.4);
  color: var(--orange);
  font-size: 11px;
  font-family: "IBM Plex Mono", monospace;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ===== LAYOUT 2-KOLUMNOWY ===== */
.lubo-cart-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 40px;
  align-items: flex-start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  box-sizing: border-box;
}
.lubo-cart-main {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: block !important;
}
.lubo-cart-aside {
  flex: 0 0 180px !important;
  width: 180px !important;
  position: sticky;
  top: 72px;
}
.lubo-cart-main form.woocommerce-cart-form { display: block !important; }
.lubo-cart-table { display: table !important; width: 100% !important; }

/* ===== TABELA ===== */
.lubo-cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.lubo-cart-table thead th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  padding: 0 12px 12px 0;
  border-bottom: 2px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.lubo-cart-table thead th.col-total,
.lubo-cart-table thead th.col-del { text-align: right; padding-right: 0; }

.lubo-cart-table tbody td {
  padding: 16px 12px 16px 0;
  border-bottom: 1px solid var(--line-2, #f0f2f5);
  vertical-align: middle;
}
.lubo-cart-table tbody td:last-child { padding-right: 0; }

/* Zdjęcie */
.col-img { width: 88px; }
.col-img img {
  display: block;
  width: 80px; height: 80px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8f8f8;
}

/* Nazwa */
.cart-name {
  display: block;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 4px;
}
a.cart-name:hover { color: var(--orange); }
.cart-sku {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--ink-4);
}

/* Ceny */
.col-netto, .col-brutto, .col-total {
  font-family: "IBM Plex Mono", monospace;
  white-space: nowrap;
}
.col-netto { color: var(--ink-3); }
.col-brutto { font-weight: 600; color: var(--ink); }
.col-total { font-weight: 700; color: var(--ink); text-align: right; }

/* Ilość */
.col-qty .qty {
  width: 56px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r, 5px);
  text-align: center;
  font-size: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  padding: 0 4px;
}
.col-qty .qty:focus { border-color: var(--orange); }

/* Usuń */
.col-del { width: 36px; text-align: right; }
.cart-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #f4f5f7;
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.12s, color 0.12s;
}
.cart-del:hover { background: #fee2e2; color: #dc2626; }

/* ===== STOPKA TABELI: KUPON + AKTUALIZUJ ===== */
.cart-footer-row td { border-bottom: none !important; padding-top: 16px !important; }
.cart-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-coupon { display: flex; gap: 8px; align-items: center; }
.cart-coupon-input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r, 5px);
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  width: 190px;
  font-family: inherit;
}
.cart-coupon-input:focus { border-color: var(--steel); }
.btn-outline {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--r, 5px);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.btn-outline:hover { border-color: var(--steel); color: var(--steel); }

/* ===== PRAWA KOLUMNA: PODSUMOWANIE ===== */
.cart_totals {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.cart_totals h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table th,
.cart_totals table td {
  padding: 12px 22px;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f2f5;
  vertical-align: middle;
}
.cart_totals table th { font-weight: 400; color: var(--ink-3); text-align: left; width: 50%; }
.cart_totals table td { font-weight: 600; color: var(--ink); text-align: right; }
.cart_totals table tr:last-child th,
.cart_totals table tr:last-child td { border-bottom: none; }
.cart_totals table tr.order-total th { font-weight: 700; font-size: 14px; color: var(--ink); }
.cart_totals table tr.order-total td { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cart_totals table tr.order-total th,
.cart_totals table tr.order-total td { padding-top: 16px; padding-bottom: 16px; border-top: 2px solid var(--ink); }

.cart_totals .shipping-calculator-button {
  font-size: 12px; color: var(--orange); text-decoration: none; display: inline-block; margin-top: 4px;
}
.cart_totals ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.cart_totals ul#shipping_method li { font-size: 13px; color: var(--ink-3); padding: 2px 0; }

/* Przycisk do kasy */
.wc-proceed-to-checkout { padding: 18px 22px; }
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout a.checkout-button.button,
.wc-proceed-to-checkout a.checkout-button.alt {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 50px !important;
  background: var(--orange) !important;
  background-color: var(--orange) !important;
  color: #fff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border-radius: var(--r, 5px) !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: background 0.12s;
}
.wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout a.checkout-button.button:hover,
.wc-proceed-to-checkout a.checkout-button.alt:hover {
  background: #d14e16 !important;
  background-color: #d14e16 !important;
  color: #fff !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .lubo-cart-layout { flex-direction: column !important; }
  .lubo-cart-aside { flex: none !important; width: 100% !important; position: static; }
  .col-netto { display: none; }
}
@media (max-width: 600px) {
  .lubo-cart-table thead th.col-brutto { display: none; }
  .lubo-cart-table tbody td.col-brutto { display: none; }
}
