/* Cart Layout CSS */

/* Cart Header */
.ft-cart-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}
.ft-cart-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Cart Table Layout */
.ft-cart-table {
    width: 100%;
    border-collapse: collapse;
}
.ft-cart-table thead th {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.ft-cart-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Product Info Column */
.ft-product-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}
.ft-product-image {
    flex-shrink: 0;
}
.ft-product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.ft-product-details {
    flex: 1;
}
.ft-product-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.ft-product-name a {
    color: #ffffff;
    text-decoration: none;
}
.ft-product-name a:hover {
    color: #FF5722;
}
.ft-product-price {
    color: #FF5722;
    font-size: 16px;
    font-weight: 600;
}

/* Quantity Column */
.ft-quantity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ft-quantity-display {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ft-quantity-number {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}
.ft-size-info {
    color: #cccccc;
    font-size: 14px;
}
.ft-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ft-quantity-controls .quantity {
    display: flex;
    align-items: center;
    gap: 0;
}
.ft-quantity-controls .quantity input[type="number"] {
    width: 60px;
    height: 40px;
    text-align: center;
    background-color: #333333;
    border: 1px solid #555555;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 0;
    /* -moz-appearance: textfield; */
}
.ft-quantity-controls .quantity input[type="number"]::-webkit-outer-spin-button,
.ft-quantity-controls .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ft-quantity-controls .quantity .qty-btn {
    width: 40px;
    height: 40px;
    background-color: #FF5722;
    border: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    line-height: 1;
}
.ft-quantity-controls .quantity .qty-btn:hover {
    background-color: #ff7a00;
}
.ft-quantity-controls .quantity .qty-btn-minus {
    border-radius: 4px 0 0 4px;
}
.ft-quantity-controls .quantity .qty-btn-plus {
    border-radius: 0 4px 4px 0;
}
.ft-remove-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid #555555;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}
.ft-remove-item:hover {
    background-color: #dc3232;
    border-color: #dc3232;
    color: #ffffff;
}
.ft-remove-item svg {
    width: 20px;
    height: 21px;
}

/* Total Column */
.ft-cart-table .product-total {
    color: #FF5722;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
}

/* Cart Actions Wrapper */
.ft-cart-actions-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding: 20px 0;
}

/* Coupon Section */
.ft-coupon-section {
    flex: 1;
    max-width: 400px;
}
.ft-coupon-label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.ft-coupon-input-wrapper {
    display: flex;
    gap: 10px;
}
.ft-coupon-input {
    flex: 1;
    padding: 12px 15px;
    background-color: #333333;
    border: 1px solid #555555;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
}
.ft-coupon-input::placeholder {
    color: #999999;
}
.ft-coupon-input:focus {
    outline: none;
    border-color: #FF5722;
}
.ft-apply-coupon-button {
    padding: 12px 30px;
    background-color: #FF5722;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.ft-apply-coupon-button:hover {
    background-color: #ff7a00;
}

/* Checkout Button Wrapper */
.ft-checkout-button-wrapper {
    flex-shrink: 0;
}

/* Checkout Button */
.ft-checkout-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #FF5722;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.ft-checkout-button:hover {
    background-color: #ff7a00;
    color: #ffffff;
}
.wc-proceed-to-checkout {
    margin-top: 20px;
}
.wc-proceed-to-checkout .ft-checkout-button {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .ft-cart-table thead {
        display: none;
    }
    .ft-cart-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        padding: 15px;
    }
    .ft-cart-table tbody td {
        display: block;
        border: none;
        padding: 10px 0;
    }
    .ft-cart-table tbody td:before {
        content: attr(data-title) ": ";
        font-weight: bold;
        color: #ffffff;
        text-transform: uppercase;
    }
    .ft-product-info-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    .ft-quantity-wrapper {
        width: 100%;
    }
    .ft-quantity-controls {
        justify-content: space-between;
    }
    .ft-cart-actions-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .ft-coupon-section {
        max-width: 100%;
    }
    .ft-checkout-button {
        width: 100%;
        margin-top: 15px;
    }
}

