/**
 * Cart Page Styles
 * Extracted from templates/subas/partials/cart_partial.html
 */

/* Horizontal Progress Bar */
.checkout-progress-bar {
    background: #f8f9fa;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}
.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}
.progress-step {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 40px;
}
.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: #ddd;
}
.progress-step.active:not(:last-child)::after {
    background: var(--theme-color);
}
.progress-step a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.progress-step .step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: #999;
    margin-right: 12px;
    background: #fff;
    transition: all 0.3s;
}
.progress-step .step-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    transition: all 0.3s;
}
.progress-step.active .step-number {
    border-color: var(--theme-color);
    color: var(--theme-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-color) 10%, transparent);
}
.progress-step.active .step-title {
    color: var(--theme-color);
}
.progress-step.completed .step-number {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}
.progress-step.completed .step-title {
    color: #333;
}
.progress-step a:hover .step-number {
    border-color: var(--theme-color);
    color: var(--theme-color);
}
.progress-step a:hover .step-title {
    color: var(--theme-color);
}
/* Keep text white on hover for completed steps (which have filled background) */
.progress-step.completed a:hover .step-number {
    color: #fff;
}
.progress-step.completed a:hover .step-title {
    color: #333;
}
@media (max-width: 768px) {
    .progress-step {
        padding: 0 15px;
    }
    .progress-step .step-title {
        display: none;
    }
    .progress-step .step-number {
        margin-right: 0;
    }
    .progress-step:not(:last-child)::after {
        width: 20px;
        right: -10px;
    }
}

/* Cart Table Styling */
.table-content table {
    width: 100%;
    border-collapse: collapse;
}
.table-content table thead th {
    background: #f5f5f5;
    padding: 15px 10px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    color: #333;
    border-bottom: 2px solid #ddd;
}
.table-content table tbody tr {
    border-bottom: 1px solid #eee;
}
.table-content table tbody td {
    padding: 20px 10px;
    vertical-align: middle;
}
/* Product Thumbnail Column */
.table-content .product-thumbnail {
    display: flex;
    align-items: flex-start;
    text-align: left;
    min-width: 300px;
}
.table-content .pro-thumbnail-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.table-content .pro-thumbnail-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.table-content .pro-thumbnail-info {
    flex: 1;
    min-width: 0;
}
.table-content .pro-thumbnail-info .product-title-2 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}
.table-content .pro-thumbnail-info .product-title-2 a {
    color: #333;
    text-decoration: none;
}
.table-content .pro-thumbnail-info .product-title-2 a:hover {
    color: var(--theme-color);
}
.table-content .pro-thumbnail-info p {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #666;
}
/* Price and Total columns */
.table-content .product-price,
.table-content .product-subtotal {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}
/* Quantity column */
.table-content .product-quantity {
    min-width: 120px;
}
.cart-plus-minus {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.cart-plus-minus .qtybutton {
    width: 30px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: background 0.2s;
}
.cart-plus-minus .qtybutton:hover {
    background: #e0e0e0;
}
.cart-plus-minus .cart-plus-minus-box {
    width: 50px;
    height: 36px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}
/* Remove button */
.table-content .product-remove {
    text-align: center;
}
.btn-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    transition: color 0.2s;
}
.btn-remove:hover {
    color: #a71d2a;
}
/* Cart comment input */
.cart-item-comment {
    margin-top: 8px;
}
.cart-item-comment .input-group {
    max-width: 250px;
}
.cart-item-comment .form-control {
    font-size: 12px;
    padding: 6px 10px;
    height: 32px;
}
.cart-item-comment .btn {
    padding: 6px 10px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-comment .btn i {
    font-size: 14px;
}
/* Summary Section */
.payment-details table {
    width: 100%;
}
.payment-details table td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.payment-details table .td-title-1 {
    color: #666;
    font-size: 14px;
}
.payment-details table .td-title-2 {
    text-align: right;
    font-weight: 500;
    font-size: 14px;
}
.payment-details table .order-total,
.payment-details table .order-total-price {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    border-bottom: none;
    padding-top: 15px;
}
.payment-details table .order-total-price {
    text-align: right;
}
/* Widget Title */
.widget-title.border-left {
    position: relative;
    padding-left: 15px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}
.widget-title.border-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--theme-color);
}
/* Submit buttons */
.submit-btn-1 {
    display: inline-block;
    padding: 12px 25px;
    background: var(--theme-color);
    color: #fff;
    border: 1px solid var(--theme-color);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.submit-btn-1:hover {
    background: #333;
    border-color: #333;
    color: #fff;
}
.submit-btn-1.black-bg {
    background: #333;
    border-color: #333;
}
.submit-btn-1.black-bg:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
}
/* Checkout button - full width with centered content */
.checkout-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 25px;
    background: var(--theme-color);
    color: #fff;
    border: 1px solid var(--theme-color);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.checkout-btn-full:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    text-decoration: none;
}
.checkout-btn-full:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}
/* Clear cart button - white with black outline and red text */
.btn-outline-cart {
    display: inline-block;
    padding: 12px 25px;
    background: #fff;
    color: #dc3545;
    border: 1px solid #333;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-outline-cart:hover {
    background: #f8f9fa;
    border-color: #dc3545;
    color: #dc3545;
}
.btn-outline-cart i {
    color: #dc3545;
}
/* Empty Cart State */
.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    min-height: 200px;
}
.empty-cart-message {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}
.empty-cart-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}
/* Override theme defaults for empty cart buttons */
.empty-cart-container .submit-btn-1 {
    display: inline-block;
    padding: 12px 30px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    height: auto;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    border-radius: 0;
}
.empty-cart-container .submit-btn-1:hover {
    background: #333;
    color: #fff;
}
.empty-cart-container .submit-btn-1.black-bg {
    background: #333;
}
.empty-cart-container .submit-btn-1.black-bg:hover {
    background: var(--theme-color);
}
