/* NAVBAR ESTILO MODERNO Y FIJO */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 25px;
}

.nav-logo img {
    height: 100px;
    margin-top: -20px;
    margin-bottom: -30px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #00C896;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    position: relative;
    font-size: 20px;
    cursor: pointer;
    color: #222;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #00C896;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #222;
    border-radius: 2px;
}

/* SIDEBAR GENERAL */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    background: #fff;
    transition: right 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
    box-shadow: -4px 0 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
}

.sidebar.show {
    right: 0;
}

.sidebar.login-mode,
.sidebar.cart-mode {
    width: 30%;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background-color: #f8f8f8;
}

/* FORMULARIO LOGIN MEJORADO */
.login-content {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.login-form {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 200, 150, 0.08);
    border: 1px solid rgba(0, 200, 150, 0.1);
    position: relative;
    overflow: hidden;
}

.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00C896, #00e6b3);
}

.login-form h2 {
    text-align: center;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.login-form .subtitle {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 1rem;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #00C896;
    box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.1);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    appearance: none;
    background: #ffffff;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #00C896;
    border-color: #00C896;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #00C896;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #00b382;
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00C896 0%, #00b382 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 200, 150, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 200, 150, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 200, 150, 0.2);
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.form-footer p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.register-link {
    color: #00C896;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #00b382;
    text-decoration: underline;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 480px) {
    .login-content {
        padding: 1.5rem 1rem;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    .login-form h2 {
        font-size: 1.5rem;
    }
    
    .form-group input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media screen and (max-width: 360px) {
    .login-form {
        padding: 1.5rem 1rem;
    }
    
    .login-form h2 {
        font-size: 1.3rem;
    }
    
    .form-group input {
        padding: 0.75rem;
    }
}

/* CARRITO ESTILO MODERNO */
.cart-summary {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.total-row {
    font-weight: bold;
    font-size: 16px;
    border-top: 1px solid #ccc;
    margin-top: 10px;
    padding-top: 10px;
}

.checkout-btn-sidebar {
    width: 100%;
    background: #00C896;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn-sidebar:hover {
    background: #00b285;
}

.continue-shopping {
    background: none;
    color: #00C896;
    font-weight: bold;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    text-decoration: underline;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .sidebar.login-mode,
    .sidebar.cart-mode {
        width: 100%;
    }
}

@media screen and (min-width: 769px) {
    .sidebar {
        max-width: 30%;
    }
}


/* Increment / Decrement buttons */
.cart-item .quantity-btn {
    background: #00C896;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-sidebar {
    background: #00b285;
    border-radius: 50%;
    padding: 2.5px;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #fff;
}

/* LOGIN FORM */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.login-form .form-group {
    display: flex;
    flex-direction: column;
}

.login-form input {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #ccc;
    background: #fff;
    transition: border 0.3s;
}

.login-form input:focus {
    border-color: #00C896;
    outline: none;
}

.submit-btn {
    background: #00C896;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #00b382;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: bold;
    color: white;
    cursor: pointer;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.google-btn {
    background: #dd4b39;
}

.facebook-btn {
    background: #3b5998;
}

/* CART */
.cart-items-sidebar {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 1rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.cart-summary {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
    margin-top: 1rem;
    background: #f8f8f8;
    border-radius: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.total-row span {
    font-weight: bold;
    font-size: 1.1rem;
}

.checkout-btn-sidebar,
.continue-shopping {
    margin-top: 1rem;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn-sidebar {
    background: #00C896;
    color: white;
}

.checkout-btn-sidebar:hover {
    background: #00b382;
}

.continue-shopping {
    background: #eee;
    color: #333;
}

.cart-item .quantity-btn:hover {
    background: #00b382;
}
