/* Floating Trigger */
#tbt-cart-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#tbt-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: red;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cart Drawer */
#tbt-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.tbt-cart-closed {
    transform: translateX(100%);
}

.tbt-cart-open {
    transform: translateX(0);
}

/* Overlay */
#tbt-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

#tbt-cart-overlay.active {
    display: block;
}

/* Cart Content */
.tbt-cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tbt-cart-header h3 {
    margin: 0;
}

#tbt-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tbt-cart-item {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.tbt-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

.tbt-item-details h4 {
    margin: 0 0 5px;
    font-size: 14px;
}

.tbt-cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

#tbt-checkout-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
}

/* Upsell Box */
#tbt-cart-upsell {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.tbt-upsell-box {
    padding: 15px 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.tbt-upsell-box:last-child {
    border-bottom: none;
}

.tbt-upsell-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.tbt-upsell-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tbt-upsell-inner img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.tbt-upsell-info {
    flex: 1;
}

.tbt-upsell-info span {
    display: block;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 3px;
}

.tbt-upsell-info small {
    color: #666;
    font-size: 12px;
}

.tbt-upsell-add-btn {
    background: #DF7036;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tbt-upsell-add-btn:hover {
    background: #c55a26;
    transform: translateY(-1px);
}

.tbt-upsell-add-btn:active {
    transform: translateY(0);
}

/* ============================================
   PRODUCT FORM & QUANTITY SELECTOR STYLING
   ============================================ */

/* Product Form Container */
.shopify-product-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

/* Quantity Selector Wrapper */
.shopify-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shopify-quantity-wrapper label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin: 0;
}

/* Quantity Input Field */
.shopify-quantity,
input[name="quantity"],
[data-quantity-input] {
    width: 80px;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    -moz-appearance: textfield;
    /* Firefox */
}

.shopify-quantity::-webkit-inner-spin-button,
.shopify-quantity::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
}

.shopify-quantity:focus,
input[name="quantity"]:focus,
[data-quantity-input]:focus {
    outline: none;
    border-color: #DF7036;
    box-shadow: 0 0 0 3px rgba(223, 112, 54, 0.1);
}

.shopify-quantity:hover,
input[name="quantity"]:hover,
[data-quantity-input]:hover {
    border-color: #DF7036;
}

/* Add to Cart Button */
.shopify-add-btn {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #DF7036 0%, #c55a26 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(223, 112, 54, 0.25);
    position: relative;
    overflow: hidden;
}

.shopify-add-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.shopify-add-btn:hover::before {
    width: 300px;
    height: 300px;
}

.shopify-add-btn:hover {
    background: linear-gradient(135deg, #c55a26 0%, #DF7036 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(223, 112, 54, 0.4);
}

.shopify-add-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(223, 112, 54, 0.3);
}

.shopify-add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Alternate styling for compact buttons */
.shopify-add-btn.compact {
    padding: 12px 24px;
    font-size: 14px;
}

/* Price Display Enhancement */
.shopify-price {
    font-size: 24px;
    font-weight: 700;
    color: #DF7036;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shopify-product-form {
        max-width: 100%;
    }

    .shopify-quantity-wrapper {
        justify-content: space-between;
    }

    .shopify-add-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}