.custom-card .col-md-5 {
    width: 30%!important;
    padding-top: 25px;
}

.custom-card .col-md-7 {
    width: 70%!important;
}

.custom-card .variation {
    display: grid;
    grid-template-columns: 120px 1fr;
    row-gap: 5px;
}

.custom-card .variation dt {
    color: #000;
    font-weight: 700;
}

.custom-card .variation dd {
    color: #000;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.custom-card .variation dt, .custom-card .variation dd {
    margin-right: 0px;
}

.custom-card .cart-order-details {
    display: flex;
    flex-direction: column;
}

.custom-card .custom-coupon {
    margin: 0;
    padding: 0;
    width: 100%;

    padding-bottom: 20px;
    border-bottom: 1px solid #E4E4E4;
    margin-bottom: 20px;
}

.custom-card .coupon {
    margin-bottom: 0px;
}

.custom-card .coupon .btn {
    padding: 10px 30px;
    width: unset;
    background-color: #333333!important;
    color: #FFF!important;
}

.custom-card .coupon .btn:hover {
    background-color: #000!important;
}

.custom-card .question {
    color: #333;
    font-family: "Jost", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.custom-card .coupon .input-text {
    height: unset;
    padding-top: 10px;
    padding-bottom: 10px;
}

.custom-card .coupon .input-text::placeholder {
    color: #777!important;
}

.custom-card thead th {
    font-family: "Jost", sans-serif;
}

.custom-card .product-title {
    font-size: 20px!important;
    font-weight: 700!important;
}

.custom-card .product-price bdi, .custom-card .product-subtotal bdi {
    color: #000!important;
}

.custom-card .minus, .custom-card .plus {
    border: 1px solid #000!important;
}

.custom-card input.qty {
    border-top: 1px solid #000!important;
    border-bottom: 1px solid #000!important;
}

.custom-card .clear-cart:hover {
    background-color: #000!important;
    color: #FFF!important;
}

.custom-card .cart-collaterals {
    font-family: "Jost"!important;
    margin-bottom: 40px!important;
}

.woocommerce-cart .woocommerce-message, .woocommerce-cart .woocommerce-info {
    background-color: #000!important;
}


.custom-card .product-quantity.mobile {
    display: none!important;
}

.custom-card .order-total th , td bdi {
    font-weight: 700;
    text-transform: capitalize!important;
}

.custom-card thead * {
    color: #000!important;
}

.custom-card .mobile-price * {
    color: #000!important;
}

.custom-card tbody tr {
    position: relative!important;
}

.custom-card .wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    column-gap: 14px;
    justify-content: center;
    margin-bottom: 15px;
}

.custom-card .wc-proceed-to-checkout .return-shop {
    display: none;
}

.custom-card .wc-proceed-to-checkout {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-card .wc-proceed-to-checkout .or-use {
    color: #000;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 15px;
}

.custom-card .wc-proceed-to-checkout .ppc-button-wrapper {
    width: 100%;
}

.custom-card .woocommerce-shipping-methods {
    accent-color: #000;
}

.custom-card .woocommerce-cart-form .actions {
    display: none;
}

.custom-card .ppc-button-wrapper {
    display: flex!important;
    height: auto!important;
    justify-content: center!important;
}

.custom-card #ppc-button-ppcp-gateway {
    max-width: 600px!important;
    width: 100%!important;
}

.custom-card .custom-recently-viewed {
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    border-top: 1px solid #777;
}

.custom-card .custom-recently-viewed .uptitle {
    display: inline-block;
    color:#FFF;
    text-align: center;
    font-family: "Jost", sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 17px; /* 141.667% */
    text-transform: uppercase;
    padding: 5px 32.5px;
    margin-bottom: 15px;
    background-color: #777;
}

.custom-card .custom-recently-viewed .title {
    color:#333;
    text-align: center;
    font-family: "Jost", sans-serif;
    font-size: 36px;
    font-style: normal;
    font-weight: 700;
    line-height: 25px; /* 69.444% */
    margin-bottom: 35px;
}

.custom-card .custom-recently-viewed .recently-viewed__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 14px;
    row-gap: 35px;
    margin-bottom: 0px;
    padding: 0;
}

.custom-card .custom-recently-viewed .woocommerce-LoopProduct-link {
    display: block;
    width: 100%;
    max-height: 334.5px;
    margin-bottom: 12px;
}

.custom-card .custom-recently-viewed .woocommerce-LoopProduct-link img {
    display: block;
    width: 100%;
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.custom-card .custom-recently-viewed .woocommerce-loop-product__title {
    color: #333;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 12px;
}

.custom-card .custom-recently-viewed .colors {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    column-gap: 10px;
}

.custom-card .custom-recently-viewed .colors__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.custom-card .custom-recently-viewed .colors__list .colors__item {
    margin: 0;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
}

.custom-card .custom-recently-viewed .colors__list .colors__item.selected img {
    border: 1px solid #000;
    padding: 5px;
}

.custom-card .custom-recently-viewed .colors__list .colors__item img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.custom-card .custom-recently-viewed .colors .all-colors {
    white-space: nowrap;
    color: #333;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.custom-card .custom-recently-viewed .colors__item.hidden {
    display: none;
}

.custom-card .custom-recently-viewed .product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.custom-card .custom-recently-viewed .average-rating {
    font-size: 14px;
    font-weight: bold;
}

.custom-card .custom-recently-viewed .review-count {
    font-size: 14px;
    color: #555;
}

.custom-card .custom-recently-viewed .star-rating {
    margin: 0;
}
.custom-card .custom-recently-viewed .average-rating {
    color:#333;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.custom-card .custom-recently-viewed .review-count {
    color: #333;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.custom-card .custom-recently-viewed .price {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    column-gap: 22px;
}

.custom-card .custom-recently-viewed .price ins {
    padding: 0;
}

.custom-card .custom-recently-viewed .price ins bdi {
    color: #C72A2A;
    font-family: "Jost", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.custom-card .custom-recently-viewed .price del {
    text-decoration: none;
    position: relative;
}

.custom-card .custom-recently-viewed .price del::before {
    content:"";
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    top: 50%;
    transform: translateY(-50%);
}

.custom-card .custom-recently-viewed .price del bdi {
    color: #777;
    font-family: "Jost", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.custom-card .custom-recently-viewed .price bdi {
    color: #333;
    font-family: "Jost", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.custom-card .custom-recently-viewed .button {
    display: none;
}

@media(max-width:1200px){
    .custom-card .col-md-5 {
        width: 100%!important;
        padding-top: 0px!important;
    }
    
    .custom-card .col-md-7 {
        width: 100%!important;
    }

    .woocommerce-cart .container {
        width: 100%!important;
    }

    .custom-card .actions.clearfix {
        margin-bottom: 20px;
    }

    .custom-card .cart-collaterals {
        margin-bottom: 0px!important;
    }
    .custom-card .custom-recently-viewed .recently-viewed__list {
        grid-template-columns: repeat(2,1fr);
        width: 100%;
    }

    .custom-card .custom-recently-viewed .recently-viewed__item .woocommerce-LoopProduct-link {
        max-height: unset;
    }
}

@media(max-width:768px){
    .custom-card .product-quantity {
        padding: 0px!important;
        position: absolute;
        bottom: 5px;
        right: 30px;
        z-index: 1;
    }

    .custom-card th.product-quantity {
        display: none!important;
    }

    .custom-card .product-quantity.mobile {
        display: block!important;
    }

    .custom-card .price-qty {
        display: flex;
        align-items: flex-end;
        column-gap: 50px;
    }

    .custom-card .product-quantity.mobile .quantity {
        float: left!important;
    }

    .custom-card .product-name {
        width: 200px!important;
    }

    .custom-card .product-name a {
        display: flex!important;
        width: 100%!important;
    }

    .custom-card .product-name a img {
        display: block;
        width: 100%!important;
        max-width: 100%!important;
    }

    .custom-card .variation {
        grid-template-columns: repeat(2,1fr);
    }

    .custom-card .product-details {
        padding-left: 30px!important;
        max-width: 100%!important;
    }

    .custom-card .variation dt, .custom-card .variation dd {
        font-size: 13px!important;
    }
    .custom-card .product-title {
        font-size: 16px!important;
    }

    .custom-card .custom-recently-viewed .woocommerce-loop-product__title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    .custom-card .custom-recently-viewed .price ins bdi {
        font-size: 18px;
    }
    .custom-card .custom-recently-viewed .price del bdi {
        font-size: 18px;
    }
    .custom-card .custom-recently-viewed .price bdi {
        font-size: 18px;
    }
    .custom-card .custom-recently-viewed .product-rating {
        margin-bottom: 15px;
    }
    .custom-card .custom-recently-viewed .colors__list .colors__item {
        width: 30px;
        height: 30px;
    }

    .custom-card .custom-recently-viewed {
        padding-top: 40px;
    }

    .custom-card .custom-recently-viewed .title {
        font-size: 26px;
        margin-bottom: 20px;
    }
}

@media(max-width:575px){
    .custom-card .product-name {
        width: 100px!important;
    }
    .custom-card .product-details {
        padding-left: 5px!important;
    }
    .custom-card .product-title {
        font-size: 14px!important;
    }
    .custom-card .custom-recently-viewed .recently-viewed__list {
        grid-template-columns: 1fr;
        row-gap: 20px;
    }
}

@media(max-width:480px){
    .custom-card input.qty {
        border-left: 1px solid #000!important;
    }
    .custom-card .plus {
        border-bottom: unset!important;
    }
}
/* ==================================================================
   Cart cleanup: tidy line-item options, softer totals card
================================================================== */
.woocommerce-cart .woocommerce-cart-form__contents th {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b6b6b;
    padding-bottom: 14px;
}
.woocommerce-cart .woocommerce-cart-form__cart-item td { vertical-align: top; padding-top: 24px; padding-bottom: 24px; border-bottom: 1px solid #e6e6e6; }
.woocommerce-cart .product-thumbnail img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.woocommerce-cart .cart-item-details .product-title {
    display: block;
    font-family: "Jost", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.25;
}
.woocommerce-cart .cart-item-details dl.variation {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 14px;
    row-gap: 4px;
    margin: 0 0 12px;
    max-width: 520px;
    font-family: "DM Sans", sans-serif;
    font-size: 13.5px;
    line-height: 1.4;
}
.woocommerce-cart .cart-item-details dl.variation dt,
.woocommerce-cart .cart-item-details dl.variation dd { margin: 0; padding: 0; float: none; }
.woocommerce-cart .cart-item-details dl.variation dt { font-weight: 600; color: #6b6b6b; white-space: nowrap; }
.woocommerce-cart .cart-item-details dl.variation dd { color: #222; }
.woocommerce-cart .cart-item-details dl.variation dd p { margin: 0; display: inline; }
.woocommerce-cart .cart-item-details .remove-item {
    display: inline-block;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    color: #8a8a8a;
    text-decoration: underline;
}
.woocommerce-cart .cart-item-details .remove-item:hover { color: #c72a2a; }
.woocommerce-cart .cart-item-details .price-qty .mobile-price { font-size: 13px; color: #6b6b6b; }

.woocommerce-cart td.product-price,
.woocommerce-cart td.product-subtotal { font-family: "DM Sans", sans-serif; font-weight: 700; color: #111; white-space: nowrap; }
.woocommerce-cart .product-quantity .quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    overflow: hidden;
}
.woocommerce-cart .product-quantity .quantity .minus,
.woocommerce-cart .product-quantity .quantity .plus { width: 34px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: #555; cursor: pointer; border: 0; }
.woocommerce-cart .product-quantity .quantity input.qty { width: 44px; height: 40px; border: 0; border-left: 1px solid #e6e6e6; border-right: 1px solid #e6e6e6; text-align: center; font-weight: 600; box-shadow: none; }

.woocommerce-cart .cart_totals {
    border: 1px solid #e6e6e6 !important;
    border-radius: 14px;
    background: #f8f8f8;
    padding: 28px 28px 30px !important;
}
.woocommerce-cart .cart_totals h2,
.woocommerce-cart .cart_totals .cart-totals-title {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin-bottom: 14px;
}
.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td { font-family: "DM Sans", sans-serif; font-size: 15px; color: #333; padding: 9px 0; border: 0; }
.woocommerce-cart .cart_totals td { text-align: right; }
.woocommerce-cart .cart_totals .woocommerce-shipping-methods label { font-weight: 600; color: #111; }
.woocommerce-cart .cart_totals .woocommerce-shipping-destination { font-size: 13px; color: #6b6b6b; margin: 4px 0 0; }
.woocommerce-cart .cart_totals .shipping-calculator-button { font-size: 13px; color: #2a74ed; }
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td { padding-top: 16px; border-top: 1px solid #e6e6e6; font-family: "Jost", sans-serif; font-weight: 700; color: #111; }
.woocommerce-cart .cart_totals .order-total td bdi { font-size: 24px; }
.woocommerce-cart .cart_totals .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout .button {
    display: block;
    width: 100%;
    padding: 18px 24px;
    border-radius: 10px;
    background: #111 !important;
    color: #fff !important;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    transition: background .15s ease;
}
.woocommerce-cart .cart_totals .checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout .button:hover { background: #2a74ed !important; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout { padding-top: 20px; }
.woocommerce-cart #ppc-button-ppcp-gateway { margin-top: 10px; }

/* --- Cart polish pass 2: drop the heavy black box, fix qty borders, no table overflow --- */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart-order-details,
.woocommerce-cart .custom-card .col-md-5 > div,
.woocommerce-cart .cart-collaterals > div:not(.cart_totals) {
    border: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.woocommerce-cart .cart_totals { border: 1px solid #e6e6e6 !important; }

/* Quantity: one outer border only */
.woocommerce-cart .custom-card .product-quantity .quantity .minus,
.woocommerce-cart .custom-card .product-quantity .quantity .plus,
.woocommerce-cart .custom-card .product-quantity .quantity input.qty {
    border: 0 !important;
    background: #fff;
}
.woocommerce-cart .custom-card .product-quantity .quantity input.qty { border-left: 1px solid #e6e6e6 !important; border-right: 1px solid #e6e6e6 !important; }
.woocommerce-cart .custom-card .product-quantity .quantity .minus:hover,
.woocommerce-cart .custom-card .product-quantity .quantity .plus:hover { background: #f4f4f4; }

/* Options list: bounded label column so long labels wrap instead of pushing values off-screen */
.woocommerce-cart .custom-card .cart-item-details dl.variation { grid-template-columns: minmax(100px, 150px) minmax(0, 1fr); }
.woocommerce-cart .custom-card .cart-item-details dl.variation dt { white-space: normal; overflow-wrap: anywhere; align-self: start; }
.woocommerce-cart .custom-card .cart-item-details dl.variation dd { min-width: 0; overflow-wrap: anywhere; display: block; }

/* Table: single separators, no stray bottom rules, no horizontal scroll */
.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .woocommerce-cart-form__contents { overflow: visible !important; border: 0 !important; table-layout: auto; }
.woocommerce-cart .woocommerce-cart-form__contents th { border-bottom: 1px solid #e6e6e6; }
.woocommerce-cart .woocommerce-cart-form__contents tr:last-child td { border-bottom: 0; }
.woocommerce-cart .woocommerce-cart-form .actions { border: 0 !important; padding: 12px 0 0 !important; }
.woocommerce-cart .custom-card .col-md-7 { padding-right: 24px; }
.woocommerce-cart .custom-recently-viewed { border-top: 1px solid #e6e6e6 !important; }

/* Buttons under the totals */
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .checkout-button { margin-bottom: 12px; }
.woocommerce-cart .cart_totals .wc-proceed-to-checkout .or-use { font-size: 13px; color: #6b6b6b; margin: 2px 0 10px; }
.woocommerce-cart .cart_totals .ppc-button-wrapper { width: 100%; }
.woocommerce-cart .cart_totals .return-shop,
.woocommerce-cart .cart_totals a.button:not(.checkout-button),
.woocommerce-cart .cart_totals .continue-shopping,
.woocommerce-cart .cart-collaterals .clear-cart {
    display: block !important;
    width: 100%;
    margin-top: 12px;
    padding: 15px 24px;
    border: 1px solid #cfcfcf !important;
    border-radius: 10px;
    background: #fff !important;
    color: #111 !important;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    transition: border-color .15s ease, color .15s ease;
}
.woocommerce-cart .cart_totals .return-shop:hover,
.woocommerce-cart .cart_totals a.button:not(.checkout-button):hover,
.woocommerce-cart .cart-collaterals .clear-cart:hover { border-color: #111 !important; background: #fff !important; color: #111 !important; }

/* --- Selected options: full-width grid row under each product --- */
.woocommerce-cart .woocommerce-cart-form__cart-item td { border-bottom: 0; padding-bottom: 12px; }
.woocommerce-cart .woocommerce-cart-form__cart-item:last-child td { border-bottom: 1px solid #e6e6e6; padding-bottom: 24px; }
.woocommerce-cart .woocommerce-cart-form__cart-item + .cart-item-options td { border-bottom: 1px solid #e6e6e6; }
.woocommerce-cart .cart-item-options td {
    padding: 0 0 24px !important;
    border-top: 0;
}
.woocommerce-cart .cart-item-options__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px 16px;
    padding: 16px 18px;
    border: 1px solid #ececec;
    border-radius: 10px;
    background: #fafafa;
}
.woocommerce-cart .cart-option { min-width: 0; font-family: "DM Sans", sans-serif; line-height: 1.35; }
.woocommerce-cart .cart-option__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 2px;
    overflow-wrap: anywhere;
}
.woocommerce-cart .cart-option__value { display: block; font-size: 14px; color: #111; font-weight: 500; overflow-wrap: anywhere; }
.woocommerce-cart .cart-option__value p { margin: 0; display: inline; }
.woocommerce-cart .cart-item-details dl.variation { display: none; }
@media (max-width: 767px) {
    .woocommerce-cart .cart-item-options__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; }
    .woocommerce-cart .cart-item-options td { display: block; }
}
