/* Tickelius — WooCommerce Cart */
body.woocommerce-cart,
body.woocommerce-cart .site-content {
  background: #0A0A0A !important;
  color: #F5F5F5 !important;
}

body.woocommerce-cart .site-content > .ast-container,
body.woocommerce-cart .site-content .ast-container {
  max-width: 1180px !important;
  padding-left: clamp(16px, 4vw, 48px) !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
}

body.woocommerce-cart #primary,
body.woocommerce-cart .site-main,
body.woocommerce-cart article,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .wpb-content-wrapper,
body.woocommerce-cart .elementor,
body.woocommerce-cart .e-con-inner,
body.woocommerce-cart .wpb_wrapper,
body.woocommerce-cart .woocommerce {
  background: transparent !important;
}

body.woocommerce-cart .site-main {
  padding-block: calc(var(--header-h, 68px) + 40px) 96px !important;
}

body.woocommerce-cart .entry-header {
  margin: 0 0 28px !important;
  padding: 0 !important;
}

body.woocommerce-cart .entry-title {
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important;
  font-size: clamp(38px, 7vw, 72px) !important;
  font-weight: 800 !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error {
  display: flex !important;
  align-items: center !important;
  min-height: 64px !important;
  margin: 0 0 20px !important;
  padding: 18px 22px !important;
  background: #151515 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  color: rgba(245,245,245,0.86) !important;
  -webkit-text-fill-color: rgba(245,245,245,0.86) !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

body.woocommerce-cart .wc-empty-cart-message {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 34px 28px 0 !important;
  background: #111111 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 24px 24px 0 0 !important;
  text-align: center !important;
}

body.woocommerce-cart .wc-empty-cart-message .woocommerce-info {
  justify-content: center !important;
  margin-bottom: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  font-size: clamp(20px, 4vw, 30px) !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .return-to-shop {
  max-width: 760px !important;
  margin: 0 auto 36px !important;
  padding: 8px 28px 34px !important;
  background: #111111 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-top: 0 !important;
  border-radius: 0 0 24px 24px !important;
  text-align: center !important;
}

body.woocommerce-cart a.button,
body.woocommerce-cart button.button,
body.woocommerce-cart input.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 50px !important;
  padding: 14px 24px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #F5F5F5 !important;
  color: #0A0A0A !important;
  -webkit-text-fill-color: #0A0A0A !important;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
  box-shadow: none !important;
}

body.woocommerce-cart a.button:hover,
body.woocommerce-cart button.button:hover,
body.woocommerce-cart input.button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #F0E6D3 !important;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals .cart_totals {
  overflow: hidden !important;
  background: #111111 !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28) !important;
}

body.woocommerce-cart table.shop_table {
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
  color: #F5F5F5 !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
  padding: 18px 20px !important;
  border-color: rgba(255,255,255,0.08) !important;
  background: transparent !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  vertical-align: middle !important;
  line-height: 1.35 !important;
}

body.woocommerce-cart table.shop_table th {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(245,245,245,0.45) !important;
  -webkit-text-fill-color: rgba(245,245,245,0.45) !important;
}

body.woocommerce-cart table.shop_table td.product-name a,
body.woocommerce-cart table.shop_table td.product-name,
body.woocommerce-cart table.shop_table td.product-price,
body.woocommerce-cart table.shop_table td.product-subtotal,
body.woocommerce-cart table.shop_table .amount {
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  font-weight: 800 !important;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 72px !important;
  height: 92px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  background: #1A1A1A !important;
}

body.woocommerce-cart table.shop_table .product-remove a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.08) !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  font-size: 22px !important;
  line-height: 1 !important;
}

body.woocommerce-cart .quantity .qty {
  width: 72px !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 999px !important;
  background: #1A1A1A !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  font-weight: 800 !important;
  text-align: center !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.shop_table td.actions {
  padding: 20px !important;
}

body.woocommerce-cart table.shop_table td.actions .coupon {
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  width: min(100%, 520px) !important;
}

body.woocommerce-cart table.shop_table td.actions .coupon .input-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 50px !important;
  padding: 0 18px !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 999px !important;
  background: #1A1A1A !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  box-shadow: none !important;
}

body.woocommerce-cart table.shop_table td.actions > .button {
  float: right !important;
}

body.woocommerce-cart .cart-collaterals {
  margin-top: 28px !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  width: min(100%, 460px) !important;
  padding: 24px !important;
  color: #F5F5F5 !important;
}

body.woocommerce-cart .cart_totals h2 {
  margin: 0 0 18px !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100% !important;
  min-height: 56px !important;
  font-size: 15px !important;
}

@media (max-width: 768px) {
  body.woocommerce-cart .site-main {
    padding-block: calc(var(--header-h, 68px) + 24px) 72px !important;
  }

  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .cart-collaterals .cart_totals,
  body.woocommerce-cart .wc-empty-cart-message,
  body.woocommerce-cart .return-to-shop {
    border-radius: 18px !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr,
  body.woocommerce-cart table.shop_table_responsive tbody tr {
    display: block !important;
    padding: 18px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr td {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 10px 0 !important;
    border: 0 !important;
    text-align: right !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr td::before {
    flex: 0 0 auto !important;
    color: rgba(245,245,245,0.45) !important;
    -webkit-text-fill-color: rgba(245,245,245,0.45) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail,
  body.woocommerce-cart table.shop_table_responsive tr td.product-remove {
    justify-content: center !important;
    text-align: center !important;
  }

  body.woocommerce-cart table.shop_table_responsive tr td.product-name a {
    max-width: 68% !important;
    overflow-wrap: anywhere !important;
  }

  body.woocommerce-cart table.shop_table td.actions {
    display: block !important;
    padding: 18px !important;
  }

  body.woocommerce-cart table.shop_table td.actions .coupon {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.woocommerce-cart table.shop_table td.actions .coupon .button,
  body.woocommerce-cart table.shop_table td.actions > .button {
    width: 100% !important;
    margin-top: 10px !important;
    float: none !important;
  }

  body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    padding: 20px !important;
  }
}

/* ─── THEAD FIX ─── */
body.woocommerce-cart table.shop_table thead,
body.woocommerce-cart table.shop_table thead tr {
  background: #111111 !important;
  background-color: #111111 !important;
}

body.woocommerce-cart table.shop_table thead th {
  background: #111111 !important;
  background-color: #111111 !important;
  color: rgba(245,245,245,0.45) !important;
  -webkit-text-fill-color: rgba(245,245,245,0.45) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* Totales del carrito — "Totales del carrito" title */
body.woocommerce-cart .cart_totals h2 {
  background: transparent !important;
  color: #F5F5F5 !important;
  -webkit-text-fill-color: #F5F5F5 !important;
}
