/**
 * Cart Page Styles - Responsive
 * ToyParadis Theme - WooCommerce Shopping Cart
 * 
 * @package ToyParadis
 * @since 1.5.5
 * 
 * Breakpoints:
 * - Mobile: < 576px
 * - Tablet: 576px - 991px
 * - Desktop: > 991px
 */

/* ========================================
   0. WooCommerce Block Cart Styles
   ======================================== */

/* Specific fix for vertical text issues in cart totals area only */
.wp-block-woocommerce-cart-totals-block,
.wp-block-woocommerce-cart-totals-block *,
.wp-block-woocommerce-cart-order-summary-block,
.wp-block-woocommerce-cart-order-summary-block *,
.wp-block-woocommerce-cart-order-summary-coupon-form-block,
.wp-block-woocommerce-cart-order-summary-coupon-form-block * {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

/* Cart Block Container */
.wp-block-woocommerce-cart,
.wc-block-cart {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.wp-block-woocommerce-cart .entry-content,
.wc-block-cart .entry-content {
    max-width: 100%;
}

/* Filled Cart Block - Main Layout */
.wp-block-woocommerce-filled-cart-block {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Main Cart Grid Layout - Fix for desktop */
.wc-block-cart__main,
.wc-block-components-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
}

/* ========================================
   Product List Area (Left Side)
   ======================================== */

/* Cart Items Block Container */
.wp-block-woocommerce-cart-items-block,
.wp-block-woocommerce-cart-line-items-block {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    width: 100%;
    max-width: 100%;
}

/* Cart Items List */
.wc-block-cart__main .wc-block-cart-items,
.wp-block-woocommerce-cart-items-block,
.wc-block-components-order-summary {
    background: #fff;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    width: 100%;
    max-width: 100%;
}

/* Fix for inner table element - remove conflicting styles */
.wc-block-cart-items,
table.wc-block-cart-items,
.wp-block-woocommerce-cart-line-items-block {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    border-collapse: collapse !important;
}

/* Table body */
.wc-block-cart-items tbody,
table.wc-block-cart-items tbody {
    width: 100% !important;
    display: table-row-group !important;
}

/* Cart Items Header */
.wc-block-cart-items__header {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    /* border-bottom: 3px solid #e0e0e0; */ /* 已移除 - 多余的边框 */
}

.wc-block-cart-items__header th {
    font-size: 13px;
    font-weight: 800;
    color: #003DA5;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 0;
}

.wc-block-cart-items__header th:first-child {
    text-align: left;
}

.wc-block-cart-items__header th:last-child {
    text-align: right;
}

/* Individual Cart Item Row */
.wc-block-cart-items__row {
    display: table-row !important;
    width: 100% !important;
    padding: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.wc-block-cart-items__row:last-child {
    border-bottom: none !important;
}

/* Table Cells - Product Image */
.wc-block-cart-item__image {
    display: table-cell !important;
    width: 140px !important;
    padding: 30px 15px 30px 0 !important;
    vertical-align: middle !important;
}

.wc-block-cart-item__image img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    border: 2px solid #e8e8e8 !important;
}

/* Table Cells - Product Info */
.wc-block-cart-item__product {
    display: table-cell !important;
    padding: 30px 20px !important;
    vertical-align: middle !important;
    width: auto !important;
}

.wc-block-cart-item__wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Product Name Link */
.wc-block-components-product-name {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.wc-block-components-product-name:hover {
    color: #003DA5 !important;
}

/* Product Price in Info Area - 隐藏单价，只在总价列显示 */
.wc-block-cart-item__prices {
    display: none !important;
}

.wc-block-cart-item__prices .wc-block-components-product-price {
    display: none !important;
}

/* Sale Badge - 隐藏折扣标签（避免显示多余的金额） */
.wc-block-components-product-badge,
.wc-block-components-sale-badge,
.wc-block-cart-item__badge {
    display: none !important;
}

.wc-block-cart-item__total .wc-block-components-product-badge,
.wc-block-cart-item__total .wc-block-components-sale-badge {
    display: none !important;
}

/* Product Description */
.wc-block-components-product-metadata__description {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6 !important;
    margin: 8px 0 !important;
}

.wc-block-components-product-metadata__description p {
    margin: 0 !important;
}

/* Quantity and Remove Button Container */
.wc-block-cart-item__quantity {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 12px !important;
    border: none !important; /* 移除外层边框，避免重复 */
    padding: 0 !important;
}

/* Table Cells - Total Price */
.wc-block-cart-item__total {
    display: table-cell !important;
    width: 200px !important;
    padding: 30px 15px !important;
    vertical-align: middle !important;
    text-align: right !important;
}

.wc-block-cart-item__total-price-and-sale-badge-wrapper {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.wc-block-cart-item__total .wc-block-components-product-price {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #003DA5 !important;
    line-height: 1.2 !important;
}

.wc-block-cart-item__total .wc-block-formatted-money-amount {
    display: block !important;
}

/* ========================================
   Product Details in Cart Items
   ======================================== */

/* Product Image */
.wc-block-cart-item__image,
.wc-block-components-product-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.wc-block-cart-item__image:hover,
.wc-block-components-product-image:hover {
    border-color: #003DA5;
    transform: scale(1.05);
}

.wc-block-cart-item__image img,
.wc-block-components-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Section */
.wc-block-cart-item__product,
.wc-block-components-product-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

/* Product Name/Title */
.wc-block-cart-item__product-name,
.wc-block-components-product-name a,
.wc-block-components-product-name__link {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.wc-block-cart-item__product-name:hover,
.wc-block-components-product-name a:hover {
    color: #003DA5;
}

/* Product Metadata (Variations, etc.) */
.wc-block-cart-item__product-metadata,
.wc-block-components-product-metadata {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.wc-block-cart-item__product-metadata dt {
    font-weight: 600;
    display: inline;
    color: #333;
}

.wc-block-cart-item__product-metadata dd {
    display: inline;
    margin: 0 15px 0 5px;
}

/* Product Price */
.wc-block-cart-item__product-price,
.wc-block-components-product-price {
    font-size: 16px;
    color: #666;
    font-weight: 600;
    margin-top: 8px;
}

.wc-block-cart-item__product-price .wc-block-formatted-money-amount {
    color: #003DA5;
    font-weight: 700;
}

/* ========================================
   Quantity Selector & Total
   ======================================== */

/* Quantity and Total Container */
.wc-block-cart-item__quantity-and-price,
.wc-block-cart-item__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
}

/* Quantity Selector */
/* Quantity Selector Container - 只在内部按钮组添加边框 */
.wc-block-components-quantity-selector {
    display: flex !important;
    align-items: center !important;
    border: 2px solid #d0d0d0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.wc-block-components-quantity-selector__button {
    width: 42px;
    height: 42px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-block-components-quantity-selector__button:hover {
    background: #003DA5;
    color: #fff;
}

.wc-block-components-quantity-selector__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wc-block-components-quantity-selector__input {
    width: 60px;
    height: 42px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
}

.wc-block-components-quantity-selector__input:focus {
    outline: none;
    background: #f9f9f9;
}

/* Item Total Price */
.wc-block-cart-item__total-price,
.wc-block-cart-item__price {
    font-size: 22px;
    font-weight: 800;
    color: #003DA5;
    text-align: right;
}

.wc-block-cart-item__total-price .wc-block-formatted-money-amount,
.wc-block-cart-item__price .wc-block-formatted-money-amount {
    font-size: 22px;
}

/* Remove Item Button */
.wc-block-cart-item__remove-link,
.wc-block-cart-item__remove-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #666;
    font-size: 18px;
}

.wc-block-cart-item__remove-link:hover,
.wc-block-cart-item__remove-icon:hover {
    background: #ff4444;
    color: #fff;
    border-color: #ff4444;
    transform: scale(1.1);
}

/* ========================================
   Empty Cart State
   ======================================== */

.wc-block-cart__empty-cart,
.cart-empty {
    text-align: center;
    padding: 80px 30px;
    background: #f8f9fa;
    border-radius: 16px;
    margin: 40px 0;
}

.wc-block-cart__empty-cart p,
.cart-empty {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    font-weight: 600;
}

/* ========================================
   Loading States
   ======================================== */

.wc-block-components-spinner,
.wc-block-components-loading-mask {
    position: relative;
}

.wc-block-components-spinner::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003DA5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Notice/Alert Messages
   ======================================== */

.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 18px 25px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-block-components-notice-banner.is-success,
.woocommerce-message {
    background: #d4edda;
    border: 2px solid #00B853;
    color: #155724;
}

.wc-block-components-notice-banner.is-error,
.woocommerce-error {
    background: #f8d7da;
    border: 2px solid #ff4444;
    color: #721c24;
}

.wc-block-components-notice-banner.is-info,
.woocommerce-info {
    background: #d1ecf1;
    border: 2px solid #0056b3;
    color: #0c5460;
}

/* ========================================
   Proceed to Checkout Link (in sidebar)
   ======================================== */

.wc-block-components-checkout-button__link,
.wc-proceed-to-checkout a {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* ========================================
   Applied Coupons Display
   ======================================== */

.wc-block-components-totals-coupon-code-list {
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.wc-block-components-totals-coupon-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #e7f3ff;
    border: 2px solid #003DA5;
    border-radius: 8px;
    margin-bottom: 10px;
}

.wc-block-components-totals-coupon-code__code {
    font-weight: 700;
    color: #003DA5;
    font-size: 16px;
}

.wc-block-components-totals-coupon-code__button {
    background: transparent;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.wc-block-components-totals-coupon-code__button:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* Product Image */
.wc-block-cart-item__image {
    width: 120px;
    height: 120px;
}

.wc-block-cart-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    transition: all 0.3s ease;
}

.wc-block-cart-item__image img:hover {
    border-color: #003DA5;
    transform: scale(1.05);
}

/* Product Details */
.wc-block-cart-item__product {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-block-cart-item__product-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.wc-block-cart-item__product-name:hover {
    color: #003DA5;
}

.wc-block-cart-item__product-metadata {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.wc-block-cart-item__product-metadata p {
    margin: 5px 0;
}

/* Price and Quantity Container */
.wc-block-cart-item__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    min-width: 200px;
}

/* Price */
.wc-block-cart-item__price {
    font-size: 22px;
    font-weight: 800;
    color: #003DA5;
    text-align: right;
}

.wc-block-cart-item__price .wc-block-formatted-money-amount {
    font-size: 22px;
}

/* Quantity Controls - 已在上方统一定义，这里保留空白以保持行号 */

.wc-block-components-quantity-selector__button {
    width: 40px;
    height: 50px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    transition: all 0.3s ease;
}

.wc-block-components-quantity-selector__button:hover {
    background: #003DA5;
    color: #fff;
}

.wc-block-components-quantity-selector__button:active {
    transform: scale(0.95);
}

.wc-block-components-quantity-selector__input {
    width: 70px;
    height: 50px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 700;
    padding: 0;
    color: #333;
}

.wc-block-components-quantity-selector__input:focus {
    outline: none;
}

/* Remove Button */
.wc-block-cart-item__remove-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffebee;
    color: #c62828;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.wc-block-cart-item__remove-link:hover {
    background: #c62828;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.wc-block-cart-item__remove-link svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Cart Totals Sidebar (Right Side)
   ======================================== */

/* Cart Totals Block Container */
.wp-block-woocommerce-cart-totals-block {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 35px;
    border: 2px solid #e0e0e0;
    height: fit-content;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    overflow: visible;
}

/* Cart Order Summary Block */
.wp-block-woocommerce-cart-order-summary-block {
    margin-bottom: 25px;
    width: 100%;
}

/* Order Summary Heading */
.wp-block-woocommerce-cart-order-summary-heading-block,
.wp-block-woocommerce-cart-order-summary-block > h2 {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 30px 0 !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    letter-spacing: -0.5px !important;
    border-bottom: 3px solid #003DA5 !important;
    padding-bottom: 15px !important;
}

/* Cart Totals Sidebar */
.wc-block-cart__sidebar,
.wc-block-components-sidebar,
.wp-block-woocommerce-cart-totals-block {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 35px;
    border: 2px solid #e0e0e0;
    height: fit-content;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    margin-bottom: 25px;
}

/* Totals Heading */
.wc-block-cart__totals-title,
.wc-block-components-totals-wrapper > h2,
.wc-block-components-totals-footer-item-tax-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Main "CART TOTALS" heading */
.wc-block-components-sidebar-layout > .wc-block-components-totals-wrapper::before {
    content: "CART TOTALS";
    display: block;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    border-bottom: 3px solid #003DA5;
    padding-bottom: 15px;
}

/* Order Summary Individual Items */
.wp-block-woocommerce-cart-order-summary-subtotal-block,
.wp-block-woocommerce-cart-order-summary-discount-block,
.wp-block-woocommerce-cart-order-summary-fee-block,
.wp-block-woocommerce-cart-order-summary-shipping-block,
.wp-block-woocommerce-cart-order-summary-taxes-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 16px;
}

.wp-block-woocommerce-cart-order-summary-subtotal-block:first-child {
    padding-top: 0;
}

/* Totals Items */
.wc-block-components-totals-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 16px;
}

.wc-block-components-totals-item:first-child {
    padding-top: 0;
}

.wc-block-components-totals-item__label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.wc-block-components-totals-item__value {
    font-weight: 700;
    color: #666;
    font-size: 16px;
}

.wc-block-components-totals-item__value .wc-block-formatted-money-amount {
    font-size: 16px;
}

/* Shipping row */
.wc-block-components-totals-item.wc-block-components-totals-shipping,
.wp-block-woocommerce-cart-order-summary-shipping-block {
    background: #f8f9fa;
    margin: 0 -20px;
    padding: 20px;
    border-radius: 8px;
    border-bottom: none;
}

/* Total (Order Total / Estimated Total) */
.wc-block-components-totals-footer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0 0 0;
    margin-top: 20px;
    border-top: 3px solid #003DA5;
}

.wc-block-components-totals-footer-item__label {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #1a1a1a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wc-block-components-totals-footer-item__value {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #003DA5 !important;
}

.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    font-size: 32px !important;
    font-weight: 800 !important;
}

/* Checkout Button */
.wc-block-cart__submit-container {
    margin-top: 30px;
}

.wc-block-cart__submit-button,
.wc-block-components-checkout-button {
    display: block;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #00B853 0%, #00A047 100%);
    color: #fff !important;
    text-align: center;
    line-height: 60px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 184, 83, 0.35);
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-button:hover {
    background: linear-gradient(135deg, #009645 0%, #008238 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 184, 83, 0.45);
}

.wc-block-cart__submit-button:active,
.wc-block-components-checkout-button:active {
    transform: translateY(-2px);
}

/* Coupon Section */
.wc-block-components-totals-coupon,
.wc-block-components-panel,
.wp-block-woocommerce-cart-order-summary-coupon-form-block {
    margin: 25px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

/* Coupon Toggle Button */
.wc-block-components-totals-coupon__button,
.wc-block-components-panel__button,
.wp-block-woocommerce-cart-order-summary-coupon-form-block button,
.wp-block-woocommerce-cart-order-summary-coupon-form-block h2 button {
    width: 100% !important;
    padding: 18px 20px !important;
    background: #f8f9fa !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #003DA5 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    white-space: nowrap !important;
    text-align: left !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}

.wc-block-components-totals-coupon__button:hover,
.wc-block-components-panel__button:hover,
.wp-block-woocommerce-cart-order-summary-coupon-form-block button:hover {
    background: #e9ecef !important;
    border-color: #003DA5 !important;
    transform: translateY(-1px) !important;
}

/* Fix for vertical text issue */
.wc-block-components-panel__button span,
.wc-block-components-totals-coupon__button span,
.wp-block-woocommerce-cart-order-summary-coupon-form-block button span,
.wp-block-woocommerce-cart-order-summary-coupon-form-block h2 {
    display: inline-block !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
}

/* Fix heading in coupon section */
.wp-block-woocommerce-cart-order-summary-coupon-form-block h2 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #003DA5 !important;
    display: block !important;
    writing-mode: horizontal-tb !important;
}

/* Coupon Form Content */
.wc-block-components-totals-coupon__content,
.wc-block-components-panel__content {
    margin-top: 15px;
    padding: 25px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.wc-block-components-totals-coupon__content form {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.wc-block-components-totals-coupon input,
.wc-block-components-text-input input {
    flex: 1;
    height: 52px;
    padding: 0 18px;
    border: 2px solid #d0d0d0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wc-block-components-totals-coupon input:focus,
.wc-block-components-text-input input:focus {
    outline: none;
    border-color: #003DA5;
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

.wc-block-components-totals-coupon button,
.wc-block-components-button {
    height: 52px;
    padding: 0 32px;
    background: linear-gradient(135deg, #003DA5 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wc-block-components-totals-coupon button:hover,
.wc-block-components-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 165, 0.3);
}

/* Proceed to Checkout Block */
.wp-block-woocommerce-proceed-to-checkout-block {
    margin-top: 30px;
}

.wp-block-woocommerce-proceed-to-checkout-block a,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-checkout-button {
    display: block;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #00B853 0%, #00A047 100%);
    color: #fff !important;
    text-align: center;
    line-height: 60px;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 184, 83, 0.35);
}

.wp-block-woocommerce-proceed-to-checkout-block a:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-components-checkout-button:hover {
    background: linear-gradient(135deg, #009645 0%, #008238 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 184, 83, 0.45);
}

/* Accepted Payment Methods Block */
.wp-block-woocommerce-cart-accepted-payment-methods-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

/* Empty Cart */
.wc-block-cart__empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.wc-block-cart__empty-cart__title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* ========================================
   1. Cart Page Container (Classic Cart)
   ======================================== */

.woocommerce-cart {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 60vh;
}

.woocommerce-cart .woocommerce {
    background: #fff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Page Title */
.woocommerce-cart .entry-header {
    margin-bottom: 40px;
}

.woocommerce-cart .entry-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ========================================
   2. Cart Table (Classic Cart)
   ======================================== */

.woocommerce-cart-form {
    margin-bottom: 40px;
}

.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.shop_table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.shop_table thead th {
    padding: 20px 15px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.shop_table thead th.product-remove,
.shop_table thead th.product-thumbnail {
    width: 60px;
    text-align: center;
}

.shop_table thead th.product-name {
    width: auto;
}

.shop_table thead th.product-price,
.shop_table thead th.product-quantity,
.shop_table thead th.product-subtotal {
    width: 150px;
    text-align: center;
}

/* Cart Items */
.shop_table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.shop_table tbody tr:hover {
    background-color: #f8f9fa;
}

.shop_table tbody td {
    padding: 25px 15px;
    vertical-align: middle;
}

/* Remove Button */
.product-remove {
    text-align: center;
}

.product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffebee;
    color: #c62828;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-remove .remove:hover {
    background: #c62828;
    color: #fff;
    transform: rotate(90deg);
}

/* Product Thumbnail */
.product-thumbnail {
    text-align: center;
}

.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

/* Product Name */
.product-name {
    font-size: 16px;
}

.product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #003DA5;
}

.product-name .variation {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.product-name .variation dt,
.product-name .variation dd {
    display: inline;
    margin: 0;
}

.product-name .variation dt {
    font-weight: 600;
}

/* Product Price */
.product-price,
.product-subtotal {
    text-align: center;
}

.product-price .amount,
.product-subtotal .amount {
    font-size: 18px;
    font-weight: 700;
    color: #003DA5;
}

/* Product Quantity */
.product-quantity {
    text-align: center;
}

.product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.product-quantity input.qty {
    width: 70px;
    height: 45px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0 10px;
}

.product-quantity input.qty:focus {
    outline: none;
}

/* Cart Actions Row */
.shop_table .actions {
    background: #f8f9fa;
    padding: 25px 20px !important;
}

.shop_table .actions > * {
    display: inline-block;
    vertical-align: middle;
}

/* Coupon Section */
.coupon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.coupon label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

.coupon .input-text {
    width: 180px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.coupon .input-text:focus {
    outline: none;
    border-color: #003DA5;
}

.coupon .button {
    height: 45px;
    padding: 0 25px;
    background: linear-gradient(135deg, #003DA5 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
}

/* Update Cart Button */
button[name="update_cart"] {
    height: 45px;
    padding: 0 30px;
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[name="update_cart"]:hover {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   3. Cart Collaterals (Totals Section)
   ======================================== */

.cart-collaterals {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

/* Cart Totals */
.cart_totals {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e0e0e0;
}

.cart_totals h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 25px 0;
    color: #1a1a1a;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals th,
.cart_totals td {
    padding: 15px 0;
    text-align: left;
    border-bottom: 1px solid #d0d0d0;
}

.cart_totals th {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.cart_totals td {
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 20px;
    font-weight: 800;
    color: #003DA5;
    border-bottom: none;
    padding-top: 20px;
}

/* Shipping Calculator */
.shipping-calculator-form {
    margin-top: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.shipping-calculator-button {
    color: #003DA5;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.shipping-calculator-button:hover {
    text-decoration: underline;
}

/* Checkout Button */
.wc-proceed-to-checkout {
    margin-top: 25px;
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #00B853 0%, #00A047 100%);
    color: #fff;
    text-align: center;
    line-height: 55px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    border-radius: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 83, 0.3);
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: linear-gradient(135deg, #009645 0%, #008238 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 184, 83, 0.4);
}

/* Cross-sells */
.cross-sells {
    grid-column: 1 / -1;
}

.cross-sells h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 30px 0;
    color: #1a1a1a;
}

.cross-sells .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* ========================================
   4. Empty Cart
   ======================================== */

.woocommerce-info,
.woocommerce-message {
    padding: 20px 25px;
    margin-bottom: 30px;
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 8px;
    font-size: 15px;
    color: #2e7d32;
}

.woocommerce-info::before,
.woocommerce-message::before {
    content: "ℹ";
    font-size: 20px;
    margin-right: 10px;
}

.return-to-shop {
    text-align: center;
    padding: 60px 20px;
}

.return-to-shop .button {
    display: inline-block;
    height: 50px;
    padding: 0 40px;
    background: linear-gradient(135deg, #003DA5 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 50px;
    transition: all 0.3s ease;
}

.return-to-shop .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 61, 165, 0.3);
}

/* ========================================
   5. Tablet Responsive (576px - 991px)
   ======================================== */

@media (max-width: 991px) {
    /* WooCommerce Block Cart Responsive */
    .wp-block-woocommerce-filled-cart-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wp-block-woocommerce-cart-totals-block,
    .wp-block-woocommerce-cart-order-summary-block {
        position: static;
        max-width: 600px;
        margin: 0 auto;
        top: auto;
    }
    
    /* Block Cart Responsive */
    .wc-block-cart__main,
    .wc-block-components-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wc-block-cart__sidebar,
    .wc-block-components-sidebar,
    .wp-block-woocommerce-cart-totals-block {
        position: static;
        max-width: 600px;
        margin: 0 auto;
        top: auto;
    }
    
    .wc-block-cart-items__header {
        grid-template-columns: 100px 1fr auto;
        gap: 20px;
    }
    
    .wc-block-cart-items__row {
        grid-template-columns: 100px 1fr;
        gap: 20px;
    }
    
    .wc-block-cart-item__image {
        width: 100px;
        height: 100px;
    }
    
    .wc-block-cart-item__total {
        grid-column: 2;
        justify-content: flex-start;
        align-items: flex-start;
        margin-top: 15px;
    }
    
    .wc-block-cart__main .wc-block-cart-items,
    .wp-block-woocommerce-cart-items-block,
    .wp-block-woocommerce-cart-line-items-block {
        padding: 25px 20px;
    }
    
    /* Classic Cart Responsive */
    .woocommerce-cart {
        padding: 30px 15px;
    }
    
    .woocommerce-cart .woocommerce {
        padding: 40px 30px;
    }
    
    .woocommerce-cart .entry-title {
        font-size: 30px;
    }
    
    .cart-collaterals {
        grid-template-columns: 1fr;
    }
    
    .cart_totals {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ========================================
   6. Mobile Responsive (< 576px)
   ======================================== */

@media (max-width: 575px) {
    /* Block Cart Mobile */
    .wp-block-woocommerce-cart,
    .wc-block-cart {
        padding: 20px 10px;
    }
    
    .wc-block-cart__main .wc-block-cart-items,
    .wp-block-woocommerce-cart-items-block {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    /* Hide table header on mobile */
    .wc-block-cart-items__header {
        display: none;
    }
    
    /* Stack cart items vertically */
    .wc-block-cart-items__row {
        display: block;
        padding: 20px;
        border: 2px solid #e8e8e8;
        border-radius: 12px;
        margin-bottom: 15px;
        background: #fff;
        position: relative;
    }
    
    .wc-block-cart-items__row:last-child {
        margin-bottom: 0;
    }
    
    /* Product image */
    .wc-block-cart-item__image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    /* Product info */
    .wc-block-cart-item__product {
        margin-bottom: 15px;
    }
    
    .wc-block-cart-item__product-name {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    /* Price and quantity on mobile */
    .wc-block-cart-item__total {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        min-width: 100%;
    }
    
    .wc-block-cart-item__price {
        font-size: 20px;
        text-align: left;
    }
    
    /* Remove button - top right */
    .wc-block-cart-item__remove-link {
        position: absolute;
        top: 15px;
        right: 15px;
        margin: 0;
    }
    
    /* Sidebar on mobile */
    .wc-block-cart__sidebar,
    .wc-block-components-sidebar,
    .wp-block-woocommerce-cart-totals-block {
        padding: 25px 20px;
        border-radius: 8px;
    }
    
    .wc-block-components-sidebar-layout > .wc-block-components-totals-wrapper::before {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .wc-block-components-totals-item {
        padding: 15px 0;
        font-size: 15px;
    }
    
    .wc-block-components-totals-footer-item__label {
        font-size: 18px !important;
    }
    
    .wc-block-components-totals-footer-item__value {
        font-size: 24px !important;
    }
    
    .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
        font-size: 26px !important;
    }
    
    /* Coupon form on mobile */
    .wc-block-components-totals-coupon__content form {
        flex-direction: column;
    }
    
    .wc-block-components-totals-coupon input,
    .wc-block-components-totals-coupon button {
        width: 100%;
    }
    
    /* Checkout button */
    .wc-block-cart__submit-button,
    .wc-block-components-checkout-button {
        height: 56px;
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    /* Classic Cart Mobile */
    .woocommerce-cart {
        padding: 15px 10px;
        background: #fff;
    }
    
    .woocommerce-cart .woocommerce {
        border-radius: 0;
        padding: 25px 15px;
        box-shadow: none;
    }
    
    .woocommerce-cart .entry-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    /* Mobile Cart Table - Card Layout */
    .shop_table {
        border: none;
        border-radius: 0;
    }
    
    .shop_table thead {
        display: none;
    }
    
    .shop_table tbody {
        display: block;
    }
    
    .shop_table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 2px solid #e8e8e8;
        border-radius: 12px;
        padding: 20px;
        background: #fff;
        position: relative;
    }
    
    .shop_table tbody tr:hover {
        background: #fff;
    }
    
    .shop_table tbody td {
        display: block;
        padding: 10px 0;
        text-align: left !important;
        border: none;
    }
    
    .shop_table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        color: #333;
        display: inline-block;
        min-width: 80px;
    }
    
    /* Product Remove - Float Right */
    .product-remove {
        position: absolute;
        top: 15px;
        right: 15px;
        text-align: right;
    }
    
    .product-remove::before {
        display: none;
    }
    
    /* Product Thumbnail */
    .product-thumbnail {
        margin-bottom: 15px;
    }
    
    .product-thumbnail::before {
        display: none;
    }
    
    .product-thumbnail img {
        width: 100px;
        height: 100px;
    }
    
    /* Product Name */
    .product-name {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 15px;
    }
    
    .product-name::before {
        display: none;
    }
    
    /* Product Price, Quantity, Subtotal */
    .product-price .amount,
    .product-subtotal .amount {
        font-size: 16px;
    }
    
    .product-quantity .quantity {
        display: inline-flex;
    }
    
    /* Actions Row */
    .shop_table .actions {
        display: block;
        padding: 20px 15px !important;
    }
    
    .coupon {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .coupon label {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .coupon .input-text {
        flex: 1;
        min-width: 150px;
    }
    
    .coupon .button {
        margin-top: 10px;
        width: 100%;
    }
    
    button[name="update_cart"] {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Cart Totals */
    .cart_totals {
        padding: 25px 20px;
    }
    
    .cart_totals h2 {
        font-size: 20px;
    }
    
    .cart_totals th,
    .cart_totals td {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .cart_totals .order-total th,
    .cart_totals .order-total td {
        font-size: 18px;
    }
    
    /* Cross-sells */
    .cross-sells h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .cross-sells .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ========================================
   7. Extra Small Mobile (< 375px)
   ======================================== */

@media (max-width: 374px) {
    .woocommerce-cart .entry-title {
        font-size: 20px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .cross-sells .products {
        grid-template-columns: 1fr;
    }
    
    .wc-proceed-to-checkout .checkout-button,
    .wc-block-cart__submit-button {
        font-size: 16px;
    }
}

/* ========================================
   8. Loading States
   ======================================== */

.woocommerce-cart .blockUI.blockOverlay,
.wc-block-cart .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important;
}

.woocommerce-cart .loader,
.wc-block-cart .loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #003DA5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.woocommerce-cart {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #f8f9fa;
    min-height: 60vh;
}

.woocommerce-cart .woocommerce {
    background: #fff;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Page Title */
.woocommerce-cart .entry-header {
    margin-bottom: 40px;
}

.woocommerce-cart .entry-title {
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
}

/* ========================================
   2. Cart Table
   ======================================== */

.woocommerce-cart-form {
    margin-bottom: 40px;
}

.shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
}

.shop_table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.shop_table thead th {
    padding: 20px 15px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e0e0e0;
}

.shop_table thead th.product-remove,
.shop_table thead th.product-thumbnail {
    width: 60px;
    text-align: center;
}

.shop_table thead th.product-name {
    width: auto;
}

.shop_table thead th.product-price,
.shop_table thead th.product-quantity,
.shop_table thead th.product-subtotal {
    width: 150px;
    text-align: center;
}

/* Cart Items */
.shop_table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.shop_table tbody tr:hover {
    background-color: #f8f9fa;
}

.shop_table tbody td {
    padding: 25px 15px;
    vertical-align: middle;
}

/* Remove Button */
.product-remove {
    text-align: center;
}

.product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffebee;
    color: #c62828;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.product-remove .remove:hover {
    background: #c62828;
    color: #fff;
    transform: rotate(90deg);
}

/* Product Thumbnail */
.product-thumbnail {
    text-align: center;
}

.product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

/* Product Name */
.product-name {
    font-size: 16px;
}

.product-name a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #003DA5;
}

.product-name .variation {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.product-name .variation dt,
.product-name .variation dd {
    display: inline;
    margin: 0;
}

.product-name .variation dt {
    font-weight: 600;
}

/* Product Price */
.product-price,
.product-subtotal {
    text-align: center;
}

.product-price .amount,
.product-subtotal .amount {
    font-size: 18px;
    font-weight: 700;
    color: #003DA5;
}

/* Product Quantity */
.product-quantity {
    text-align: center;
}

.product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.product-quantity input.qty {
    width: 70px;
    height: 45px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 0 10px;
}

.product-quantity input.qty:focus {
    outline: none;
}

/* Cart Actions Row */
.shop_table .actions {
    background: #f8f9fa;
    padding: 25px 20px !important;
}

.shop_table .actions > * {
    display: inline-block;
    vertical-align: middle;
}

/* Coupon Section */
.coupon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.coupon label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    white-space: nowrap;
}

.coupon .input-text {
    width: 180px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #d0d0d0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.coupon .input-text:focus {
    outline: none;
    border-color: #003DA5;
}

.coupon .button {
    height: 45px;
    padding: 0 25px;
    background: linear-gradient(135deg, #003DA5 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
}

/* Update Cart Button */
button[name="update_cart"] {
    height: 45px;
    padding: 0 30px;
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button[name="update_cart"]:hover {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================
   3. Cart Collaterals (Totals Section)
   ======================================== */

.cart-collaterals {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 40px;
}

/* Cart Totals */
.cart_totals {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e0e0e0;
}

.cart_totals h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 25px 0;
    color: #1a1a1a;
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.cart_totals th,
.cart_totals td {
    padding: 15px 0;
    text-align: left;
    border-bottom: 1px solid #d0d0d0;
}

.cart_totals th {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.cart_totals td {
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 20px;
    font-weight: 800;
    color: #003DA5;
    border-bottom: none;
    padding-top: 20px;
}

/* Shipping Calculator */
.shipping-calculator-form {
    margin-top: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.shipping-calculator-button {
    color: #003DA5;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.shipping-calculator-button:hover {
    text-decoration: underline;
}

/* Checkout Button */
.wc-proceed-to-checkout {
    margin-top: 25px;
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    height: 55px;
    background: linear-gradient(135deg, #00B853 0%, #00A047 100%);
    color: #fff;
    text-align: center;
    line-height: 55px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    border-radius: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 83, 0.3);
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: linear-gradient(135deg, #009645 0%, #008238 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 184, 83, 0.4);
}

/* Cross-sells */
.cross-sells {
    grid-column: 1 / -1;
}

.cross-sells h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 30px 0;
    color: #1a1a1a;
}

.cross-sells .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

/* ========================================
   4. Empty Cart
   ======================================== */

.woocommerce-info,
.woocommerce-message {
    padding: 20px 25px;
    margin-bottom: 30px;
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    border-radius: 8px;
    font-size: 15px;
    color: #2e7d32;
}

.woocommerce-info::before,
.woocommerce-message::before {
    content: "ℹ";
    font-size: 20px;
    margin-right: 10px;
}

.return-to-shop {
    text-align: center;
    padding: 60px 20px;
}

.return-to-shop .button {
    display: inline-block;
    height: 50px;
    padding: 0 40px;
    background: linear-gradient(135deg, #003DA5 0%, #0056b3 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 50px;
    transition: all 0.3s ease;
}

.return-to-shop .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 61, 165, 0.3);
}

/* ========================================
   5. Tablet Responsive (576px - 991px)
   ======================================== */

@media (max-width: 991px) {
    .woocommerce-cart {
        padding: 30px 15px;
    }
    
    .woocommerce-cart .woocommerce {
        padding: 40px 30px;
    }
    
    .woocommerce-cart .entry-title {
        font-size: 30px;
    }
    
    .cart-collaterals {
        grid-template-columns: 1fr;
    }
    
    .cart_totals {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ========================================
   6. Mobile Responsive (< 576px)
   ======================================== */

@media (max-width: 575px) {
    .woocommerce-cart {
        padding: 15px 10px;
        background: #fff;
    }
    
    .woocommerce-cart .woocommerce {
        border-radius: 0;
        padding: 25px 15px;
        box-shadow: none;
    }
    
    .woocommerce-cart .entry-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    /* Mobile Cart Table - Card Layout */
    .shop_table {
        border: none;
        border-radius: 0;
    }
    
    .shop_table thead {
        display: none;
    }
    
    .shop_table tbody {
        display: block;
    }
    
    .shop_table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 2px solid #e8e8e8;
        border-radius: 12px;
        padding: 20px;
        background: #fff;
    }
    
    .shop_table tbody tr:hover {
        background: #fff;
    }
    
    .shop_table tbody td {
        display: block;
        padding: 10px 0;
        text-align: left !important;
        border: none;
    }
    
    .shop_table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        color: #333;
        display: inline-block;
        min-width: 80px;
    }
    
    /* Product Remove - Float Right */
    .product-remove {
        position: absolute;
        top: 15px;
        right: 15px;
        text-align: right;
    }
    
    .product-remove::before {
        display: none;
    }
    
    /* Product Thumbnail */
    .product-thumbnail {
        margin-bottom: 15px;
    }
    
    .product-thumbnail::before {
        display: none;
    }
    
    .product-thumbnail img {
        width: 100px;
        height: 100px;
    }
    
    /* Product Name */
    .product-name {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 15px;
    }
    
    .product-name::before {
        display: none;
    }
    
    /* Product Price, Quantity, Subtotal */
    .product-price .amount,
    .product-subtotal .amount {
        font-size: 16px;
    }
    
    .product-quantity .quantity {
        display: inline-flex;
    }
    
    /* Actions Row */
    .shop_table .actions {
        display: block;
        padding: 20px 15px !important;
    }
    
    .coupon {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .coupon label {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .coupon .input-text {
        flex: 1;
        min-width: 150px;
    }
    
    .coupon .button {
        margin-top: 10px;
        width: 100%;
    }
    
    button[name="update_cart"] {
        width: 100%;
        margin-top: 10px;
    }
    
    /* Cart Totals */
    .cart_totals {
        padding: 25px 20px;
    }
    
    .cart_totals h2 {
        font-size: 20px;
    }
    
    .cart_totals th,
    .cart_totals td {
        font-size: 14px;
        padding: 12px 0;
    }
    
    .cart_totals .order-total th,
    .cart_totals .order-total td {
        font-size: 18px;
    }
    
    /* Cross-sells */
    .cross-sells h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .cross-sells .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ========================================
   7. Extra Small Mobile (< 375px)
   ======================================== */

@media (max-width: 374px) {
    .woocommerce-cart .entry-title {
        font-size: 20px;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .cross-sells .products {
        grid-template-columns: 1fr;
    }
    
    .wc-proceed-to-checkout .checkout-button {
        font-size: 16px;
    }
}

/* ========================================
   8. Loading States
   ======================================== */

.woocommerce-cart .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.8) !important;
}

.woocommerce-cart .loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #003DA5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
