﻿/* --- GIỮ NGUYÊN TOÀN BỘ CẤU TRÚC GỐC CỦA SẾP --- */
:root {
    --primary: #ff4747;
    --primary-hover: #d90429;
    --dark-bg: #121417;
    --card-bg: #1a1d21;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --shadow-dark: 0 15px 35px rgba(0,0,0,0.5);
    --shadow-red: 0 10px 30px rgba(255, 71, 71, 0.2);
    --gold-gradient: linear-gradient(45deg, #f39c12, #f1c40f);
}

body {
    background-color: var(--dark-bg) !important;
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

.navbar {
    background: rgba(18, 20, 23, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid #2d3136;
    padding: 12px 0;
}

/* --- CARD SẢN PHẨM PHONG CÁCH 2026 (KHÔNG ĐỔI) --- */
.product-card {
    background: var(--card-bg);
    border: 1px solid #2d3136 !important;
    border-radius: 30px !important;
    padding: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: var(--shadow-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 520px;
    animation: fadeInUp 0.8s ease-out forwards;
}

    .product-card:hover {
        transform: translateY(-15px);
        border-color: var(--primary);
        box-shadow: var(--shadow-red);
    }

    .product-card.hot-deal::before {
        content: '';
        position: absolute;
        inset: -1px;
        background: linear-gradient(45deg, #ff4747, #ff9f43, #ff4747);
        z-index: -1;
        filter: blur(12px);
        border-radius: 32px;
        opacity: 0;
        transition: 0.4s;
    }

    .product-card.hot-deal:hover::before {
        opacity: 0.5;
    }

.img-container {
    background: #ffffff !important;
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 15px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1) rotate(-5deg);
}

/* --- [MỚI] MENU SALE RỰC CHÁY TRÊN NAVBAR --- */
.nav-link.sale-link {
    color: #ff4747 !important;
    font-weight: 900 !important;
    position: relative;
}

    .nav-link.sale-link::before {
        content: '🔥';
        font-size: 0.8rem;
        margin-right: 4px;
    }

/* --- [MỚI] BANNER SALE SIÊU HOÀNH TRÁNG --- */
.sale-hero-section {
    background: linear-gradient(135deg, #121417 0%, #3d0000 100%);
    border-radius: 40px;
    padding: 50px;
    margin: 20px 0 50px 0;
    border: 1px solid rgba(255, 71, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.sale-hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    margin: 0;
    letter-spacing: -2px;
}

.sale-hero-content span {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 71, 71, 0.5);
}

/* --- GIÁ TIỀN & GIẢM GIÁ (KHÔNG LỖI WARNING) --- */
.product-price {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 10px 0 5px 0;
    display: block;
    color: #ff4747 !important;
}

.old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 1rem;
    font-weight: 400;
    margin-right: 8px;
}

.badge-sale-luxury {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold-gradient);
    color: black;
    padding: 6px 15px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 0.85rem;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    animation: glowBadge 2s infinite;
}

/* --- THANH FLASH SALE & NÚT GỐC --- */
.flash-sale-box {
    margin-bottom: 15px;
    padding: 0 10px;
}

.flash-sale-bar {
    width: 100%;
    height: 10px;
    background: #2d3136;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.flash-sale-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(to right, #ff4747, #ff9f43);
    width: 75%;
    animation: flashProgress 2s ease-out forwards;
}

.flash-sale-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 5px;
    font-weight: 600;
}

.btn-sport {
    background: linear-gradient(45deg, var(--primary), #ff6b6b);
    color: white !important;
    border-radius: 15px !important;
    padding: 12px 25px;
    font-weight: 800;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    margin-top: auto;
}

    .btn-sport:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(255, 71, 71, 0.4);
    }

    .btn-sport::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -100%;
        width: 50%;
        height: 200%;
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(30deg);
        transition: 0.5s;
    }

    .btn-sport:hover::after {
        left: 150%;
    }

/* --- PHÂN TRANG & SIDEBAR --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-item .page-link {
    background: var(--card-bg) !important;
    color: var(--text-gray) !important;
    border: 1px solid #2d3136 !important;
    border-radius: 12px !important;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: 0.3s;
}

.page-item.active .page-link {
    background: var(--primary) !important;
    color: white !important;
    box-shadow: var(--shadow-red);
}

.card-sport-sidebar {
    background: var(--card-bg) !important;
    border-radius: 25px;
    border: 1px solid #2d3136;
    overflow: hidden;
}

    .card-sport-sidebar .card-header {
        background: linear-gradient(45deg, var(--primary), var(--primary-hover));
        color: white;
        font-weight: 800;
        text-align: center;
        padding: 15px;
    }

.list-group-item {
    background: transparent !important;
    color: var(--text-gray) !important;
    border-bottom: 1px solid #2d3136 !important;
    padding: 15px 20px;
    transition: 0.3s;
}

    .list-group-item:hover {
        background: rgba(255, 71, 71, 0.1) !important;
        color: var(--primary) !important;
        padding-left: 30px;
    }

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flashProgress {
    from {
        width: 0;
    }
}

@keyframes glowBadge {
    0% {
        filter: brightness(1);
        transform: scale(1);
    }

    50% {
        filter: brightness(1.3);
        transform: scale(1.05);
    }

    100% {
        filter: brightness(1);
        transform: scale(1);
    }
}

@keyframes pulseRed {
    0% {
        transform: scale(1);
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}
