.wc-block-components-sidebar-layout.wc-block-cart {
    max-width: 1300px;
    width: 100%;
    margin: 30px auto;
}

.wp-block-woocommerce-cart {
    background: #f7f8fd;
    padding: 0 20px;
}

.wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block,
.wp-block-woocommerce-cart-order-summary-block {
    background: white;
    border-radius: 20px;
    border: 1px solid lightgray;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
    border-radius: 10px;
    background: linear-gradient(135deg, #FC9B05, #EA580C);
    transition: all .3s ease;
}

a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(252, 155, 5, .5);
}

a.wc-block-components-product-name {
    text-decoration: none;
    color: black;
    font-weight: bold !important;
}

th.wc-block-cart-items__header-image span,
th.wc-block-cart-items__header-total span,
span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-product-price__value,
span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-product-price__value,
ins.wc-block-components-product-price__value.is-discounted,
.wc-block-components-product-badge.wc-block-components-sale-badge,
del.wc-block-components-product-price__regular,
span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-totals-footer-item-tax-value,
span.wc-block-components-totals-item__label {
    font-weight: bold;
}

span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-product-price__value,
ins.wc-block-components-product-price__value.is-discounted,
span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-totals-footer-item-tax-value,
span.wc-block-components-totals-item__label {
    color: #fe9900;
}

.wc-block-components-product-badge.wc-block-components-sale-badge,
del.wc-block-components-product-price__regular {
    background: #F3FBF2;
    color: #317B36;
}

.wc-block-components-totals-item.wc-block-components-totals-footer-item {
    background: #FFF8E9;
    padding: 10px 15px !important;
    border: 1px solid #fe9900;
    border-radius: 10px;
}

/* Card layout for cart page */
.custom-cart-form {
    max-width: 1200px;
    margin: 30px auto;
}

.custom-cart-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.custom-cart-card {
    display: flex;
    gap: 18px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    align-items: center;
    border: 1px solid #eef0f6;
}

.custom-cart-card__media img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
}

.custom-cart-card__content {
    flex: 1;
}

.custom-cart-card__title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.custom-cart-card__meta {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.custom-cart-card__controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.custom-cart-card__qty .quantity {
    display: flex;
    align-items: center;
}

.custom-cart-card__qty .quantity input.qty {
    width: 72px;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.custom-cart-card__qty .qty-minus,
.custom-cart-card__qty .qty-plus {
    background: #f5f5f7;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    margin: 0 6px;
}

.custom-cart-card__price {
    text-align: right;
    min-width: 140px;
}

.custom-cart-card__single-price {
    display: block;
    color: #333;
    font-weight: 700;
}

.custom-cart-card__subtotal {
    display: block;
    color: #999;
    font-size: 13px;
}

.custom-cart-card__remove-link {
    color: #999;
    font-size: 20px;
    text-decoration: none;
}

.custom-cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    align-items: flex-start;
}

.custom-cart-update .button {
    background: linear-gradient(135deg, #FC9B05, #EA580C);
    color: #fff;
    border-radius: 8px;
    padding: 10px 18px;
}

.custom-cart-totals {
    min-width: 320px;
}

@media (min-width: 900px) {
    .custom-cart-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .custom-cart-card {
        flex-direction: row;
        gap: 12px;
    }

    .custom-cart-card__media img {
        width: 72px;
        height: 72px;
    }

    .custom-cart-actions {
        flex-direction: column-reverse;
    }

    .wc-block-components-sidebar-layout.wc-block-cart {
        gap: 10px;
    }
}


/* Custom empty cart styles */
.custom-empty-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: transparent;
}

.custom-empty-cart__inner {
    text-align: center;
    max-width: 720px;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(36, 37, 38, 0.06);
    border: 1px solid #f0f0f5;
}

.custom-empty-cart__icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background-image: radial-gradient(circle at 30% 20%, #fff8e6 0%, #fff 35%), linear-gradient(135deg, #FC9B05 0%, #EA580C 100%);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.15);
    position: relative;
}

.custom-empty-cart__icon:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M7 4h14l-1.5 9h-11zM6 6H4v2h2zM6 10h12v2H6z"/></svg>') center/contain no-repeat;
}

.custom-empty-cart__title {
    font-size: 22px;
    margin: 0 0 8px;
    color: #222;
    font-weight: 700;
}

.custom-empty-cart__desc {
    color: #666;
    margin: 0 0 20px;
}

.custom-empty-cart__button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FC9B05, #EA580C);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: transform .18s ease, box-shadow .18s ease;
}

.custom-empty-cart__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, .18);
}

@media (max-width: 720px) {
    .custom-empty-cart__inner {
        padding: 26px;
    }

    .custom-empty-cart__icon {
        width: 96px;
        height: 96px;
    }
}

/* Fallback styles for WooCommerce Cart block empty states */
.wp-block-woocommerce-cart .wc-block-components-empty-cart,
.wp-block-woocommerce-cart .wc-block-cart__empty,
.wp-block-woocommerce-cart .wc-block-cart__empty-message,
.wp-block-woocommerce-cart .wc-block-components__empty {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.wp-block-woocommerce-cart .wc-block-components-empty-cart .wc-block-components-empty-cart__content,
.wp-block-woocommerce-cart .wc-block-cart__empty .wc-block-components-empty-cart__content,
.wp-block-woocommerce-cart .wc-block-cart__empty-message {
    text-align: center;
    max-width: 720px;
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 40px 30px;
    box-shadow: 0 8px 30px rgba(36, 37, 38, 0.06);
    border: 1px solid #f0f0f5;
}

.wp-block-woocommerce-cart .wc-block-cart__empty-message p,
.wp-block-woocommerce-cart .wc-block-components-empty-cart p {
    color: #666;
    margin: 0 0 20px;
}

.wp-block-woocommerce-cart .wc-block-components-empty-cart a.wp-element-button,
.wp-block-woocommerce-cart .wc-block-cart__empty a.wp-element-button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FC9B05, #EA580C);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* Custom main woocommerce Card */
.wc-block-components-sidebar-layout .wc-block-components-main {
    padding-right: unset !important;
    padding: 20px !important;
}

.wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
    padding: 20px !important;
}