@media (max-width: 767px) {
    #primary {
        width: 90%;
        float: none;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    #primary {
        width: 60%;
        float: none;
        margin: 0 auto;
    }
}

table.cart td.product-name a,
table.cart td.product-name {
    font-size: 15px !important;
    color: #1a202c !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}

table.cart td.product-price .amount,
table.cart td.product-subtotal .amount {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #2d3748 !important;
}

table.cart thead th {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a202c !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    padding: 18px 20px !important;
}

table.cart td {
    padding: 22px 20px !important;
    font-size: 16px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid #edf2f7 !important;
}

table.cart td.product-quantity .qty {
    font-size: 16px !important;
    height: 48px !important;
    width: 68px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    background: #fff !important;
}

table.cart td.product-remove .remove {
    font-size: 22px !important;
    color: #e53e3e !important;
    text-decoration: none !important;
    font-weight: 300 !important;
    transition: color 0.2s !important;
}

table.cart td.product-remove .remove:hover {
    color: #c53030 !important;
}

table.cart .actions {
    padding: 24px 20px !important;
    background: #f7fafc !important;
    border-top: 2px solid #edf2f7 !important;
}

table.cart .actions .coupon .input-text {
    font-size: 15px !important;
    height: 46px !important;
    padding: 0 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    width: 200px !important;
}

table.cart .actions .coupon .button {
    font-size: 15px !important;
    height: 46px !important;
    padding: 0 24px !important;
    font-weight: 600 !important;
    background: #3182ce !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

table.cart .actions .button[name="update_cart"] {
    font-size: 15px !important;
    height: 46px !important;
    padding: 0 24px !important;
    font-weight: 600 !important;
    background: #2c3e50 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

table.cart .actions .button[name="update_cart"]:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.cart_totals {
    background: #f7fafc !important;
    padding: 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
}

.cart_totals h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #e2e8f0 !important;
}

.cart_totals th,
.cart_totals td {
    font-size: 16px !important;
    padding: 14px 0 !important;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
}

.wc-proceed-to-checkout .checkout-button {
    font-size: 20px !important;
    padding: 18px !important;
    font-weight: 700 !important;
    background: #2c3e50 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    transition: background 0.25s !important;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: #1a2632 !important;
}

table.cart td.product-thumbnail img {
    width: 110px !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

@media screen and (max-width: 768px) {
    table.cart thead {
        display: none !important;
    }

    table.cart tbody tr {
        display: block !important;
        margin-bottom: 24px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
    }

    table.cart td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 0 !important;
        border-bottom: 1px dashed #edf2f7 !important;
        font-size: 15px !important;
    }

    table.cart td:last-child {
        border-bottom: none !important;
    }

    table.cart td::before {
        content: attr(data-title) ": " !important;
        font-weight: 600 !important;
        color: #1a202c !important;
        flex: 0 0 45% !important;
    }

    table.cart .product-remove::before {
        display: none !important;
    }

    table.cart .product-thumbnail::before {
        display: none !important;
    }

    table.cart .product-thumbnail {
        justify-content: center !important;
        padding: 8px 0 !important;
    }

    table.cart td.product-thumbnail img {
        width: 80px !important;
    }

    table.cart td.product-name a {
        font-size: 15px !important;
        font-weight: 400 !important;
    }

    table.cart td.product-price .amount,
    table.cart td.product-subtotal .amount {
        font-size: 15px !important;
        font-weight: 400 !important;
    }

    table.cart td.product-quantity .qty {
        width: 56px !important;
        height: 40px !important;
        font-size: 15px !important;
    }

    table.cart td.product-remove .remove {
        font-size: 20px !important;
    }

    table.cart .actions {
        padding: 16px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    table.cart .actions .coupon {
        width: 100% !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    table.cart .actions .coupon .input-text {
        width: 100% !important;
        max-width: 200px !important;
        height: 42px !important;
        font-size: 14px !important;
    }

    table.cart .actions .coupon .button,
    table.cart .actions .button[name="update_cart"] {
        height: 42px !important;
        font-size: 14px !important;
        padding: 0 20px !important;
        width: auto !important;
    }

    table.cart .actions .button[name="update_cart"] {
        width: 100% !important;
        margin-top: 4px !important;
    }

    .cart_totals {
        max-width: 100% !important;
        margin-left: 0 !important;
        padding: 20px !important;
    }

    .cart_totals h2 {
        font-size: 18px !important;
    }

    .cart_totals th,
    .cart_totals td {
        font-size: 15px !important;
        padding: 12px 0 !important;
    }

    .cart_totals .order-total th,
    .cart_totals .order-total td {
        font-size: 18px !important;
    }

    .wc-proceed-to-checkout .checkout-button {
        font-size: 17px !important;
        padding: 14px !important;
    }
}

@media screen and (max-width: 480px) {
    table.cart td {
        font-size: 14px !important;
        padding: 8px 0 !important;
    }

    table.cart td::before {
        font-size: 14px !important;
        flex: 0 0 40% !important;
    }

    table.cart td.product-thumbnail img {
        width: 60px !important;
    }

    table.cart td.product-name a {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    table.cart td.product-price .amount,
    table.cart td.product-subtotal .amount {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    table.cart td.product-quantity .qty {
        width: 48px !important;
        height: 36px !important;
        font-size: 14px !important;
    }

    .cart_totals {
        padding: 16px !important;
    }

    .cart_totals h2 {
        font-size: 16px !important;
    }

    .wc-proceed-to-checkout .checkout-button {
        font-size: 16px !important;
        padding: 12px !important;
    }
}