:root {
    --supreme-red: #da291c;
    --black: #000000;
    --white: #ffffff;
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --text-color: #000000;
    --input-border: #ddd;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

body.dark-mode {
    --bg-color: #050505;
    --card-bg: #121212;
    --text-color: #e0e0e0;
    --input-border: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-color); color: var(--text-color); font-family: 'Inter', sans-serif; transition: background 0.3s; }

/* HEADER */
.header { background: var(--card-bg); padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-left { display: flex; align-items: center; gap: 15px; }
.logo { background: var(--supreme-red); color: white; padding: 5px 12px; font-weight: 900; font-family: 'Oswald', sans-serif; font-size: 1.5rem; font-style: italic; letter-spacing: -1px; }

.header-icons { display: flex; gap: 15px; }
.icon-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; position: relative; color: var(--text-color); }
.badge { background: var(--supreme-red); color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; position: absolute; top: -5px; right: -8px; }

/* BUSCADOR */
.search-bar { flex-grow: 1; margin: 0 20px; display: flex; justify-content: center; }
.search-bar input { width: 100%; max-width: 400px; padding: 10px; background: var(--card-bg); color: var(--text-color); border: 2px solid var(--input-border); font-weight: bold; border-radius: 4px; }

/* BANNER */
.xmas-banner { background: repeating-linear-gradient(45deg, #8a0000, #8a0000 15px, var(--supreme-red) 15px, var(--supreme-red) 30px); color: white; text-align: center; padding: 12px; font-family: 'Oswald', sans-serif; font-weight: bold; letter-spacing: 1px; }
.xmas-banner span { background: white; color: var(--supreme-red); padding: 0 5px; font-style: italic; }

/* SIDEBAR */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 1999; display: none; }
.sidebar-overlay.active { display: block; }
.sidebar { position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: var(--card-bg); z-index: 2000; transition: left 0.4s; border-right: 1px solid var(--input-border); }
.sidebar.active { left: 0; }
.sidebar-header { background: var(--supreme-red); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 900; }
.close-menu-btn { background: none; border: none; color: white; font-size: 2rem; cursor: pointer; }
.sidebar-menu { list-style: none; padding: 20px; }
.sidebar-menu li { padding: 15px 0; border-bottom: 1px solid var(--input-border); cursor: pointer; font-weight: 800; }
.sidebar-menu li:hover { color: var(--supreme-red); padding-left: 10px; transition: 0.2s; }
.menu-toggle { background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--text-color); }

/* CARRUSEL */
.hero-slider { position: relative; width: 100%; height: 60vh; background: #000; overflow: hidden; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.slide.active { opacity: 1; z-index: 2; }
.hero-content { z-index: 3; animation: fadeInUp 1s ease-out; text-shadow: 0 4px 10px rgba(0,0,0,0.9); }
.hero-content h1 { font-family: 'Oswald', sans-serif; font-size: 3.5rem; font-weight: 900; margin-bottom: 10px; }
.hero-btn { background: var(--supreme-red); color: white; border: none; padding: 12px 40px; font-size: 1.2rem; font-weight: 900; cursor: pointer; margin-top: 20px; transition: 0.3s; }
.hero-btn:hover { background: #b00000; transform: scale(1.05); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; padding: 15px; cursor: pointer; z-index: 10; font-size: 1.5rem; }
.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

/* PRODUCTOS */
.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.section-title { font-family: 'Oswald', sans-serif; font-size: 2rem; border-bottom: 3px solid var(--supreme-red); display: inline-block; margin-bottom: 30px; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; }
.product-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s; padding-bottom: 15px; border: 1px solid transparent; }
body.dark-mode .product-card { border: 1px solid #333; }
.product-card:hover { transform: translateY(-5px); border-color: var(--supreme-red); }
.product-image img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-info { padding: 15px; text-align: center; }
.product-name { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 5px; }
.product-price { color: var(--supreme-red); font-weight: 900; font-size: 1.1rem; margin-bottom: 10px; }
.add-btn { width: 60px; height: 40px; background: black; color: white; border: none; cursor: pointer; display: flex; justify-content: center; align-items: center; margin: 0 auto; border-radius: 4px; transition: 0.2s; }
body.dark-mode .add-btn { background: red; color: black; }
.add-btn:hover { background: var(--supreme-red); color: white; }
.add-btn:hover svg { transform: scale(1.1); }

/* FOOTER LIMPIO */
.supreme-footer { background: var(--supreme-red); color: white; padding: 50px 20px; text-align: center; margin-top: 50px; }
.footer-title { font-family: 'Oswald', sans-serif; font-size: 2rem; font-style: italic; margin-bottom: 20px; }
.contact-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.contact-btn { background: transparent; border: none; padding: 0 10px; color: white; text-decoration: none; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; cursor: pointer; }
.contact-btn:hover { background: transparent; transform: scale(1.3); color: white; }
.contact-btn svg { width: 35px; height: 35px; stroke: currentColor; stroke-width: 2; transition: 0.3s; }
.copyright { font-size: 0.8rem; opacity: 0.8; }

/* CARRITO */
.cart-item-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--input-border); }
.cart-item-tiny-image { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; background: #fff; }

/* MODALES */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 2500; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal.active { display: flex; }
.modal-content { background: var(--card-bg); width: 95%; max-width: 420px; border-radius: 8px; overflow: hidden; border: 1px solid var(--input-border); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.modal-header { background: black; color: white; padding: 15px 20px; display: flex; justify-content: space-between; border-bottom: 2px solid var(--supreme-red); }
.close-btn { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }
.modal-body { padding: 30px 20px; }

/* INPUTS PREMIUM (LOGIN & PAGO) */
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 0.75rem; font-weight: 800; margin-bottom: 5px; opacity: 0.7; letter-spacing: 1px; }
.input-group input { 
    width: 100%; padding: 12px; background: var(--bg-color); color: var(--text-color); 
    border: 2px solid var(--input-border); font-weight: bold; border-radius: 6px; transition: 0.3s; 
}
.input-group input:focus { border-color: var(--supreme-red); outline: none; box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1); }

/* VALIDACIÓN SENIOR */
.input-group input.valid { border-color: #2ecc71 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ecc71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.input-group input.invalid { border-color: #e74c3c !important; animation: shake 0.3s ease-in-out; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-5px); } 100% { transform: translateX(0); } }

/* BOTONES */
.action-btn { width: 100%; padding: 15px; border: none; font-weight: 900; cursor: pointer; text-transform: uppercase; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s; border-radius: 6px; }
.red-btn { background: var(--supreme-red); color: white; }
.red-btn:hover { background: #b00000; transform: translateY(-2px); }
.black-btn { background: black; color: white; }
.link-text { display: block; text-align: center; margin-top: 15px; color: var(--supreme-red); font-weight: bold; cursor: pointer; font-size: 0.9rem; }
.link-text:hover { text-decoration: underline; }

/* TARJETA DE CRÉDITO Y LOGOS */
.credit-card { background: linear-gradient(135deg, #1a1a1a, #000); color: white; padding: 25px; border-radius: 12px; margin-bottom: 25px; font-family: 'Courier Prime', monospace; box-shadow: 0 15px 35px rgba(0,0,0,0.4); border: 1px solid #333; transition: all 0.3s ease; }
.card-top { display: flex; justify-content: space-between; margin-bottom: 30px; align-items: center; }
.chip { width: 45px; height: 35px; background: linear-gradient(135deg, #bf953f, #fcf6ba, #bf953f); border-radius: 6px; }
.card-logo-container { display: flex; align-items: center; justify-content: flex-end; min-width: 60px; height: 40px; }
.logo-text-visa { font-family: 'Inter', sans-serif; font-weight: 900; font-style: italic; font-size: 1.8rem; color: #fff; letter-spacing: -1px; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.logo-text-amex { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; background: #006FCF; padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.5); }
.card-number { font-size: 1.5rem; letter-spacing: 3px; text-align: center; margin-bottom: 20px; text-shadow: 0 2px 2px black; }
.card-bottom { display: flex; justify-content: space-between; font-size: 0.9rem; }
.label { font-size: 0.6rem; opacity: 0.7; margin-bottom: 4px; display: block; }
.accepted-cards { display: flex; justify-content: center; gap: 10px; margin-top: 15px; margin-bottom: 15px; opacity: 0.8; font-size: 0.8rem; align-items: center; }

/* ANIMACIONES */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { to { opacity: 0; transform: translateX(100%); } }
#notification-container { position: fixed; top: 20px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #000; color: #fff; padding: 15px 25px; border-left: 5px solid var(--supreme-red); border-radius: 4px; font-weight: bold; animation: slideIn 0.3s forwards; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }