/**
 * FSP Cart Page Styles
 * Dark-themed WooCommerce cart page with hero-style gradient background
 *
 * @package Free_Style_Products
 */

 /* ============================================================
   MANUAL FIXES
   ============================================================ */

.cart-page .cart-checkout-box .cart-prices .cross-sells {
    display: none;
}
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop {
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.woocommerce-cart.cart-is-empty .woocommerce {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
/* ============================================================
   CART PAGE - HERO-STYLE GRADIENT BACKGROUND
   ============================================================ */

.woocommerce-cart #primary.site-main,
.woocommerce-cart .site-main {
    background: linear-gradient(135deg, var(--hw-dark, #0f0f0f) 0%, var(--hw-dark-secondary, #1a1a1a) 50%, var(--hw-dark-tertiary, #2d2d2d) 100%);
    min-height: 100vh;
    position: relative;
}

div.info-card.woocommerce-info {
    display: flex;
    flex-flow: row nowrap;
}

/* Green-tinted radial gradient overlays */
.woocommerce-cart #primary.site-main::before,
.woocommerce-cart .site-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(44, 198, 77, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(44, 198, 77, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.woocommerce-cart #page {
    background: linear-gradient(135deg, var(--hw-dark, #0f0f0f) 0%, var(--hw-dark-secondary, #1a1a1a) 50%, var(--hw-dark-tertiary, #2d2d2d) 100%);
}

/* Ensure all content sits above the overlays */
.woocommerce-cart .entry-header,
.woocommerce-cart .entry-content,
.woocommerce-cart .wrapper-info {
    position: relative;
    z-index: 1;
}

.woocommerce-cart .entry-content {
    padding: 0;
}

/* ============================================================
   CART PAGE HEADER - STYLED TITLE
   ============================================================ */

.woocommerce-cart .entry-header,
.woocommerce-cart .page-header {
    background-color: transparent;
    text-align: center;
    padding: 40px 20px 10px;
}

.woocommerce-cart .entry-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 auto;
    padding: 0 0 16px;
    background: linear-gradient(135deg, var(--hw-white, #ffffff) 0%, var(--hw-light-gray, #e0e0e0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.woocommerce-cart .entry-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--hw-primary, #2cc64d), transparent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Hide sidebar / widget area on cart page */
.woocommerce-cart #secondary.widget-area,
.woocommerce-cart aside.widget-area,
.woocommerce-cart .sidebar {
    display: none !important;
}

/* Make main content full width when sidebar is hidden */
.woocommerce-cart #primary {
    width: 100%;
    float: none;
    margin: 0 auto;
}

/* ============================================================
   CART PAGE WRAPPER
   ============================================================ */

/* .woocommerce-cart .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 30px 60px;
} */

.cart-page {
    background-color: rgba(30, 30, 50, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--hw-radius-lg, 16px);
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================================================
   WooCommerce Info/Notice Banners
   ============================================================ */

.woocommerce-cart .wrapper-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 30px 0;
}

.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-error {
    background-color: rgba(37, 37, 64, 0.8);
    color: #e0e0f0;
    border: 1px solid #3d3d55;
    border-radius: var(--hw-radius, 8px);
    padding: 12px 20px;
    margin-bottom: 15px;
}

.woocommerce-cart .woocommerce-message {
    border-left: 4px solid var(--hw-primary, #2cc64d);
}

.woocommerce-cart .woocommerce-error {
    border-left: 4px solid var(--hw-error, #dc3545);
}

.woocommerce-cart .woocommerce-info a,
.woocommerce-cart .woocommerce-message a {
    color: var(--hw-primary, #2cc64d);
    text-decoration: underline;
}

/* ============================================================
   TIERED PRICING CTAs (PROGRESS + UPSELL + SAVINGS SUMMARY)
   ============================================================ */

.woocommerce-cart .fsp-tiered-pricing-progress {
    background-color: rgba(37, 37, 64, 0.75);
    color: #e0e0f0;
    border: 1px solid rgba(44, 198, 77, 0.35);
    border-radius: var(--hw-radius-lg, 16px);
    padding: 14px 18px;
    margin-bottom: 14px;
}

.woocommerce-cart .fsp-tiered-pricing-progress__message {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.woocommerce-cart .fsp-tiered-pricing-progress__track {
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.woocommerce-cart .fsp-tiered-pricing-progress__fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(44, 198, 77, 0.7), rgba(44, 198, 77, 1));
    border-radius: 999px;
    transition: width 0.25s ease;
}

.woocommerce-cart .fsp-tiered-pricing-progress__meta {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(224, 224, 240, 0.85);
    font-variant-numeric: tabular-nums;
}

.woocommerce-cart .fsp-tiered-pricing-upsell {
    margin-bottom: 14px;
}

.woocommerce-cart .fsp-tiered-pricing-upsell__notice {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.woocommerce-cart .fsp-tiered-pricing-upsell__button.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.cart-page .cart_totals tr.fsp-tiered-pricing-savings th,
.cart-page .cart_totals tr.fsp-tiered-pricing-savings td {
    color: var(--hw-primary, #2cc64d);
    font-weight: 800;
}

.cart-page .cart_totals tr.fsp-tiered-pricing-savings td {
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   CART TABLE - HEADER
   ============================================================ */

.cart-page table.shop_table.cart {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    background-color: transparent;
    table-layout: auto;
}

.cart-page table.shop_table thead tr {
    background-color: #333645;
}

.cart-page table.shop_table thead th {
    color: #e0e0f0;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    border: none;
    border-bottom: 2px solid var(--hw-primary, #2cc64d);
}

.cart-page table.shop_table thead th:first-child {
    border-radius: var(--hw-radius, 8px) 0 0 0;
}

.cart-page table.shop_table thead th:last-child {
    border-radius: 0 var(--hw-radius, 8px) 0 0;
}

/* Shrink the Remove column */
.cart-page table.shop_table thead th.product-remove {
    width: 40px;
    max-width: 40px;
    padding: 14px 4px;
}

.cart-page table.shop_table thead th.product-thumbnail {
    width: 90px;
}

/* ============================================================
   CART TABLE - BODY ROWS
   ============================================================ */

.cart-page table.shop_table tbody tr.cart_item {
    background-color: rgba(37, 37, 64, 0.5);
    transition: background-color 0.2s ease;
}

.cart-page table.shop_table tbody tr.cart_item:hover {
    background-color: rgba(42, 42, 74, 0.6);
}

.cart-page table.shop_table tbody tr.cart_item:nth-child(even) {
    background-color: rgba(34, 34, 56, 0.5);
}

.cart-page table.shop_table tbody tr.cart_item:nth-child(even):hover {
    background-color: rgba(40, 40, 72, 0.6);
}

.cart-page table.shop_table tbody td {
    padding: 16px 12px;
    border: none;
    border-bottom: 1px solid rgba(51, 51, 80, 0.6);
    color: #d0d0e0;
    vertical-align: top;
}

/* ============================================================
   PRODUCT REMOVE (x) BUTTON - SMALL COMPACT
   ============================================================ */

.cart-page td.product-remove {
    width: 40px !important;
    max-width: 40px !important;
    padding: 16px 4px !important;
    text-align: center;
    vertical-align: middle !important;
}

.cart-page td.product-remove a.remove,
.woocommerce-cart table.shop_table td.product-remove a.remove {
    color: #ff6b6b !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 107, 107, 0.15) !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.cart-page td.product-remove a.remove:hover,
.woocommerce-cart table.shop_table td.product-remove a.remove:hover {
    background-color: rgba(255, 107, 107, 0.3) !important;
    color: #ff4444 !important;
    transform: scale(1.1);
}

/* ============================================================
   PRODUCT THUMBNAIL - VISIBLE
   ============================================================ */

.cart-page td.product-thumbnail {
    width: 90px !important;
    padding: 12px 8px !important;
    vertical-align: middle !important;
}

.cart-page td.product-thumbnail a {
    display: block !important;
    border-radius: var(--hw-radius, 8px);
    overflow: hidden;
    border: 2px solid #3d3d55;
    transition: border-color 0.3s ease;
    width: 70px;
    height: 70px;
}

.cart-page td.product-thumbnail a:hover {
    border-color: var(--hw-primary, #2cc64d);
}

.cart-page td.product-thumbnail img {
    display: block !important;
    width: 70px !important;
    height: 70px !important;
    max-width: 70px !important;
    object-fit: cover;
    border-radius: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ============================================================
   PRODUCT NAME & DTF LINE ITEM INFO
   ============================================================ */

.cart-page td.product-name {
    min-width: 300px;
    vertical-align: top;
}

.cart-page td.product-name > a {
    color: var(--hw-white, #ffffff);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cart-page td.product-name > a:hover {
    color: var(--hw-primary, #2cc64d);
}

/* DTF Related Line Item Info - ROW LAYOUT (dimensions left, image right) */
.cart-page .dtf-related-line-item-info {
    margin-top: 12px;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: nowrap;
}

.cart-page .dtf-cart-line-item-info-table {
    background-color: white;
    border-collapse: collapse;
    border: 1px solid #3d3d55 !important;
    border-radius: var(--hw-radius, 8px);
    overflow: hidden;
    margin-top: 0 !important;
    flex-shrink: 0;
}

/* Dimension table - compact */
.cart-page .dtf-cart-line-item-info-table:first-child {
    width: auto;
    min-width: 140px;
    max-width: 180px;
}

/* Uploaded image table */
.cart-page .dtf-cart-line-item-info-table:last-child {
    width: auto;
    min-width: 150px;
    max-width: 260px;
    flex-shrink: 1;
}

.cart-page .dtf-cart-line-item-info-table tr {
    background-color: transparent;
}

.cart-page .dtf-upload-dim-row-header,
.cart-page .uploaded-image-cart-line {
    background-color: #333645 !important;
}

.cart-page .dtf-upload-dim-row-header th,
.cart-page .uploaded-image-cart-line th {
    color: #e0e0f0 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 10px;
    border: none;
}

.cart-page .dtf-upload-dim-row td {
    background-color: rgba(42, 42, 68, 0.8);
    color: #d0d0e0;
    padding: 6px 10px;
    font-size: 0.85rem;
    border-color: #3d3d55 !important;
}

.cart-page .dtf-dim-label {
    font-weight: 600;
    color: #b0b0cc !important;
}

.cart-page .dtf-dim-content {
    color: var(--hw-white, #ffffff) !important;
    font-weight: 500;
}

/* DTF Uploaded Image Preview */
.cart-page .cart-line-upload-img-wrapper {
    display: inline-block;
    border-radius: var(--hw-radius, 8px);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-page .cart-line-upload-img-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(44, 198, 77, 0.2);
}

.cart-page .cart-line-upload-img-wrapper img {
    max-width: 180px !important;
    height: auto;
    border-radius: var(--hw-radius, 8px);
    border: 2px solid #3d3d55;
    transition: border-color 0.3s ease;
}

.cart-page .cart-line-upload-img-wrapper:hover img {
    border-color: var(--hw-primary, #2cc64d);
}

.cart-page .uploaded-image-cart-line + tr td {
    background-color: rgba(42, 42, 68, 0.8) !important;
    padding: 10px;
}

/* ============================================================
   PRODUCT PRICE & SUBTOTAL
   ============================================================ */

.cart-page td.product-price,
.cart-page td.product-subtotal {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle !important;
}

.cart-page td.product-price .woocommerce-Price-amount,
.cart-page td.product-subtotal .woocommerce-Price-amount {
    color: var(--hw-white, #ffffff);
}

.cart-page td.product-subtotal .woocommerce-Price-amount {
    color: var(--hw-primary, #2cc64d);
    font-size: 1.05rem;
}

/* ============================================================
   QUANTITY INPUT
   ============================================================ */

.cart-page td.product-quantity {
    min-width: 80px;
    vertical-align: middle !important;
}

.cart-page td.product-quantity .quantity {
    display: inline-flex;
    align-items: center;
}

.cart-page td.product-quantity input.qty {
    background-color: rgba(26, 26, 48, 0.8);
    color: var(--hw-white, #ffffff);
    border: 2px solid #3d3d55;
    border-radius: var(--hw-radius, 8px);
    padding: 8px 10px;
    width: 70px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.cart-page td.product-quantity input.qty:focus {
    outline: none;
    border-color: var(--hw-primary, #2cc64d);
    box-shadow: 0 0 0 3px rgba(44, 198, 77, 0.15);
}

.cart-page td.product-quantity input.qty::-webkit-inner-spin-button,
.cart-page td.product-quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ============================================================
   ACTIONS ROW - Coupon left, Update Cart far right
   ============================================================ */

.cart-page tr.actions_row td.actions {
    background-color: transparent;
    padding: 20px 12px;
    border-bottom: none;
}

/* Flex wrapper inside the td (keeps table layout intact) */
.cart-page .actions-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Coupon - inline group, stays left */
.cart-page .coupon {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.cart-page .coupon input.input-text {
    background-color: rgba(26, 26, 48, 0.8);
    color: var(--hw-white, #ffffff);
    border: 2px solid #3d3d55;
    border-radius: var(--hw-radius, 8px);
    padding: 10px 14px;
    font-size: 0.9rem;
    width: 180px;
    transition: border-color 0.2s ease;
}

.cart-page .coupon input.input-text::placeholder {
    color: #6b6b88;
}

.cart-page .coupon input.input-text:focus {
    outline: none;
    border-color: var(--hw-primary, #2cc64d);
    box-shadow: 0 0 0 3px rgba(44, 198, 77, 0.15);
}

.cart-page .coupon button.button {
    background-color: #333645;
    color: #e0e0f0;
    border: 2px solid #3d3d55;
    border-radius: var(--hw-radius, 8px);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hw-transition, all 0.3s ease);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.cart-page .coupon button.button:hover {
    background-color: #3d3d55;
    border-color: var(--hw-primary, #2cc64d);
    color: var(--hw-white, #ffffff);
}

/* Update Cart Button - pushed to far right */
.cart-page button[name="update_cart"],
.cart-page button#update_cart_btn {
    background-color: transparent;
    color: var(--hw-primary, #2cc64d);
    border: 2px solid var(--hw-primary, #2cc64d);
    border-radius: var(--hw-radius, 8px);
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hw-transition, all 0.3s ease);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.cart-page button[name="update_cart"]:hover,
.cart-page button#update_cart_btn:hover {
    background-color: var(--hw-primary, #2cc64d);
    color: var(--hw-dark, #0f0f0f);
}

.cart-page button[name="update_cart"]:disabled,
.cart-page button#update_cart_btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   CART COLLATERALS - TOTALS & CHECKOUT
   ============================================================ */

.cart-page .cart-collaterals {
    margin-top: 30px;
}

.cart-page .cart-checkout-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
}

.cart-page .cart-prices {
    width: auto;
    min-width: 380px;
    max-width: 450px;
}

/* Cart Totals Box - constrained width, right-aligned */
.cart-page .cart_totals {
    background-color: rgba(37, 37, 64, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--hw-radius-lg, 16px);
    padding: 28px;
    border: 1px solid rgba(51, 51, 80, 0.6);
    width: 100%;
}

.cart-page .cart_totals h2 {
    color: var(--hw-white, #ffffff);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hw-primary, #2cc64d);
    letter-spacing: 0.5px;
}

.cart-page .cart_totals table.shop_table {
    background-color: transparent;
    margin-bottom: 0;
}

.cart-page .cart_totals table.shop_table tr {
    background-color: transparent;
}

.cart-page .cart_totals table.shop_table th,
.cart-page .cart_totals table.shop_table td {
    padding: 14px 0;
    border-bottom: 1px solid rgba(51, 51, 80, 0.6);
    color: #d0d0e0;
}

.cart-page .cart_totals table.shop_table th {
    font-weight: 600;
    color: #b0b0cc;
    font-size: 0.95rem;
}

.cart-page .cart_totals table.shop_table td {
    text-align: right;
}

.cart-page .cart_totals tr.cart-subtotal .woocommerce-Price-amount {
    color: var(--hw-white, #ffffff);
    font-size: 1.05rem;
    font-weight: 600;
}

.cart-page .cart_totals tr.order-total {
    border-bottom: none;
}

.cart-page .cart_totals tr.order-total th {
    color: var(--hw-white, #ffffff);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: none;
}

.cart-page .cart_totals tr.order-total td {
    border-bottom: none;
}

.cart-page .cart_totals tr.order-total .woocommerce-Price-amount {
    color: var(--hw-primary, #2cc64d);
    font-size: 1.4rem;
    font-weight: 700;
}

/* ============================================================
   SHIPPING METHODS IN CART TOTALS
   ============================================================ */

/* Shipping methods as styled buttons */
.cart-page .cart_totals ul.woocommerce-shipping-methods {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    gap: 8px;
}

.cart-page .cart_totals ul.woocommerce-shipping-methods li {
    list-style: none !important;
    margin: 0;
    padding: 0;
    flex: 1 1 0;
}

.cart-page .cart_totals ul.woocommerce-shipping-methods li::before,
.cart-page .cart_totals ul.woocommerce-shipping-methods li::marker {
    content: none !important;
    display: none !important;
}

/* Hide the radio input visually */
.cart-page .cart_totals ul.woocommerce-shipping-methods li input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Style the label as a button */
.cart-page .cart_totals ul.woocommerce-shipping-methods li label {
    display: block;
    background-color: rgba(26, 26, 48, 0.8);
    color: #d0d0e0;
    border: 2px solid #3d3d55;
    border-radius: var(--hw-radius, 8px);
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cart-page .cart_totals ul.woocommerce-shipping-methods li label:hover {
    border-color: var(--hw-primary, #2cc64d);
    background-color: rgba(44, 198, 77, 0.05);
    color: var(--hw-white, #ffffff);
}

/* Selected state */
.cart-page .cart_totals ul.woocommerce-shipping-methods li input[type="radio"]:checked + label {
    border-color: var(--hw-primary, #2cc64d);
    background-color: rgba(44, 198, 77, 0.12);
    color: var(--hw-white, #ffffff);
    box-shadow: 0 0 0 1px var(--hw-primary, #2cc64d), 0 2px 8px rgba(44, 198, 77, 0.2);
}

.cart-page .cart_totals .woocommerce-shipping-methods .woocommerce-Price-amount {
    color: var(--hw-white, #ffffff) !important;
    font-weight: 600;
}

.cart-page .cart_totals ul.woocommerce-shipping-methods li input[type="radio"]:checked + label .woocommerce-Price-amount {
    color: var(--hw-primary, #2cc64d) !important;
}

/* Shipping destination text */
.cart-page .cart_totals .woocommerce-shipping-destination {
    color: #9090a8;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Change address link */
.cart-page .cart_totals .shipping-calculator-button {
    color: var(--hw-primary, #2cc64d);
    font-size: 0.8rem;
    text-decoration: underline;
}

/* Shipping calculator form */
.cart-page .cart_totals .shipping-calculator-form select,
.cart-page .cart_totals .shipping-calculator-form input.input-text {
    background-color: rgba(26, 26, 48, 0.8);
    color: var(--hw-white, #ffffff);
    border: 2px solid #3d3d55;
    border-radius: var(--hw-radius, 8px);
    padding: 8px 12px;
    font-size: 0.85rem;
    width: 100%;
}

.cart-page .cart_totals .shipping-calculator-form button.button {
    background-color: #333645;
    color: #e0e0f0;
    border: 2px solid #3d3d55;
    border-radius: var(--hw-radius, 8px);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-page .cart_totals .shipping-calculator-form button.button:hover {
    background-color: #3d3d55;
    border-color: var(--hw-primary, #2cc64d);
}

/* Shipping row td alignment */
.cart-page .cart_totals tr.woocommerce-shipping-totals td {
    text-align: right;
}

/* ============================================================
   PROCEED TO CHECKOUT BUTTON
   ============================================================ */

.cart-page .wc-proceed-to-checkout {
    margin-top: 20px;
    text-align: center;
}

.cart-page .wc-proceed-to-checkout a.checkout-button,
.cart-page a.checkout-button.button.alt.wc-forward {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--hw-primary, #2cc64d), var(--hw-primary-dark, #22a03d));
    color: var(--hw-white, #ffffff);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 30px;
    border: none;
    border-radius: var(--hw-radius, 8px);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--hw-transition, all 0.3s ease);
    box-shadow: 0 4px 15px rgba(44, 198, 77, 0.3);
}

.cart-page .wc-proceed-to-checkout a.checkout-button:hover,
.cart-page a.checkout-button.button.alt.wc-forward:hover {
    background: linear-gradient(135deg, var(--hw-primary-light, #4ed96a), var(--hw-primary, #2cc64d));
    box-shadow: 0 6px 25px rgba(44, 198, 77, 0.45);
    transform: translateY(-2px);
}

/* ============================================================
   REMOVE SECURE CHECKOUT BADGE
   ============================================================ */

.cart-page img.secure-checkout-card {
    display: none !important;
}

/* ============================================================
   CROSS-SELLS SECTION
   ============================================================ */

.cart-page .cross-sells {
    background-color: rgba(37, 37, 64, 0.6);
    border-radius: var(--hw-radius-lg, 16px);
    padding: 28px;
    margin-top: 30px;
    border: 1px solid rgba(51, 51, 80, 0.6);
}

.cart-page .cross-sells h2 {
    color: var(--hw-white, #ffffff);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.cart-page .cross-sells ul.products li.product {
    background-color: rgba(30, 30, 50, 0.6);
    border-radius: var(--hw-radius, 8px);
    padding: 15px;
}

.cart-page .cross-sells ul.products li.product a {
    color: var(--hw-white, #ffffff);
    text-decoration: none;
}

.cart-page .cross-sells .woocommerce-Price-amount {
    color: var(--hw-primary, #2cc64d);
}

/* ============================================================
   EMPTY CART STATE
   ============================================================ */

.woocommerce-cart .cart-empty {
    color: #b0b0cc;
    font-size: 1.1rem;
    text-align: center;
    padding: 60px 20px;
}

.woocommerce-cart .return-to-shop a.button {
    display: inline-block;
    background: linear-gradient(135deg, var(--hw-primary, #2cc64d), var(--hw-primary-dark, #22a03d));
    color: var(--hw-white, #ffffff);
    padding: 14px 30px;
    border-radius: var(--hw-radius, 8px);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--hw-transition, all 0.3s ease);
}

.woocommerce-cart .return-to-shop a.button:hover {
    background: linear-gradient(135deg, var(--hw-primary-light, #4ed96a), var(--hw-primary, #2cc64d));
    box-shadow: 0 4px 15px rgba(44, 198, 77, 0.3);
    transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media screen and (max-width: 900px) {
    .woocommerce-cart .container {
        padding: 10px 15px 40px;
    }

    .cart-page {
        padding: 20px 15px;
    }

    .cart-page td.product-name {
        min-width: 200px;
    }

    .cart-page .dtf-related-line-item-info {
        flex-direction: column !important;
    }

    .cart-page .dtf-cart-line-item-info-table:first-child {
        max-width: 200px;
    }

    .cart-page .cart-line-upload-img-wrapper img {
        max-width: 160px !important;
    }

    .cart-page .actions-inner {
        flex-wrap: wrap !important;
    }

    .cart-page button[name="update_cart"],
    .cart-page button#update_cart_btn {
        margin-left: 0 !important;
        width: 100%;
    }

    .cart-page .coupon {
        width: 100%;
    }

    .cart-page .coupon input.input-text {
        flex: 1;
        width: auto;
    }

    .cart-page .cart-checkout-box {
        align-items: stretch;
    }

    .cart-page .cart-prices {
        width: 100%;
        max-width: 100%;
        min-width: auto;
    }
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media screen and (max-width: 48em) {
    .cart-page table.shop_table thead {
        display: none;
    }

    .cart-page table.shop_table tbody tr.cart_item {
        display: flex;
        flex-wrap: wrap;
        padding: 16px;
        gap: 10px;
        align-items: flex-start;
        border-bottom: 1px solid rgba(51, 51, 80, 0.6);
        margin-bottom: 8px;
        border-radius: var(--hw-radius, 8px);
        position: relative;
    }

    .cart-page table.shop_table tbody td {
        display: block;
        text-align: left;
        border-bottom: none;
        padding: 4px 8px;
    }

    .cart-page table.shop_table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 600;
        color: #b0b0cc;
        display: block;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 3px;
    }

    .cart-page table.shop_table tbody td.product-remove {
        order: -1;
        position: absolute;
        right: 10px;
        top: 10px;
        width: auto !important;
        max-width: none !important;
    }

    .cart-page table.shop_table tbody td.product-remove::before {
        display: none;
    }

    .cart-page table.shop_table tbody td.product-thumbnail {
        width: auto;
    }

    .cart-page table.shop_table tbody td.product-thumbnail::before {
        display: none;
    }

    .cart-page table.shop_table tbody td.product-name {
        min-width: 100%;
        flex-basis: 100%;
    }

    .cart-page table.shop_table tbody td.product-price,
    .cart-page table.shop_table tbody td.product-quantity,
    .cart-page table.shop_table tbody td.product-subtotal {
        flex: 1;
        text-align: center;
    }

    .cart-page .dtf-related-line-item-info {
        flex-direction: column !important;
    }

    .cart-page .dtf-cart-line-item-info-table {
        max-width: 100% !important;
    }

    .cart-page .cart-line-upload-img-wrapper img {
        max-width: 100% !important;
    }

    .cart-page .cart_totals {
        padding: 20px;
    }

    .cart-page .cart_totals tr.order-total .woocommerce-Price-amount {
        font-size: 1.2rem;
    }

    .cart-page .actions-inner {
        flex-direction: column !important;
        align-items: stretch;
    }

    .cart-page .coupon {
        flex-wrap: wrap;
    }
}
