/* Beatify 2.0 — Premium Cart | Scoped to the WooCommerce cart page. */
body.woocommerce-cart {
  --btfy-cart-bg: #131313;
  --btfy-cart-panel: #1b1d20;
  --btfy-cart-panel-2: #17191b;
  --btfy-cart-border: #303236;
  --btfy-cart-text: #f5f5f5;
  --btfy-cart-muted: #999da2;
  --btfy-cart-accent: #d1fe17;
}

body.woocommerce-cart .site-main .page-content {
  background: var(--btfy-cart-bg);
  color: var(--btfy-cart-text);
}

/* The current site places an alignwide Cart Block in an Elementor text widget.
   WordPress gives alignwide a -80px margin there and cuts off album artwork. */
body.woocommerce-cart .elementor-widget-text-editor .wp-block-woocommerce-cart.alignwide,
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .elementor-widget-woocommerce-cart {
  color: var(--btfy-cart-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Intro */
body.woocommerce-cart .btfy-cart-hero,
body.woocommerce-cart .btfy-cart-recommendations {
  box-sizing: border-box;
  width: min(100%, 1280px);
  margin-inline: auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.woocommerce-cart .btfy-cart-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 22px 0 32px;
}

body.woocommerce-cart .btfy-cart-eyebrow {
  display: block;
  color: #8f9295;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .17em;
  font-weight: 500;
}

body.woocommerce-cart .btfy-cart-hero h1 {
  margin: 10px 0 7px;
  color: #fff;
  font-weight: 450;
  font-size: clamp(27px, 2.9vw, 38px);
  line-height: 1.1;
  letter-spacing: -.045em;
}

body.woocommerce-cart .btfy-cart-dot { color: var(--btfy-cart-accent); }

body.woocommerce-cart .btfy-cart-hero p,
body.woocommerce-cart .btfy-reco-heading p {
  margin: 0;
  color: var(--btfy-cart-muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}

body.woocommerce-cart .btfy-cart-hero-mark {
  border: 0;
  border-radius: 0;
  padding: 0 0 7px;
  color: #8c8f93;
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: .13em;
}

/* Native WooCommerce Cart Block */
body.woocommerce-cart .wc-block-cart {
  max-width: 1280px;
  margin-inline: auto;
  align-items: flex-start;
  gap: 24px;
}

body.woocommerce-cart .wc-block-cart.is-large .wc-block-cart__main {
  width: calc(66% - 12px);
  padding: 0 !important;
  margin: 0;
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart.is-large .wc-block-cart__sidebar {
  width: calc(34% - 12px);
  padding: 28px !important;
  margin: 0;
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart__main {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--btfy-cart-text);
}

body.woocommerce-cart .wc-block-cart__sidebar {
  background: #1a1b1d;
  border: 0;
  border-radius: 9px;
  color: var(--btfy-cart-text);
}

body.woocommerce-cart .wc-block-cart__sidebar {
  position: sticky;
  top: 112px;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart-items th,
body.woocommerce-cart .wc-block-cart-items td {
  border: 0 !important;
  color: var(--btfy-cart-text);
}

body.woocommerce-cart .wc-block-cart-items__header { display: none !important; }
body.woocommerce-cart .wc-block-cart-items__row {
  border-top: 1px solid #292a2d;
  border-bottom: 1px solid #292a2d;
}

body.woocommerce-cart .wc-block-cart-items__row td {
  padding-top: 24px;
  padding-bottom: 24px;
}

body.woocommerce-cart .wc-block-cart-items__header th {
  padding-top: 0;
  padding-bottom: 16px;
  color: #96999d;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
}

body.woocommerce-cart .wc-block-cart-item__image { width: 126px !important; }
body.woocommerce-cart .wc-block-cart-item__image img {
  width: 112px !important;
  height: 112px !important;
  max-width: 112px !important;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-cart-item__product a {
  color: #fff !important;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata__description,
body.woocommerce-cart .wc-block-components-product-details {
  color: #92969a;
  font-size: 12px;
  line-height: 1.5;
}

body.woocommerce-cart .btfy-track-meta {
  margin: 9px 0 10px;
  color: #8e9398;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.woocommerce-cart .wc-block-components-product-metadata__description p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* The table already has a total column; avoid displaying the same price twice. */
body.woocommerce-cart .wc-block-cart-item__product .wc-block-cart-item__prices { display: none !important; }

body.woocommerce-cart .wc-block-cart-item__total .amount { font-size: 19px; font-weight: 500; }

body.woocommerce-cart .wc-block-components-quantity-selector {
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.woocommerce-cart .wc-block-components-quantity-selector input,
body.woocommerce-cart .wc-block-components-quantity-selector button {
  background: transparent;
  color: #fff;
  border: 0;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
  color: #a6a9ac !important;
  transition: color .2s ease;
}
body.woocommerce-cart .wc-block-cart-item__remove-link:hover { color: #fff !important; }

body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block {
  padding: 0 0 18px;
  color: #fff;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
}

body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-coupon__form,
body.woocommerce-cart .wc-block-components-panel__button {
  color: #b4b7ba;
  font-size: 12px;
}

body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-totals-item__description {
  color: #f6f6f6;
}

/* Coupon field/button: override the theme's default pink #cc3366. */
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input input {
  min-height: 48px;
  color: #fff !important;
  background: #222426 !important;
  border: 1px solid #393b3e !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input label {
  color: #aeb1b4 !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
  min-height: 48px;
  padding: 0 19px;
  color: #131313 !important;
  background: #fff !important;
  border: 1px solid #fff !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 600;
  transition: background .18s ease, border-color .18s ease;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button * {
  color: inherit !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:disabled {
  color: #aeb1b4 !important;
  background: #303235 !important;
  border-color: #303235 !important;
  cursor: not-allowed;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:not(:disabled):hover {
  background: var(--btfy-cart-accent) !important;
  border-color: var(--btfy-cart-accent) !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item__value,
body.woocommerce-cart .wc-block-components-totals-footer-item__label {
  color: #fff !important;
  font-weight: 500;
  font-size: 20px;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button:visited {
  min-height: 54px;
  background: #fff !important;
  color: #131313 !important;
  border: 1px solid #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .045em;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
  background: var(--btfy-cart-accent) !important;
  border-color: var(--btfy-cart-accent);
  transform: translateY(-1px);
}

body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text { color: #131313; }
body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper { border-color: #33363a; }

/* Elementor Pro Cart widget: same visual language, preserving its native behavior. */
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-start,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-end,
body.woocommerce-cart .elementor-widget-woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #fff;
}

body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column-end,
body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals {
  background: #1a1b1d;
  border-radius: 9px;
}

body.woocommerce-cart .elementor-widget-woocommerce-cart .cart_totals h2,
body.woocommerce-cart .elementor-widget-woocommerce-cart .e-cart__column h2,
body.woocommerce-cart .elementor-widget-woocommerce-cart .product-name a {
  color: #fff;
  font-weight: 500;
}

body.woocommerce-cart .elementor-widget-woocommerce-cart .product-thumbnail img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 5px;
}

body.woocommerce-cart .elementor-widget-woocommerce-cart a.checkout-button,
body.woocommerce-cart .elementor-widget-woocommerce-cart .wc-proceed-to-checkout a {
  background: #fff !important;
  color: #131313 !important;
  border-radius: 7px;
  font-weight: 600;
  transition: background .2s ease;
}

body.woocommerce-cart .elementor-widget-woocommerce-cart a.checkout-button:hover,
body.woocommerce-cart .elementor-widget-woocommerce-cart .wc-proceed-to-checkout a:hover {
  background: var(--btfy-cart-accent) !important;
}

/* Auto recommendations */
body.woocommerce-cart .btfy-cart-recommendations { padding: 50px 0 80px; }
body.woocommerce-cart .btfy-cart-recommendations[hidden] { display: none !important; }
body.woocommerce-cart .btfy-reco-heading { margin-bottom: 24px; }
body.woocommerce-cart .btfy-reco-heading h2 {
  margin: 10px 0 6px;
  color: #fff;
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 450;
  line-height: 1.15;
  letter-spacing: -.035em;
}
body.woocommerce-cart .btfy-reco-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}
body.woocommerce-cart .btfy-reco-card {
  overflow: hidden;
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: transform .2s ease;
}
body.woocommerce-cart .btfy-reco-card:hover {
  transform: translateY(-2px);
}
body.woocommerce-cart .btfy-reco-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #222;
  border-radius: 6px;
}
body.woocommerce-cart .btfy-reco-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
body.woocommerce-cart .btfy-reco-card:hover img { transform: scale(1.035); }
body.woocommerce-cart .btfy-reco-content { padding: 14px 0 0; }
body.woocommerce-cart .btfy-reco-genre {
  display: block;
  margin-bottom: 7px;
  color: #93989c;
  font-size: 10px;
  letter-spacing: .11em;
}
body.woocommerce-cart .btfy-reco-title {
  display: block;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.woocommerce-cart .btfy-reco-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
}
body.woocommerce-cart .btfy-reco-price,
body.woocommerce-cart .btfy-reco-price .amount {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}
body.woocommerce-cart .btfy-reco-price del,
body.woocommerce-cart .btfy-reco-price del .amount {
  color: #8a8e91;
  font-size: 11px;
  font-weight: 400;
}
body.woocommerce-cart .btfy-reco-add,
body.woocommerce-cart .btfy-reco-add.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0;
  color: #e7e7e7 !important;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease;
}
body.woocommerce-cart .btfy-reco-add:hover,
body.woocommerce-cart .btfy-reco-add.button:hover {
  background: transparent !important;
  color: var(--btfy-cart-accent) !important;
}

@media (max-width: 1024px) {
  body.woocommerce-cart .wc-block-cart { gap: 14px; }
  body.woocommerce-cart .wc-block-cart.is-large .wc-block-cart__sidebar { padding: 18px !important; }
  body.woocommerce-cart .btfy-reco-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body.woocommerce-cart .btfy-cart-hero {
    align-items: start;
    padding: 25px 14px 27px;
  }
  body.woocommerce-cart .btfy-cart-hero-mark { display: none; }
  body.woocommerce-cart .btfy-cart-hero h1 { font-size: 30px; }
  body.woocommerce-cart .btfy-cart-hero p { font-size: 12px; }
  body.woocommerce-cart .wc-block-cart,
  body.woocommerce-cart .wc-block-cart.is-large {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  body.woocommerce-cart .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart__sidebar,
  body.woocommerce-cart .wc-block-cart.is-large .wc-block-cart__main,
  body.woocommerce-cart .wc-block-cart.is-large .wc-block-cart__sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 15px !important;
    margin: 0;
  }
  body.woocommerce-cart .wc-block-cart-item__image { width: 72px !important; }
  body.woocommerce-cart .wc-block-cart-item__image img {
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
  }
  body.woocommerce-cart .wc-block-components-product-name { font-size: 14px; }
  body.woocommerce-cart .btfy-cart-recommendations { padding: 52px 14px 65px; }
  body.woocommerce-cart .btfy-reco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.woocommerce-cart .btfy-reco-grid > .btfy-reco-card:last-child:nth-child(odd) {
    grid-column: span 2;
    width: calc(50% - 5px);
    justify-self: center;
  }
  body.woocommerce-cart .btfy-reco-content { padding: 12px 0 0; }
  body.woocommerce-cart .btfy-reco-bottom { align-items: stretch; flex-direction: column; gap: 10px; }
  body.woocommerce-cart .btfy-reco-add { width: auto; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart .btfy-reco-card,
  body.woocommerce-cart .btfy-reco-cover img,
  body.woocommerce-cart .btfy-reco-add,
  body.woocommerce-cart .wc-block-cart__submit-button { transition: none !important; transform: none !important; }
}
