/* ============================================
   CART PAGE RESPONSIVE STYLES
   ============================================ */

/* Base Styles - Fix Overflow Issues */
.cart-section {
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    min-height: auto;
}

.cart-section .container-fluid-lg {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.cart-section .cart-table {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
}

.cart-section .table-responsive-xl {
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    -webkit-overflow-scrolling: touch;
}

.cart-section .cart-table table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}

.cart-section .cart-table table tbody tr {
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: auto;
    max-height: none;
}

.cart-section .cart-table table tbody tr td {
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cart-section .cart-table table tbody tr td.product-detail {
    max-width: 100%;
    overflow: hidden;
}

.cart-section .cart-table table tbody tr td.product-detail .product {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-detail {
    max-width: 100%;
    overflow: hidden;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-image {
    display: block;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name {
    max-width: 100%;
    overflow: hidden;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap-mode: wrap;
    line-height: 1.4;
    max-height: 2.8em;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.text-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li .badge {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
    white-space: normal;
}

/* Tablet and below (max-width: 1199px) */
@media (max-width: 1199.98px) {
    .cart-section .cart-table {
        overflow-x: auto;
        overflow-y: visible;
        max-height: none;
        -webkit-overflow-scrolling: touch;
    }

    .cart-section .table-responsive-xl {
        overflow-y: visible;
        max-height: none;
    }

    .cart-section .cart-table table {
        min-width: 800px;
        height: auto;
    }

    .cart-section .cart-table table tbody {
        height: auto;
        overflow: visible;
    }

    .cart-section .summery-box {
        margin-top: 2rem;
    }
}

/* Mobile and Tablet (max-width: 991px) */
@media (max-width: 991.98px) {
    .cart-section {
        overflow-y: visible;
        height: auto;
    }

    .cart-section .row {
        flex-direction: column;
        height: auto;
        overflow-y: visible;
    }

    .cart-section .col-xxl-9 {
        order: 2;
        width: 100%;
        height: auto;
        overflow-y: visible;
    }

    .cart-section .col-xxl-3 {
        order: 1;
        width: 100%;
        margin-bottom: 2rem;
        height: auto;
    }

    .cart-section .summery-box {
        position: relative !important;
        top: auto !important;
        height: auto;
    }

    .cart-section .cart-table {
        overflow-y: visible;
        max-height: none;
    }

    .cart-section .table-responsive-xl {
        overflow-y: visible;
        max-height: none;
    }

    .cart-section .cart-table table {
        min-width: 700px;
        height: auto;
    }

    .cart-section .cart-table table tbody {
        height: auto;
        overflow: visible;
    }

    .cart-section .cart-table table tbody tr {
        height: auto;
        overflow: visible;
    }

    .cart-section .cart-table table tbody tr td {
        padding: 1rem 0.75rem;
        height: auto;
        overflow: visible;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product {
        flex-direction: row;
        align-items: flex-start;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image {
        width: 100px;
        min-width: 100px;
        margin-right: 1rem;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail {
        flex: 1;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767.98px) {
    .cart-section {
        padding: 1.5rem 0;
        overflow-y: visible;
        height: auto;
        min-height: auto;
    }

    .cart-section .row {
        height: auto;
        overflow-y: visible;
    }

    .cart-section .container-fluid-lg {
        padding-left: 15px;
        padding-right: 15px;
    }

    .cart-section .cart-table {
        margin-bottom: 1.5rem;
        overflow-y: visible;
        max-height: none;
    }

    .cart-section .table-responsive-xl {
        overflow-x: visible;
        overflow-y: visible;
        max-height: none;
    }

    .cart-section .cart-table table {
        min-width: 100%;
        font-size: 0.875rem;
        width: 100%;
    }

    .cart-section .cart-table table tbody tr {
        display: block;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .cart-section .cart-table table tbody tr td {
        display: block;
        width: 100% !important;
        padding: 0.75rem 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

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

    .cart-section .cart-table table tbody tr td.product-detail {
        padding-bottom: 1rem;
        border-bottom: 1px solid #e9ecef;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product {
        flex-direction: row;
        align-items: flex-start;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        height: 100px;
        margin-right: 0.75rem;
        flex-shrink: 0;
        display: block;
        overflow: hidden;
        border-radius: 8px;
        background: #f8f9fa;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail {
        flex: 1;
        min-width: 0;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.text-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li .badge {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100%;
        display: inline-block;
        margin-bottom: 0.25rem;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        max-width: 100%;
        overflow: hidden;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name {
        max-width: 100%;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name a {
        color: #333;
        text-decoration: none;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color 0.3s ease;
        word-wrap: break-word;
        text-wrap-mode: wrap;
        overflow-wrap: break-word;
        max-width: 100%;
        line-height: 1.4;
        max-height: 2.8em;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name a:hover {
        color: #BFA280;
        text-wrap-mode: wrap;
    }

    .cart-section .cart-table table tbody tr td .table-title {
        display: inline-block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #666;
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .cart-section .cart-table table tbody tr td.price,
    .cart-section .cart-table table tbody tr td.subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-section .cart-table table tbody tr td.price h5,
    .cart-section .cart-table table tbody tr td.subtotal h5 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #333;
    }

    .cart-section .cart-table table tbody tr td.quantity {
        padding: 1rem 0;
    }

    .cart-section .cart-table table tbody tr td.quantity .quantity-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-section .cart-table table tbody tr td.quantity .cart_qty {
        margin-left: auto;
    }

    .cart-section .cart-table table tbody tr td.quantity .cart_qty .input-group {
        width: auto;
    }

    .cart-section .cart-table table tbody tr td.quantity .cart_qty .input-group button {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 0.875rem;
        border: 1px solid #dee2e6;
        background: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .cart-section .cart-table table tbody tr td.quantity .cart_qty .input-group button:hover {
        background: #f8f9fa;
        border-color: #BFA280;
        color: #BFA280;
    }

    .cart-section .cart-table table tbody tr td.quantity .cart_qty .input-group input {
        width: 50px;
        height: 32px;
        text-align: center;
        font-size: 0.875rem;
        padding: 0.25rem;
        border: 1px solid #dee2e6;
    }

    .cart-section .cart-table table tbody tr td.save-remove {
        padding-top: 1rem;
    }

    .cart-section .cart-table table tbody tr td.save-remove a {
        display: inline-block;
        margin-right: 1rem;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        border-radius: 4px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .cart-section .cart-table table tbody tr td.save-remove a.save {
        color: #BFA280;
        border: 1px solid #BFA280;
        background: #fff;
    }

    .cart-section .cart-table table tbody tr td.save-remove a.save:hover {
        background: #BFA280;
        color: #fff;
    }

    .cart-section .cart-table table tbody tr td.save-remove a.remove {
        color: #dc3545;
        background: #fff;
        border: 1px solid #dc3545;
    }

    .cart-section .cart-table table tbody tr td.save-remove a.remove:hover {
        background: #dc3545;
        color: #fff;
    }

    .cart-section .summery-box {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 1.5rem;
        background: #fff;
    }

    .cart-section .summery-box .summery-header h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .cart-section .summery-box .summery-contain ul li {
        padding: 0.75rem 0;
        font-size: 0.9375rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-section .summery-box .summery-total li {
        padding: 1rem 0;
        font-size: 1.125rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-section .summery-box .button-group {
        margin-top: 1.5rem;
    }

    .cart-section .summery-box .button-group ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .cart-section .summery-box .button-group ul li {
        margin-bottom: 0.75rem;
    }

    .cart-section .summery-box .button-group ul li:last-child {
        margin-bottom: 0;
    }

    .cart-section .summery-box .button-group .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 6px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .cart-section .summery-box .button-group .proceed-btn {
        background-color: #BFA280;
        border-color: #BFA280;
        color: #fff;
        font-weight: 600;
    }

    .cart-section .summery-box .button-group .proceed-btn:hover {
        background-color: #a68d6d;
        border-color: #a68d6d;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(191, 162, 128, 0.3);
    }

    .cart-section .summery-box .button-group .shopping-button {
        background-color: #f8f9fa;
        border-color: #dee2e6;
        color: #333;
    }

    .cart-section .summery-box .button-group .shopping-button:hover {
        background-color: #e9ecef;
        border-color: #adb5bd;
    }

    .cart-section .summery-box {
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .cart-section .summery-box * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575.98px) {
    .cart-section {
        padding: 1rem 0;
    }

    .cart-section .container-fluid-lg {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cart-section .cart-table {
        margin-bottom: 1rem;
        overflow-y: visible;
        max-height: none;
    }

    .cart-section .table-responsive-xl {
        overflow-y: visible;
        max-height: none;
    }

    .cart-section .cart-table table {
        min-width: 100%;
        font-size: 0.8125rem;
        height: auto;
    }

    .cart-section .cart-table table tbody {
        height: auto;
        overflow: visible;
    }

    .cart-section .cart-table table tbody tr {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .cart-section .cart-table table tbody tr td {
        padding: 0.5rem 0;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image {
        width: 90px;
        min-width: 90px;
        max-width: 90px;
        height: 90px;
        margin-right: 0.75rem;
        display: block;
        overflow: hidden;
        border-radius: 8px;
        background: #f8f9fa;
        flex-shrink: 0;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li {
        font-size: 0.8125rem;
        margin-bottom: 0.375rem;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name {
        font-size: 0.9375rem;
        max-width: 100%;
        overflow: hidden;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        text-wrap-mode: wrap;
        max-height: 2.6em;
        line-height: 1.3;
    }

    .cart-section .cart-table table tbody tr td .table-title {
        font-size: 0.6875rem;
    }

    .cart-section .cart-table table tbody tr td.price h5,
    .cart-section .cart-table table tbody tr td.subtotal h5 {
        font-size: 0.9375rem;
    }

    .cart-section .cart-table table tbody tr td.quantity .cart_qty .input-group button {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .cart-section .cart-table table tbody tr td.quantity .cart_qty .input-group input {
        width: 45px;
        height: 28px;
        font-size: 0.8125rem;
    }

    .cart-section .cart-table table tbody tr td.save-remove a {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
        margin-right: 0.5rem;
    }

    .cart-section .summery-box {
        padding: 1.25rem;
    }

    .cart-section .summery-box .summery-header h3 {
        font-size: 1.125rem;
    }

    .cart-section .summery-box .summery-contain ul li {
        font-size: 0.875rem;
        padding: 0.625rem 0;
    }

    .cart-section .summery-box .summery-total li {
        font-size: 1rem;
        padding: 0.875rem 0;
    }

    .cart-section .summery-box .button-group .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 479.98px) {
    .cart-section .cart-table table tbody tr td.product-detail .product {
        flex-direction: row;
        align-items: flex-start;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image {
        width: 80px;
        min-width: 80px;
        max-width: 80px;
        height: 80px;
        margin-right: 0.75rem;
        margin-bottom: 0;
        display: block;
        overflow: hidden;
        border-radius: 8px;
        background: #f8f9fa;
        flex-shrink: 0;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-image a {
        display: block;
        width: 100%;
        height: 100%;
    }

    .cart-section .cart-table table tbody tr td.save-remove {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-section .cart-table table tbody tr td.save-remove a {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
}

/* Empty Cart Responsive */
@media (max-width: 767.98px) {
    .cart-section .empty-cart {
        padding: 2rem 1rem;
        text-align: center;
    }

    .cart-section .empty-cart i {
        font-size: 3rem !important;
        color: #ddd !important;
        margin-bottom: 1rem;
    }

    .cart-section .empty-cart h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .cart-section .empty-cart p {
        font-size: 0.9375rem;
        color: #666;
        margin-bottom: 1.5rem;
    }

    .cart-section .empty-cart .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .cart-section .empty-cart {
        padding: 1.5rem 0.75rem;
    }

    .cart-section .empty-cart i {
        font-size: 2.5rem !important;
    }

    .cart-section .empty-cart h3 {
        font-size: 1.125rem;
    }

    .cart-section .empty-cart p {
        font-size: 0.875rem;
    }
}

/* Table Responsive Wrapper */
@media (max-width: 767.98px) {
    .cart-section .table-responsive-xl {
        overflow-x: visible;
        overflow-y: visible;
        max-height: none;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        height: auto;
    }

    .cart-section .table-responsive-xl table {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .cart-section .table-responsive-xl table tbody {
        height: auto;
        overflow: visible;
    }

    .cart-section .table-responsive-xl table tbody tr {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        height: auto;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .cart-section .table-responsive-xl table tbody tr td {
        max-width: 100%;
        box-sizing: border-box;
        height: auto;
        overflow: visible;
    }
}

/* Desktop - Fix overflow on large screens */
@media (min-width: 768px) {
    .cart-section .cart-table {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .cart-section .cart-table table {
        width: 100%;
        max-width: 100%;
        table-layout: auto;
    }

    .cart-section .cart-table table tbody tr td.product-detail {
        max-width: 300px;
        min-width: 200px;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.name a {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        text-wrap-mode: wrap;
        display: block;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li.text-content {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .cart-section .cart-table table tbody tr td.product-detail .product .product-detail ul li .badge {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        display: inline-block;
    }
}

/* Badge Styles for Attributes */
@media (max-width: 767.98px) {
    .cart-section .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
        display: inline-block;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100%;
    }
}

/* Global Overflow Fixes */
.cart-section {
    box-sizing: border-box;
}

.cart-section * {
    box-sizing: border-box;
}

.cart-section .summery-box {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.cart-section .summery-box * {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cart-section .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.cart-section .col-xxl-9,
.cart-section .col-xxl-3 {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    overflow-x: hidden;
}

.cart-section .product-detail ul {
    padding-right: 0;
    margin-right: 0;
}

.cart-section .product-detail ul li {
    padding-right: 0;
    margin-right: 0;
}

/* Fix long product names - Desktop */
@media (min-width: 768px) {
    .cart-section .product-detail .product .product-detail ul li.name {
        max-width: 100%;
        overflow: hidden;
    }

    .cart-section .product-detail .product .product-detail ul li.name a {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.4;
        max-height: 2.8em;
    }
}

/* Fix SKU and other text content */
.cart-section .product-detail .product .product-detail ul li.text-content {
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
}

/* Fix options badges */
.cart-section .product-detail .product .product-detail ul li.text-content .badge {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: inline-block;
    margin-bottom: 0.25rem;
}

/* Ensure table cells don't overflow */
.cart-section .cart-table table tbody tr td {
    vertical-align: top;
    max-width: 100%;
}

.cart-section .cart-table table tbody tr td.price,
.cart-section .cart-table table tbody tr td.quantity,
.cart-section .cart-table table tbody tr td.subtotal,
.cart-section .cart-table table tbody tr td.save-remove {
    white-space: nowrap;
    min-width: auto;
}

@media (max-width: 767.98px) {

    .cart-section .cart-table table tbody tr td.price,
    .cart-section .cart-table table tbody tr td.quantity,
    .cart-section .cart-table table tbody tr td.subtotal,
    .cart-section .cart-table table tbody tr td.save-remove {
        white-space: normal;
    }
}