@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --background-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Glassmorphism Header */
.shopee-header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 1rem 0 !important;
}

.shopee-header a, .shopee-header .text-white {
    color: var(--text-main) !important;
}

.shopee-search input {
    background: #f1f5f9;
    border-radius: 0.5rem 0 0 0.5rem !important;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
}

.shopee-search button {
    background: var(--primary-color) !important;
    border-radius: 0 0.5rem 0.5rem 0 !important;
    font-weight: 600;
}

/* Top Bar */
.top-bar {
    background: #0f172a !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    position: relative;
    z-index: 1001;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: white !important;
}

.top-bar .dropdown-menu a {
    color: var(--text-main) !important;
}

.top-bar .dropdown-menu a:hover {
    color: var(--primary-color) !important;
    background-color: #f8fafc;
}

/* Category Bar */
.category-bar {
    background: white;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    position: sticky;
    top: 72px; /* Height of header */
    z-index: 999;
}

.category-scroll-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.category-bar a {
    font-weight: 600;
    color: var(--text-muted) !important;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    flex-shrink: 0;
}

.category-bar a:hover, .category-bar a.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

/* Premium Product Cards */
.product-card {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    background: var(--card-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.product-card .bg-light {
    background-color: #f8fafc !important;
    border-bottom: 1px solid var(--border-color);
}

.product-card .price {
    color: var(--primary-color) !important;
    font-size: 1.1rem;
    letter-spacing: -0.025em;
}

.product-card .product-title a {
    font-weight: 600;
    color: var(--text-main) !important;
    text-decoration: none;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .shopee-header {
        padding: 0.75rem 0 !important;
    }

    .shopee-search input {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .category-bar {
        margin-bottom: 1rem;
        top: 60px;
    }

    .category-scroll-wrapper {
        padding: 0 0.5rem;
    }

    .product-card:hover {
        transform: none !important;
    }
}

@media (max-width: 576px) {
    .logo-text {
        font-size: 1.25rem !important;
    }
    
    .shopee-search {
        margin-right: 0.5rem !important;
    }
    
    .cart-icon {
        font-size: 1.2rem !important;
    }
}
/* Footer Styles */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 0;
    margin-top: 4rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact {
    font-size: 0.95rem;
}

.footer-contact i {
    width: 25px;
    color: var(--primary-color);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Hotline Floating Component */
.hotline-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hotline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    position: relative;
}

.hotline-item:hover {
    transform: scale(1.1);
    color: white;
}

.hotline-item i {
    font-size: 1.5rem;
}

.hotline-item.phone { background: #2ecc71; }
.hotline-item.zalo { background: #0068ff; }
.hotline-item.messenger { background: #0084ff; }

.hotline-item::after {
    content: attr(data-label);
    position: absolute;
    right: 60px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.hotline-item:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hotline-wrapper {
        bottom: 20px;
        right: 20px;
    }
    .hotline-item {
        width: 45px;
        height: 45px;
    }
}

/* Skeleton Loading */
.skeleton {
    background: #e2e5e7;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    background-size: 40px 100%;
    background-repeat: no-repeat;
    background-position: left -40px top 0;
    animation: shimmer 1s ease infinite;
}

@keyframes shimmer {
    to {
        background-position: right -40px top 0;
    }
}

.skeleton-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.skeleton-text {
    height: 14px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text.short {
    width: 50%;
}

.skeleton-text.title {
    height: 18px;
    margin-bottom: 12px;
}
