/* Electro HUB — premium dark cart (v1.15.1) */

.woocommerce-cart,
.woocommerce-cart .woocommerce,
.woocommerce-cart .eh-woo-wrap,
.woocommerce-cart form.woocommerce-cart-form,
.woocommerce-cart .woocommerce-notices-wrapper {
  background: #000 !important;
  color: #fff;
}

.woocommerce-cart .woocommerce {
  padding: 0 !important;
}

/* Kill default WC cart chrome / free-shipping bars / estimated totals */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals,
.woocommerce-cart .shop_table.cart,
.woocommerce-cart table.shop_table,
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .woocommerce-shipping-calculator,
.woocommerce-cart .woocommerce-shipping-totals,
.woocommerce-cart .woocommerce-info.wc-forward,
.woocommerce-cart .wc-empty-cart-message,
.woocommerce-cart .return-to-shop,
.woocommerce-cart .woocommerce-message .button.wc-forward,
body.woocommerce-cart .eh-fsb,
body.woocommerce-cart .free-shipping-bar,
body.woocommerce-cart .woocommerce-free-shipping-progress-bar,
body.woocommerce-cart [class*="free-shipping"],
body.woocommerce-cart [class*="estimated"],
body.woocommerce-cart .cart-progress,
body.woocommerce-cart .thwmscf-wrapper {
  display: none !important;
}

/* Keep our page visible even if nested in WC wrappers */
.eh-cart-page {
  display: block !important;
  color: #fff;
  background: #000;
  padding-bottom: 3.5rem;
}

.eh-cart-hero {
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(196, 30, 58, 0.16), transparent 60%),
    #000;
}

.eh-cart-hero .breadcrumb {
  margin-bottom: 1.15rem;
}

.eh-cart-title {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
}

.eh-cart-lead {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.05rem;
  line-height: 1.5;
}

.eh-cart-layout {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.75rem;
  align-items: start;
}

@media (min-width: 960px) {
  .eh-cart-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
    gap: 1.75rem;
  }
}

/* —— Line items —— */
.eh-cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eh-cart-item {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, #151515, #0c0c0c);
  overflow: hidden;
}

.eh-cart-item-inner {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.15rem 1.15rem;
  align-items: start;
}

@media (min-width: 640px) {
  .eh-cart-item-inner {
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    padding: 1.25rem 1.35rem;
  }
}

.eh-cart-item-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eh-cart-item-thumb a {
  display: block;
  width: 100%;
  height: 100%;
}

.eh-cart-item-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  display: block;
  background: #f2f2f2;
}

.eh-cart-item-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.eh-cart-item-name a {
  color: #fff;
  text-decoration: none;
}

.eh-cart-item-name a:hover {
  color: #ff8a80;
}

.eh-cart-item-benefit {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.4;
}

.eh-cart-item-price {
  margin-bottom: 0.85rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
}

.eh-cart-item-price .eh-price-request,
.eh-cart-upsell-price .eh-price-request {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 550;
  font-size: 0.92rem;
}

.eh-cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.eh-cart-item-subtotal {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Qty */
.eh-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}

.eh-cart-qty--locked {
  padding: 0.35rem 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 650;
  font-size: 0.92rem;
}

.eh-cart-qty-btn {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.eh-cart-qty-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ff8a80;
}

.eh-cart-qty-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.eh-cart-qty-input {
  width: 2.4rem !important;
  height: 2.2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  text-align: center;
  font-weight: 650;
  font-size: 0.95rem !important;
  -moz-appearance: textfield;
  appearance: textfield;
}

.eh-cart-qty-input::-webkit-outer-spin-button,
.eh-cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.eh-cart-remove {
  color: rgba(255, 255, 255, 0.45) !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
  font-weight: 500;
}

.eh-cart-remove:hover {
  color: rgba(255, 255, 255, 0.85) !important;
  background: none !important;
}

/* Upsells under robot */
.eh-cart-upsells {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1rem 1.15rem 1.15rem;
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 640px) {
  .eh-cart-upsells {
    padding: 1.05rem 1.35rem 1.25rem;
  }
}

.eh-cart-upsells-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.eh-cart-upsells-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 720px) {
  .eh-cart-upsells-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.eh-cart-upsell {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e0e0e;
}

@media (min-width: 720px) {
  .eh-cart-upsell {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.55rem;
  }
}

.eh-cart-upsell-thumb {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f2;
}

@media (min-width: 720px) {
  .eh-cart-upsell-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1.2;
  }
}

.eh-cart-upsell-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.eh-cart-upsell-name {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.3;
}

.eh-cart-upsell-name:hover {
  color: #ff8a80;
}

.eh-cart-upsell-price {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.eh-cart-upsell-add {
  white-space: nowrap;
}

.eh-cart-upsell-add.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* Form foot / coupon */
.eh-cart-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding-top: 0.25rem;
}

.eh-cart-coupon-toggle {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eh-cart-coupon-toggle:hover {
  color: #fff;
}

.eh-cart-coupon-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
  align-items: center;
}

.eh-cart-coupon-panel[hidden] {
  display: none !important;
}

.eh-cart-coupon-input {
  min-width: 10rem;
  padding: 0.55rem 0.8rem !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: #0e0e0e !important;
  color: #fff !important;
}

.eh-cart-update {
  opacity: 0.55;
  font-size: 0.88rem !important;
  padding: 0.45rem 0.8rem !important;
}

.eh-cart-update.is-dirty {
  opacity: 1;
}

/* —— Summary sticky —— */
.eh-cart-aside {
  position: relative;
}

.eh-cart-summary {
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, #171717, #0c0c0c);
}

@media (min-width: 960px) {
  .eh-cart-summary {
    position: sticky;
    top: 5.5rem;
  }
}

.eh-cart-summary-title {
  margin: 0 0 1.1rem;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #fff;
}

.eh-cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.eh-cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.eh-cart-summary-row--muted {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
}

.eh-cart-summary-row--total {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.1rem;
  font-weight: 750;
  color: #fff;
}

.eh-cart-summary-row--total .amount,
.eh-cart-summary-row--total strong {
  color: #fff;
  font-weight: 750;
}

.eh-cart-summary-note {
  margin: -0.25rem 0 0.15rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.35;
}

.eh-cart-checkout {
  display: flex !important;
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
  background: #C41E3A !important;
  box-shadow: 0 4px 18px rgba(196, 30, 58, 0.28);
}

.eh-cart-checkout:hover {
  background: #E10600 !important;
}

.eh-cart-summary-help {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
}

.eh-cart-summary .eh-msg-row {
  margin-bottom: 1rem;
}

.eh-cart-checklist {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

/* Empty */
.eh-cart-page--empty .eh-cart-hero {
  padding-bottom: 3.5rem;
  min-height: 42vh;
}

.eh-cart-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

/* Notices on cart — calm dark */
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error {
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  border-radius: 12px;
  margin: 1rem auto 0;
  max-width: var(--eh-max, 1120px);
}

/* Hide WC empty cart icon/message spam when our empty template is present */
.woocommerce-cart .wc-empty-cart-message,
.woocommerce-cart .cart-empty.woocommerce-info {
  display: none !important;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


/* Soft note under robot lines — accessories coming later */
.eh-cart-acc-note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  line-height: 1.45;
}
.eh-cart-item--robot .eh-cart-upsells {
  margin-top: 0.75rem;
}
