/* =========================================================
   PMT LUXURY CUSTOM CART STYLES
   - Background: Fixed Radial Gradient (#3D2310 0% -> #080300 100%)
   - Colors: Gold Accent (#FDD501, #B8860B), Dark Luxury (#211811, #18100A)
   - Layout: Desktop 2-Column Grid (Cart + Trust / Totals + Payment)
   - Mobile: Responsive Stacked Cards matching WoodMart/Luxury mockups
   - Typography: 'DM Sans', 'Montserrat', sans-serif
========================================================= */

:root {
    --pmt-cart-bg: radial-gradient(circle at 50% 50%, #3D2310 0%, #080300 100%);
    --pmt-cart-card-bg: #211811;
    --pmt-cart-card-inner: #18100A;
    --pmt-cart-card-border: rgba(184, 134, 11, 0.16);
    --pmt-cart-gold: #FDD501;
    --pmt-cart-gold-muted: #B8860B;
    --pmt-cart-gold-grad: linear-gradient(90deg, #FDD501 0%, #B8860B 100%);
    --pmt-cart-text-white: #FFFFFF;
    --pmt-cart-text-subtle: #E0DCD7;
    --pmt-cart-text-muted: #9E968F;
    --pmt-cart-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 1. Global Page Background & Resets */
body.woocommerce-cart,
body.woocommerce-cart #page,
body.woocommerce-cart #content,
body.woocommerce-cart .site-content,
body.woocommerce-cart .ast-container,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .ast-article-single,
body.woocommerce-cart #primary,
body.woocommerce-cart #main,
body.woocommerce-cart .woocommerce {
    background: transparent !important;
}

body.woocommerce-cart .ast-container,
body.woocommerce-cart #primary,
body.woocommerce-cart #main,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .woocommerce,
body.woocommerce-cart .ast-article-single {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body.woocommerce-cart {
    background: radial-gradient(circle at 50% 50%, #3D2310 0%, #080300 100%) fixed !important;
    background-attachment: fixed !important;
    color: var(--pmt-cart-text-subtle) !important;
    font-family: var(--pmt-cart-font) !important;
}

/* Hide Astra default title & free shipping qualifiers if any */
body.woocommerce-cart .ast-page-builder-template .entry-header,
body.woocommerce-cart .entry-header,
body.woocommerce-cart .entry-header.ast-no-meta,
body.woocommerce-cart .free-shipping-progress-bar,
body.woocommerce-cart .woodmart-free-shipping-bar {
    display: none !important;
}

/* 2. Page Wrapper & Container */
.pmt-cart-page-wrapper {
    width: 100%;
    min-height: 70vh;
    padding: 30px 0 80px;
    box-sizing: border-box;
}

.pmt-cart-container {
    width: 100%;
    max-width: 1530px;
    margin: 0 auto;
    padding: 0 80px;
    box-sizing: border-box;
}

/* 3. Breadcrumbs */
.pmt-cart-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 26px;
    font-family: var(--pmt-cart-font);
}

.pmt-cart-breadcrumb .pmt-bc-link {
    color: var(--pmt-cart-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.pmt-cart-breadcrumb .pmt-bc-link:hover {
    color: var(--pmt-cart-gold);
}

.pmt-cart-breadcrumb .pmt-bc-sep {
    color: var(--pmt-cart-gold-muted);
    font-size: 13px;
    user-select: none;
}

.pmt-cart-breadcrumb .pmt-bc-current {
    color: var(--pmt-cart-text-white);
    font-weight: 600;
}

/* 4. WooCommerce Notices */
.pmt-cart-notices-wrap .woocommerce-error,
.pmt-cart-notices-wrap .woocommerce-info,
.pmt-cart-notices-wrap .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-info {
    position: relative !important;
    background: #18100A !important;
    border: 1px solid var(--pmt-cart-card-border) !important;
    border-left: 4px solid var(--pmt-cart-gold) !important;
    color: var(--pmt-cart-text-white) !important;
    border-radius: 8px !important;
    padding: 14px 24px 14px 54px !important;
    font-family: var(--pmt-cart-font) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    display: block !important;
}

.pmt-cart-notices-wrap .woocommerce-message::before,
.pmt-cart-notices-wrap .woocommerce-info::before,
.pmt-cart-notices-wrap .woocommerce-error::before,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-message::before,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-info::before,
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error::before,
body.woocommerce-cart .woocommerce-message::before,
body.woocommerce-cart .woocommerce-info::before,
body.woocommerce-cart .woocommerce-error::before {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pmt-cart-gold) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    width: 20px !important;
    height: 20px !important;
}

.pmt-cart-notices-wrap a.button,
body.woocommerce-cart .woocommerce-notices-wrapper a.button {
    background: var(--pmt-cart-gold-grad) !important;
    color: #080300 !important;
    font-weight: 700 !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    border: none !important;
    text-decoration: none !important;
    float: right;
}

/* 5. Main 2-Column Grid */
.pmt-cart-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: start;
}

/* =========================================================
   6. LEFT COLUMN: CART TABLE CARD
========================================================= */
.pmt-cart-left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pmt-cart-table-card {
    background: var(--pmt-cart-card-bg);
    border: 1px solid var(--pmt-cart-card-border);
    border-radius: 14px;
    padding: 26px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

/* Cart Table */
.pmt-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pmt-cart-table thead,
.pmt-cart-table thead tr {
    background: #FFFFFF !important;
}

.pmt-cart-table thead th {
    font-family: var(--pmt-cart-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    padding: 12px 14px !important;
    border: none !important;
    border-bottom: none !important;
    text-align: left !important;
    letter-spacing: 0.3px;
    background: #FFFFFF !important;
}

.pmt-cart-table thead th.product-remove,
.pmt-cart-table thead th.product-thumbnail {
    width: 40px;
    padding-left: 0;
    padding-right: 0;
}

.pmt-cart-table thead th.product-quantity,
.pmt-cart-table thead th.product-price {
    text-align: center;
}

.pmt-cart-table thead th.product-subtotal {
    text-align: right;
    padding-right: 14px;
}

.pmt-cart-table thead th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding-left: 10px;
}

.pmt-cart-table thead th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pmt-cart-table tbody td {
    padding: 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    font-family: var(--pmt-cart-font);
}

.pmt-cart-table tbody tr:last-child td {
    border-bottom: none;
}

/* 1. Remove Button (X) - Crisp White */
.pmt-cart-table .product-remove {
    width: 36px;
    padding-left: 0;
    text-align: center;
}

.woocommerce a.remove,
.woocommerce-cart-form a.pmt-cart-remove-btn,
.pmt-cart-remove-btn,
.pmt-cart-table td.product-remove a,
.pmt-cart-table tbody tr.pmt-cart-item td.product-remove a.pmt-cart-remove-btn,
a.pmt-cart-remove-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    color: #FFFFFF !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.pmt-cart-remove-btn:hover,
.woocommerce a.remove:hover {
    color: var(--pmt-cart-gold) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.15) !important;
}

/* 2. Thumbnail */
.pmt-cart-table .product-thumbnail {
    width: 75px;
    padding-left: 4px;
    padding-right: 14px;
}

.pmt-cart-thumb-wrap {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--pmt-cart-card-inner);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmt-cart-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.pmt-cart-thumb-wrap:hover img {
    transform: scale(1.05);
}

/* 3. Product Name */
.pmt-cart-table .product-name {
    padding-left: 4px;
}

.pmt-cart-name-wrap .pmt-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--pmt-cart-text-white);
    text-decoration: none;
    line-height: 1.35;
    display: inline-block;
    transition: color 0.2s ease;
}

.pmt-cart-name-wrap a.pmt-item-title:hover {
    color: var(--pmt-cart-gold);
}

.pmt-cart-name-wrap .variation {
    font-size: 12px;
    color: var(--pmt-cart-text-muted);
    margin: 4px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pmt-cart-name-wrap .variation dt,
.pmt-cart-name-wrap .variation dd {
    display: inline;
    margin: 0;
}

/* 4. Price */
.pmt-cart-table .product-price {
    text-align: center;
    white-space: nowrap;
}

.pmt-item-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--pmt-cart-text-subtle);
}

/* 5. Quantity Pill (- 1 +) */
.pmt-cart-table .product-quantity {
    text-align: center;
}

.pmt-cart-qty-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pmt-cart-card-inner);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 30px;
    padding: 3px 6px;
    width: 100px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.pmt-cart-qty-pill:hover,
.pmt-cart-qty-pill:focus-within {
    border-color: var(--pmt-cart-gold);
}

.pmt-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--pmt-cart-text-subtle);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    user-select: none;
}

.pmt-qty-btn:hover {
    color: #080300;
    background: var(--pmt-cart-gold);
}

.pmt-cart-qty-input {
    width: 34px !important;
    height: 24px !important;
    border: none !important;
    background: transparent !important;
    color: var(--pmt-cart-text-white) !important;
    font-family: var(--pmt-cart-font) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    outline: none !important;
}

.pmt-cart-qty-input::-webkit-outer-spin-button,
.pmt-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 6. Subtotal */
.pmt-cart-table .product-subtotal {
    text-align: right;
    white-space: nowrap;
    padding-right: 4px;
}

.pmt-item-subtotal {
    font-size: 16px;
    font-weight: 700;
    color: var(--pmt-cart-gold);
}

/* Cart Bottom Bar (Coupon Box) */
.pmt-cart-bottom-bar {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pmt-coupon-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pmt-coupon-input {
    height: 44px;
    width: 220px;
    background: var(--pmt-cart-card-inner);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 30px;
    padding: 0 20px;
    color: var(--pmt-cart-text-white);
    font-family: var(--pmt-cart-font);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pmt-coupon-input::placeholder {
    color: var(--pmt-cart-text-muted);
}

.pmt-coupon-input:focus {
    border-color: var(--pmt-cart-gold);
    box-shadow: 0 0 0 2px rgba(253, 213, 1, 0.2);
}

.pmt-btn-apply-coupon {
    height: 44px;
    padding: 0 26px;
    border-radius: 30px;
    background: var(--pmt-cart-gold-grad) !important;
    color: #080300 !important;
    border: none !important;
    font-family: var(--pmt-cart-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(253, 213, 1, 0.2);
}

.pmt-btn-apply-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(253, 213, 1, 0.35);
    color: #080300 !important;
}

/* =========================================================
   7. 3 TRUST / SUPPORT CARDS (BELOW CART TABLE)
========================================================= */
.pmt-cart-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pmt-trust-card {
    background: var(--pmt-cart-card-bg);
    border: 1px solid var(--pmt-cart-card-border);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.pmt-trust-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(253, 213, 1, 0.08);
    border: 1px solid rgba(253, 213, 1, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pmt-cart-gold);
    flex-shrink: 0;
}

.pmt-trust-content {
    flex: 1;
}

.pmt-trust-title {
    font-family: var(--pmt-cart-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--pmt-cart-text-white);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.pmt-trust-desc {
    font-family: var(--pmt-cart-font);
    font-size: 12.5px;
    color: var(--pmt-cart-text-muted);
    margin: 0;
    line-height: 1.4;
}

.pmt-trust-link {
    color: var(--pmt-cart-gold);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.pmt-trust-link:hover {
    opacity: 0.85;
}

/* =========================================================
   8. RIGHT COLUMN: CART TOTALS CARD
========================================================= */
.pmt-cart-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pmt-cart-totals-card {
    background: var(--pmt-cart-card-bg);
    border: 1px solid var(--pmt-cart-card-border);
    border-radius: 14px;
    padding: 28px 28px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.pmt-cart-totals-title {
    font-family: var(--pmt-cart-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--pmt-cart-text-white);
    margin: 0 0 22px 0;
    letter-spacing: 0.2px;
}

.pmt-totals-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
}

.pmt-total-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pmt-total-row th {
    font-family: var(--pmt-cart-font);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--pmt-cart-text-subtle);
    padding: 14px 0;
    text-align: left;
    width: 40%;
    vertical-align: top;
}

.pmt-total-row td {
    font-family: var(--pmt-cart-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--pmt-cart-text-white);
    padding: 14px 0;
    text-align: right;
    vertical-align: top;
}

/* Shipping Methods on Totals Card */
.pmt-shipping-row ul#shipping_method {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.pmt-shipping-row ul#shipping_method li {
    margin-bottom: 6px;
    font-size: 13.5px;
    color: var(--pmt-cart-text-subtle);
}

.pmt-shipping-row ul#shipping_method li input[type="radio"] {
    accent-color: var(--pmt-cart-gold);
    margin-right: 6px;
}

.pmt-shipping-row .woocommerce-shipping-destination {
    font-size: 12.5px;
    color: var(--pmt-cart-text-muted);
    margin-top: 6px;
}

.pmt-shipping-row .shipping-calculator-button {
    font-size: 13px;
    color: var(--pmt-cart-gold);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

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

.pmt-shipping-row .shipping-calculator-form {
    margin-top: 12px;
    text-align: left;
}

.pmt-shipping-row .shipping-calculator-form input,
.pmt-shipping-row .shipping-calculator-form select {
    background: var(--pmt-cart-card-inner);
    border: 1px solid var(--pmt-cart-card-border);
    color: var(--pmt-cart-text-white);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    width: 100%;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.pmt-shipping-row .shipping-calculator-form button {
    background: var(--pmt-cart-gold-grad);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    color: #080300;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
}

/* Divider Line & Pseudo-element / Colon Resets */
.pmt-totals-table td::before,
.pmt-totals-table th::before,
.pmt-totals-table .pmt-divider-row td::before,
.pmt-totals-table tr td::before,
.pmt-divider-row td::before,
.pmt-divider-row::before,
.pmt-totals-divider-line::before,
.pmt-totals-divider-line::after,
.pmt-cart-totals-card table td::before,
.pmt-cart-totals-card table th::before {
    content: none !important;
    display: none !important;
}

.pmt-divider-row td {
    padding: 6px 0 !important;
    border: none !important;
}

.pmt-totals-divider-line {
    height: 1px;
    background: rgba(184, 134, 11, 0.25);
    width: 100%;
}

/* Order Grand Total */
.pmt-order-total-row {
    border-bottom: none;
}

.pmt-order-total-row th {
    font-size: 16px;
    font-weight: 700;
    color: var(--pmt-cart-text-white);
    padding: 16px 0 8px;
}

.pmt-order-total-row td {
    padding: 16px 0 8px;
}

.pmt-grand-total-amount,
.pmt-order-total-row td strong span.woocommerce-Price-amount {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--pmt-cart-gold) !important;
}

/* Proceed to Checkout Button */
.pmt-proceed-checkout-wrap {
    margin-top: 10px;
}

.pmt-btn-proceed-checkout {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: var(--pmt-cart-gold-grad) !important;
    color: #080300 !important;
    font-family: var(--pmt-cart-font) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    border-radius: 30px !important;
    text-decoration: none !important;
    text-align: center;
    border: none !important;
    box-shadow: 0 4px 15px rgba(253, 213, 1, 0.25) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    box-sizing: border-box;
}

.pmt-btn-proceed-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(253, 213, 1, 0.4) !important;
    color: #080300 !important;
}



/* =========================================================
   10. EMPTY CART STATE
========================================================= */
.pmt-empty-cart-card {
    background: var(--pmt-cart-card-bg);
    border: 1px solid var(--pmt-cart-card-border);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    max-width: 680px;
    margin: 30px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.pmt-empty-cart-icon {
    color: var(--pmt-cart-gold);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(253, 213, 1, 0.08);
    border: 1px solid rgba(253, 213, 1, 0.2);
}

.pmt-empty-cart-title {
    font-family: var(--pmt-cart-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--pmt-cart-text-white);
    margin: 0 0 12px 0;
}

.pmt-empty-cart-desc {
    font-family: var(--pmt-cart-font);
    font-size: 14px;
    color: var(--pmt-cart-text-muted);
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

.pmt-btn-return-shop {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 32px;
    background: var(--pmt-cart-gold-grad) !important;
    color: #080300 !important;
    font-family: var(--pmt-cart-font) !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(253, 213, 1, 0.25) !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.pmt-btn-return-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 213, 1, 0.4) !important;
}

/* =========================================================
   11. RESPONSIVE MEDIA QUERIES (DESKTOP -> TABLET -> MOBILE)
========================================================= */

@media (max-width: 1100px) {
    .pmt-cart-container {
        padding: 0 30px;
    }

    .pmt-cart-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pmt-cart-trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .pmt-cart-page-wrapper {
        padding: 20px 0 60px;
    }

    .pmt-cart-container {
        padding: 0 16px;
    }

    .pmt-cart-trust-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Transform Table to Mobile Card matching screenshot */
    .pmt-cart-table-card {
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-width: 0 !important;
        box-shadow: none !important;
    }

    /* Remove all borders from table with class pmt-cart-table on mobile */
    .pmt-cart-table,
    table.pmt-cart-table,
    .woocommerce table.pmt-cart-table,
    .woocommerce-page table.pmt-cart-table,
    .woocommerce-cart-form table.pmt-cart-table,
    .woocommerce-cart-form .pmt-cart-table,
    .pmt-cart-table tbody,
    .pmt-cart-table thead,
    .pmt-cart-table tfoot {
        display: block;
        width: 100%;
        border: none !important;
        border-width: 0 !important;
        outline: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .pmt-cart-table thead {
        display: none !important;
    }

    .pmt-cart-table tbody tr.pmt-cart-item {
        display: grid !important;
        grid-template-columns: 85px 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 10px 14px !important;
        background: var(--pmt-cart-card-bg) !important;
        border: 1px solid var(--pmt-cart-card-border) !important;
        border-radius: 12px !important;
        padding: 18px 16px !important;
        margin-bottom: 16px !important;
        position: relative !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
        box-sizing: border-box !important;
    }

    /* Close / Remove X button at top right */
    .pmt-cart-table tbody tr.pmt-cart-item td.product-remove {
        position: absolute !important;
        top: 14px !important;
        right: 14px !important;
        width: auto !important;
        padding: 0 !important;
        border: none !important;
        z-index: 2;
    }

    /* Thumbnail on the left */
    .pmt-cart-table tbody tr.pmt-cart-item td.product-thumbnail {
        grid-column: 1 !important;
        grid-row: 1 / span 4 !important;
        padding: 0 !important;
        border: none !important;
        width: 85px !important;
    }

    .pmt-cart-thumb-wrap {
        width: 85px !important;
        height: 85px !important;
        border-radius: 10px !important;
    }

    /* Product Name */
    .pmt-cart-table tbody tr.pmt-cart-item td.product-name {
        grid-column: 2 !important;
        grid-row: 1 !important;
        padding: 0 28px 0 0 !important;
        border: none !important;
        text-align: left !important;
    }

    .pmt-cart-name-wrap .pmt-item-title {
        font-size: 15px !important;
    }

    /* Price Row (Label on left, value on right) */
    .pmt-cart-table tbody tr.pmt-cart-item td.product-price {
        grid-column: 2 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 4px 0 !important;
        border: none !important;
        text-align: right !important;
    }

    .pmt-cart-table tbody tr.pmt-cart-item td.product-price::before {
        content: attr(data-title) !important;
        font-size: 13.5px !important;
        color: var(--pmt-cart-text-muted) !important;
        font-weight: 500 !important;
    }

    /* Quantity Row (Label on left, pill on right) */
    .pmt-cart-table tbody tr.pmt-cart-item td.product-quantity {
        grid-column: 2 !important;
        grid-row: 3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 4px 0 !important;
        border: none !important;
        text-align: right !important;
    }

    .pmt-cart-table tbody tr.pmt-cart-item td.product-quantity::before {
        content: attr(data-title) !important;
        font-size: 13.5px !important;
        color: var(--pmt-cart-text-muted) !important;
        font-weight: 500 !important;
    }

    /* Subtotal Row (Label on left, gold subtotal on right) */
    .pmt-cart-table tbody tr.pmt-cart-item td.product-subtotal {
        grid-column: 2 !important;
        grid-row: 4 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 4px 0 0 !important;
        border: none !important;
        text-align: right !important;
    }

    .pmt-cart-table tbody tr.pmt-cart-item td.product-subtotal::before {
        content: attr(data-title) !important;
        font-size: 13.5px !important;
        color: var(--pmt-cart-text-muted) !important;
        font-weight: 500 !important;
    }

    .pmt-item-subtotal {
        font-size: 15px !important;
    }

    /* Mobile Coupon Box */
    .pmt-cart-bottom-bar {
        margin-top: 8px;
        padding-top: 0;
        border-top: none;
    }

    .pmt-coupon-box {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .pmt-coupon-input {
        width: 100% !important;
        height: 46px !important;
        border-radius: 30px !important;
    }

    .pmt-btn-apply-coupon {
        width: 100% !important;
        height: 46px !important;
    }

    /* Cart Totals & Payment on Mobile */
    .pmt-cart-totals-card {
        padding: 22px 18px;
    }

    .pmt-payment-methods-card {
        padding: 16px 18px;
    }
}
