body { background: #f8f9fa; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

.navbar-brand { font-size: 1.4rem; letter-spacing: -0.5px; }
.navbar .input-group { max-width: 300px; }
.cart-badge { font-size: 0.6rem; vertical-align: super; margin-left: -5px; }

.hero-section { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); }
.hero-section .btn-light:hover { background: #f0f0f0; }

.category-card { transition: all 0.2s; cursor: pointer; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.product-card { transition: all 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important; }
.product-card .card-img-top { display: flex; align-items: center; justify-content: center; height: 160px; overflow: hidden; }

.breadcrumb { background: none; padding: 0; }

#exitIntentPopup { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 1056; }
#exitIntentPopup.show { display: flex; }
#exitIntentPopup .popup-content { max-width: 450px; width: 90%; }

footer { font-size: 0.9rem; }
footer a { color: #c9d2dc !important; text-decoration: none; }
footer a:hover { color: #fff !important; text-decoration: underline; }
footer .text-white-50 { color: #c9d2dc !important; }
footer h6 { letter-spacing: 0.3px; }

.table > :not(caption) > * > * { vertical-align: middle; }

.admin-sidebar .nav-link { border-radius: 0; padding: 0.6rem 1rem; color: #333; }
.admin-sidebar .nav-link:hover { background: #e9ecef; }
.admin-sidebar .nav-link.active { background: #0d6efd; color: #fff; }

.btn-group-xs > .btn, .btn-xs { padding: 0.2rem 0.4rem; font-size: 0.7rem; }

img[loading]:not([src*="placeholder"]) { background: #f0f0f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M16 18 L24 18 L24 14 L29 20 L24 26 L24 22 L16 22 L16 26 L11 20 L16 14 Z' fill='%23ccc'/%3E%3Ccircle cx='20' cy='28' r='5' fill='%23ccc'/%3E%3C/svg%3E") center/40px no-repeat; min-height: 40px; }

@media (max-width: 768px) {
    .navbar .input-group { max-width: 100%; }
    .hero-section h1 { font-size: 1.5rem; }
}

#thumbs .thumb { opacity: 0.6; border: 2px solid transparent; }

.autocomplete-box {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1060;
    min-width: 100%;
    width: max(100%, 340px);
    display: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    text-align: left;
}
.autocomplete-box.open { display: block; }
.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #212529;
    text-decoration: none;
    border-bottom: 1px solid #f1f3f5;
}
.autocomplete-item:hover, .autocomplete-item.active { background: #f0f7ff; color: #0d6efd; }
.autocomplete-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 2px;
}
.autocomplete-body { display: flex; flex-direction: column; min-width: 0; }
.autocomplete-name {
    font-size: 0.8rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.autocomplete-price { font-weight: 700; color: #0d6efd; font-size: 0.85rem; }
.autocomplete-more {
    display: block;
    text-align: center;
    padding: 8px;
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f8f9fa;
}
.autocomplete-more:hover { background: #e9ecef; }
#thumbs .thumb.active { opacity: 1; border-color: #0d6efd; }
