/* --- BIẾN MÀU SẮC --- */
:root {
    --bg-dark: #1a0a25;
    --bg-gradient: linear-gradient(to right, #1a0a25, #3d1b5a);
    --menu-bg: #210d30;
    --accent: #ff4655;
    --text-white: #ffffff;
    --text-gray: #b5a4c4;
    --price-color: #ffb400;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d0612;
    color: var(--text-white);
}

/* --- HEADER --- */
.top-header {
    background: var(--bg-gradient);
    padding: 15px 0;
    border-bottom: 1px solid #4a236a;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a0a25;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid white;
}

.main-logo {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.sub-logo {
    font-size: 10px;
    text-transform: uppercase;
}

/* SEARCH BOX */
.search-box {
    flex: 0 1 450px;
    display: flex;
    background: white;
    border-radius: 4px;
    margin: 0 20px;
}

.search-box input {
    border: none;
    width: 100%;
    padding: 10px;
    outline: none;
}

.search-box button {
    background: none;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}

/* USER SECTION */
.user-section {
    display: flex;
    align-items: center;
}

.data-badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    text-align: right;
    margin-right: 15px;
    color: var(--text-gray);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.icon-gate { font-size: 24px; }

.login-text { font-size: 12px; }

/* --- MENU --- */
nav.main-nav {
    background: var(--menu-bg);
    border-bottom: 2px solid #331644;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
}

.nav-container a, .dropdown {
    color: var(--text-gray);
    padding: 15px 18px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-container a:hover, .dropdown:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.nav-container a.active {
    border-bottom: 3px solid white;
    color: white;
}

/* --- PRODUCT GRID --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 22px;
    letter-spacing: 1px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #1c1326;
    border: 1px solid #332144;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.card-body { padding: 15px; }

.card-id {
    background: var(--accent);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 12px;
    display: inline-block;
}

.card-details p {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    justify-content: space-between;
    margin: 6px 0;
}

.price {
    color: var(--price-color);
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
}

.btn-buy {
    display: block;
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

footer {
    text-align: center;
    padding: 30px;
    color: #444;
    font-size: 13px;
}