/* BE-CLONE — Cart Page (Gate E1 + Gate P classic)
   WooCommerce cart — CSS for both Blocks and Classic shortcode.
   ============================================================ */

/* ══════════════════════════════════════
   CLASSIC SHORTCODE CART
   ══════════════════════════════════════ */

.woocommerce-cart .woocommerce {
  max-width: var(--content-max, 1200px);
  margin: 0 auto;
  padding: 40px 20px;
}

.woocommerce-cart .shop_table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.woocommerce-cart .shop_table th {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light, #6b7280);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.woocommerce-cart .shop_table td {
  padding: 20px 8px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  vertical-align: middle;
  font-size: 14px;
}

.woocommerce-cart .shop_table .product-thumbnail img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.woocommerce-cart .shop_table .product-name a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text, #111);
  text-decoration: none;
}

.woocommerce-cart .shop_table .product-name a:hover {
  text-decoration: underline;
}

.woocommerce-cart .shop_table .product-name dl.variation {
  font-size: 13px;
  color: var(--color-text-light, #6b7280);
  margin: 6px 0 0;
}

.woocommerce-cart .shop_table .product-name dl.variation dt {
  font-weight: 600;
  color: var(--color-text, #111);
  float: left;
  margin-right: 4px;
}

.woocommerce-cart .shop_table .product-name dl.variation dd {
  margin: 0 0 4px;
}

.woocommerce-cart .shop_table .product-name .wapf-cart-item-meta {
  font-size: 13px;
  margin-top: 6px;
}

.woocommerce-cart .shop_table .product-name .wapf-cart-item-meta strong {
  font-weight: 600;
}

.woocommerce-cart .shop_table .product-price,
.woocommerce-cart .shop_table .product-subtotal {
  font-family: var(--font-body);
  font-size: 14px;
}

.woocommerce-cart .shop_table .product-remove a {
  color: var(--color-text-light, #6b7280);
  font-size: 18px;
  text-decoration: none;
}

.woocommerce-cart .shop_table .product-remove a:hover {
  color: var(--color-text, #111);
}

.woocommerce-cart .shop_table .quantity input.qty {
  width: 60px;
  text-align: center;
  padding: 8px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius, 8px);
  font-family: var(--font-body);
  font-size: 14px;
}

.woocommerce-cart .coupon input {
  padding: 10px 14px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--radius, 8px);
  font-family: var(--font-body);
  font-size: 14px;
}

.woocommerce-cart .coupon .button,
.woocommerce-cart .actions .button {
  background: var(--color-primary, #000);
  color: var(--color-primary-contrast, #fff);
  border: none;
  border-radius: var(--radius-btn, 10px);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: opacity var(--dur-fast, 120ms) var(--ease, ease);
}

.woocommerce-cart .coupon .button:hover,
.woocommerce-cart .actions .button:hover {
  opacity: 0.85;
}

.woocommerce-cart .actions .button[name="update_cart"] {
  background: var(--color-text-light, #6b7280);
}

.woocommerce-cart .cart_totals {
  font-family: var(--font-body);
}

.woocommerce-cart .cart_totals h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.woocommerce-cart .cart_totals .shop_table {
  border: none;
}

.woocommerce-cart .cart_totals .shop_table th,
.woocommerce-cart .cart_totals .shop_table td {
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-weight: 600;
  font-size: 16px;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  background: var(--color-primary, #000);
  color: var(--color-primary-contrast, #fff);
  border: none;
  border-radius: var(--radius-btn, 10px);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  transition: opacity var(--dur-fast, 120ms) var(--ease, ease);
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .woocommerce-cart .shop_table .product-thumbnail {
    display: none;
  }

  .woocommerce-cart .shop_table td {
    padding: 12px 4px;
    font-size: 13px;
  }
}

/* ══════════════════════════════════════
   BLOCKS CART (kept for compatibility)
   ══════════════════════════════════════ */

/* ── Checkout Button: black (Shopify) ── */
.wc-block-cart__submit-button.wc-block-components-button {
  background: var(--color-primary, #000);
  color: var(--color-primary-contrast, #fff);
  border: none;
  border-radius: var(--radius-btn, 10px);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  transition: opacity var(--dur-fast, 120ms) var(--ease, ease);
}

.wc-block-cart__submit-button.wc-block-components-button:hover {
  background: var(--color-primary, #000);
  opacity: 0.85;
}

.wc-block-cart__submit-button .wc-block-components-button__text {
  font-weight: var(--font-weight-regular, 400);
}

/* ── Hide product description (Shopify doesn't show it) ── */
.wc-block-components-product-metadata {
  display: none;
}

/* ── Hide table column headers (Shopify has no visible headers) ── */
.wc-block-cart-items__header {
  display: none;
}

/* ── Cart title styling (Shopify uses italic serif "Cart (1 Item)") ── */
.wc-block-cart .wp-block-woocommerce-cart-items-block h2,
.wc-block-cart-items > h2,
.wp-block-woocommerce-cart .wc-block-cart__main h2:first-of-type {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 36px;
  font-weight: var(--font-weight-regular, 400);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

/* ── Continue Shopping link (injected via JS) ── */
.be-cart-continue {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-text, #111);
  margin-bottom: 24px;
  transition: opacity var(--dur-fast, 120ms) var(--ease, ease);
}

.be-cart-continue:hover {
  opacity: 0.6;
}

/* ── Totals heading: match Shopify "SUBTOTAL" ── */
.wc-block-cart__totals-title {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: var(--font-weight-regular, 400);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  margin-bottom: 16px;
}

/* ── Totals amount styling ── */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: var(--font-weight-regular, 400);
}

/* ── Shipping note (injected via JS) ── */
.be-cart-shipping-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-light, #6b7280);
  text-align: center;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* ── Product name in cart ── */
.wc-block-cart .wc-block-components-product-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: var(--font-weight-regular, 400);
  color: var(--color-text, #111);
  text-decoration: none;
}

.wc-block-cart .wc-block-components-product-name:hover {
  text-decoration: underline;
}

/* ── Item price ── */
.wc-block-cart .wc-block-components-product-price {
  font-family: var(--font-body);
  font-size: 14px;
}

/* ── Quantity selector ── */
.wc-block-cart .wc-block-components-quantity-selector {
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 0;
}

.wc-block-cart .wc-block-components-quantity-selector__button {
  color: var(--color-text, #111);
}

/* ── Remove link ── */
.wc-block-cart .wc-block-cart-item__remove-link {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--color-text-light, #6b7280);
}

/* ── Coupon panel ── */
.wc-block-cart .wc-block-components-panel__button {
  font-family: var(--font-body);
  font-size: 13px;
}

/* ── Cart image (Shopify uses small thumbnail, not full-column) ── */
.wc-block-cart-item__image {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
}

.wc-block-cart-item__image img {
  border-radius: 0;
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* ── Mobile adjustments ── */
@media (max-width: 768px) {
  .wc-block-cart .wp-block-woocommerce-cart-items-block h2 {
    font-size: 28px;
  }

  .wc-block-cart__submit-button.wc-block-components-button {
    font-size: 12px;
    padding: 14px 24px;
  }

  .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 18px;
  }
}
