/* Cart Slide Over Components */
.cart-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1099;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-backdrop.show {
    display: block;
    opacity: 1;
}

.cart-slide-over {
    position: fixed;
    top: 0; right: -400px; bottom: 0;
    width: 400px;
    max-width: 100vw;
    background: white;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
}

.cart-slide-over.open {
    right: 0;
}

.cart-slide-content {
    flex: 1;
    overflow-y: auto;
}

.cart-slide-footer {
    flex-shrink: 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-remove {
    color: #dc3545;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 4px;
    padding: 0 4px;
}

.cart-item-remove:hover, .cart-item-remove:focus {
    background-color: #ffe6e6;
    outline: none;
}

/* Autocomplete Components */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    border-radius: 12px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.98);
}

.autocomplete-item:hover {
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.autocomplete-item:last-child {
    border-bottom: 0 !important;
}

/* Mobile Nav Padding Control */
@media (max-width: 991.98px) {
    .main-content-padding { padding-bottom: 80px; }
    header .navbar { padding-top: 0.5rem; padding-bottom: 0.5rem; }
}

.fixed-top + .main-content-padding {
    padding-top: 100px;
}

.mobile-bottom-nav .nav-link:active {
    transform: scale(0.9);
    transition: transform 0.1s;
}

/* Base keyframes for animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
