:root {
    --black: #000000;
    --white: #ffffff;
    --bg-dark: #000000;
    --bg-soft: #0a0a0a;
    --bg-input: #111111;
    --border-dark: #222222;
    --border-soft: #333333;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --text-soft: #777777;
    --shadow-soft: 0 0 20px rgba(255, 255, 255, 0.05);
    --shadow-card: 0 0 20px rgba(255, 255, 255, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
}

/* ----- BARRA DE NAVEGACIÓN ----- */
header {
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    background: var(--bg-dark);
    z-index: 1000;
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 25px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-icons:first-child {
    justify-content: flex-start;
}

.nav-icons.right {
    justify-content: flex-end;
}

.nav-icons i {
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.nav-icons i:hover {
    background: var(--white);
    color: var(--black);
}

/* ----- MENÚ / LOGO ----- */
.left-group,
.right,
.menu-wrapper,
.user-wrapper,
.cart-wrapper,
.search-wrapper {
    position: relative;
}

.menu-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-logo:hover {
    transform: scale(1.1);
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    text-align: center;
    text-shadow: 2px 2px 6px #444, 0 0 12px #ff4500;
}

/* ----- BUSCADOR ----- */
.search {
    padding: 6px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    transition: width var(--transition), border-color var(--transition);
    width: 120px;
    background: var(--bg-input);
    color: var(--white);
}

.search:focus {
    width: 200px;
    outline: none;
    border-color: #ff4500;
}

.search-results {
    position: absolute;
    top: 42px;
    left: 0;
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 2000;
    max-height: 250px;
    overflow-y: auto;
}

.search-results.show {
    display: block;
}

.search-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid var(--border-dark);
    color: var(--white);
}

.search-item:hover {
    background: #161616;
}

/* ----- DROPDOWNS ----- */
.dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    min-width: 220px;
    background: var(--bg-soft);
    border: 1px solid var(--border-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    z-index: 2000;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu a {
    padding: 12px 15px;
    text-decoration: none;
    color: var(--white);
    border-bottom: 1px solid var(--border-dark);
    font-size: 14px;
}

.dropdown-menu a:hover {
    background: #161616;
}

/* ----- CARRITO ----- */
.cart-icon {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #3b82f6;
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.cart-count.bump {
    transform: scale(1.3);
}

.cart-menu {
    right: 0;
    left: auto;
    width: 300px;
    padding: 10px;
    background: var(--bg-soft);
    border: 1px solid #1a1a1a;
    color: var(--white);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-dark);
}

.cart-item p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #cccccc;
}

.remove-item {
    background: var(--bg-input);
    color: var(--white);
    border: 1px solid var(--border-soft);
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
}

.remove-item:hover {
    background: #222222;
}

.cart-total {
    padding-top: 12px;
    font-size: 15px;
    color: var(--white);
    margin-top: 10px;
}

.empty-cart {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.cart-actions {
    margin-top: 14px;
    display: flex;
    justify-content: stretch;
}

.btn-checkout {
    width: 100%;
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 10px;
}

.btn-checkout:hover {
    background: #dddddd;
}

/* ----- PRODUCTOS ----- */
.section-header {
    padding: 50px 20px 20px;
    text-align: center;
}

.section-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 0 15px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 0 30px 50px;
    }
}

.card {
    text-decoration: none;
    color: inherit;
    background: var(--bg-dark);
    border: 1px solid #1a1a1a;
    padding: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.image-container {
    background: var(--bg-dark);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0;
    border: none;
    box-shadow: none;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--white);
    color: var(--black);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #dddddd;
}

.card img,
.image-container img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
}

.card-info {
    padding: 15px 0;
}

.brand-name {
    font-size: 11px;
    font-weight: 700;
    color: #8a8a8a;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 34px;
    overflow: hidden;
    color: var(--white);
}

.price {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
}

.wishlist-heart {
    color: var(--white);
    font-size: 30px;
    margin: 10px 0;
    line-height: 1;
}

.coming-text {
    text-align: center;
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-add {
    width: 100%;
    margin-top: 15px;
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
}

.btn-add:hover {
    background: #d9d9d9;
}

.btn-add.agotado {
    background: #1f1f1f;
    color: #666666;
    border: 1px solid #2a2a2a;
    cursor: not-allowed;
    opacity: 1;
}

.btn-add.agotado:hover {
    background: #1f1f1f;
}

#proximosDrops .btn-add[disabled],
.btn-add.proximamente {
    background: #1f1f1f;
    color: #777777;
    border: 1px solid #2a2a2a;
    cursor: not-allowed;
    opacity: 0.85;
}

#proximosDrops .badge {
    background: var(--white);
    color: var(--black);
}

/* ----- SECCIONES ----- */
.section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

/* ----- FORMULARIO ----- */
.form-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    background: var(--bg-soft);
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.form-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-dark);
    font-size: 14px;
    color: var(--white);
}

.form-table td:first-child {
    font-weight: bold;
    width: 40%;
    color: #dddddd;
}

.form-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-soft);
    outline: none;
    border-radius: var(--radius-sm);
    transition: border 0.2s ease;
    box-sizing: border-box;
    background: var(--bg-input);
    color: var(--white);
}

.form-table input:focus {
    border-color: var(--white);
}

.form-table input:disabled {
    background: #1a1a1a;
    color: #666666;
    cursor: not-allowed;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    max-width: 600px;
}

.form-buttons .btn-add,
.form-buttons .btn-edit {
    width: 220px;
    margin-top: 0;
}

.btn-edit {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--white);
    padding: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-edit:hover {
    background: var(--black);
    color: var(--white);
}

#formSection .btn-add {
    max-width: 300px;
    margin-top: 20px;
}

/* ----- INFO DEL CLIENTE ----- */
.info-box {
    background: var(--bg-soft);
    color: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin-top: 20px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-soft);
}

.info-box p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* ----- MODAL OVERLAY ----- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ----- MODALES LOGIN / REGISTER ----- */
.auth-modal,
#register-modal,
#login-modal,
.info-modal {
    background: var(--bg-soft);
    color: var(--white);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 380px;
    padding: 30px 25px;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.auth-modal.show {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.auth-modal h2,
#register-modal h2,
#login-modal h2 {
    margin: 0 0 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    color: var(--white);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: var(--white);
}

.close-modal:hover {
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input {
    padding: 12px 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-input);
    color: var(--white);
}

.auth-form input::placeholder {
    color: var(--text-soft);
}

.auth-form input:focus {
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.auth-form button {
    margin-top: 6px;
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
}

.auth-form button:hover {
    background: #dddddd;
}

.auth-switch {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    color: #dddddd;
}

/* ----- AUTOFILL ----- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #111111 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #333333 !important;
}

/* ----- INFO MODAL ----- */
.info-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    padding: 25px;
    width: 300px;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 4500;
}

.info-modal.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.info-modal h2 {
    margin-bottom: 10px;
}

.info-modal p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* ----- MODAL IMÁGENES ----- */
.modal-img {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-img img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    color: var(--white);
    cursor: pointer;
    user-select: none;
    padding: 10px 15px;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-md);
}

.flecha:hover {
    background: rgba(255, 255, 255, 0.15);
}

.flecha.izquierda {
    left: 25px;
}

.flecha.derecha {
    right: 25px;
}

/* ----- ANIMACIÓN ----- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 320px));
    gap: 30px;
    padding: 0 40px 50px;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(280px, 360px));
        gap: 40px;
        padding: 0 40px 50px;
    }
}

.card-info {
    padding: 18px 12px;
}

.brand-name {
    font-size: 14px;
}

.name {
    font-size: 28px;
    line-height: 1.15;
    min-height: auto;
}

.price {
    font-size: 20px;
}

.btn-add {
    font-size: 15px;
    padding: 14px;
}
.btn-add {
    width: 100%;
    margin-top: 15px;
    background: var(--white);
    color: var(--black);
    border: none;
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
    display: block;
    text-align: center;
    text-decoration: none;
}