/* ========================================================== */
/* CSS STILL USED FROM THE OLD THEME (the new theme is in shop.css) */
/* ========================================================== */

/* 1. GENERAL LAYOUT */
.anime-fade-in { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }

html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
.content-wrapper { flex: 1 0 auto; }
footer { flex-shrink: 0; }

.floating-toast-container { position: fixed; top: 85px; right: 20px; z-index: 9999; max-width: 380px; width: calc(100% - 40px); }
.premium-card { background: var(--tb-mat, #fff); border-radius: 15px; border: none; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); }

/* 2. SEARCH SUGGESTIONS (HTML built by main.js) */
#navSearchResults { max-height: 480px; overflow-y: auto; overflow-x: hidden; }
.search-result-item { display: flex; align-items: center; padding: 10px 14px; text-decoration: none !important; color: var(--tb-ink, #111) !important; border-bottom: 1px solid var(--tb-line, #f0f0f0); background: var(--tb-mat, #fff); white-space: normal !important; }
.search-result-item .text-truncate { white-space: nowrap !important; }
.search-result-item:hover { background-color: var(--tb-kem-dam, #f5f5f5); }
.search-result-item img { width: 48px !important; height: 48px !important; object-fit: contain; background: #fff; margin-right: 12px; flex-shrink: 0; border: 1px solid var(--tb-line, #eee); }
.search-footer-link { display: block; text-align: center; padding: 10px; background: var(--tb-kem-dam, #f5f5f5); color: var(--tb-ink, #111); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; text-decoration: none; letter-spacing: 1px; }
.search-footer-link:hover { color: var(--main-color); }

/* 3. HOME PAGE: VIDEO + SMALL BANNERS */
#video-thumbnails-container { opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
#video-player-container:hover #video-thumbnails-container { opacity: 1; visibility: visible; transform: translateY(0); }
.promo-banners { margin-top: 25px; }

/* 4. ADMIN QUICK EDIT ON THE HOME PAGE */
.edit-mode-active .editable-block { outline: 3px dashed #dc3545; outline-offset: 4px; z-index: 10; transition: 0.3s; }
.edit-mode-active .editable-block:hover { background-color: rgba(220, 53, 69, 0.05); }
.btn-quick-edit { display: none; position: absolute; top: 15px; right: 15px; z-index: 1050; width: 45px; height: 45px; font-size: 1.2rem; }
.edit-mode-active .btn-quick-edit { display: flex; align-items: center; justify-content: center; }
#btnToggleEdit { position: fixed; bottom: 85px; left: 20px; z-index: 9999; box-shadow: 0 5px 20px rgba(0,0,0,0.3); transition: 0.3s; }
#btnToggleEdit:hover { transform: scale(1.05); }

/* 5. PRODUCT DETAIL PAGE */
.price-text-dynamic { font-size: 2.2rem; font-weight: 900; color: #e60012; letter-spacing: -1px; }
.original-price-text { font-size: 1.2rem; color: #999; text-decoration: line-through; font-weight: bold; }
@keyframes pulse-btn { 0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3); } 70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
.btn-contact-pulse { animation: pulse-btn 2s infinite; }

/* 6. PHONES */
@media (max-width: 991.98px) {
    section { padding: 20px 0 !important; }

    /* Home-page small banners + brand filter buttons: horizontal swipe */
    #brandTabs, .promo-banners {
        display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; justify-content: flex-start !important;
    }
    #brandTabs::-webkit-scrollbar, .promo-banners::-webkit-scrollbar { display: none; }
    .promo-banners > div { flex: 0 0 85% !important; max-width: 85% !important; padding-left: 5px !important; padding-right: 5px !important; }

    /* Admin tables on phones */
    .premium-table { min-width: 800px; }
    .table-responsive { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
    .premium-card .card-body { padding: 15px !important; }
}

/* 7. DROPDOWN */
.dropdown-item { font-weight: 600; padding: 9px 18px; font-size: 0.9rem; color: var(--tb-ink, #333); }
.dropdown-item:hover { background-color: var(--tb-kem-dam, #f5f5f5); color: var(--main-color) !important; }
