/**
 * VEC Cart Page Styles
 * Following VEC Design System
 * Supports WooCommerce Blocks (Gutenberg), Elementor, and Classic WooCommerce
 */

/* ========================================
   WOOCOMMERCE BLOCKS (GUTENBERG) STYLES
   ======================================== */

/* Proceed to Checkout Button - Brand Red */
.wc-block-cart__submit-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button,
.wc-block-cart__submit .wc-block-components-button {
  background: #da291c !important;
  background-color: #da291c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.15s ease !important;
  padding: 16px 32px !important;
}

.wc-block-cart__submit-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-button:hover,
.wc-block-cart__submit .wc-block-components-button:hover {
  background: #b82318 !important;
  background-color: #b82318 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Product Name Links */
.wc-block-components-product-name {
  color: #333333 !important;
  text-decoration: none !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.wc-block-components-product-name:hover {
  color: #da291c !important;
}

/* Cart Totals Title */
.wc-block-cart__totals-title,
.wp-block-woocommerce-cart-order-summary-heading-block {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: #333333 !important;
  font-size: 1.25rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Estimated Total */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: #333333 !important;
  font-size: 1.125rem !important;
}

.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  color: #da291c !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.25rem !important;
}

/* Product Prices */
.wc-block-components-product-price__value {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  color: #333333 !important;
}

/* Remove Item Button */
.wc-block-cart-item__remove-link {
  color: #666666 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
}

.wc-block-cart-item__remove-link:hover {
  color: #da291c !important;
}

/* Quantity Selector */
.wc-block-components-quantity-selector {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.wc-block-components-quantity-selector__input {
  border: none !important;
  text-align: center !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  width: 50px !important;
  -moz-appearance: textfield !important;
  background: #ffffff !important;
}

.wc-block-components-quantity-selector__button {
  background: #f8f8f8 !important;
  border: none !important;
  color: #333333 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  padding: 8px 12px !important;
  font-size: 16px !important;
}

.wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background: #da291c !important;
  color: #ffffff !important;
}

.wc-block-components-quantity-selector__button:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Cart Table Headers */
.wc-block-cart-items__header th {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: #333333 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 0.875rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

/* Cart Items */
.wc-block-cart-items__row {
  border-bottom: 1px solid #e0e0e0 !important;
}

/* Product Image */
.wc-block-cart-item__image img {
  border-radius: 4px !important;
  border: 1px solid #e0e0e0 !important;
}

/* Coupon Section */
.wc-block-components-totals-coupon .wc-block-components-panel__button {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  color: #333333 !important;
}

.wc-block-components-totals-coupon .wc-block-components-panel__button:hover {
  color: #da291c !important;
}

/* Page Title */
.page-header .entry-title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  color: #333333 !important;
}

/* Sidebar (Cart Totals) */
.wc-block-cart__sidebar {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 1.5rem !important;
}

/* ========================================
   EMPTY CART STATE
   ======================================== */

.wp-block-woocommerce-empty-cart-block {
  padding: 2rem 1rem !important;
}

/* Empty cart title with icon */
.wc-block-cart__empty-cart__title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: #333333 !important;
  font-size: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

/* Separator dots */
.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots {
  border: none !important;
  margin: 2rem auto !important;
}

.wp-block-woocommerce-empty-cart-block .wp-block-separator.is-style-dots::before {
  color: #da291c !important;
}

/* New in store heading */
.wp-block-woocommerce-empty-cart-block h2.wp-block-heading {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  color: #333333 !important;
  font-size: 1.75rem !important;
  margin-bottom: 1.5rem !important;
}

/* ========================================
   PRODUCT CARDS GRID (New in store)
   ======================================== */

/* Fix parent container widths */
.wp-block-woocommerce-empty-cart-block {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.wc-block-grid.wp-block-product-new,
.wp-block-woocommerce-product-new,
.wc-block-product-new {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

.wc-block-grid__products {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

/* Product Card */
.wc-block-grid__product {
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  flex: 0 0 calc(25% - 1.125rem) !important;
  max-width: calc(25% - 1.125rem) !important;
  min-width: 200px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .wc-block-grid__product {
    flex: 0 0 calc(33.333% - 1rem) !important;
    max-width: calc(33.333% - 1rem) !important;
  }
}

@media (max-width: 768px) {
  .wc-block-grid__products {
    gap: 1rem !important;
  }
  .wc-block-grid__product {
    flex: 0 0 calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
    min-width: 140px !important;
  }
}

@media (max-width: 480px) {
  .wc-block-grid__product {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

.wc-block-grid__product:hover {
  border-color: #da291c !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-4px) !important;
}

/* Product Link */
.wc-block-grid__product-link {
  text-decoration: none !important;
  display: block !important;
}

/* Sale Badge */
.wc-block-grid__product-onsale {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: #da291c !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  z-index: 10 !important;
}

/* Product Image */
.wc-block-grid__product-image {
  position: relative !important;
  overflow: hidden !important;
  background: #f8f8f8 !important;
  width: 100% !important;
  padding-top: 100% !important; /* 1:1 aspect ratio */
}

.wc-block-grid__product-image img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.05) !important;
}

/* Product Title */
.wc-block-grid__product-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #333333 !important;
  padding: 1rem 1rem 0.5rem !important;
  line-height: 1.4 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.8rem !important;
  word-wrap: break-word !important;
}

.wc-block-grid__product:hover .wc-block-grid__product-title {
  color: #da291c !important;
}

/* Product Price */
.wc-block-grid__product-price {
  padding: 0 1rem 0.75rem !important;
  font-family: 'Montserrat', sans-serif !important;
}

.wc-block-grid__product-price .woocommerce-Price-amount {
  font-weight: 600 !important;
  font-size: 1rem !important;
  color: #da291c !important;
}

/* Sale price styling */
.wc-block-grid__product-price del {
  color: #999999 !important;
  font-size: 0.875rem !important;
  margin-right: 0.5rem !important;
}

.wc-block-grid__product-price del .woocommerce-Price-amount {
  color: #999999 !important;
  font-weight: 400 !important;
  font-size: 0.875rem !important;
}

.wc-block-grid__product-price ins {
  text-decoration: none !important;
}

.wc-block-grid__product-price ins .woocommerce-Price-amount {
  color: #da291c !important;
  font-weight: 600 !important;
}

/* Add to Cart Button */
.wc-block-grid__product-add-to-cart {
  padding: 0 1rem 1rem !important;
  margin-top: auto !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wc-block-grid__product-add-to-cart a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  text-align: center !important;
  background: #da291c !important;
  color: #ffffff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  padding: 10px 12px !important;
  border: none !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-grid__product-add-to-cart a:hover {
  background: #b82318 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(218, 41, 28, 0.3) !important;
}

/* Loading state for AJAX add to cart */
.wc-block-grid__product-add-to-cart .added_to_cart {
  display: block !important;
  margin-top: 0.5rem !important;
  color: #28a745 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.8rem !important;
  text-decoration: none !important;
}

.wc-block-grid__product-add-to-cart .added_to_cart:hover {
  text-decoration: underline !important;
}

/* ========================================
   ELEMENTOR CART WIDGET STYLES
   ======================================== */

/* Checkout Button - Brand Red */
.elementor-widget-woocommerce-cart .e-cart__container .wc-proceed-to-checkout a.checkout-button,
.elementor-widget-woocommerce-cart .checkout-button,
.e-cart-totals .wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout .checkout-button,
a.checkout-button.button.alt.wc-forward {
  background: #da291c !important;
  background-color: #da291c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  transition: all 0.15s ease !important;
}

.elementor-widget-woocommerce-cart .e-cart__container .wc-proceed-to-checkout a.checkout-button:hover,
.elementor-widget-woocommerce-cart .checkout-button:hover,
.e-cart-totals .wc-proceed-to-checkout .checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:hover,
a.checkout-button.button.alt.wc-forward:hover {
  background: #b82318 !important;
  background-color: #b82318 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Product Name Links */
.elementor-widget-woocommerce-cart .product-name a,
.e-cart-content .product-name a,
.woocommerce-cart-form .product-name a {
  color: #333333 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.elementor-widget-woocommerce-cart .product-name a:hover,
.e-cart-content .product-name a:hover,
.woocommerce-cart-form .product-name a:hover {
  color: #da291c !important;
}

/* Cart Totals Header */
.elementor-widget-woocommerce-cart .e-cart-totals h2,
.e-cart-totals h2,
.cart_totals h2 {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: #333333 !important;
  font-size: 1.25rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: 1px solid #e0e0e0 !important;
}

/* Coupon Section */
.elementor-widget-woocommerce-cart .e-cart-totals .e-coupon-anchor,
.e-cart-totals .e-coupon-anchor,
.cart_totals .coupon-anchor {
  color: #333333 !important;
  font-family: 'Montserrat', sans-serif !important;
}

.elementor-widget-woocommerce-cart .e-cart-totals .e-coupon-anchor:hover,
.e-cart-totals .e-coupon-anchor:hover {
  color: #da291c !important;
}

/* Coupon Apply Button */
.elementor-widget-woocommerce-cart .e-apply-coupon,
.e-cart-totals .e-apply-coupon,
.coupon .button {
  background: #f8f8f8 !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.elementor-widget-woocommerce-cart .e-apply-coupon:hover,
.e-cart-totals .e-apply-coupon:hover,
.coupon .button:hover {
  background: #da291c !important;
  color: #ffffff !important;
  border-color: #da291c !important;
}

/* Estimated Total */
.elementor-widget-woocommerce-cart .e-cart-totals .order-total th,
.elementor-widget-woocommerce-cart .e-cart-totals .order-total td,
.e-cart-totals .order-total th,
.e-cart-totals .order-total td {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  color: #333333 !important;
  font-size: 1.125rem !important;
}

.elementor-widget-woocommerce-cart .e-cart-totals .order-total .woocommerce-Price-amount,
.e-cart-totals .order-total .woocommerce-Price-amount {
  color: #da291c !important;
  font-size: 1.25rem !important;
}

/* Remove Item Link */
.elementor-widget-woocommerce-cart .product-remove a,
.e-cart-content .product-remove a,
.woocommerce-cart-form .product-remove a {
  color: #666666 !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  transition: color 0.15s ease !important;
}

.elementor-widget-woocommerce-cart .product-remove a:hover,
.e-cart-content .product-remove a:hover,
.woocommerce-cart-form .product-remove a:hover {
  color: #da291c !important;
}

/* Quantity Controls */
.elementor-widget-woocommerce-cart .quantity,
.e-cart-content .quantity {
  display: flex !important;
  align-items: center !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.elementor-widget-woocommerce-cart .quantity input.qty,
.e-cart-content .quantity input.qty {
  border: none !important;
  text-align: center !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  width: 50px !important;
  -moz-appearance: textfield !important;
}

.elementor-widget-woocommerce-cart .quantity .minus,
.elementor-widget-woocommerce-cart .quantity .plus,
.e-cart-content .quantity .minus,
.e-cart-content .quantity .plus {
  background: #f8f8f8 !important;
  border: none !important;
  color: #333333 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  padding: 8px 12px !important;
}

.elementor-widget-woocommerce-cart .quantity .minus:hover,
.elementor-widget-woocommerce-cart .quantity .plus:hover,
.e-cart-content .quantity .minus:hover,
.e-cart-content .quantity .plus:hover {
  background: #da291c !important;
  color: #ffffff !important;
}

/* Product Image */
.elementor-widget-woocommerce-cart .product-thumbnail img,
.e-cart-content .product-thumbnail img {
  border-radius: 4px !important;
  border: 1px solid #e0e0e0 !important;
}

/* Cart Table Headers */
.elementor-widget-woocommerce-cart .e-cart-header,
.e-cart-content .e-cart-header {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: #333333 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 0.875rem !important;
}

/* Price styling */
.elementor-widget-woocommerce-cart .woocommerce-Price-amount,
.e-cart-content .woocommerce-Price-amount {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  color: #333333 !important;
}

/* Messages/Notices */
.elementor-widget-woocommerce-cart .woocommerce-message,
.elementor-widget-woocommerce-cart .woocommerce-info {
  background: #FFECED !important;
  border-color: #da291c !important;
  border-radius: 4px !important;
}

/* ========================================
   DEFAULT WOOCOMMERCE CART STYLES
   ======================================== */

/* CART PAGE CONTAINER */
body.woocommerce-cart .woocommerce {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: var(--space-m) var(--space-s) !important;
}

/* ========================================
   CART TABLE
   ======================================== */

body.woocommerce-cart .woocommerce-cart-form {
  margin-bottom: var(--space-l) !important;
}

body.woocommerce-cart table.shop_table {
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
  background: var(--color-background) !important;
}

body.woocommerce-cart table.shop_table thead {
  background: var(--color-background-alt) !important;
}

body.woocommerce-cart table.shop_table thead th {
  padding: var(--space-s) var(--space-xs) !important;
  font-family: var(--font-family-heading) !important;
  font-weight: var(--font-weight-semibold) !important;
  font-size: var(--font-size-body-small) !important;
  color: var(--color-dark-text) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 1px solid var(--color-border) !important;
  text-align: left !important;
}

body.woocommerce-cart table.shop_table tbody td {
  padding: var(--space-s) var(--space-xs) !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--color-border) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body) !important;
  color: var(--color-dark-text) !important;
}

body.woocommerce-cart table.shop_table tbody tr:last-child td {
  border-bottom: none !important;
}

/* Product Thumbnail */
body.woocommerce-cart table.shop_table .product-thumbnail {
  width: 100px !important;
}

body.woocommerce-cart table.shop_table .product-thumbnail img {
  width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--color-border) !important;
}

/* Product Name */
body.woocommerce-cart table.shop_table .product-name a {
  color: var(--color-dark-text) !important;
  text-decoration: none !important;
  font-weight: var(--font-weight-medium) !important;
  transition: color var(--transition-fast) !important;
}

body.woocommerce-cart table.shop_table .product-name a:hover {
  color: #da291c !important;
}

/* Product Price */
body.woocommerce-cart table.shop_table .product-price .woocommerce-Price-amount {
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-gray-text) !important;
}

/* Subtotal */
body.woocommerce-cart table.shop_table .product-subtotal .woocommerce-Price-amount {
  font-weight: var(--font-weight-semibold) !important;
  color: var(--color-dark-text) !important;
  font-size: var(--font-size-body-large) !important;
}

/* Remove Item Link */
body.woocommerce-cart table.shop_table .product-remove a.remove {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: var(--color-background-alt) !important;
  color: var(--color-gray-text) !important;
  font-size: 18px !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
  border: 1px solid var(--color-border) !important;
}

body.woocommerce-cart table.shop_table .product-remove a.remove:hover {
  background: #da291c !important;
  color: #ffffff !important;
  border-color: #da291c !important;
}

/* ========================================
   QUANTITY CONTROLS
   ======================================== */

body.woocommerce-cart .quantity {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden !important;
  width: fit-content !important;
}

body.woocommerce-cart .quantity .qty {
  width: 50px !important;
  height: 40px !important;
  border: none !important;
  text-align: center !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-dark-text) !important;
  background: var(--color-background) !important;
  -moz-appearance: textfield !important;
}

body.woocommerce-cart .quantity .qty::-webkit-outer-spin-button,
body.woocommerce-cart .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Quantity +/- buttons (if using custom buttons) */
body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity .plus {
  width: 36px !important;
  height: 40px !important;
  border: none !important;
  background: var(--color-background-alt) !important;
  color: var(--color-dark-text) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.woocommerce-cart .quantity .minus:hover,
body.woocommerce-cart .quantity .plus:hover {
  background: #da291c !important;
  color: #ffffff !important;
}

/* ========================================
   COUPON SECTION
   ======================================== */

body.woocommerce-cart .coupon {
  display: flex !important;
  align-items: center !important;
  gap: var(--space-xs) !important;
  flex-wrap: wrap !important;
}

body.woocommerce-cart .coupon label {
  display: none !important;
}

body.woocommerce-cart .coupon #coupon_code {
  padding: 12px 16px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body) !important;
  min-width: 200px !important;
  transition: border-color var(--transition-fast) !important;
}

body.woocommerce-cart .coupon #coupon_code:focus {
  outline: none !important;
  border-color: #da291c !important;
}

body.woocommerce-cart .coupon .button {
  padding: 12px 24px !important;
  background: var(--color-background-alt) !important;
  color: var(--color-dark-text) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-medium) !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
}

body.woocommerce-cart .coupon .button:hover {
  background: #da291c !important;
  color: #ffffff !important;
  border-color: #da291c !important;
}

/* Update Cart Button */
body.woocommerce-cart button[name="update_cart"] {
  padding: 12px 24px !important;
  background: var(--color-background-alt) !important;
  color: var(--color-dark-text) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-medium) !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
}

body.woocommerce-cart button[name="update_cart"]:hover {
  background: var(--color-dark-text) !important;
  color: #ffffff !important;
  border-color: var(--color-dark-text) !important;
}

body.woocommerce-cart button[name="update_cart"]:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ========================================
   CART TOTALS
   ======================================== */

body.woocommerce-cart .cart-collaterals {
  margin-top: var(--space-l) !important;
}

body.woocommerce-cart .cart_totals {
  background: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-m) !important;
  max-width: 450px !important;
  margin-left: auto !important;
}

body.woocommerce-cart .cart_totals > h2 {
  font-family: var(--font-family-heading) !important;
  font-size: var(--font-size-h4) !important;
  font-weight: var(--font-weight-semibold) !important;
  color: var(--color-dark-text) !important;
  margin: 0 0 var(--space-s) 0 !important;
  padding-bottom: var(--space-xs) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

body.woocommerce-cart .cart_totals table {
  width: 100% !important;
  border: none !important;
}

body.woocommerce-cart .cart_totals table tr {
  border-bottom: 1px solid var(--color-border) !important;
}

body.woocommerce-cart .cart_totals table tr:last-child {
  border-bottom: none !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
  padding: var(--space-xs) 0 !important;
  border: none !important;
  font-family: var(--font-family-base) !important;
  vertical-align: top !important;
}

body.woocommerce-cart .cart_totals table th {
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-gray-text) !important;
  text-align: left !important;
  width: 40% !important;
}

body.woocommerce-cart .cart_totals table td {
  font-size: var(--font-size-body) !important;
  color: var(--color-dark-text) !important;
  text-align: right !important;
}

body.woocommerce-cart .cart_totals table .order-total th,
body.woocommerce-cart .cart_totals table .order-total td {
  font-size: var(--font-size-body-large) !important;
  font-weight: var(--font-weight-bold) !important;
  color: var(--color-dark-text) !important;
  padding-top: var(--space-s) !important;
}

body.woocommerce-cart .cart_totals table .order-total .woocommerce-Price-amount {
  color: #da291c !important;
  font-size: var(--font-size-h4) !important;
}

/* Shipping options */
body.woocommerce-cart .cart_totals .woocommerce-shipping-methods {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-methods li {
  margin-bottom: var(--space-2xs) !important;
}

body.woocommerce-cart .cart_totals .woocommerce-shipping-methods label {
  font-size: var(--font-size-body-small) !important;
  color: var(--color-dark-text) !important;
  cursor: pointer !important;
}

/* ========================================
   PROCEED TO CHECKOUT BUTTON
   ======================================== */

body.woocommerce-cart .wc-proceed-to-checkout {
  margin-top: var(--space-m) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  display: block !important;
  width: 100% !important;
  padding: 16px 32px !important;
  background: #da291c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-button) !important;
  font-weight: var(--font-weight-semibold) !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  background: #b82318 !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ========================================
   COUPON ACCORDION (if using accordion style)
   ======================================== */

body.woocommerce-cart .woocommerce-form-coupon-toggle {
  margin-bottom: var(--space-s) !important;
}

body.woocommerce-cart .woocommerce-form-coupon-toggle .woocommerce-info {
  background: var(--color-background-alt) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: var(--space-xs) var(--space-s) !important;
  color: var(--color-dark-text) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body) !important;
}

body.woocommerce-cart .woocommerce-form-coupon-toggle .woocommerce-info a {
  color: #da291c !important;
  text-decoration: none !important;
  font-weight: var(--font-weight-medium) !important;
}

body.woocommerce-cart .woocommerce-form-coupon-toggle .woocommerce-info a:hover {
  text-decoration: underline !important;
}

body.woocommerce-cart .checkout_coupon {
  background: var(--color-background-alt) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  padding: var(--space-s) !important;
  margin-bottom: var(--space-s) !important;
}

/* ========================================
   EMPTY CART
   ======================================== */

body.woocommerce-cart .cart-empty {
  text-align: center !important;
  padding: var(--space-2xl) var(--space-m) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body-large) !important;
  color: var(--color-gray-text) !important;
}

body.woocommerce-cart .cart-empty::before {
  content: '' !important;
  display: block !important;
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto var(--space-m) !important;
  background: var(--color-background-alt) !important;
  border-radius: 50% !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='1.5'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 40px !important;
}

body.woocommerce-cart .return-to-shop {
  margin-top: var(--space-m) !important;
}

body.woocommerce-cart .return-to-shop .button {
  display: inline-block !important;
  padding: 14px 32px !important;
  background: #da291c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-button) !important;
  font-weight: var(--font-weight-medium) !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
}

body.woocommerce-cart .return-to-shop .button:hover {
  background: #b82318 !important;
}

/* ========================================
   NOTICES & MESSAGES
   ======================================== */

body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info {
  background: var(--color-secondary) !important;
  border: 1px solid #da291c !important;
  border-radius: var(--radius-sm) !important;
  padding: var(--space-xs) var(--space-s) !important;
  margin-bottom: var(--space-s) !important;
  color: var(--color-dark-text) !important;
  font-family: var(--font-family-base) !important;
}

body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before {
  color: #da291c !important;
}

body.woocommerce-cart .woocommerce-error {
  background: #fef2f2 !important;
  border: 1px solid var(--color-error) !important;
  border-radius: var(--radius-sm) !important;
  padding: var(--space-xs) var(--space-s) !important;
  margin-bottom: var(--space-s) !important;
  color: var(--color-dark-text) !important;
  font-family: var(--font-family-base) !important;
  list-style: none !important;
}

/* ========================================
   CROSS-SELLS
   ======================================== */

body.woocommerce-cart .cross-sells {
  margin-top: var(--space-xl) !important;
}

body.woocommerce-cart .cross-sells > h2 {
  font-family: var(--font-family-heading) !important;
  font-size: var(--font-size-h3) !important;
  font-weight: var(--font-weight-semibold) !important;
  color: var(--color-dark-text) !important;
  margin-bottom: var(--space-m) !important;
}

body.woocommerce-cart .cross-sells .products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: var(--space-m) !important;
}

body.woocommerce-cart .cross-sells .product {
  background: var(--color-background) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  padding: var(--space-s) !important;
  text-align: center !important;
  transition: all var(--transition-fast) !important;
}

body.woocommerce-cart .cross-sells .product:hover {
  border-color: #da291c !important;
  box-shadow: var(--shadow-sm) !important;
}

body.woocommerce-cart .cross-sells .product img {
  width: 100% !important;
  height: auto !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: var(--space-xs) !important;
}

body.woocommerce-cart .cross-sells .product .woocommerce-loop-product__title {
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-medium) !important;
  color: var(--color-dark-text) !important;
  margin-bottom: var(--space-2xs) !important;
}

body.woocommerce-cart .cross-sells .product .price {
  font-family: var(--font-family-base) !important;
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-semibold) !important;
  color: #da291c !important;
}

body.woocommerce-cart .cross-sells .product .button {
  display: inline-block !important;
  margin-top: var(--space-xs) !important;
  padding: 10px 20px !important;
  background: #da291c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  font-size: var(--font-size-body-small) !important;
  font-weight: var(--font-weight-medium) !important;
  text-decoration: none !important;
  transition: all var(--transition-fast) !important;
}

body.woocommerce-cart .cross-sells .product .button:hover {
  background: #b82318 !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  body.woocommerce-cart .woocommerce {
    padding: var(--space-s) var(--space-xs) !important;
  }

  /* Stack table on mobile */
  body.woocommerce-cart table.shop_table,
  body.woocommerce-cart table.shop_table thead,
  body.woocommerce-cart table.shop_table tbody,
  body.woocommerce-cart table.shop_table tr,
  body.woocommerce-cart table.shop_table td {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-cart table.shop_table thead {
    display: none !important;
  }

  body.woocommerce-cart table.shop_table tbody tr {
    position: relative !important;
    padding: var(--space-s) !important;
    margin-bottom: var(--space-xs) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
  }

  body.woocommerce-cart table.shop_table tbody td {
    padding: var(--space-2xs) 0 !important;
    border-bottom: none !important;
    text-align: left !important;
  }

  body.woocommerce-cart table.shop_table .product-remove {
    position: absolute !important;
    top: var(--space-xs) !important;
    right: var(--space-xs) !important;
  }

  body.woocommerce-cart table.shop_table .product-thumbnail {
    display: inline-block !important;
    width: auto !important;
    margin-right: var(--space-xs) !important;
  }

  body.woocommerce-cart table.shop_table .product-thumbnail img {
    width: 60px !important;
    height: 60px !important;
  }

  body.woocommerce-cart table.shop_table .product-name {
    display: inline-block !important;
    vertical-align: top !important;
    width: calc(100% - 80px) !important;
  }

  body.woocommerce-cart table.shop_table .product-price::before {
    content: 'Price: ' !important;
    font-weight: var(--font-weight-medium) !important;
  }

  body.woocommerce-cart table.shop_table .product-subtotal::before {
    content: 'Subtotal: ' !important;
    font-weight: var(--font-weight-medium) !important;
  }

  /* Cart totals full width */
  body.woocommerce-cart .cart_totals {
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  /* Coupon section stack */
  body.woocommerce-cart .coupon {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.woocommerce-cart .coupon #coupon_code {
    min-width: 100% !important;
  }

  body.woocommerce-cart .coupon .button {
    width: 100% !important;
  }

  /* Actions stack */
  body.woocommerce-cart .actions {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--space-xs) !important;
  }

  body.woocommerce-cart button[name="update_cart"] {
    width: 100% !important;
    order: -1 !important;
  }
}

@media (max-width: 480px) {
  body.woocommerce-cart .cart_totals {
    padding: var(--space-s) !important;
  }

  body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    padding: 14px 24px !important;
    font-size: var(--font-size-body) !important;
  }
}
