/* ============================================================
   Premium Sticky Add to Cart Bar
   ============================================================ */

.sticky-atc-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #ffffff;
    border-top: 1px solid #e8eef4;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.10);
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

.sticky-atc-bar.is-visible {
    transform: translateY(0);
}

/* ---- Inner Layout ---- */
.sticky-atc-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ---- Product Block ---- */
.sticky-atc-product {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.sticky-atc-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #f0f4f8;
    flex-shrink: 0;
    background: #f8fafc;
}

.sticky-atc-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sticky-atc-details {
    min-width: 0;
}

.sticky-atc-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.sticky-atc-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sticky-atc-price {
    font-size: 16px;
    font-weight: 700;
    color: #02447e;
}

.sticky-atc-mrp {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.sticky-atc-badge {
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border-radius: 20px;
    padding: 2px 8px;
    white-space: nowrap;
}

/* ---- Actions Block ---- */
.sticky-atc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Stock Badge */
.sticky-stock-badge {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.sticky-stock-badge.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.sticky-stock-badge.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

.sticky-stock-badge.preorder {
    background: #fff3e0;
    color: #e65100;
}

/* Add to Cart Button */
.sticky-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    background: #02447e;
    color: #ffffff;
    border: 2px solid #02447e;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sticky-btn-cart:hover {
    background: #013565;
    border-color: #013565;
    color: #fff;
}

/* ============================================================
   Mobile Responsive
   ============================================================ */
@media (max-width: 767px) {
    .sticky-atc-bar {
        padding: 10px 0 12px;
    }

    .sticky-atc-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sticky-atc-product {
        gap: 10px;
    }

    .sticky-atc-img {
        width: 44px;
        height: 44px;
    }

    .sticky-atc-name {
        font-size: 12px;
        max-width: 100%;
    }

    .sticky-atc-price {
        font-size: 14px;
    }

    .sticky-atc-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .sticky-stock-badge {
        display: none; /* Hide badge on mobile to save space */
    }

    .sticky-btn-cart,
    .sticky-btn-buy {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sticky-atc-name {
        font-size: 11px;
    }

    .sticky-btn-cart .btn-label,
    .sticky-btn-buy .btn-label {
        display: none; /* Icon-only on very small screens */
    }

    .sticky-btn-cart,
    .sticky-btn-buy {
        flex: unset;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        font-size: 18px;
    }
}
