:root {
    --bg-main: #0b0f19;
    --bg-card: #131825;
    
    /* 🎨 Couleurs du logo SubStore (Cyan, Bleu néon et Violet néon) */
    --neon-cyan: #00d2ff;
    --neon-purple: #9f1aff;
    --accent-primary: #00d2ff; /* Couleur principale (Cyan) */
    --accent-hover: #9f1aff;   /* Couleur au survol (Violet néon) */
    
    --text-white: #ffffff;
    --text-gray: #8d99ae;
    --green-stock: #2ecc71;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-white);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--bg-card);
    border-bottom: 1px solid rgba(0, 210, 255, 0.1);
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-cart {
    background-color: rgba(0, 210, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-cart:hover {
    background-color: rgba(0, 210, 255, 0.15);
    border-color: var(--neon-cyan);
}

#cart-count {
    background-color: var(--neon-purple);
    color: #fff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 4px;
}

.btn-discord {
    background-color: #5865F2;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-discord:hover {
    background-color: #4752c4;
}

/* Grille Produit */
.shop-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Carte Style Eneba / Kinguin avec lueur néon */
.product-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.card-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    background-color: #000;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: var(--text-white);
    line-height: 1.3;
}

.product-subtitle {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0 0 15px 0;
}

.price-section {
    margin-top: auto;
    margin-bottom: 12px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-white);
    display: block;
}

.stock-tag {
    font-size: 11px;
    color: var(--green-stock);
    font-weight: bold;
}

/* Bouton Ajouter au panier (Dégradé Cyan vers Violet Néon) */
.btn-buy {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-buy:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Overlay sombre du panier */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 99;
}

.cart-overlay.open {
    display: block;
}

/* Panneau Latéral Panier */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 340px;
    height: 100%;
    background-color: var(--bg-card);
    border-left: 1px solid rgba(0, 210, 255, 0.15);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.cart-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    margin: 20px 0;
}

.empty-msg {
    color: var(--text-gray);
    font-size: 14px;
    text-align: center;
    margin-top: 40px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cart-item h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #fff;
}

.cart-item p {
    margin: 0;
    font-size: 12px;
    color: var(--text-gray);
}

.btn-remove {
    background: none;
    border: none;
    color: #ff4757;
    font-size: 12px;
    cursor: pointer;
}

.cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.btn-checkout {
    width: 100%;
    background-color: #5865F2;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.btn-checkout:hover {
    background-color: #4752c4;
}
/* Modale Produit en grand */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-overlay.open {
    display: flex;
}

.product-modal {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    position: relative;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 22px;
    cursor: pointer;
}

.modal-image {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details h2 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--text-white);
}

.modal-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}