.clabiana-cart-widget-container {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-cart-widget-container.loading {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.clabiana-cart-items-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.clabiana-cart-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 19px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow:
    0px 1.19px 2.38px -1.19px #0000001A,
    0px 1.19px 3.57px 0px #0000001A;
    position: relative;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.clabiana-cart-item:hover {
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.03);
    border-color: #e2e5ea;
}

/* Right Column: Image */
.clabiana-cart-img-container {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    background-color: #f3f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.clabiana-cart-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

/* Center Column: Info */
.clabiana-cart-info {
    flex: 1;
    margin-right: 20px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clabiana-cart-title {
    font-size: 21px;
    font-weight: 700;
    color: #1A1A1A; 
    margin: 0;
    line-height: 1.5;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-cart-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.clabiana-cart-active-price {
    font-size: 24px;    
    font-weight: 700;
    color: #101828;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-cart-old-price {
    font-size: 16px;
    color: #99A1AF;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
}
.clabiana-cart-actions-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 130px;
    min-width: 110px;
    margin-right: auto;
    box-sizing: border-box;
    /* padding: 4px 0; */
}
.clabiana-cart-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Delete Button */
.clabiana-cart-remove-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background-color: #e52e2e !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0px 4px 8px rgba(229, 46, 46, 0.15) !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
}

.clabiana-cart-remove-btn:hover {
    background-color: #d12323 !important;
}

.clabiana-cart-remove-btn:active {
    transform: scale(0.92) !important;
}

.clabiana-cart-remove-btn svg {
    display: block !important;
    width: 14px !important;
    height: 18px !important;
    min-width: 14px !important;
    min-height: 18px !important;
    fill: #ffffff !important;
    stroke: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.clabiana-cart-qty-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid #060658;
    border-radius: 18px;
    padding: 2px 10px;
    width: 134px;
    height: 45px;
    box-sizing: border-box;
    background: transparent;
    transition: border-color 0.2s ease;
}

.clabiana-cart-qty-btn {
    background: none !important;
    border: none !important;
    color: #1b1e55 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    transition: opacity 0.2s ease, transform 0.1s ease !important;
    user-select: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.clabiana-cart-qty-btn:hover {
    opacity: 0.6;
}

.clabiana-cart-qty-btn:active {
    transform: scale(0.85);
}

.clabiana-cart-qty-input {
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    color: #1b1e55 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    width: 32px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
    font-family: 'Tajawal', sans-serif !important;
    box-shadow: none !important;
    appearance: textfield !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

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

/* Summary Card */
.clabiana-cart-summary-wrapper {
    width: 100%;
}

.clabiana-cart-summary-card {
    background: #ffffff;
    border: 1px solid #F3F4F6;
    border-radius: 14px;
    padding: 24px;
    box-shadow:
    0px 1px 2px -1px #0000001A,
    0px 1px 3px 0px #0000001A;
    position: sticky;
    top: 100px;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.3s ease;
}

.clabiana-cart-summary-card:hover {
    border-color: #e2e5ea;
}

.clabiana-summary-title {
    font-size: 22px;
    font-weight: 700;
    color: #060658;
    margin-top: 0;
    margin-bottom: 24px;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
    color: #4e5168;
}

.clabiana-summary-label {
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
        font-size: 18px;
    color: #101828;
}

.clabiana-summary-val {
    font-weight: 700;
    color: #1b1e55;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-summary-row.discount {
    margin-bottom: 14px;
}

.clabiana-summary-row.discount .clabiana-summary-val {
    color: #10b981 !important;
}

.clabiana-summary-divider {
    border-top: 1px solid #eaecef;
    margin: 18px 0;
}

.clabiana-summary-row.total {
    margin-top: 18px;
    margin-bottom: 24px;
    color: #101828;
}

.clabiana-summary-total-label {
    font-size: 22px;
    font-weight: 700;
    color: #101828;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-summary-row.total .clabiana-summary-val {
    font-size: 24px;
    font-weight: 800;
    color: #101828;
}

/* Checkout Button */
.clabiana-summary-checkout-btn-container {
    width: 100%;
}

.clabiana-summary-checkout-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #060658 0%, #383879 100%);
    color: #ffffff;
    text-align: center;
    padding: 14px 20px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    box-shadow: 0px 10px 15px -3px #0000001A;

}

.clabiana-summary-checkout-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #0b0b7a 0%, #4a4aa0 100%);
    box-shadow: 0 15px 30px rgba(6, 6, 88, .25);
    color: #fff;
}

.clabiana-summary-checkout-btn:active {
    transform: translateY(0);
}

/* Security Text */
.clabiana-summary-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    color: #8a8d9f;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-summary-security svg {
    color: #8a8d9f;
    flex-shrink: 0;
}

/* Empty State */
.clabiana-cart-empty-state {
    text-align: center;
    padding: 60px 30px;
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.01);
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.clabiana-cart-empty-icon {
    margin-bottom: 20px;
    background-color: #f7f9fc;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clabiana-cart-empty-state h3 {
    font-size: 22px;
    color: #1b1e55;
    margin: 0 0 10px;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-cart-empty-state p {
    color: #8a8d9f;
    font-size: 15px;
    margin: 0 0 30px;
    max-width: 440px;
    line-height: 1.6;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-cart-return-btn {
    background-color: #1b1e55;
    color: #ffffff;
    padding: 12px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-family: 'Tajawal', sans-serif;
}

.clabiana-cart-return-btn:hover {
    background-color: #13153d;
    box-shadow: 0px 6px 16px rgba(27, 30, 85, 0.15);
}

.clabiana-cart-return-btn:active {
    transform: scale(0.98);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .clabiana-cart-widget-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .clabiana-cart-summary-card {
        position: static;
    }
}

@media (max-width: 575px) {
    .clabiana-cart-item {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 16px;
    }
    
    .clabiana-cart-img-container {
        width: 100%;
        height: 140px;
        border-radius: 12px;
    }
    
    .clabiana-cart-info {
        margin-right: 0;
        align-items: center;
        text-align: center;
    }
    
    .clabiana-cart-actions-column {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 0;
        margin-right: 0;
    }
}
