/* --- 1. CORE SETTINGS --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap&subset=vietnamese');

:root {
    --bg-dark: #0f0c29;
    --text-light: #ffffff;
    --text-dim: #b3b3b3;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.2);
    --primary-gradient: linear-gradient(45deg, #ff00cc, #333399);
    --accent-cyan: #00f2ff;
    --accent-pink: #ff0099;
    --nav-height: 90px;
}

body {
        font-family: 'Be Vietnam Pro', 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- 2. LIQUID BACKGROUND (The Soul) --- */
.ambient-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    background: #0f0c29;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

.blob-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: #302b63;
    animation-delay: 0s;
}
.blob-2 {
    bottom: -10%; right: -10%; width: 60vw; height: 60vw;
    background: #24243e;
    animation-delay: -5s;
}
.blob-3 {
    top: 40%; left: 40%; width: 30vw; height: 30vw;
    background: radial-gradient(circle, rgba(255,0,153,0.3) 0%, rgba(0,0,0,0) 70%);
    animation: pulse 10s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 100px) rotate(20deg); }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0.8; }
}

/* --- 3. HYPER GLASS COMPONENTS --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight); /* Hiệu ứng ánh sáng cạnh trên */
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 242, 255, 0.1); /* Glow nhẹ màu cyan */
    border-color: rgba(255, 255, 255, 0.2);
}

.category-card {
    min-height: 150px;
    padding: 16px 14px;
    gap: 8px;
}

.cat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: none;
    padding: 0;
    border: none;
    box-shadow: none;
}

.cat-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.category-card h5 {
    margin: 0;
    padding-top: 0;
}

/* --- 4. NAVIGATION --- */
.navbar {
    height: var(--nav-height);
    background: transparent; /* Hoàn toàn trong suốt */
    padding: 0;
    transition: 0.3s;
}
.navbar.scrolled {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}


.brand-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: rgba(255,255,255,0.7) !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
    padding: 10px 0;
}
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px;
    background: var(--accent-pink);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--accent-pink);
}
.nav-link:hover { color: #fff !important; }
.nav-link:hover::before, .nav-link.active::before { width: 100%; }

/* Search Box Liquid */
.search-liquid {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    width: 100%;
    transition: 0.3s;
}
.search-liquid:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    outline: none;
}

/* --- 5. BUTTONS & UI --- */
.btn-liquid {
    position: relative;
    background: transparent;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    transition: 0.3s;
    z-index: 1;
}
.btn-liquid::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--accent-pink), #8a2be2);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: 50px;
}
.btn-liquid:hover::before { width: 100%; }
.btn-liquid:hover { border-color: transparent; box-shadow: 0 0 20px rgba(255, 0, 153, 0.4); }

/* --- 6. HERO SECTION --- */
.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-highlight {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}
.hero-orb-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.hero-orb {
    position: relative;
    width: clamp(260px, 32vw, 420px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(0, 242, 255, 0.2), rgba(15, 12, 41, 0.9) 60%);
    box-shadow:
        0 0 40px rgba(0, 242, 255, 0.3),
        0 0 120px rgba(255, 0, 153, 0.2);
}
.hero-orb__ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(0, 242, 255, 0.8), rgba(255, 0, 153, 0.15), rgba(0, 242, 255, 0.8));
    animation: heroOrbSpin 12s linear infinite;
    opacity: 0.55;
    filter: blur(0.5px);
    z-index: 0;
}
.hero-orb__glow {
    position: absolute;
    inset: -25px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.12), rgba(255, 0, 153, 0.12), transparent 65%);
    animation: heroOrbPulse 4.5s ease-in-out infinite;
    opacity: 0.65;
    z-index: 0;
}
.hero-orb__image {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background-size: 140% 140%;
    background-position: 45% 55%;
    background-repeat: no-repeat;
    filter: saturate(1.15) contrast(1.05);
    animation: heroOrbPan 16s ease-in-out infinite alternate;
    z-index: 1;
    box-shadow:
        inset 0 0 50px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 242, 255, 0.2);
}
.hero-orb__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem);
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 18px rgba(0, 242, 255, 0.7);
    z-index: 2;
    pointer-events: none;
}
@keyframes heroOrbSpin {
    to { transform: rotate(360deg); }
}
@keyframes heroOrbPan {
    0% { background-position: 42% 58%; transform: scale(1); }
    50% { background-position: 55% 45%; transform: scale(1.03); }
    100% { background-position: 58% 42%; transform: scale(1.05); }
}
@keyframes heroOrbPulse {
    0% { transform: scale(0.98); opacity: 0.55; }
    50% { transform: scale(1.03); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* --- 7. CARDS CUSTOMIZATION --- */
.product-img-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}
.product-img-box img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.glass-panel:hover .product-img-box img {
    transform: scale(1.1) rotate(2deg);
}

.price-liquid {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}
.home-product-title {
    font-size: 1.1rem;
}
.home-product-intro {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-product-price {
    margin-top: 6px;
    display: inline-block;
}
.home-product-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.home-product-stack .text-end {
    width: 100%;
    text-align: left !important;
}

/* --- 8. UTILS --- */
.text-glow { text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.badge-neon {
    background: rgba(255, 0, 153, 0.15);
    color: var(--accent-pink);
    border: 1px solid var(--accent-pink);
    box-shadow: 0 0 10px rgba(255, 0, 153, 0.2);
}

/* ... Giữ nguyên phần Core/Animations ở V3 ... */

/* --- 9. GLOBAL UI ELEMENTS (Cho các trang con) --- */

/* Breadcrumb */
.breadcrumb-item a { color: var(--accent-cyan); text-decoration: none; }
.breadcrumb-item.active { color: rgba(255,255,255,0.5); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* Form Inputs (Ghi đè Bootstrap) */
.form-control, .form-select {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: white !important;
    border-radius: 12px;
    padding: 12px 15px;
}
.form-control:focus, .form-select:focus {
    background: rgba(0,0,0,0.3) !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    color: white !important;
}
.form-label { color: var(--text-dim); margin-bottom: 8px; }
::placeholder { color: rgba(255,255,255,0.3) !important; }

/* Custom Checkbox/Radio */
.form-check-input {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}
.form-check-input:checked {
    background-color: var(--accent-pink);
    border-color: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

/* Glass Tables (Cho giỏ hàng/Admin) */
.table-glass {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-light);
    border-color: rgba(255,255,255,0.1);
}
.table-glass th {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
    color: var(--accent-cyan);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
}
.table-glass td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Tabs */
.nav-tabs { border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-tabs .nav-link { color: var(--text-dim); border: none; margin-bottom: -1px; }
.nav-tabs .nav-link:hover { color: white; }
.nav-tabs .nav-link.active {
    background: transparent;
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
}

/* Pagination */
.page-link {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    margin: 0 5px;
    border-radius: 8px;
}
.page-link:hover { background: rgba(255,255,255,0.1); color: var(--accent-cyan); }
.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* --- 10. Search suggestions (home real-time search) --- */
.search-suggestions {
    position: absolute;
    left: 0;
    background: rgba(0, 0, 0, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    z-index: 999;
    max-height: 420px;
    overflow-y: auto;
    backdrop-filter: blur(14px);
    min-width: 280px;
    padding: 6px;
}
.search-suggest-header {
    padding: 8px 10px;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.search-suggest-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.1s ease;
}
.search-suggest-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.search-suggest-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.search-suggest-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.search-suggest-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
}
.search-suggest-meta {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    margin-top: 2px;
}
.search-suggest-kind {
    font-size: 0.78rem;
    color: var(--text-dim);
}
.search-suggest-footer {
    padding: 8px 10px;
}
.search-suggest-footer a {
    display: block;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}
.search-suggest-footer a:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Vinyl hero */
.hero-vinyl {
    position: relative;
    width: clamp(260px, 32vw, 420px);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.vinyl-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.18), rgba(255, 0, 153, 0.12), transparent 65%);
    filter: blur(12px);
    z-index: 0;
}

.vinyl-disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(0,0,0,0.35)), var(--disc-img, linear-gradient(90deg,#222,#444));
    background-size: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 0 0 14px rgba(0,0,0,0.35), inset 0 0 0 22px rgba(255,255,255,0.05);
    animation: heroVinylSpin 9s linear infinite;
    overflow: hidden;
    z-index: 1;
}

.vinyl-center {
    position: absolute;
    inset: 42%;
    border-radius: 50%;
    background: radial-gradient(circle, #111 0%, #000 60%, #00f2ff 100%);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
}

.vinyl-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.8);
    letter-spacing: 0.5px;
    pointer-events: none;
}

.vinyl-control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: none;
    background: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 25px rgba(0, 242, 255, 0.25);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vinyl-control .hero-audio-text {
    display: none;
}

.vinyl-control i {
    display: none;
}

.vinyl-control::before {
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 24 24' fill='%23e8e8e8'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23373737'/%3E%3Cpath d='M9 7.5v9l7.5-4.5L9 7.5z' fill='%23e8e8e8'/%3E%3C/svg%3E");
}

.vinyl-control.is-playing::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512' viewBox='0 0 24 24' fill='%23e8e8e8'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23373737'/%3E%3Crect x='8' y='7' width='3' height='10' rx='1' fill='%23e8e8e8'/%3E%3Crect x='13' y='7' width='3' height='10' rx='1' fill='%23e8e8e8'/%3E%3C/svg%3E");
}

.vinyl-control:hover {
    transform: translate(-50%, -50%) scale(1.04);
    box-shadow: 0 14px 30px rgba(0,0,0,0.35), 0 0 30px rgba(0, 242, 255, 0.35);
}

.vinyl-shadow {
    position: absolute;
    bottom: -10%;
    width: 70%;
    height: 16%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35), transparent 70%);
    filter: blur(8px);
    z-index: 0;
}

.vinyl-audio {
    position: absolute;
    bottom: 8%;
    right: 4%;
    z-index: 2;
}

.vinyl-disc.paused {
    animation-play-state: paused;
}

@keyframes heroVinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-youtube {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.vinyl-youtube iframe {
    width: 1px;
    height: 1px;
    border: 0;
}


