/* ===== WIDGETS PRODUCTS SECTION IN CART ===== */
.cart-widgets-products-section {
    margin-top: 70px;
}

/* Links hover color for items and widgets */
.cart-widgets-products-section a:hover,
.full-cart-products a:hover,
.cart-items-list a:hover {
    color: #706F6F !important;
}

.widgets-products-title-container {
    margin-bottom: 25px;
}

.widgets-products-title {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin: 0 0 15px 0;
    font-family: "M PLUS Rounded 1c", Sans-serif;
    direction: rtl;
    text-align: center !important;
}

.widgets-products-underline {
    width: 100%;
    height: 2px;
    background: #717070;
    margin: 0;
}


@media (max-width: 767px) {
    .widgets-products-content {
        padding: 0;
    }
}

/* Override widgets products grid in cart */
.cart-widgets-products-section .widgets-products-grid {
    gap: 16px;
}

/* Equal height product items */
.cart-widgets-products-section .widgets-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

/* Full cart page - horizontal line layout like side cart */
.full-cart-widgets-section .widgets-products-grid {
    max-width: 100%;
    gap: 16px;
    align-items: stretch;
    overflow-x: visible;
    padding-bottom: 10px;
}

.full-cart-widgets-section .widgets-product-item {
    flex: 0 0 auto;
}

/* Mobile layout - no scroll, grid layout */
@media (max-width: 900px) {
    .mobile-widgets .widgets-products-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        overflow-x: visible !important;
    }
    
    .mobile-widgets .widgets-product-item {
        min-width: auto !important;
        max-width: none !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .mobile-widgets .widgets-product-price {
        margin-top: auto !important;
    }
    
    .mobile-widgets .widgets-product-button {
        margin-top: 8px !important;
    }
}

@media (max-width: 767px) {
    .cart-widgets-products-section .widgets-products-grid {
        gap: 5px;
    }
    
    .full-cart-widgets-section .widgets-products-grid {
        gap: 12px;
    }
    
    
    /* Mobile - 2 columns for better fit */
    .mobile-widgets .widgets-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    /* Very small mobile - single column */
    .mobile-widgets .widgets-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
}

/* Mobile coupon forms - column layout for both full cart and side cart */
@media (max-width: 768px) {
    .coupon-form {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .coupon-input,
    .apply-coupon-btn {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .apply-coupon-btn {
        margin-top: 0 !important;
    }
}

.cart-widgets-products-section .widgets-product-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.cart-widgets-products-section .widgets-product-price {
    margin: auto 0 8px 0 !important;
}

.cart-widgets-products-section .widgets-product-button {
    padding: 2px 20px !important;
    font-size: 14px !important;
    text-align: center !important;
    margin: 0 !important;
}

/* ===== COUPON ACCORDION ===== */
.coupon-accordion {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border: 1px solid #E2E2E2;
    border-radius: 0;
    border-bottom: 1px solid #fff;
}

.coupon-accordion-header {
    padding: 12px 0;
    background: #E2E2E2;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    color: #000;
    transition: background-color 0.3s ease;
}

.coupon-accordion-header:hover {
    background: #d8d8d8;
}

.coupon-accordion-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.coupon-accordion-body {
    display: none;
    padding: 15px;
    background: #E2E2E2;
}

.coupon-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.coupon-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    direction: rtl;
}

.apply-coupon-btn {
    padding: 8px 16px;
    background: #717070 !important;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.apply-coupon-btn:hover {
    background: #000;
    transform: scale(1.06);
}

.apply-coupon-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.coupon-messages {
    font-size: 13px;
}

.coupon-success {
    color: #28a745;
    padding: 5px;
}

.coupon-error {
    color: #dc3545;
    padding: 5px;
}

/* ===== APPLIED COUPONS ===== */
.applied-coupons {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #fff;
}

/* Override accordion border when applied coupons exist */
.coupon-accordion:not(:last-child) {
    border-bottom: 1px solid #E2E2E2;
    padding-bottom: 0;
}

.applied-coupon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    background: none;
    border: none;
    border-radius: 0;
    margin-bottom: 5px;
    font-size: 14px;
    color: #000;
    direction: rtl;
}

button.remove-coupon-btn[type=button] {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.remove-coupon-btn:hover {
    background: #00000088;
    color: #fff;
}

/* ===== CART TOTALS ===== */
.cart-totals-section {
    margin-bottom: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border: none;
    font-size: 14px;
    color: #000;
    direction: rtl;
}

.cart-total-row:last-child {
    border: none;
}

.cart-total-final {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: bold;
    border-top: 1px solid #717070;
    margin-top: 10px;
    color: #000;
    direction: rtl;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 5px;
    direction: rtl;
}

/* Cart Action Buttons */
.cart-actions a {
    background: none;
    text-align: center;
    padding: 4px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

/* First button (checkout) - with border and hover effects */
.btn-checkout {
    border: 1px solid #717070 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #000 !important;
}

.btn-checkout:hover {
    background: #717070 !important;
    color: #000 !important;
    transform: scale(1.05) !important;
}

/* Second button (view cart) - no border, no hover */
.btn-view-cart {
    border: none !important;
    background: transparent !important;
    color: #000 !important;
}

.btn-view-cart:hover {
    color: #000 !important;
    text-decoration: none !important;
}

.discount-row {
    color: #000;
    font-weight: 500;
}

/* ===== EMPTY CART STATE ===== */
.cart-empty-custom {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.empty-cart-message {
    font-size: 24px;
    font-weight: 400;
    color: #000;
    direction: rtl;
    text-align: center !important;
    line-height: 1.4;
    font-family: "M PLUS Rounded 1c", Sans-serif;
}

.btn-to-products {
    background: transparent !important;
    border: 1px solid #717070 !important;
    color: #000 !important;
    text-decoration: none !important;
    padding: 4px 20px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: block !important;
    font-size: 16px !important;
    font-family: "M PLUS Rounded 1c", Sans-serif !important;
    direction: rtl !important;
    width: max-content !important;
}

.btn-to-products:hover {
    background: #717070 !important;
    text-decoration: none !important;
    transform: scale(1.05) !important;
}

/* ===== SHIPPING METHODS ===== */
.cart-shipping-section {
    margin: 10px 0;
}

.shipping-methods {
    margin-top: 8px;
    width: 100%;
}

.shipping-method-option {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13px;
    color: #000;
    direction: rtl;
    border-bottom: 1px solid #eee;
}

.shipping-method-option:last-child {
    border-bottom: none;
}

.shipping-method-option span {
    flex: 1;
    padding-right: 8px;
    text-align: start;
    order: 2;
}

.shipping-method-input {
    margin-right: 0;
    margin-left: 8px;
    width: 16px !important;
    height: 16px !important;
    opacity: 1 !important;
    position: static !important;
    visibility: visible !important;
    display: inline-block !important;
    appearance: auto !important;
    -webkit-appearance: radio !important;
    -moz-appearance: radio !important;
    accent-color: #555 !important;
    flex-shrink: 0;
    order: 1;
}

.shipping-method-input:checked {
    background-color: #555 !important;
    border-color: #555 !important;
}

.shipping-row {
    flex-direction: column;
    align-items: flex-start;
    border: none;
    color: #000;
}