/**
 * KB Floating Cart - Frontend Styles
 */

.kbfc-floating-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.kbfc-floating-cart.active {
    transform: translateY(0);
}

.kbfc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Product Info */
.kbfc-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
}

.kbfc-product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

.kbfc-product-details {
    flex: 1;
    min-width: 0;
}

.kbfc-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #212223;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kbfc-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #E84B19;
}

/* Cart Actions */
.kbfc-cart-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Quantity Selector */
.kbfc-quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 130px;
    box-sizing: border-box;
}

.kbfc-qty-btn {
    background: #fff;
    border: none;
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    height: 40px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    flex: 0 0 35px;
    box-sizing: border-box;
}

.kbfc-qty-btn:hover {
    background: #f5f5f5;
    color: #E84B19;
}

.kbfc-quantity-input {
    width: 60px;
    min-width: 60px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 16px;
    font-weight: 600;
    color: #212223;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    padding: 0;
    flex: 0 0 60px;
    box-sizing: border-box;
}

.kbfc-quantity-input::-webkit-outer-spin-button,
.kbfc-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: none !important;
}

.kbfc-quantity-input:focus {
    outline: none;
}

/* Add to Cart Button */
.kbfc-add-to-cart-btn {
    background-color: #E84B19;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.kbfc-add-to-cart-btn:hover {
    background-color: #D14316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 75, 25, 0.3);
}

.kbfc-add-to-cart-btn:active {
    transform: translateY(0);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .kbfc-container {
        flex-direction: column;
        gap: 15px;
        padding: 12px 15px;
    }

    .kbfc-product-info {
        width: 100%;
        gap: 12px;
    }

    .kbfc-product-image {
        width: 50px;
        height: 50px;
    }

    .kbfc-product-title {
        font-size: 14px;
    }

    .kbfc-product-price {
        font-size: 16px;
    }

    .kbfc-cart-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .kbfc-add-to-cart-btn {
        flex: 1;
        padding: 10px 20px;
    }
}
