@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    --primary-color: #8A4FFF;
    --primary-dark: #6a3acb;
    --text-color: #1a1a1a;
    --header-bg: #121212;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --gray: #e0e0e0;
    --shadow: 0 0.208vw 0.313vw rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 62.5vw;
    margin: 0 auto;
    padding: 0 1.042vw;
}

.main-header {
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    padding: 1vw 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.625vw;
}

.logo {
    height: 2.344vw;
    width: auto;
}

.brand-name {
    color: var(--white);
    font-weight: 700;
    font-size: 1.25vw;
    letter-spacing: 0.052vw;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 1.302vw;
}

.main-nav a {
    color: #cccccc;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.btn-register {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.417vw 0.938vw;
    border-radius: 0.313vw;
    transition: background 0.3s;
}

.btn-register:hover {
    background-color: var(--primary-dark);
}

#btn-cerrar-sesion {
    display: none;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

#btn-carrito {
    display: flex;
    align-items: center;
    gap: 0.2vw;
    position: relative;
}

#btn-perfil {
    display: none;
    align-items: center;
    gap: 0.2vw;
}

#btn-carrito .material-symbols-outlined {
    vertical-align: middle;
}

.cart-badge {
    position: absolute;
    top: -0.5vw;
    right: -0.5vw;
    background-color: #ef4444;
    color: white;
    font-size: 0.8vw;
    font-weight: bold;
    min-width: 1.5vw;
    height: 1.5vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.3vw;
    box-shadow: 0 0.2vw 0.4vw rgba(0, 0, 0, 0.2);
}

.cart-animation-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 1.5vw;
    font-weight: bold;
    pointer-events: none;
    animation: floatUpAndFade 1s ease-out forwards;
    z-index: 100;
}

@keyframes floatUpAndFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -250%) scale(1.5);
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.d-block {
    display: block !important;
}