﻿body {
    cursor: url('/images/cursor.png'), auto;
}
:root {
    --transition-speed: 0.3s;
}

/* Canvas sao băng */
#meteor-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d97706; 
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #b45309;
    }
/* Canvas */
#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Transitions */
a, button, input, select, textarea {
    transition: all var(--transition-speed) ease;
}

    /* Focus outline */
    a:focus-visible,
    button:focus-visible {
        outline: 2px solid #d97706;
        outline-offset: 2px;
    }

/* Prevent layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Back to top animation */
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}
/* chuyển ảnh logo mượt*/
#logoImage {
    transition: opacity 0.5s ease-in-out;
}
.footer-wrapper {
    width: 100%;
    background-color: #fff;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        align-items: baseline;
        text-align: left;
    }
}

/* Bên trái: logo + text */
.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-logo {
    height: 64px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-text {
    line-height: 1.4;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.footer-desc {
    font-size: 0.75rem;
    color: #4b5563;
}

/* Bên phải: bản quyền */
.footer-right {
    font-size: 0.75rem;
    color: #4b5563;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-right {
        text-align: right;
    }
}
/* ===================== HEADER OPTIMIZATION ===================== */
header .container {
    max-width: 1280px;
    padding: 0 1rem;
}

header .flex.flex-col.lg\:flex-row.items-center.justify-between {
    gap: 0.75rem; /* giảm khoảng cách giữa các khối */
}

/* Các icon giỏ hàng, wishlist, menu sát hơn */
header .flex.items-center.gap-4 {
    gap: 0.75rem;
}

/* Logo & chữ */
#logoImage {
    width: 48px;
    height: 48px;
    transition: opacity 0.5s ease-in-out, transform 0.2s ease;
}

    #logoImage:hover {
        transform: scale(1.05);
    }

/* ===================== AVATAR ===================== */
.avatar-wrapper img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .avatar-wrapper img:hover {
        transform: scale(1.05);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

/* Tên và số dư hiển thị sát hơn */
.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
/* Toast */
.toast {
    position: fixed;
    top: 190px;
    right: 20px;
    z-index: 999999;
    min-width: 300px;
    padding: 12px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
    font-weight: 600;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s;
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .toast svg {
        width: 18px;
        height: 18px;
    }

/* Colors */
.toast--success {
    background: #e9f9ee;
    color: #166534;
    border: 1px solid #86efac;
}

.toast--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.toast--info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}
